hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
e4fbf9c4787bd6c823e79265ebbbdf508f8294f4
4,200
py
Python
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
Peshal1067/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
3
2015-04-23T09:09:04.000Z
2020-02-26T17:40:19.000Z
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
arthur-e/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
null
null
null
src/openclimategis/util/ncconv/experimental/ocg_converter/csv_.py
arthur-e/OpenClimateGIS
297db6ae1f6dd8459ede6bed905c8d85bd93c5d6
[ "BSD-3-Clause" ]
2
2017-05-30T10:27:36.000Z
2020-11-09T13:52:58.000Z
import io import zipfile import csv from util.ncconv.experimental.ocg_converter.subocg_converter import SubOcgConverter class CsvConverter(SubOcgConverter): # __headers__ = ['OCGID','GID','TIME','LEVEL','VALUE','AREA_M2','WKT','WKB'] def __init__(self,*args,**kwds): self.as_wkt = kwds.pop('as_wkt'...
37.837838
97
0.553095
4,067
0.968333
0
0
0
0
0
0
1,714
0.408095
9001723e3ad1821cbe597698ec69edc8b0731984
839
py
Python
uninas/modules/modules/cnn.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
18
2020-11-22T16:03:08.000Z
2022-03-15T12:11:46.000Z
uninas/modules/modules/cnn.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
2
2022-01-04T08:10:17.000Z
2022-01-05T08:13:14.000Z
uninas/modules/modules/cnn.py
cogsys-tuebingen/uninas
06729b9cf517ec416fb798ae387c5bd9c3a278ac
[ "MIT" ]
6
2021-03-08T07:08:52.000Z
2022-02-24T12:00:43.000Z
import torch import torch.nn as nn class SqueezeModule(nn.Module): def forward(self, x: torch.Tensor) -> torch.Tensor: return x.squeeze() class GapSqueezeModule(nn.Module): """ global average pooling and squeezing """ def __init__(self): super().__init__() self.gap = nn.Adaptive...
27.064516
95
0.640048
795
0.947557
0
0
0
0
0
0
44
0.052443
9003b0f6d049c9acbb898890fc3e7195ecd16b28
1,634
py
Python
arcade/gui/examples/anchor_widgets.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
null
null
null
arcade/gui/examples/anchor_widgets.py
akapkotel/arcade
6e43ec53e7bfa3dee1aa574404794e3695aad381
[ "MIT" ]
1
2022-03-21T06:24:29.000Z
2022-03-21T06:24:29.000Z
arcade/gui/examples/anchor_widgets.py
Ibrahim2750mi/arcade
bf3229e64117931bffb8e50926a996a7a8fc9b8b
[ "MIT" ]
null
null
null
""" Example shows how to use UIAnchorWidget to position widgets on screen. Dummy widgets indicate hovered, pressed and clicked. """ import arcade from arcade.gui import UIManager from arcade.gui.widgets import UIDummy from arcade.gui.widgets.layout import UIAnchorLayout class UIMockup(arcade.Window): def __init_...
24.38806
70
0.570991
1,324
0.810282
0
0
0
0
0
0
239
0.146267
90041b2eae192a57fb04bf6a09bec2f9aae7dce1
3,897
py
Python
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
null
null
null
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
2
2021-09-23T12:59:27.000Z
2021-11-01T12:21:51.000Z
tools/e2e_inference.py
nanit/deep-high-resolution-net.pytorch
17226df8effda518c47355e85f4733638c20297a
[ "MIT" ]
null
null
null
import os import glob import pickle import sys import tensorflow as tf from numba import cuda from python_tools.OSUtils import ensure_dir from offline_predict import get_boxes_from_detection_predictions_data, convert_boxes_to_bboxes, predict_on_image_list, load_skeleton_model DETECTION_RESEARCH_FOLDER = os.path.expand...
45.847059
138
0.744419
0
0
0
0
0
0
0
0
724
0.185784
9007054fb0674671d547ac9d0adee85e1c24f33c
1,234
py
Python
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
analytics/extract/bare/funds-explorer/scrap_ranking.py
vicmattos/data-invest
4318a33117583bf492b45c69c957fd0ea2c455e1
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import csv import time from datetime import datetime import requests from bs4 import BeautifulSoup url = 'https://www.fundsexplorer.com.br/ranking' # Data Cleansing # 'R$' => '' # '%' => '' # '.0' => '' # '.' => '' # ',' => '.' # 'N/A' => '' print("Starting...{}".format(datetime.now())...
20.915254
147
0.627229
0
0
0
0
0
0
0
0
295
0.23906
9009e3424db2d10a8ac51689c842cea2498a6040
14,546
py
Python
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2020-08-28T16:34:10.000Z
2020-08-28T16:34:10.000Z
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
null
null
null
stentseg/apps/_3DPointSelector.py
almarklein/stentseg
48255fffdc2394d1dc4ce2208c9a91e1d4c35a46
[ "BSD-3-Clause" ]
1
2021-04-25T06:59:36.000Z
2021-04-25T06:59:36.000Z
""" Module 3D Point Selector Provides functionality view slices and to select points in multiplanar reconstructions. """ import os, time, sys import numpy as np import visvis as vv from visvis.utils.pypoints import Point, Pointset, Aarray import OpenGL.GL as gl import OpenGL.GLU as glu class VolViewer: ...
36.732323
110
0.564691
12,342
0.848481
0
0
75
0.005156
0
0
2,162
0.148632
900c0665baf28282fa05f41faa6b983f942bdbf2
343
py
Python
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
3
2021-05-12T02:48:06.000Z
2021-12-21T14:45:56.000Z
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
null
null
null
crossasr/estimator.py
mhilmiasyrofi/CrossASRv2
202b9a7caadf5f8d6f115f776526960af35a73a3
[ "MIT" ]
1
2021-06-14T11:15:35.000Z
2021-06-14T11:15:35.000Z
class Estimator: def __init__(self, name:str): self.name = name def getName(self) -> str : return self.name def setName(self, name:str): self.name = name def fit(self, X:[str], y:[int]): raise NotImplementedError() def predict(self, X:[str]): raise...
21.4375
36
0.571429
342
0.997085
0
0
0
0
0
0
0
0
900c0768bdb748b6c9e90f7a675de1895a6d4acc
4,386
py
Python
app/api/V1/views/auth_endpoints.py
eduhmik/Store-Manager-api
50395d39758800784fbd0b3e516b8bedc900cdeb
[ "MIT" ]
null
null
null
app/api/V1/views/auth_endpoints.py
eduhmik/Store-Manager-api
50395d39758800784fbd0b3e516b8bedc900cdeb
[ "MIT" ]
8
2018-10-24T01:33:32.000Z
2019-10-21T17:36:01.000Z
app/api/V1/views/auth_endpoints.py
eduhmik/Store-Manager-api
50395d39758800784fbd0b3e516b8bedc900cdeb
[ "MIT" ]
1
2018-10-19T21:57:48.000Z
2018-10-19T21:57:48.000Z
from flask import Flask, request, jsonify, Blueprint, json, make_response from flask_restplus import Resource, reqparse, Api, Namespace, fields from ..models.user_model import User api = Namespace('Register Endpoint', description='A collection of register endpoints for the user model') ns = Namespace('Users Endpoints...
33.227273
105
0.559052
1,731
0.394665
0
0
1,793
0.408801
0
0
1,080
0.246238
900d82f05310f821f29ddc9642e0427552a38aae
2,687
py
Python
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
null
null
null
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
null
null
null
wolfram/wolfram.py
Wyn10/aikaterna-cogs
a7fd5930f90b4046296ce98406639219c38302a7
[ "MIT" ]
1
2019-03-30T05:18:42.000Z
2019-03-30T05:18:42.000Z
import os import aiohttp from discord.ext import commands import xml.etree.ElementTree as ET from cogs.utils.dataIO import dataIO from .utils import checks from .utils.chat_formatting import escape_mass_mentions from .utils.chat_formatting import box from __main__ import send_cmd_help class Wolfram: def __init__(...
32.373494
100
0.593971
1,926
0.716785
0
0
1,777
0.661332
1,593
0.592854
620
0.230741
900e83820d1dd64bbe34d301bee0ba27a36ecb07
176
py
Python
Servers/ProbabilisticServer.py
MartinHex/master-thesis
b5077d9acce60fd42467f73df6e39c61fd3e19b2
[ "MIT" ]
null
null
null
Servers/ProbabilisticServer.py
MartinHex/master-thesis
b5077d9acce60fd42467f73df6e39c61fd3e19b2
[ "MIT" ]
2
2022-02-22T11:48:21.000Z
2022-02-28T15:49:47.000Z
Servers/ProbabilisticServer.py
MartinHex/master-thesis
b5077d9acce60fd42467f73df6e39c61fd3e19b2
[ "MIT" ]
null
null
null
from abc import ABC,abstractmethod from Servers.ABCServer import ABCServer class ProbabilisticServer(ABCServer): @abstractmethod def sample_model(self): pass
19.555556
39
0.767045
99
0.5625
0
0
56
0.318182
0
0
0
0
900fb0840db60165c43f29441d88fb00f6f55c09
718
py
Python
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
5
2021-11-02T20:13:41.000Z
2022-03-19T00:01:53.000Z
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
null
null
null
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
null
null
null
from fastapi import Depends from sqlalchemy.ext.asyncio import AsyncEngine from sqlalchemy.orm import sessionmaker from typing import AsyncGenerator from fastapi_crud.session import Session from fastapi_crud.router import ModelRouter from fastapi_crud.types import Model class FastapiCRUD: def __init__(self, engi...
32.636364
66
0.754875
443
0.616992
137
0.190808
0
0
137
0.190808
0
0
900fd7a3396de18f3541a06d832b5444ad752082
671
py
Python
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
migrations/versions/98f3e3ad195c_update_blog_to_add_a_title.py
Josephat-n/myBlog
d2e3b368617cd3ca55b6bd40e6950122967e1d9f
[ "MIT" ]
null
null
null
"""update blog to add a title. Revision ID: 98f3e3ad195c Revises: 2d98c5165674 Create Date: 2019-12-02 22:58:10.377423 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '98f3e3ad195c' down_revision = '2d98c5165674' branch_labels = None depends_on = None def upg...
23.137931
84
0.690015
0
0
0
0
0
0
0
0
402
0.599106
901066d43a75d83ccca11050c805f23f07e56a57
2,691
py
Python
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
187
2021-04-24T14:49:44.000Z
2022-03-31T14:25:22.000Z
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
119
2021-04-24T18:08:43.000Z
2022-01-09T00:57:19.000Z
message/views.py
ThusharaX/mumbleapi
8435fe9d86869cce81961f42c9860fa3810c171b
[ "Apache-2.0" ]
174
2021-04-24T15:57:23.000Z
2022-03-11T02:09:04.000Z
from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework import status from users.models import UserProfile from .serializers import MessageSerializer , ThreadSerializer from .models import ...
39
94
0.687105
0
0
0
0
2,312
0.85916
0
0
254
0.094389
9010af2b84b0a8a7a8c133b624651330f5e4d485
3,691
py
Python
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
widgets/dialogs/transactions_editor.py
redstorm45/money_analyst
9ccf8aa4cd7bad7aff21a82ce4219406009f126a
[ "Apache-2.0" ]
null
null
null
import PyQt5.QtWidgets as Qtw import PyQt5.QtCore as QtCore from widgets.labels import LabelsWidget DATE_FORMAT = 'yyyy-MM-dd' class TransactionDialog(Qtw.QDialog): """ A dialog used to edit a transaction """ def __init__(self, parent, model_cat, desc='', category=0, amount=0, date=''): supe...
38.051546
83
0.648605
3,565
0.964295
0
0
0
0
0
0
240
0.064918
9010dcd0fdbf2d57ab797fb8bac064a9780ede3f
20,416
py
Python
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
5
2020-10-01T12:43:10.000Z
2022-03-14T17:26:25.000Z
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
322
2020-06-24T15:55:22.000Z
2022-03-30T11:49:28.000Z
octue/cloud/pub_sub/service.py
octue/octue-sdk-python
31c6e9358d3401ca708f5b3da702bfe3be3e52ce
[ "MIT" ]
null
null
null
import base64 import concurrent.futures import json import logging import sys import time import traceback as tb import uuid from google.api_core import retry from google.cloud import pubsub_v1 import octue.exceptions import twined.exceptions from octue.cloud.credentials import GCPCredentialsManager from octue.cloud.p...
43.162791
208
0.653556
19,222
0.941516
0
0
0
0
0
0
8,752
0.428683
90124bdf01042879c8d23bc0de43bbfc19264166
1,978
py
Python
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
Tareas/DistanciaGrafos.py
A01746540/SEM9Algoritmos
2aaf1a344413dfbece77022a5b34e0c5318aa5e5
[ "MIT" ]
null
null
null
from collections import defaultdict class Graph: metro = ['El Rosario', 'Instituto del Petroleo', 'Tacuba', 'Hidalgo', 'Tacubaya', 'Deportivo 18 de Marzo', 'Centro Medico', 'Mixcoac', 'Balderas', 'Bellas Artes', 'Guerrero', 'Martin Carrera', 'Zapata', 'Chabacano', 'Salto del...
25.688312
110
0.517695
1,336
0.67543
0
0
0
0
0
0
464
0.23458
9012c72f255c969953043607b7f84aeb3ccb4764
9,807
py
Python
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
27.940171
207
0.597634
9,407
0.959213
0
0
5,276
0.537983
0
0
4,896
0.499235
9012e5a8ed3f5ec28adee161865cc14545390e2d
1,691
py
Python
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
lab04/submited/utils.py
Battleman/InternetAnalyticsW
005e5de6c0e591be6dc303ec46cc82249e70f666
[ "MIT" ]
null
null
null
# ###################### # Some useful utilities. # ###################### import json, os, pickle def listPrettyPrint(l, n): """Prints a list l on n columns to improve readability""" if(n == 5): for a,b,c,d,e in zip(l[::5],l[1::5],l[2::5],l[3::5],l[4::5]): print('{:<22}{:<22}{:<22}{:<22}...
25.621212
69
0.474867
0
0
0
0
0
0
0
0
575
0.340035
9012f44f49fd46b9f38512bc6891494632f15f28
489
py
Python
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
primes/factorisation.py
miloszlakomy/algutils
f83c330a0ca31cdac536de811f447820c70ecb38
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from algutils.primes import cached_primes def factorise(n): if n <= 0: raise ValueError("n must be a positive integer") ps = cached_primes.get_primes_list(min_lim=int(n**.5) + 1) ret = {} for p in ps: if n == 1: break if p**2 > n: # n is prime break i...
13.971429
60
0.492843
0
0
0
0
0
0
0
0
76
0.155419
901370bb81cfb113acd130dc5b682b50dbdb76b2
1,133
py
Python
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-03-31T16:20:53.000Z
2021-11-16T11:48:38.000Z
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
1
2020-04-06T08:10:12.000Z
2020-04-06T08:10:12.000Z
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-04-01T01:59:08.000Z
2022-03-14T07:59:58.000Z
# -*- coding:utf8 -*- # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
41.962963
103
0.770521
0
0
0
0
0
0
0
0
774
0.683142
9015d694e84b3f0cc392aae6d053e1e708a338df
627
py
Python
verifai/samplers/__init__.py
jst-qaml/VerifAI
d91bc1289d720c055a36fa0e1ad9f68b986ca1a4
[ "BSD-3-Clause" ]
1
2020-07-27T13:32:01.000Z
2020-07-27T13:32:01.000Z
verifai/samplers/__init__.py
shromonag/VerifAI
ace214d1c3282ed5ea63ee3f52457e35f54ebb62
[ "BSD-3-Clause" ]
null
null
null
verifai/samplers/__init__.py
shromonag/VerifAI
ace214d1c3282ed5ea63ee3f52457e35f54ebb62
[ "BSD-3-Clause" ]
null
null
null
from .domain_sampler import SamplingError, SplitSampler from .feature_sampler import FeatureSampler, LateFeatureSampler from .halton import HaltonSampler from .cross_entropy import (CrossEntropySampler, ContinuousCrossEntropySampler, DiscreteCrossEntropySampler) from .random_sampler import RandomSampler from .bayes...
36.882353
79
0.845295
0
0
0
0
0
0
0
0
90
0.143541
90171f9ff5db50b3b195ffb3fb8c3f04d8941fed
159
py
Python
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
sb3_training/gym-iotmarket/setup.py
prasoonpatidar/multiagentRL-resource-sharing
e63ba7fc3c7ab019e9fd109cd45b739e3322152f
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gym_iotmarket', version='0.0.1', install_requires=['gym','scipy','numpy'] # And any other dependencies )
26.5
76
0.685535
0
0
0
0
0
0
0
0
69
0.433962
901749f4d47b3e2fe3385b589ae5e10eae1bbab0
13,064
py
Python
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
3
2020-08-18T19:11:39.000Z
2021-06-13T12:16:41.000Z
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
null
null
null
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
2
2021-06-13T12:16:47.000Z
2021-12-07T18:52:43.000Z
# Inspired by https://github.com/cogu/cfile c_indent_char = ' ' def set_indent_char(char): global c_indent_char c_indent_char = char class blank: def __init__(self, num=1): self.indent = 0 #Irrelevant, kept because it simplifies sequences self.num = num def __str__(self): #...
26.770492
79
0.606782
12,102
0.926363
0
0
1,380
0.105634
0
0
2,448
0.187385
90179942b479c02a62c0f83dc133fc47dd16d363
906
py
Python
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
52
2019-04-12T18:07:56.000Z
2019-10-07T10:26:19.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
135
2019-04-15T12:52:56.000Z
2019-10-08T18:39:58.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
1
2019-04-12T13:03:38.000Z
2019-04-12T13:03:38.000Z
from typed_python import Entrypoint, SubclassOf, Class, Final, Function, ListOf class A(Class): pass class B(A): pass class C(B, Final): pass def test_can_cast_subclass_of_correctly(): @Function def f(c: SubclassOf(C)): return "C" @f.overload def f(c: SubclassOf(B)): ...
18.12
79
0.540839
71
0.078366
0
0
312
0.344371
0
0
36
0.039735
9017a7257730a81fd99b9ead002708bc4ceba13e
1,442
py
Python
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
53
2015-03-10T06:20:50.000Z
2021-06-07T07:34:02.000Z
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
1
2016-11-20T14:28:38.000Z
2016-11-20T14:28:38.000Z
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
56
2015-02-10T20:49:42.000Z
2021-04-03T05:41:09.000Z
from vision import * from vision.track import alearn, interpolation from vision import visualize from vision.toymaker import * import os import multiprocessing g = Geppetto() b = Rectangle() b = b.linear((300,300), 100) b = b.linear((0,300), 200) b = b.linear((300,0), 300) g.add(b) path = b.groundtruth() pathdict = d...
30.041667
71
0.585298
0
0
0
0
0
0
0
0
168
0.116505
90192683a9596914db24fa7e2c76ff1a12788127
355
py
Python
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
6,132
2015-08-06T23:24:47.000Z
2022-03-31T21:49:34.000Z
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
2,272
2015-08-10T08:40:07.000Z
2022-03-31T23:46:44.000Z
angr/engines/soot/statements/goto.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1,155
2015-08-06T23:37:39.000Z
2022-03-31T05:54:11.000Z
import logging from .base import SimSootStmt l = logging.getLogger('angr.engines.soot.statements.goto') class SimSootStmt_Goto(SimSootStmt): def _execute(self): jmp_target = self._get_bb_addr_from_instr(instr=self.stmt.target) self._add_jmp_target(target=jmp_target, ...
25.357143
73
0.704225
245
0.690141
0
0
0
0
0
0
35
0.098592
901943c57d651786afa2ce40b989408f3ebb4e7f
979
py
Python
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
8
2021-03-27T21:20:28.000Z
2021-03-31T08:09:26.000Z
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
49
2021-03-27T21:18:08.000Z
2021-04-03T02:53:53.000Z
game/entity/player.py
fisher60/pyweek-2021
294b45d768a7e0d85ac67dc4b12384e68fc4f399
[ "MIT" ]
1
2021-04-02T21:58:39.000Z
2021-04-02T21:58:39.000Z
import arcade from ..constants import TILE_SIZE, PLAYER_SCALING from ..utils import Vector class PlayerInventory: keys: int = 0 class Player(arcade.Sprite): def __init__(self, *args, **kwargs): super().__init__( "game/assets/sprites/square.png", PLAYER_SCALING, *args, **kwargs )...
25.763158
77
0.597549
881
0.899898
0
0
105
0.107252
0
0
114
0.116445
901a2b9dfc7f70764388119a93640679584d1a0d
112
py
Python
scikits/datasmooth/__init__.py
jjstickel/scikit-datasmooth
976ab86998d1648506684360ab9d65b8a3ccf078
[ "BSD-3-Clause" ]
7
2015-06-18T15:34:28.000Z
2021-09-14T13:04:08.000Z
scikits/datasmooth/__init__.py
jjstickel/scikit-datasmooth
976ab86998d1648506684360ab9d65b8a3ccf078
[ "BSD-3-Clause" ]
2
2018-03-10T03:46:39.000Z
2018-11-27T18:55:13.000Z
scikits/datasmooth/__init__.py
jjstickel/scikit-datasmooth
976ab86998d1648506684360ab9d65b8a3ccf078
[ "BSD-3-Clause" ]
6
2015-03-29T07:36:18.000Z
2020-09-15T16:25:06.000Z
__version__ = '0.7.1' try: from regularsmooth import * except ImportError: from .regularsmooth import *
18.666667
32
0.714286
0
0
0
0
0
0
0
0
7
0.0625
901cb3458a6cbbc2527b80d00c06a9a4f1e903b2
2,389
py
Python
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
null
null
null
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
1
2021-03-26T00:26:00.000Z
2021-03-26T00:26:00.000Z
code/tfidf/tfidf.py
vadlamak/strata-teaching-the-elephant-to-read
5f3963c90c520ac1b7b41d21939230ef5df6414f
[ "Apache-2.0" ]
null
null
null
import math import string from itertools import groupby from operator import itemgetter from nltk.corpus import stopwords from nltk.tokenize import wordpunct_tokenize N = 10788.0 # Number of documents, in float to make division work. class TermMapper(object): def __init__(self): if 'stopwords' in self....
25.688172
72
0.612809
1,776
0.743407
1,010
0.422771
154
0.064462
0
0
134
0.05609
901d3f9a5542e6bed0daf35f7574ccf1740c36b8
1,046
py
Python
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
from django.contrib import admin from admin_interface.models import Theme as Th from .models import Genre, Platform, Screenshot, Artwork, Mode, PlayerPerspective, Engine, Theme, Game admin.site.unregister(Th) admin.site.register(Genre) admin.site.register(Platform) admin.site.register(Mode) admin.site.register(Playe...
32.6875
209
0.711281
554
0.529637
0
0
0
0
0
0
286
0.273423
901eab214940948112dfada28e162b16759ac77e
589
py
Python
plot-wbgt.py
tanupoo/tools-pubsec
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
1
2021-05-27T21:10:04.000Z
2021-05-27T21:10:04.000Z
plot-wbgt.py
tanupoo/pubsec-tools
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
null
null
null
plot-wbgt.py
tanupoo/pubsec-tools
3dfea4b677226395eff89f90aebec3105ba4f4d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import json import matplotlib.pyplot as plt result = json.load(sys.stdin) x = result["hour"] y = result["wbgt"] fig = plt.figure(figsize=(8, 4)) ax1 = fig.add_subplot(1,1,1) ax1.set_xlabel("hour") ax1.set_ylabel("wbgt") ax1.set_xticks(list(range(0,24,1))) ax1.set_yticks(list(range(1...
21.035714
48
0.696095
0
0
0
0
0
0
0
0
75
0.127334
90204f12090cacf498331393d685af08f22c49b2
1,005
py
Python
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
day_07/day_07.py
GuillaumeGandon/advent-of-code-2015
ff4201a9a27d1ca7f687a613eeec72dd12fe1487
[ "MIT" ]
null
null
null
from functools import cache def split_row(row): instructions, output = row.split(' -> ') return output, tuple(instructions.split(' ')) @cache def solve(key): if key.isdigit(): return int(key) else: instructions = circuit[key] if len(instructions) == 1: return solv...
25.769231
65
0.536318
0
0
0
0
661
0.657711
0
0
107
0.106468
90215693db46543c286a97842122238df6972cc0
523
py
Python
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
3
2021-08-14T19:35:37.000Z
2021-08-23T16:53:51.000Z
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
1
2021-11-23T18:40:45.000Z
2021-11-23T20:40:48.000Z
noteout/tests/test_nb_only.py
stefanv/noteout
b76b35c675fa1221be35835d56c2937e3f56b317
[ "BSD-2-Clause" ]
1
2021-11-23T18:33:58.000Z
2021-11-23T18:33:58.000Z
""" Test nb-only filter """ from io import StringIO from noteout.nb_only import NbonlyFilter as nnbo from .tutils import (read_md, assert_json_equal, filter_doc) def test_nb_only(): content = """/ Some text [notebook only]{.nb-only}more text. ::: nb-only Only in notebook. ::: More text. """ doc = read_md...
17.433333
60
0.692161
0
0
0
0
0
0
0
0
169
0.323136
9021b355ad9a734bb50dcef4f74291f2233e5506
1,386
py
Python
spectrocrunch/utils/comparable.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/utils/comparable.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/utils/comparable.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import operator class Comparable(object): @property def _repr(self): """Unique representation of an instance""" return "{}{}".format(type(self).__name__, id(self)) def _cmpkey(self, other): return self._repr def _sortkey(self, other): return s...
23.491525
59
0.591631
1,342
0.968254
0
0
141
0.101732
0
0
90
0.064935
9021bc3863fa351375d2c840439601cf105a7273
3,241
py
Python
backend/fastspider.py
wakeblade/weiboSpiderAndCook
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
1
2020-02-08T16:22:19.000Z
2020-02-08T16:22:19.000Z
backend/fastspider.py
wakeblade/weiboWordCount
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
null
null
null
backend/fastspider.py
wakeblade/weiboWordCount
b5ca0708abd0a938eb0ac611d037a5d3daf9384f
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- """ from gevent import monkey monkey.patch_all() from gevent.queue import Queue """ import requests import time import random proxies=[] with open('./ips.txt') as f: proxies = [line.split('@')[0] for line in f] def randomProxy(proxies): ip = random.choice(proxies...
28.429825
142
0.573588
2,194
0.667884
0
0
0
0
0
0
1,222
0.371994
9021ca74c4cfd208803fde68aec8f4729d95dd36
1,156
py
Python
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
1
2021-12-22T16:09:52.000Z
2021-12-22T16:09:52.000Z
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
null
null
null
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
null
null
null
import setuptools version = "1.0.0" with open("README.md", "r", encoding="utf-8") as fh: readme = fh.read() setuptools.setup( name="asyncode", version=version, author="Loïc Simon", author_email="loic.simon@espci.org", description="Emulating Python's interactive interpreter in asynchronous con...
31.243243
86
0.634948
0
0
0
0
0
0
0
0
689
0.595506
9021dafddba10ec136860876afbe1b58c1dcc7f4
1,926
py
Python
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
function solution(x1, y1, x2, y2) { const x1 = 8; const y1 = 4; const x2 = 8; const y2 = 10; let soundSum = 0; // 두 스피커 사이가 가까워 음량이 5를 넘는 경우 if (Math.abs(x1 - x2) + Math.abs(y1 - y2) < 4) return -1; if (3 < x1 && x1 < 13 && 3 < x2 && x2 < 13 && 3 < y1 && y1 < 13 && 3 < y2 && y2 < 13) { ...
21.164835
91
0.450156
0
0
0
0
0
0
0
0
0
0
9022b8901ebe6c1ee9599a4efe5b224353a4bd15
8,328
py
Python
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
null
null
null
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
5
2020-07-17T08:45:22.000Z
2022-03-11T13:39:26.000Z
crops/command_line/crops-cropstr.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
1
2020-07-07T15:42:07.000Z
2020-07-07T15:42:07.000Z
"""========== This script will remove a number of residues from a sequence file in agreement to the intervals and other details supplied. """ from crops.about import __prog__, __description__, __author__, __date__, __version__ import argparse import os from crops.io import check_path from crops.io import outpathgen...
47.862069
289
0.635687
0
0
0
0
0
0
0
0
1,908
0.229107
90251fea4bf1c0681bcedcffe3e8a599e9d53e72
13,189
py
Python
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
DSDM_Assignment2_final.py
antonyjames1996/time-series-analysis-agrotech
1e2abfe07f0e82c7a6f5cc01a268826fb2d29635
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[95]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # get_ipython().run_line_magic('matplotlib', 'inline') from sklearn.neighbors import LocalOutlierFactor from sklearn.model_selection import train_test_split from sklearn.line...
26.116832
119
0.679506
0
0
0
0
0
0
0
0
6,832
0.518007
902524521dfdcde30b78e79a7e608392d647a998
6,127
py
Python
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
2
2016-11-22T11:44:52.000Z
2017-08-29T02:38:01.000Z
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
null
null
null
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate from msa.utils.ipware import get_ip from msa.views import LoggedAPIView from rest_framework import status from rest_framework.authentication import TokenAuthentication, BasicAuthentication from rest_framework.authtoken.models import Token from rest_framework.permissions impo...
37.588957
110
0.647299
5,668
0.925086
0
0
0
0
0
0
337
0.055002
9025967f892fe7e0100f3ff33e467fab11a11531
4,830
py
Python
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
dcm2niix.py
rhancockn/dcm2bids
16597eeb20edfa0ec707c9bd0bf8468d94e0c925
[ "MIT" ]
null
null
null
#!/use/bin/python import tempfile import os import dicom import pandas import json import numpy as np from os.path import join import glob import errno import shutil class dcm2niix(object): """A wrapper for the dcm2niix command """ def __init__(self, row, bids_dir, intent = None): self.intent = intent #Dico...
32.2
285
0.695238
4,654
0.963561
0
0
0
0
0
0
1,238
0.256315
902da8cbd33808618399125bb013b3cfef957b80
4,479
py
Python
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
src/sss/genkey.py
foundriesio/plug-and-trust-ssscli
f77c65d5b3de649d7db1c023ee41d871f77cd224
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018-2020 NXP # SPDX-License-Identifier: Apache-2.0 # # """License text""" import logging from . import sss_api as apis from .keystore import KeyStore from .keyobject import KeyObject from .getkey import Get from .util import get_ecc_cypher_type log = logging.getLogger(__name__) class Generate: "...
33.177778
124
0.621121
4,179
0.933021
0
0
0
0
0
0
1,780
0.39741
902e9315b6728c26e93d095508b7d9dca413b5b0
979
py
Python
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
Python/uds/uds_client.py
kaehsu/template-bash
f8a8a4babb8537622a4e4246701761a9832d6aeb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # To communicate with UDS server by nc: "echo -e "string\c" | sudo nc -q 1 -U /var/run/uds_led" import socket serverAddress = '/tmp/portex_tmp' def main(): try: while True: message = input( 'Enter the message send to server ("Quit" to quit): ') ...
28.794118
95
0.507661
0
0
0
0
0
0
0
0
324
0.33095
902fb2aef8b4515b1af62bd380980dd14457df65
502
py
Python
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
null
null
null
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
6
2020-12-24T10:24:02.000Z
2021-11-30T05:04:53.000Z
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2021-02-19 18:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workspaces', '0006_workspacegeneralsettings_import_categories'), ] operations = [ migrations.AddField( model_name='workspacegene...
26.421053
111
0.663347
409
0.814741
0
0
0
0
0
0
192
0.38247
903025199c8cb18d7b43068916c16d96cb4139f2
2,967
py
Python
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
0x06-python-classes/100-singly_linked_list.py
Trice254/alx-higher_level_programming
b49b7adaf2c3faa290b3652ad703914f8013c67c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Module 100-singly_linked_list Defines class Node (with private data and next_node) Defines class SinglyLinkedList (with private head and public sorted_insert) """ class Node: """ class Node definition Args: data (int): private next_node : private; can be None or Node...
23.179688
78
0.532524
2,770
0.933603
0
0
860
0.289855
0
0
1,462
0.492754
90303a8de55d76b20b74b604783236c6d15111a5
310
py
Python
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
20
2016-05-15T10:39:53.000Z
2022-03-29T00:06:06.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
3
2017-05-27T16:44:01.000Z
2019-01-02T21:02:59.000Z
BI-IOS/semester-project/webapp/beecon/campaigns/urls.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
11
2018-08-22T21:16:32.000Z
2021-04-10T22:42:34.000Z
from django.conf.urls import url from . import views app_name = 'campaigns' urlpatterns = [ url( r'^$', views.JsonView.response, name='index' ), url( r'^(?P<app_code>[a-zA-Z0-9]+)/info/$', views.info, name='info' ), url( r'^(?P<app_code>[a-zA-Z0-9]+)/services/$', views.services, name='services' ), ]
25.833333
84
0.632258
0
0
0
0
0
0
0
0
117
0.377419
9032381dcc04f711d03772a06dc91a54a4d1b366
5,802
py
Python
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
3
2020-05-16T23:59:57.000Z
2021-06-14T01:59:41.000Z
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
null
null
null
models/joint_representation.py
ybCliff/VideoCaptioning
93fc3b095c970e51e1e24909163a827df98d6ef3
[ "MIT" ]
3
2020-05-17T00:01:01.000Z
2020-07-28T18:04:05.000Z
import torch import torch.nn as nn class Gated_Sum(nn.Module): def __init__(self, opt): super(Gated_Sum, self).__init__() hidden_size = opt['dim_hidden'] nf = opt.get('num_factor', 512) self.hidden_size = hidden_size self.num_feats = len(opt['modality']) - sum(opt['skip_in...
39.739726
146
0.601344
5,763
0.993278
0
0
0
0
0
0
1,032
0.17787
9034fc76134be07855830d17f0d402a691811b26
2,489
py
Python
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
26
2018-11-29T13:33:25.000Z
2021-11-22T18:45:19.000Z
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
14
2019-01-20T00:07:13.000Z
2020-07-15T13:19:29.000Z
scream/monorepo.py
r-kells/scream
3f5d325cd05a0f3eccc4b579b4929be49029ab09
[ "MIT" ]
2
2019-02-25T17:31:47.000Z
2020-01-22T22:10:41.000Z
import collections from scream.files import Docs, Scream, Tox class Monorepo(object): def __init__(self, root_dir): self.root_dir = root_dir self.config = Scream(self.root_dir) def sync(self): """Used internally ensure monorepo maintains certain standards. """ self.co...
34.09589
107
0.627561
2,107
0.846525
0
0
361
0.145038
0
0
232
0.09321
9036fe41e979c0dcc374002d6e7021871b3e9ae0
9,837
py
Python
src/oddball/oddball.py
stillarrow/NetworkAnomalyDetection
f41fd6b6d7cb302dc2eaa4c0f8d7b04b7ed4fd3c
[ "MIT" ]
1
2021-05-12T09:37:47.000Z
2021-05-12T09:37:47.000Z
src/oddball/oddball.py
stillarrow/NetworkAnomalyDetection
f41fd6b6d7cb302dc2eaa4c0f8d7b04b7ed4fd3c
[ "MIT" ]
null
null
null
src/oddball/oddball.py
stillarrow/NetworkAnomalyDetection
f41fd6b6d7cb302dc2eaa4c0f8d7b04b7ed4fd3c
[ "MIT" ]
null
null
null
''' Python3 implementation of oddball @author: Tao Yu (gloooryyt@gmail.com) ''' import numpy as np from sklearn.linear_model import LinearRegression from sklearn.neighbors import LocalOutlierFactor # feature dictionary which format is {node i's id:Ni, Ei, Wi, λw,i} def star_or_clique(featureDict): N = [] ...
31.630225
125
0.620718
0
0
0
0
0
0
0
0
1,655
0.167952
9037bc76d22fa05dd0f3bfed5e08c4fd3d0cc516
538
py
Python
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
16
2020-03-19T15:12:28.000Z
2021-12-20T06:02:32.000Z
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
14
2020-03-23T03:57:00.000Z
2021-12-20T05:53:33.000Z
tbase/common/logger.py
iminders/TradeBaselines
26eb87f2bcd5f6ff479149219b38b17002be6a40
[ "MIT" ]
7
2020-03-25T00:30:18.000Z
2021-01-31T18:45:09.000Z
import logging import os logging.basicConfig( level=logging.INFO, format='%(asctime)s %(filename)s[%(lineno)d] %(levelname)s %(message)s') logger = logging.getLogger() dir_name = os.path.join("/tmp", "tbase") if not os.path.exists(dir_name): os.makedirs(dir_name) handler = logging.FileHandler(os.path.jo...
26.9
76
0.723048
0
0
0
0
0
0
0
0
152
0.282528
9037ec295216061bb4362e12f89dff7a2894c6f3
3,125
py
Python
profesionales/migrations/0005_auto_20190928_2338.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
6
2020-03-16T02:51:16.000Z
2020-11-10T00:58:01.000Z
profesionales/migrations/0005_auto_20190928_2338.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
204
2019-09-19T02:00:57.000Z
2022-02-10T10:48:52.000Z
profesionales/migrations/0005_auto_20190928_2338.py
cluster311/ggg
262173c66fe40ada30083d439a79f16f841f5772
[ "BSD-3-Clause" ]
3
2019-09-16T22:59:24.000Z
2022-03-21T22:52:44.000Z
# Generated by Django 2.2.4 on 2019-09-28 23:38 import address.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('address', '0002_auto_20160213_1726'), ('profesionales', '0004_auto_20190927_0004'), ] ...
38.580247
377
0.57824
2,978
0.952655
0
0
0
0
0
0
1,007
0.322137
903b18672626ab4ad3a5e3aded8aea7688abd5d5
757
py
Python
standards/tests/models.py
GROCCAD/groccad
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
1
2022-03-05T03:11:51.000Z
2022-03-05T03:11:51.000Z
standards/tests/models.py
rocdata/rocserver
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
null
null
null
standards/tests/models.py
rocdata/rocserver
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
null
null
null
from functools import partial from django.db import models from standards.fields import CharIdField # MODEL FIXTURES ################################################################################ class CharIdModel(models.Model): field = CharIdField() class CharIdModelWithPrefix(models.Model): field = C...
23.65625
80
0.698811
540
0.713342
0
0
0
0
0
0
123
0.162483
903bd4a9af5949595a7b7528cd44f5048565dedd
10,070
py
Python
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
torchsrc/models/fcn32s_BN.py
yuankaihuo/MedPhysics
94d8c5357b76658b9b161b541a1f195c6550ce55
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F # https://github.com/shelhamer/fcn.berkeleyvision.org/blob/master/surgery.py def get_upsample_filter(size): """Make a 2D bilinear kernel suitable for upsampling""" factor = (size + 1) // 2 if size % 2 == 1: ...
36.751825
101
0.523932
9,497
0.943098
0
0
0
0
0
0
987
0.098014
903c7397f31fe34f15318c7f6541642d7c880c26
1,067
py
Python
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
null
null
null
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
1
2021-09-05T15:39:56.000Z
2021-09-05T20:26:39.000Z
src/schema/models.py
prashant0079/metabolic_assignment
9660ef06e6015833e3c64de9c3fe34927c85ba49
[ "MIT" ]
null
null
null
from pydantic import BaseModel from typing import List # The models used in this module are being used by the API # for type validation using Pydantic as FastAPI is reliant # on pydantic for Data validation class GeographySchema(BaseModel): id: int short_name: str name: str class EntrySchema(BaseModel)...
17.209677
58
0.68135
841
0.788191
0
0
0
0
0
0
149
0.139644
903c8cc3beaefd54c725e04177cee3cf91f69504
348
py
Python
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
myproject/myapp/admin.py
wasit7/cs459_2018
78243bbc939fcc2ed7528df8c14ad75e4b78d9a2
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from .models import Product class ProductAdmin(admin.ModelAdmin): fields = ('name', 'price', 'category', 'image') list_display = ('name', 'price', 'category', 'image') list_filter = ('category', 'price', ) list_editable = ('price', 'category', 'image', ) admin.site.reg...
34.8
57
0.678161
242
0.695402
0
0
0
0
0
0
101
0.29023
903de14b44d3f2b0857467165c0169f5dac5d5b8
404
py
Python
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
2
2021-07-28T07:06:55.000Z
2021-07-28T07:08:19.000Z
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
null
null
null
app.py
923310233/APk-Down-Load
e7c3e4fdfbf9f7d8398d91ce0c5c028dfc685f3a
[ "MIT" ]
null
null
null
import subprocess f = open("app_list.csv","r") lines = f.readlines() for line in lines: print(line.strip()) command = "node app.js " + line.strip(); display = subprocess.run(command, stdout=subprocess.PIPE, shell=True) # display = subprocess.run(["sudo","-u",username,"tshark", "-r", pcapname, "-Y", disp...
31.076923
126
0.680693
0
0
0
0
0
0
0
0
199
0.492574
903e7c7c7eb9a7d02da0c1871291e12b6246e93e
20,260
py
Python
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
shoptimizer_api/optimizers_builtin/title_word_order_optimizer_test.py
astivi/shoptimizer
e9e415650b2b8fc07e4ae68c741e692b538e4a2c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
40.846774
123
0.696249
19,988
0.911861
0
0
20,562
0.938047
0
0
7,923
0.361451
903ed7280655c7a88f5f5eb4e9a427e26a17d12e
4,035
py
Python
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
1
2019-08-27T04:20:06.000Z
2019-08-27T04:20:06.000Z
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
contracts/models.py
sivanagarajumolabanti/IPFS
9ae01ce09c97660ca312aad7d612bbc8eb8146e7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.utils.timezone import now class Vendor(models.Model): user = models.ManyToManyField(User) name = models.CharField(max_length=30, null=True) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.Date...
36.351351
102
0.691698
3,900
0.966543
0
0
0
0
0
0
189
0.04684
903f6e6ec0a321ed686c231ab9ebc657c40c7407
1,500
py
Python
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
2
2020-11-16T10:50:56.000Z
2020-11-23T12:31:30.000Z
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
null
null
null
models/DenseNet.py
Apollo1840/DeepECG
5132b5fc8f6b40c4b2f175cd5e56c4aec128ab3e
[ "MIT" ]
1
2020-08-05T00:23:54.000Z
2020-08-05T00:23:54.000Z
from keras.models import Sequential from keras.layers import Dense, Dropout def denseNet(input_dim, output_dim=4): model = Sequential() model.add(Dense(1024, input_shape=(input_dim,), kernel_initializer='normal', activation='relu')) model.add(Dense(1024, kernel_initializer='normal', activation='relu')) ...
41.666667
100
0.719333
0
0
0
0
0
0
0
0
241
0.160667
9040b2be08c9dcba639583373b5f0c4c01de3091
13,242
py
Python
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
262
2015-01-29T20:10:49.000Z
2022-03-23T01:59:23.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
5
2015-01-21T02:37:35.000Z
2021-11-23T02:26:00.000Z
openstackclient/tests/unit/volume/v3/fakes.py
mydevice/python-openstackclient
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
[ "Apache-2.0" ]
194
2015-01-08T07:39:27.000Z
2022-03-30T13:51:23.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
33.953846
79
0.614258
12,117
0.915043
0
0
10,167
0.767784
0
0
5,710
0.431204
9040cb412be761146b6669d9fd4eade5a3ac0512
12,287
py
Python
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
3
2019-01-28T12:21:14.000Z
2019-02-10T19:58:07.000Z
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
gammapy/cube/tests/test_core.py
grburgess/gammapy
609e460698caca7223afeef5e71826c7b32728d1
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_allclose from astropy.coordinates import Angle from astropy.tests.helper import pytest, assert_quantity_allclose from ast...
39.763754
90
0.657524
5,918
0.481647
0
0
10,180
0.828518
0
0
3,179
0.258729
90429ee16f26834b4fd4e1ca6831ceabda97033d
298
py
Python
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/applications/migrations/0042_merge_20201213_0228.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 2.2.16 on 2020-12-13 02:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("applications", "0041_goodonapplication_is_precedent"), ("applications", "0041_goodonapplicationdocument"), ] operations = []
21.285714
64
0.694631
212
0.711409
0
0
0
0
0
0
145
0.486577
90459d8bfe26d007178d66a09649931906768496
5,829
py
Python
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
2
2021-01-16T13:42:14.000Z
2021-03-03T19:36:47.000Z
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
web_app/ca_modules/make_utils.py
Lockers13/codagio
cfe9325cb3c207f7728db3c287439ce761ffea14
[ "MIT" ]
null
null
null
### A module containing various utilities used at various points throughout the processes of submitting and analyzing problems ### import os import json import subprocess import hashlib import sys import random import string from .output_processor import process_output from . import code_templates def make_file(path,...
40.2
198
0.632699
0
0
0
0
0
0
0
0
1,573
0.269858
904821f621f97dceeec43eb063d81e21fa90c37c
21,136
py
Python
wazimap/data/utils.py
AssembleOnline/wazimap
1b8b68fb231b768047eee1b20ed180e4820a2890
[ "MIT" ]
1
2019-01-14T15:37:03.000Z
2019-01-14T15:37:03.000Z
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
wazimap/data/utils.py
Bhanditz/wazimap
fde22a0874020cf0ae013aeec7ab55b7c5a70b27
[ "MIT" ]
null
null
null
from __future__ import division from collections import OrderedDict from sqlalchemy import create_engine, MetaData, func from sqlalchemy.orm import sessionmaker, class_mapper from django.conf import settings from django.db.backends.base.creation import TEST_DATABASE_PREFIX from django.db import connection if settin...
36.758261
138
0.607116
1,027
0.04859
0
0
0
0
0
0
7,870
0.37235
9048acfcee11de068839ac11bcc199658e3bb1fe
9,913
py
Python
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
10
2020-08-06T22:25:11.000Z
2022-03-07T13:10:15.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
2
2021-06-08T22:15:24.000Z
2022-03-12T00:45:59.000Z
ovis/analysis/gradients.py
vlievin/ovis
71f05a5f5219b2df66a9cdbd5a5339e0e179597b
[ "MIT" ]
null
null
null
from time import time from typing import * import torch from booster import Diagnostic from torch import Tensor from tqdm import tqdm from .utils import cosine, percentile, RunningMean, RunningVariance from ..estimators import GradientEstimator from ..models import TemplateModel def get_grads_from_tensor(model: Tem...
42.545064
125
0.611924
0
0
0
0
0
0
0
0
4,509
0.454857
904a907ab750687eb1de030da0541431f23b5d88
1,081
py
Python
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
Sem-09-T1-Q5.py
daianasousa/Semana-09
decfc9b47931ae4f5a4f30a0d26b931ecd548f59
[ "MIT" ]
null
null
null
def carrega_cidades(): resultado = [] with open('cidades.csv', 'r', encoding='utf-8') as arquivo: for linha in arquivo: uf, ibge, nome, dia, mes, pop = linha.split(';') resultado.append( (uf, int(ibge), nome, int(dia), int(mes), int(pop)) ) arquivo...
30.885714
138
0.543941
0
0
0
0
0
0
0
0
331
0.304508
5f3a8ec38dd614e2783df50d617c5b8f3ca8b0f8
1,428
py
Python
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
data_split.py
CodeDogandCat/ChineseGrammarErrorDiagnose
4e1ec745ae938f742c6afb0e88b08ea50c6028cb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re # from pyltp import Segmentor import jieba.posseg as pseg import jieba import os import sys import json import math # import kenlm import nltk from collections import Counter def dataSplit(inputpath, count): (filepath, tempfilename) = os.path.split(inputpath) (filename, exten...
28
81
0.621148
0
0
0
0
0
0
0
0
315
0.218447
5f3bba72b50ee67716dbeda71e53db5b079da28f
2,435
py
Python
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-12-07T17:38:41.000Z
2021-06-28T06:19:49.000Z
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-05-28T21:32:24.000Z
2016-12-08T16:47:09.000Z
Code/Python/pract_fund1_sol.py
NYUDataBootcamp/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
50
2016-10-12T11:04:50.000Z
2021-06-01T23:24:45.000Z
""" Practice problems, Python fundamentals 1 -- Solutions @authors: Balint Szoke, Daniel Csaba @date: 06/02/2017 """ #------------------------------------------------------- # 1) Solution good_string = "Sarah's code" #or good_string = """Sarah's code""" #------------------------------------------------------- ...
21.936937
62
0.433265
0
0
0
0
0
0
0
0
1,398
0.574127
5f3df5f78e78d0ee2fc42ec4cf3a85208b508f67
7,178
py
Python
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
eos/old_scott_ANEOS_conversion.py
ScottHull/FDPS_SPH
6db11d599d433f889da100e78c17d6f65365ceda
[ "MIT" ]
null
null
null
""" This is a python script that converts u(rho, T), P(rho, T), Cs(rho,T), S(rho, T) to T(rho, u), P(rho, u), Cs(rho, u), S(rho, u), which is more useful for SPH calculations """ import matplotlib.pyplot as plt from collections import OrderedDict import numpy as np import pandas as pd import csv import sys from scipy...
34.344498
146
0.636389
0
0
0
0
0
0
0
0
3,924
0.54667
5f3f44af77a5d9949e7fe7c6858624af3b7fa923
346
py
Python
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
1
2021-05-08T08:21:06.000Z
2021-05-08T08:21:06.000Z
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
scheduler/post_scheduler/urls.py
Awinja-j/Social-Media-post-Scheduler
4f95b4bb2ca3f890d3e22bcda859b94ebc483b87
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('post_posts', views.post_posts), path('fetch_posts', views.get_posts), path('fetch_post/<pk>', views.get_post), path('delete_post/<pk>', views.delete_post), path('edit_post/<pk>', views.edit_post), path('search_for_a_post', v...
28.833333
54
0.699422
0
0
0
0
0
0
0
0
95
0.274566
5f3fad78b868dac1b90ecb78a5594353e0e31396
506
py
Python
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
dato-graphlab/src/config.py
warreee/apache-flink_vs_dato-graphlab
cd01cee208461479d3f27489ab45df439b8b9820
[ "Apache-2.0" ]
null
null
null
import os def getDataPath(): return os.getcwd().replace("dato-graphlab/src", "data/") def getSmall(): return getDataPath() + "sample-small.txt" def getMedium(): return getDataPath() + "sample-medium.txt" def getLarge(): return getDataPath() + "sample-large.txt" def getGoogle(): return getDa...
16.322581
63
0.666008
0
0
0
0
0
0
0
0
144
0.284585
5f42caff296a8e9070523febb1d633e533ecbfff
950
py
Python
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
5
2019-06-12T09:29:06.000Z
2020-12-31T08:53:19.000Z
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
import numpy as np def generate_cost_dict(): def inner_func(i, j): x1 = i % 10 y1 = i // 10 x2 = j % 10 y2 = j // 10 alpha = 5 x_center = 5.5 x_radius = 7.5 y_center = 1 y_radius = 4.5 dist = np.sqrt(47 * 47 * np.square(x1 - x2) + 7...
29.6875
119
0.489474
0
0
0
0
0
0
0
0
0
0
5f43a06d91c00b879b94bd9ca11de4d7d8fcab07
377
py
Python
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
23
2020-08-15T15:18:32.000Z
2022-02-26T13:49:05.000Z
full-stack/backend/django-app/django-jwt-app/settings/urls.py
mp5maker/library
b4d2eea70ae0da9d917285569031edfb4d8ab9fc
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from rest_framework_jwt.views import ( obtain_jwt_token, refresh_jwt_token, ) urlpatterns = [ path('admin/', admin.site.urls), path('token-auth/', obtain_jwt_token), path('token-refresh/', refresh_jwt_token), path('employ...
22.176471
70
0.710875
0
0
0
0
0
0
0
0
73
0.193634
5f45037068a6ca19658fc2ba430b609e4386fc29
15,989
py
Python
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
models/train_classifier.py
tarcisobraz/disaster-message-clf
22de03350a0f993005564a1d07a43da6bd989e67
[ "DOC" ]
null
null
null
#General libs import sys import os import json from datetime import datetime import time #Data wrangling libs import pandas as pd import numpy as np #DB related libs from sqlalchemy import create_engine #ML models related libs from sklearn.pipeline import Pipeline, FeatureUnion from sklearn.metrics import confusion_...
37.888626
117
0.659704
0
0
0
0
0
0
0
0
6,550
0.409657
5f468ef647d08df9b7e435bbbbaaf01ef4277cf4
148
py
Python
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
2
2020-04-08T15:31:12.000Z
2020-07-01T11:04:47.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
9
2018-09-12T09:29:43.000Z
2020-03-15T09:11:25.000Z
src/cortexpy/test/constants.py
karljohanw/cortexpy
70dcce771136f98edb5250ad8abd2a46bda7f0a6
[ "Apache-2.0" ]
1
2019-03-29T10:59:13.000Z
2019-03-29T10:59:13.000Z
import struct MAX_UINT = 2 ** (struct.calcsize('I') * 8) - 1 MAX_ULONG = 2 ** (struct.calcsize('L') * 8) - 1 UINT8_T = 1 UINT32_T = 4 UINT64_T = 8
18.5
47
0.614865
0
0
0
0
0
0
0
0
6
0.040541
5f47bfe261a0653163329656400b45e38dc2e334
2,103
py
Python
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth.models import User from django.urls import reverse from selenium.webdriver.common.by import By from .base import AuthorBaseFunctionalTest @pytest.mark.functional_test class AuthorLoginTest(AuthorBaseFunctionalTest): def test_user_valid_data_can_login_successfully(self): ...
37.553571
85
0.661912
1,893
0.900143
0
0
1,922
0.913932
0
0
368
0.174988
5f483bb62aff2e6859980fe0b75abe98dd22d479
3,873
py
Python
fixture/contact.py
piersto/python_training
a5e323f62177e97d31e39449d675192354ec70ed
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
piersto/python_training
a5e323f62177e97d31e39449d675192354ec70ed
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
piersto/python_training
a5e323f62177e97d31e39449d675192354ec70ed
[ "Apache-2.0" ]
null
null
null
class ContactHelper: def __init__(self, app): self.app = app def submit_specified_user(self): wd = self.app.wd wd.find_element_by_xpath("(//input[@name='submit'])[2]").click() def add_user(self, add_new_contact): wd = self.app.wd wd.find_element_by_...
60.515625
110
0.674154
3,873
1
0
0
0
0
0
0
456
0.117738
5f4b11817e6c6f5664fb7eebcff8bd3df9ed5773
42
py
Python
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
varex/__init__.py
weiyi-bitw/varex
765e8876c0ced480a47c0e523736bd31b7897644
[ "MIT" ]
null
null
null
from .commons import VCFEntry, LabeledMat
21
41
0.833333
0
0
0
0
0
0
0
0
0
0
5f4ba7ea00a9b4ae2bec68e16163449e185187d1
2,612
py
Python
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
8
2020-03-29T01:44:16.000Z
2022-03-26T23:15:34.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
60
2020-02-08T22:07:16.000Z
2022-03-26T23:51:55.000Z
simulation/battery/base_battery.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
1
2021-10-20T20:07:06.000Z
2021-10-20T20:07:06.000Z
from simulation.common import Storage from simulation.common import BatteryEmptyError class BaseBattery(Storage): def __init__(self, initial_energy, max_current_capacity, max_energy_capacity, max_voltage, min_voltage, voltage, state_of_charge): super().__init__() # Constants ...
39.575758
116
0.61562
2,523
0.965926
0
0
0
0
0
0
776
0.29709
5f501af017d1618fd9d8ac7f58bef0af07c22038
2,757
py
Python
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
MLP/Detectar cancer de mama/Cancer_mama_simples.py
alex7alves/Deep-Learning
7843629d5367f3ea8b15915a7ba3667cf7a65587
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Oct 17 21:04:48 2018 @author: Alex Alves Programa para determinar se um tumor de mama é benigno (saida 0) ou maligno (saida 1) """ import pandas as pa # Importação para poder dividir os dados entre treinamento da rede e testes de validação from skl...
33.216867
114
0.791077
0
0
0
0
0
0
0
0
1,504
0.541982
5f50dd9219cff3c1253c4849dd5381638d312cc3
1,214
py
Python
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0736_paths_to_equality.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 736: Paths to Equality # https://projecteuler.net/problem=736 # # Define two functions on lattice points:$r(x,y) = (x+1,2y)$$s(x,y) = # (2x,y+1)$A path to equality of length $n$ for a pair $(a,b)$ is a sequence # $\Big((a_1,b_1),(a_2,b_2),\ldots,(a_n,b_n)\Big)$, where:$(a_1,b_1...
40.466667
213
0.651565
0
0
0
0
0
0
0
0
1,056
0.869852
5f548523f9dcf1f62a0e2fe0f345f22d699939d1
1,728
py
Python
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python3 # https://codingcompetitions.withgoogle.com/codejam/round/000000000019fd27/0000000000209a9e t, b = map(int, input().split()) for _ in range(t): xs = [None] * b q, k, k1, k2 = 0, 0, None, None def query(k): global q q += 1 print(k) r = int(input()) ...
27
91
0.358218
0
0
0
0
0
0
0
0
118
0.068287
5f54a49151f01f5e6cf35cf93d8091376f6fa1d7
431
py
Python
doping_test/Standard.py
Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool
eb359ba618f0022dcd403edc99904f3ef2940e65
[ "MIT" ]
null
null
null
doping_test/Standard.py
Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool
eb359ba618f0022dcd403edc99904f3ef2940e65
[ "MIT" ]
null
null
null
doping_test/Standard.py
Biewer/Doping-Tests-for-Cyber-Physical-Systems-Tool
eb359ba618f0022dcd403edc99904f3ef2940e65
[ "MIT" ]
null
null
null
class Standard(object): """Abstract class for representation of Standard LTS""" def __init__(self): super(Standard, self).__init__() def get_any_trace(self, boundary): # Return any of the traces of standard LTS S raise NotImplementedError('Abstract method not implemented!') def get_traces(self, boundary): ...
30.785714
63
0.756381
429
0.99536
0
0
0
0
0
0
210
0.487239
5f587bf36e711ee18aa81e26269a6338ac9328eb
1,388
py
Python
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
866
2017-06-10T19:25:28.000Z
2022-01-06T18:29:36.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
54
2017-06-11T06:41:19.000Z
2022-01-10T23:06:03.000Z
Stephanie/updater.py
JeremyARussell/stephanie-va
acc894fa69b4e5559308067d525f71f951ecc258
[ "MIT" ]
167
2017-06-10T19:32:54.000Z
2022-01-03T07:01:39.000Z
import requests from Stephanie.configurer import config class Updater: def __init__(self, speaker): self.speaker = speaker self.c = config self.current_version = self.c.config.get("APPLICATION", "version") self.update_url = "https://raw.githubusercontent.com/SlapBot/va-version-check/master/version.json" se...
34.7
142
0.730548
1,329
0.957493
0
0
0
0
0
0
539
0.388329
5f591fe59a581e7f936f818cedb0f094b131b698
24,533
py
Python
WORC/featureprocessing/ComBat.py
MStarmans91/WORC
b6b8fc2ccb7d443a69b5ca20b1d6efb65b3f0fc7
[ "ECL-2.0", "Apache-2.0" ]
47
2018-01-28T14:08:15.000Z
2022-03-24T16:10:07.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
13
2018-08-28T13:32:57.000Z
2020-10-26T16:35:59.000Z
WORC/featureprocessing/ComBat.py
JZK00/WORC
14e8099835eccb35d49b52b97c0be64ecca3809c
[ "ECL-2.0", "Apache-2.0" ]
16
2017-11-13T10:53:36.000Z
2022-03-18T17:02:04.000Z
#!/usr/bin/env python # Copyright 2020 Biomedical Imaging Group Rotterdam, Departments of # Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a...
40.684909
161
0.604329
0
0
0
0
0
0
0
0
5,937
0.242001
5f59e320e469d3924b3247fe49f94eea11acee62
727
py
Python
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
1
2020-06-03T21:21:03.000Z
2020-06-03T21:21:03.000Z
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
setup.py
mariocesar/pg-worker
d79c6daa8825226c754330c21150e4e416b09005
[ "MIT" ]
null
null
null
import os import sys from setuptools import setup, find_packages ROOT = os.path.realpath(os.path.join(os.path.dirname( sys.modules['__main__'].__file__))) sys.path.insert(0, os.path.join(ROOT, 'src')) setup( name='pgworker', packages=find_packages('src'), package_dir={'': 'src'}, classifiers=[ ...
24.233333
53
0.603851
0
0
0
0
0
0
0
0
315
0.433287
5f5a0eafce7a5f076591e84cd9440a10e1d4e795
2,040
py
Python
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
PyBank/main.py
gentikosumi/python-challenge
e6532bf1033f5272616d4f8a1cf623bbafe1a1c2
[ "ADSL" ]
null
null
null
import os import csv path = '/Users/kevinkosumi12345/Genti/python-challenge/PyBank/Resources/budget_data.csv' budget_csv=os.path.join("../Resources", "budget_data.csv") csvfile = open(path, newline="") reader=csv.reader(csvfile, delimiter=",") header = next(reader) # print(header) # the columns we have to convert ...
30.909091
129
0.702451
0
0
0
0
0
0
0
0
1,058
0.518627
5f5b2c35892025ff370debbb01a9bff69a798ad0
1,516
py
Python
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
models/python/hypothalamus/dynamical/old/simple.py
ABRG-Models/MammalBot
0b153232b94197c7a65156c1c3451ab2b9f725ae
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt T = 30000 # v = 0.02906 # v = 0.617085 v = 0.99 h = 0.01 a = 0.5 b = 0.5 epsilon = 0.05 c = 0.4 eta = lambda rho: np.exp(-(rho)**2/(2*c**2)) nrho = lambda rho, v: -2.0*(rho**3 + (rho-1.0)*v/2.0 - rho)/(rho + 1.0) nu = lambda rho: (b - eta(rho+1))/a u = np.zeros(T) ...
28.603774
85
0.529024
0
0
0
0
0
0
0
0
329
0.217018
5f5c0b0acb48624cb76c04ec88d096e81b40a0f1
176
py
Python
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
test_script.py
SamPurle/DE17_Flask
a6462b85854f7bd72c80ebcc555d50488ef17e67
[ "MIT" ]
null
null
null
import numpy as np import os my_array = np.zeros(10) print(my_array) os.system('pip freeze > requirements.txt') my_list = [1,2,3,4,5] for item in my_list: print(item)
12.571429
42
0.693182
0
0
0
0
0
0
0
0
31
0.176136
5f5ebabcae4886b932638d5f3ecd10d1eb595d7b
6,058
py
Python
lib/blastin.py
zbwrnz/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
1
2018-03-22T10:34:20.000Z
2018-03-22T10:34:20.000Z
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
lib/blastin.py
arendsee/blastdbm
ee694c01ebb00779623702738a9c958fd496a080
[ "Unlicense" ]
null
null
null
#! /usr/bin/python3 import argparse import os import re import sqlite3 as sql import sys import xml.etree.cElementTree as et import traceback import lib.initialize as initialize import lib.sqlite_interface as misc import lib.meta as meta # ================== # EXPORTED FUNCTIONS # ================== def parse(pare...
31.552083
83
0.530538
3,064
0.505777
0
0
0
0
0
0
1,322
0.218224
5f63c4934790515bb6fc74d4d7ecc9a70d977a36
646
py
Python
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
1
2021-06-25T21:20:42.000Z
2021-06-25T21:20:42.000Z
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
tests/test_get_image.py
kortizceballos/codeastro-group6
9f0ceb8a0fca3e619dbabe97105a3f283e59fa04
[ "BSD-3-Clause" ]
null
null
null
from matplotlib.pyplot import get import pyhips from pyhips import get_image def test_get_image(): """ Tests the get_image() function to make sure no errors are thrown. """ assert get_image("Vega", frame="ICRS", survey="DSS", cmap="plasma") == 0 assert get_image("notanid", frame="ICRS", survey="D...
35.888889
83
0.662539
0
0
0
0
0
0
0
0
237
0.366873
5f65055d81665e397feccfc78dd6d2f299634b64
138
py
Python
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
1
2016-02-12T11:54:07.000Z
2016-02-12T11:54:07.000Z
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
null
null
null
cumulus2/template.py
peterkh/cumulus2
11352ce469acb0c319ba9cfb8691d80f4ae5048e
[ "Apache-2.0" ]
null
null
null
""" Template module for cumulus. template class for reading yaml tempalte and creating data_source objects to retrieve external data. """
23
76
0.797101
0
0
0
0
0
0
0
0
137
0.992754
5f67096a7114362044846dbb3a2978d1562f88ac
700
py
Python
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
Python-AI-Algorithms/Bubble_sort.py
screadore/Artificial-Intelligence-Sorting-Algorithms
d69f34dbd02556c6a7bbb8e0dee45ab7fdb4b12c
[ "MIT" ]
null
null
null
# Bubble sort steps through the list and compares adjacent pairs of elements. The elements are swapped if they are in the wrong order. The pass through the unsorted portion of the list is repeated until the list is sorted. Because Bubble sort repeatedly passes through the unsorted part of the list, it has a worst case...
36.842105
342
0.591429
0
0
0
0
0
0
0
0
343
0.489301
5f670af72f12c73cbff679c29371d4269f74b778
551
py
Python
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2019-02-22T10:34:26.000Z
2021-07-13T01:51:48.000Z
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
null
null
null
Practice/Python/Strings/the_minion_game.py
nifannn/HackerRank
b05318251226704b1fb949c29aa49493d6ced44b
[ "MIT" ]
7
2018-11-09T13:52:34.000Z
2021-03-18T20:36:22.000Z
def minion_game(string): # Stuart score s_idx = [i for i, c in enumerate(string) if c not in 'AEIOU'] s_score = sum([len(string)-i for i in s_idx]) # Kevin score k_idx = [i for i, c in enumerate(string) if c in 'AEIOU'] k_score = sum([len(string)-i for i in k_idx]) # final result if k_sc...
30.611111
65
0.604356
0
0
0
0
0
0
0
0
110
0.199637
5f6e27388481683369aca2bd805d2c503d7286e8
189
py
Python
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
deep_learning_zero/ch5/sample.py
kaito0223/shakyou
8d901b4da24fbf0c708e3eb429a57d194e9857c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np X = np.random.rand(2) #input W = np.random.rand(2,3) #weight B = np.random.rand(3) #bias print(X) print(W) print(B) Y=np.dot(X,W)+B print(Y)
11.8125
31
0.613757
0
0
0
0
0
0
0
0
41
0.216931
5f71554b9254c1a62eba83f18f61c6f664cfe709
2,485
py
Python
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
from pytest_bdd import given, when, then from model.contact import Contact import random @given('a contact list') def contact_list(orm): return orm.get_contact_list() @given('a contact with <firstname>, <lastname> and <address>') def new_contact(firstname, lastname, address): return Contact(firstname=firstnam...
42.118644
101
0.781087
0
0
0
0
2,377
0.956539
0
0
481
0.193561
5f72286dd657c066d24e11dfe7993aa6f68aabbc
769
py
Python
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
1
2015-05-22T23:51:58.000Z
2015-05-22T23:51:58.000Z
#!/usr/bin/env python """ Figures generated by HiST program intended for use with in/ files including: *_flame.ini *_impulse.ini *_trans.ini Flaming Aurora 2 cameras: ./FigureMaker.py in/2cam_flame.ini Translating Aurora 2 cameras: ./FigureMaker.py in/2cam_trans.ini Impulse Aurora (for testing): ./FigureMaker.py in...
20.783784
55
0.758127
0
0
0
0
0
0
0
0
571
0.742523
5f72433b75556b159f57faa7593653f49eb2cb21
3,557
py
Python
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
T53/webapp/accounts/models.py
DevelopAppWithMe/Hackathon_5.0
6af503a995721c04986931d6a29d8f946ceaa067
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from django.core.validators import RegexValidator from django.db import models class UserManager(BaseUserManager): def create_user(self, phone_numb...
32.336364
104
0.687939
3,301
0.928029
0
0
0
0
0
0
749
0.210571
5f72dad431a7abe4ecae9aa703b14fc2183ff13a
2,998
py
Python
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
1
2020-02-16T00:42:17.000Z
2020-02-16T00:42:17.000Z
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
"""Component to control v6m relays and sensors. For more details about this component, please refer to the documentation at https://home-assistant.io/components/v6m/ """ import logging import voluptuous as vol from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT, CONF_NAME) import homea...
28.552381
75
0.615744
1,894
0.631755
0
0
252
0.084056
0
0
584
0.194797
5f7622df0a14efca2dcdfe048326621ae11f4cbc
550
py
Python
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T15:00:54.000Z
2021-12-08T16:07:35.000Z
blog/models.py
BirnadinErick/HappyProject
4993a2d966d9c1458ce0e29e72c3a758a7a4ef54
[ "Apache-2.0" ]
3
2021-12-15T00:49:01.000Z
2021-12-16T00:46:14.000Z
blog/models.py
Happy-Project-Foundation/HappyProject
86e9fa7633e68c026e0003f8494df0226fa0dfcf
[ "Apache-2.0" ]
3
2021-12-04T14:18:15.000Z
2021-12-05T08:40:13.000Z
import uuid from django.db import models from django.db.models.fields import TextField class Blog(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) title = models.CharField(verbose_name="Title", max_length=150, default="Happy Blog", blank=False) content = models.T...
32.352941
109
0.736364
454
0.825455
0
0
0
0
0
0
53
0.096364