hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
3024da0c8cff966a108eb9eabba60d6ffdc885bc
2,878
py
Python
Gmail.py
renauddahou/appointment_bot
f78c4242c6d0eb1dfc2edfdca8c4f37b22d9cf93
[ "MIT" ]
3
2021-05-12T22:27:08.000Z
2022-03-24T14:50:20.000Z
Gmail.py
renauddahou/appointment_bot
f78c4242c6d0eb1dfc2edfdca8c4f37b22d9cf93
[ "MIT" ]
3
2021-12-26T12:38:57.000Z
2022-03-25T19:34:31.000Z
Gmail.py
renauddahou/appointment_bot
f78c4242c6d0eb1dfc2edfdca8c4f37b22d9cf93
[ "MIT" ]
4
2021-07-30T16:41:30.000Z
2022-02-01T14:48:45.000Z
# -*- coding: utf-8 -*- """ Created on Mon Aug 10 17:49:07 2020 @author: Amir """ import email import imaplib from email.header import decode_header import re
35.530864
105
0.407575
3026fa5fec5a07d66102ae71523732602b37bf87
6,637
py
Python
Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/games.py
TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning
2d8c12c2b5a4865c02934b63091945d3e2c92e90
[ "MIT" ]
null
null
null
Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/games.py
TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning
2d8c12c2b5a4865c02934b63091945d3e2c92e90
[ "MIT" ]
null
null
null
Multi-agent Transfer RL/Transfer across tasks/Bayes-ToMoP/games.py
TJU-DRL-LAB/transfer-and-multi-task-reinforcement-learning
2d8c12c2b5a4865c02934b63091945d3e2c92e90
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np import imageio from gym import spaces import tkinter as tk from PIL import Image, ImageTk import matplotlib.pyplot as plt import time CELL, BLOCK, AGENT_GOAL, OPPONENT_GOAL, AGENT, OPPONENT = range(6) WIN, LOSE = 5, -5 UP, RIGHT, DOWN, LEFT, HOLD = range(5) UNIT = 40 if __name__...
39.041176
178
0.552509
302802899cbe877d306af7d92c456a506768688c
103
py
Python
utils/__init__.py
riven314/AL-MDN
5f843e2e7c99f3ae36e8139ec0d8aaa4a78d4962
[ "BSD-Source-Code" ]
59
2021-10-13T22:59:19.000Z
2022-03-26T20:44:47.000Z
utils/__init__.py
jwchoi384/AL-MDN
54aaae4405c69b33998e5b5306c7c645780d473c
[ "BSD-Source-Code" ]
10
2021-11-02T06:35:24.000Z
2022-03-26T21:08:06.000Z
utils/__init__.py
jwchoi384/AL-MDN
54aaae4405c69b33998e5b5306c7c645780d473c
[ "BSD-Source-Code" ]
9
2021-10-14T09:48:05.000Z
2022-03-27T06:04:32.000Z
# Originated from https://github.com/amdegroot/ssd.pytorch from .augmentations import SSDAugmentation
25.75
58
0.825243
30292b7c2f6979a04692b3c67d475af07d5a822b
184
py
Python
modules/moderation/__init__.py
H3xadecimal/Nest
4422cf5725a71603ff58ccbf9f261b28ff96f70e
[ "MIT" ]
10
2018-04-21T07:29:42.000Z
2019-02-01T20:46:48.000Z
modules/moderation/__init__.py
H3xadecimal/Nest
4422cf5725a71603ff58ccbf9f261b28ff96f70e
[ "MIT" ]
2
2018-09-10T00:58:40.000Z
2019-12-22T11:19:58.000Z
modules/moderation/__init__.py
H3xadecimal/Nest
4422cf5725a71603ff58ccbf9f261b28ff96f70e
[ "MIT" ]
2
2018-09-09T23:07:56.000Z
2019-10-19T15:26:56.000Z
""" Basic moderation utilities for Birb. """ from .staff import CheckMods from .actions import ModActions
15.333333
36
0.717391
302af14bd5d8ff0171af453caa11c3079af12cfe
227
py
Python
docker_compose/tweet_collector/config.py
lenaromanenko/twitter_sentiment_analysis
ac642ee4a6c2af01bd413326ff0bae406c2e2efe
[ "MIT" ]
1
2021-03-23T10:27:06.000Z
2021-03-23T10:27:06.000Z
docker_compose/tweet_collector/config.py
lenaromanenko/twitter_sentiment_analysis
ac642ee4a6c2af01bd413326ff0bae406c2e2efe
[ "MIT" ]
null
null
null
docker_compose/tweet_collector/config.py
lenaromanenko/twitter_sentiment_analysis
ac642ee4a6c2af01bd413326ff0bae406c2e2efe
[ "MIT" ]
1
2021-05-31T15:39:30.000Z
2021-05-31T15:39:30.000Z
import os API_KEY = os.getenv('API_KEY') API_SECRET = os.getenv('API_SECRET') ACCESS_TOKEN = os.getenv('ACCESS_TOKEN') ACCESS_TOKEN_SECRET = os.getenv('ACCESS_TOKEN_SECRET') POSTGRES_PASSWORD = os.getenv('POSTGRES_PASSWORD')
25.222222
54
0.784141
302e0d78b3644fab203f5a2140185b921dd4135b
7,140
py
Python
tests/test_jid.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
null
null
null
tests/test_jid.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
349
2017-02-18T22:48:17.000Z
2021-12-13T19:50:23.000Z
tests/test_jid.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ test_jid ---------------------------------- Tests for `vexmpp.xmpp.jid` module. """ import unittest from vexmpp.jid import Jid, _parse, _prep, InvalidJidError, internJid
29.874477
77
0.539076
302e8f1be7a7ffb783af9f6bd1bdc7f3405e6a18
745
py
Python
brainutils/context.py
jimbuho/django-brain
201237266a64e49b5c37f3d373ff6913dfbd099e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
brainutils/context.py
jimbuho/django-brain
201237266a64e49b5c37f3d373ff6913dfbd099e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
brainutils/context.py
jimbuho/django-brain
201237266a64e49b5c37f3d373ff6913dfbd099e
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ .. module:: dbu - context :platform: Unix, Windows :synopsis: Contexto Principal por defecto .. moduleauthor:: Diego Gonzalez <dgonzalez.jim@gmail.com> """ from . import configuration from . import models def load_context(request): """ Load Context Description ...
19.102564
58
0.640268
302ff0768eb4d4a5356d5db0b329d974eeccb455
689
py
Python
tests/trainer/test_multi_trainer.py
michael-aloys/knodle
393e7ba0558036828fb228875511977c40000ed5
[ "Apache-2.0" ]
71
2021-04-26T10:39:56.000Z
2022-03-28T14:36:16.000Z
tests/trainer/test_multi_trainer.py
michael-aloys/knodle
393e7ba0558036828fb228875511977c40000ed5
[ "Apache-2.0" ]
92
2021-04-08T12:49:38.000Z
2022-02-03T14:24:05.000Z
tests/trainer/test_multi_trainer.py
michael-aloys/knodle
393e7ba0558036828fb228875511977c40000ed5
[ "Apache-2.0" ]
10
2021-07-08T06:49:28.000Z
2022-01-15T23:28:13.000Z
from tests.trainer.generic import std_trainer_input_1 from knodle.trainer.multi_trainer import MultiTrainer
25.518519
62
0.69521
3030b091442a66a1758237c47ca2d3b1d6082b1e
368
py
Python
core/models.py
dilshodbekikromov/weatherapp
105ca8c7a142a4afdff9bff7c758896f0335610c
[ "PostgreSQL" ]
1
2021-12-17T05:17:22.000Z
2021-12-17T05:17:22.000Z
core/models.py
GiovannaK/Weather-app-django
3138f03b34baa5866ed63f52dc4b759be6eb7aa4
[ "MIT" ]
null
null
null
core/models.py
GiovannaK/Weather-app-django
3138f03b34baa5866ed63f52dc4b759be6eb7aa4
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User
26.285714
74
0.701087
30325bbf9ed4d06063912ef3759ddd07cefbb4f5
133
py
Python
python/numba_chol.py
sevagh/cholesky
bf5404bdaab497409c517312d5a234c6a5ffe9cf
[ "BSD-3-Clause" ]
null
null
null
python/numba_chol.py
sevagh/cholesky
bf5404bdaab497409c517312d5a234c6a5ffe9cf
[ "BSD-3-Clause" ]
null
null
null
python/numba_chol.py
sevagh/cholesky
bf5404bdaab497409c517312d5a234c6a5ffe9cf
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numba import jit
16.625
50
0.736842
30332c35e591fa52e355d5d29a0ebf609792b6f8
191
py
Python
doxieapi/__init__.py
Stealthii/doxieapi
bf6803a579b9a9f768e3e602e3cb2fb1eb0e8f3c
[ "0BSD" ]
null
null
null
doxieapi/__init__.py
Stealthii/doxieapi
bf6803a579b9a9f768e3e602e3cb2fb1eb0e8f3c
[ "0BSD" ]
null
null
null
doxieapi/__init__.py
Stealthii/doxieapi
bf6803a579b9a9f768e3e602e3cb2fb1eb0e8f3c
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- """ doxieapi ~~~~~~~~ A Python library for the developer API of the Doxie Go Wi-Fi document scanner. """ from .api import DoxieScanner __all__ = ['DoxieScanner']
13.642857
78
0.65445
3033df96925128ff7539e6a8f86e4620e486d85d
18,447
py
Python
iogt_content_migration/management/commands/load_v1_db.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
iogt_content_migration/management/commands/load_v1_db.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
iogt_content_migration/management/commands/load_v1_db.py
Albert-Jokelin/iogt
79b1b86c11df7d61ddbbd4ce16303dfe4a1b8465
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path from django.core.management.base import BaseCommand from wagtail.core.models import Page, Site, Locale from django.core.files.images import ImageFile from wagtail.images.models import Image from wagtail_localize.models import Translation from wagtail_localize.views.submit_translations import Tr...
40.277293
152
0.58725
3033fd8167635b4a38bf68dbe82419686667a557
2,968
py
Python
run_files/cip_area_threshold/tissue_data/run_CIP_relaxation_times.py
jessiesrr/VTdyn
6f71ef94525d95221f5bd5e5290f4df10648cd18
[ "MIT" ]
null
null
null
run_files/cip_area_threshold/tissue_data/run_CIP_relaxation_times.py
jessiesrr/VTdyn
6f71ef94525d95221f5bd5e5290f4df10648cd18
[ "MIT" ]
null
null
null
run_files/cip_area_threshold/tissue_data/run_CIP_relaxation_times.py
jessiesrr/VTdyn
6f71ef94525d95221f5bd5e5290f4df10648cd18
[ "MIT" ]
null
null
null
import numpy as np import libs.contact_inhibition_lib as lib #library for simulation routines import libs.data as data import libs.plot as vplt #plotting library from structure.global_constants import * import structure.initialisation as init from structure.cell import Tissue, BasicSpringForceNoGrowth import matplotlib...
44.298507
143
0.738544
30350c07d409b3ddee9b9e26e89145475e5ec90e
120
py
Python
tmp/admin.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
tmp/admin.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
tmp/admin.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Invoice # Register your models here. admin.site.register(Invoice)
20
32
0.808333
3035188b0c9611cb3581b6c9c987990a72ba1ab9
17,920
py
Python
TAPI_RI/flask_server/tapi_server/models/connection_end_point.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
TAPI_RI/flask_server/tapi_server/models/connection_end_point.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
TAPI_RI/flask_server/tapi_server/models/connection_end_point.py
bartoszm/Snowmass-ONFOpenTransport
874e7a3f311d915d692b27fcbd24032c89064f00
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from tapi_server.models.base_model_ import Model from tapi_server.models.name_and_value import NameAndValue # noqa: F401,E501 from tapi_server.models.operational_state...
43.814181
536
0.69135
30357aaf0a514c1636520e15938cba9dc811ec7d
901
py
Python
idom_jupyter/jupyter_server_extension.py
idom-team/idom-jupyter
21037d41c51d4d9e23cca4486a850f2915f27d29
[ "MIT" ]
28
2020-09-12T19:59:27.000Z
2022-03-14T10:08:13.000Z
idom_jupyter/jupyter_server_extension.py
idom-team/idom-jupyter
21037d41c51d4d9e23cca4486a850f2915f27d29
[ "MIT" ]
11
2020-10-05T06:54:43.000Z
2022-02-19T21:16:31.000Z
idom_jupyter/jupyter_server_extension.py
idom-team/idom-jupyter
21037d41c51d4d9e23cca4486a850f2915f27d29
[ "MIT" ]
null
null
null
from urllib.parse import urljoin from appdirs import user_data_dir from notebook.notebookapp import NotebookApp from idom.config import IDOM_WED_MODULES_DIR from tornado.web import StaticFileHandler from tornado.web import Application IDOM_WED_MODULES_DIR.current = user_data_dir("idom-jupyter", "idom-team") # com...
29.064516
73
0.712542
303647975ecbe068790f55c360ba681d772f2c4f
1,033
py
Python
dobot_gym/envs/real/dobot_env.py
sandipan1/dobot_gym
acea98da2506653d45d55e15a036da583415f31d
[ "MIT" ]
1
2020-11-22T11:07:01.000Z
2020-11-22T11:07:01.000Z
dobot_gym/envs/real/dobot_env.py
sandipan1/dobot_gym
acea98da2506653d45d55e15a036da583415f31d
[ "MIT" ]
null
null
null
dobot_gym/envs/real/dobot_env.py
sandipan1/dobot_gym
acea98da2506653d45d55e15a036da583415f31d
[ "MIT" ]
1
2021-01-10T09:36:25.000Z
2021-01-10T09:36:25.000Z
## common class for only dobot with cam import gym from gym import utils from glob import glob from dobot_gym.utils.dobot_controller import DobotController from gym.spaces import MultiDiscrete
28.694444
60
0.648596
3037ce4b050caa1080564ccd27af84ba3f81c62a
1,609
py
Python
Calibration/LumiAlCaRecoProducers/test/crab3_raw_corrC.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Calibration/LumiAlCaRecoProducers/test/crab3_raw_corrC.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Calibration/LumiAlCaRecoProducers/test/crab3_raw_corrC.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
######################### #Author: Sam Higginbotham ######################## from WMCore.Configuration import Configuration config = Configuration() #name='Pt11to30' config.section_("General") config.General.requestName = 'PCC_Run2017E_Corrections' config.General.workArea = 'RawPCCZeroBias2017' config.section_("JobT...
36.568182
163
0.778745
3037ecccd158f87250f163febc7c04a882e857b4
6,819
py
Python
active_frame.py
binhhoangtieu/C3D-tensorflow
d85ef6156abc7fcdb4ab91e5b47a50c5ef5123c6
[ "MIT" ]
1
2019-02-11T15:47:52.000Z
2019-02-11T15:47:52.000Z
active_frame.py
binhhoangtieu/C3D-tensorflow
d85ef6156abc7fcdb4ab91e5b47a50c5ef5123c6
[ "MIT" ]
null
null
null
active_frame.py
binhhoangtieu/C3D-tensorflow
d85ef6156abc7fcdb4ab91e5b47a50c5ef5123c6
[ "MIT" ]
1
2018-12-04T04:55:19.000Z
2018-12-04T04:55:19.000Z
import cv2 import os import glob import numpy as np from operator import itemgetter # import matplotlib.pyplot as plt import math import scipy.stats as stats #This function select numbers of the most active frame in a segment #this function get the most active frame #https://en.wikipedia.org/wiki/Normal_distribution...
31.569444
110
0.706555
303842a63bcf998cc97937b86976891ee5b81ac2
5,547
py
Python
lift-learn/metrics/_values.py
smn-ailab/lift-learn
158b8be554aad49033ee2eacf14fbbeb2418d6f7
[ "MIT" ]
1
2019-03-12T11:07:16.000Z
2019-03-12T11:07:16.000Z
lift-learn/metrics/_values.py
smn-ailab/lift-learn
158b8be554aad49033ee2eacf14fbbeb2418d6f7
[ "MIT" ]
1
2019-02-15T06:21:33.000Z
2019-02-20T01:03:54.000Z
lift-learn/metrics/_values.py
smn-ailab/lift-learn
158b8be554aad49033ee2eacf14fbbeb2418d6f7
[ "MIT" ]
null
null
null
"""Metrics to assess performance on ite prediction task.""" from typing import Optional import numpy as np import pandas as pd def expected_response(y: np.ndarray, w: np.ndarray, policy: np.ndarray, mu: Optional[np.ndarray]=None, ps: Optional[np.ndarray]=None) -> float: """Estimate expected...
36.493421
152
0.650442
30393f74ae0c5c36f82aebb7e0b95f7f112a1231
1,133
py
Python
data_parser.py
JanoHorvath/k-means-clustering
c84e858c3e2bb417ffea11d441797a15c659a7ee
[ "MIT" ]
null
null
null
data_parser.py
JanoHorvath/k-means-clustering
c84e858c3e2bb417ffea11d441797a15c659a7ee
[ "MIT" ]
null
null
null
data_parser.py
JanoHorvath/k-means-clustering
c84e858c3e2bb417ffea11d441797a15c659a7ee
[ "MIT" ]
null
null
null
from random import randint
33.323529
119
0.614298
303a0f7118c7766ed025bf5dc2723fe60db8bf3e
623
py
Python
backend/colleges/utils.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
4
2021-02-26T09:28:14.000Z
2021-07-08T19:21:57.000Z
backend/colleges/utils.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
35
2021-01-27T08:38:59.000Z
2021-12-13T19:42:38.000Z
backend/colleges/utils.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
5
2021-01-21T21:35:42.000Z
2022-01-06T10:07:58.000Z
from openpyxl import load_workbook def import_msmt_college_registry_xlsx(path, sheet_name): """ Import XLSX from https://regvssp.msmt.cz/registrvssp/cvslist.aspx (list of colleges and faculties). Parameters: path -- path to XLSX file sheet_name -- "ExportVS" or "ExportFakulty" """...
25.958333
69
0.638844
303aea533163720c626b39e6c0bbce695a86963f
16,358
py
Python
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
tests/cases/matching_graph.py
nilsec/mtrack
76652c468417c7e3ac9903586c0127b884d6b032
[ "MIT" ]
null
null
null
import unittest import numpy as np from mtrack.graphs import G1 from mtrack.evaluation.matching_graph import MatchingGraph from mtrack.evaluation.voxel_skeleton import VoxelSkeleton from comatch import match_components import json test_data_dir = "./data" if __name__ == "__main__": unittest.main()
38.399061
183
0.578127
303b9455bfc79c1d55b5b456a3c9a97a10ddaa26
5,706
py
Python
act/qc/arm.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
9
2019-03-11T19:41:34.000Z
2019-09-17T08:34:19.000Z
act/qc/arm.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
127
2019-03-18T12:24:17.000Z
2020-01-06T20:53:06.000Z
act/qc/arm.py
jrobrien91/ACT
604b93d75366d23029f89d88df9053d52825c214
[ "BSD-3-Clause" ]
15
2019-03-11T15:30:56.000Z
2019-11-01T19:10:11.000Z
""" Functions specifically for working with QC/DQRs from the Atmospheric Radiation Measurement Program (ARM). """ import datetime as dt import numpy as np import requests from act.config import DEFAULT_DATASTREAM_NAME def add_dqr_to_qc( obj, variable=None, assessment='incorrect,suspect', exclude=No...
33.174419
91
0.608132
303cbb53a5783485cb968c141cc21be11daa907d
1,458
py
Python
tests/test_main_page.py
litovsky2/shop_test
a618f23debfb2efa6f1fceb7eff6443a10f0b11f
[ "Apache-2.0" ]
1
2020-05-03T21:32:49.000Z
2020-05-03T21:32:49.000Z
tests/test_main_page.py
litovsky2/shop_test
a618f23debfb2efa6f1fceb7eff6443a10f0b11f
[ "Apache-2.0" ]
1
2020-07-01T11:12:02.000Z
2020-07-01T11:12:02.000Z
tests/test_main_page.py
litovsky2/shop_test
a618f23debfb2efa6f1fceb7eff6443a10f0b11f
[ "Apache-2.0" ]
2
2021-03-08T14:46:09.000Z
2021-08-30T13:12:21.000Z
import allure from common.constans import PrintedDress, PrintedSummerDress, Colors
37.384615
76
0.688615
303d67c6ff0813b9d6fd68be88e83d8ab918ad04
9,018
py
Python
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
database/__init__.py
tclarkin/shread_dash
a45e2f2946c74526e69c087587676aaa4cb15fba
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 21 11:55:27 2021 Snow-Hydrology Repo for Evaluation, Analysis, and Decision-making Dashboard (shread_dash.py) Database Initialization This is part of dashboard loading database and other data into memory. The data for the database relies on a series of retrieval scripts ...
37.732218
118
0.662009
303f583ef559b4b1aa620758bb07c4e72cd59ab1
730
py
Python
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
import cloudscraper import json from bs4 import BeautifulSoup from dotenv import load_dotenv import os scraper = cloudscraper.create_scraper() load_dotenv('lang_code') language = os.getenv("lang_code") def simsimi(question): ''' Function to make the HTTP request to the Simsimi API already with the message typed b...
28.076923
142
0.712329
303f8a39fa8bc76e0faedd216816494e7f0cf74e
357
py
Python
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
scripts/test.py
germy/piprint
c4bf36ccf90cbce50ecae4e673b916f0b7a1b522
[ "MIT" ]
null
null
null
import sys write()
22.3125
74
0.560224
30410df497a9a784faa007c73a850d77a1646952
523
py
Python
auction_bid_tracker/api/serializers.py
Kelechukwu/auction-service
fac296178b67c6c8a54d37d861787fc523cc30fd
[ "MIT" ]
null
null
null
auction_bid_tracker/api/serializers.py
Kelechukwu/auction-service
fac296178b67c6c8a54d37d861787fc523cc30fd
[ "MIT" ]
5
2020-06-05T20:17:05.000Z
2021-09-22T18:17:53.000Z
auction_bid_tracker/api/serializers.py
Kelechukwu/auction-service
fac296178b67c6c8a54d37d861787fc523cc30fd
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Bid, Item, User
26.15
70
0.655832
3043145d544f46f022747e55bca435bd3cfd11fa
133
py
Python
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
3
2018-02-28T06:22:39.000Z
2020-05-20T12:39:00.000Z
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
19
2018-02-26T21:13:43.000Z
2018-05-02T16:33:35.000Z
src/a01/communication.py
mcardosos/adx-automation-client
d657ff85b0f0e408e5c64703c47798d164f49a35
[ "MIT" ]
6
2018-02-26T18:10:31.000Z
2020-12-30T10:21:31.000Z
import requests from a01.auth import A01Auth session = requests.Session() # pylint: disable=invalid-name session.auth = A01Auth()
19
60
0.766917
304744cf40637da26f72f55057da5c765cb35850
27,025
py
Python
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
5
2021-08-19T15:24:08.000Z
2022-03-09T07:11:41.000Z
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
null
null
null
marketmodel/neuralsde.py
vicaws/neuralSDE-marketmodel
ffbc558fee273cbae81ffe9312fc878ba4d261d1
[ "MIT" ]
1
2021-11-10T07:55:06.000Z
2021-11-10T07:55:06.000Z
""" Construct, train neural-SDE models and simulate trajectories from the learnt models. """ # Copyright 2021 Sheng Wang. # Affiliation: Mathematical Institute, University of Oxford # Email: sheng.wang@maths.ox.ac.uk import numpy as np import os import pandas as pd import tensorflow as tf import tensorflow_probabilit...
35.006477
81
0.559704
304748bc2e685abf6332deae76ea083ce94212c7
2,641
py
Python
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
Rock-paper-scissor/jokenpo.py
Thdahwache/python-learning-trail
357d5d1c6cfa966e347cb5a06cb1f90e3a9ed81d
[ "MIT" ]
null
null
null
import random pedra = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' papel = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' tesoura = ''' _______ ---' ____)____ ______) __________) (____) -...
19.857143
99
0.584248
304a63e43cefe3d1aae18e577a8dfda944354797
133
py
Python
Python/basic-py/exercise_13.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
1
2020-10-12T18:33:22.000Z
2020-10-12T18:33:22.000Z
Python/basic-py/exercise_13.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
Python/basic-py/exercise_13.py
nhutnamhcmus/code
22b528084ed234fcabca89cf1ba02a2c347007bc
[ "MIT" ]
null
null
null
print(even_square_sum([1, 2, 3, 4, 5]))
26.6
44
0.609023
304ae112f3d07172cbbce9d1b6a8739bf5926f0c
1,304
py
Python
generate_datajson/vaccine_data.py
a01sa01to/covid19-ibaraki
83ae6a69bab2fc5d27af520d04820a57d4d93b13
[ "MIT" ]
47
2020-03-22T07:29:18.000Z
2021-12-22T12:26:06.000Z
generate_datajson/vaccine_data.py
a01sa01to/covid19-ibaraki
83ae6a69bab2fc5d27af520d04820a57d4d93b13
[ "MIT" ]
118
2020-03-26T15:32:36.000Z
2021-12-29T12:45:20.000Z
generate_datajson/vaccine_data.py
a01sa01to/covid19-ibaraki
83ae6a69bab2fc5d27af520d04820a57d4d93b13
[ "MIT" ]
24
2020-03-24T11:40:54.000Z
2022-01-17T02:25:08.000Z
import json file_content = [] with open('vaccine_data.ndjson', 'r', encoding="UTF-8") as f: for row in f.readlines(): rowJson = json.loads(row.replace('\n','')) if rowJson['prefecture'] == '08': del rowJson['prefecture'] if not rowJson['medical_worker']: del rowJson['medical_worker'] ...
31.047619
83
0.615798
304caab2fd293dcea3ce7502cec96c166db7a553
187
py
Python
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
null
null
null
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
null
null
null
system/widget.py
ywchiao/shot
4b7c55bdcca44d05e07fffa59fe4e23364032cb5
[ "MIT" ]
1
2020-03-27T02:07:27.000Z
2020-03-27T02:07:27.000Z
from .system import System from logcat import LogCat # widget.py
14.384615
43
0.663102
304dc6dc061f3fd518314469875101efde9ac522
461
py
Python
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
import smtplib user = input('Enter your gmail ') password = input('Enter your password ') receiver = input('Enter the receiver ') msg = input('Enter the message ') #num = input('Enter the number of emails you want to send ') #x = 0 #x = int() #num = int() server = smtplib.SMTP('smtp.gmail.com', 587) server....
25.611111
61
0.672451
304e5b0e47fffc531047a55b5185bd8c13cd32b6
820
py
Python
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
''' Created on Feb 4, 2015 @author: nirmal ''' from scheme import current_timestamp from spire.schema import * from spire.mesh import Surrogate __all__ = ('Notification',) schema = Schema('narrative') NotificationOwnerIDIndex = Index('notification_ownerid_idx', Notification.ownerid) NotificationRe...
26.451613
83
0.696341
30508657d97ad92eed583819ab3856787d5dae52
1,061
py
Python
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
entity/messagerepo.py
LordOfNightmares/virtual-client-assistant
772282434472fc44caac0cd21f972d6a5cc5c5b8
[ "Apache-2.0" ]
null
null
null
from entity.message import Message from .databaserepo import DatabaseRepo
31.205882
93
0.556079
3050a2a71fbaa2cae499a5720b624b2e3232480d
8,896
py
Python
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import messagebox from database import db from client import client from pprint import * import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure import Figure import matplotlib.dates as m...
40.807339
165
0.625337
3051b98951c21bd4429d8c08c1c8331434412e69
4,431
py
Python
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
null
null
null
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
1
2019-12-01T10:47:30.000Z
2019-12-01T10:47:30.000Z
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
null
null
null
import torch import numpy as np import os import sys from fairseq.data.data_utils import collate_tokens from fairseq.models.roberta import RobertaModel import time roberta = RobertaModel.from_pretrained('checkpoints/', checkpoint_file='ck.pt', data_name_or_path='data/processed_RACE/') roberta.eval() eval_one_exa...
59.08
1,546
0.672986
3052b87761414206a80d473cc44e97d3436908e3
5,043
py
Python
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
1
2022-03-15T00:00:57.000Z
2022-03-15T00:00:57.000Z
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
src/utils/interface_audio_io.py
waverDeep/WaveBYOL
ab062c26598e0fa6ab8426498f9920048988b5c1
[ "MIT" ]
null
null
null
import soundfile as sf from tqdm import tqdm import src.utils.interface_file_io as io import librosa import wave import multiprocessing import src.utils.interface_multiprocessing as mi import torchaudio import numpy as np import torch.nn.functional as F import torch torchaudio.set_audio_backend("sox_io") # The...
36.810219
114
0.691652
3052bcfb77f4439da2dc55fb76a58f27be220c78
6,318
py
Python
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
2
2022-01-16T16:16:52.000Z
2022-03-01T11:51:35.000Z
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
null
null
null
diffusion_utils/utils.py
GallagherCommaJack/diffusion-utils
407e350ec62e204c10366afe66b793f1d1276c1e
[ "MIT" ]
null
null
null
import math from typing import MutableSequence, Optional, TypeVar, Union import torch from torch import nn from torch import Tensor from torch.types import Number from einops import repeat T = TypeVar("T") TensorSeq = MutableSequence[Tensor] clamp_with_grad = ClampWithGrad.apply def get_ddpm_schedu...
25.893443
80
0.623932
3053b63c3b7a677ef567ccc253454ec06d5b2791
828
py
Python
FB.py/blog.py
attia7/Test
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
null
null
null
FB.py/blog.py
attia7/Test
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
11
2020-03-24T17:40:26.000Z
2022-01-13T01:42:38.000Z
FB.py/blog.py
attia7/AttiaGit
c74f09816ba2e0798b0533e31ea8b72249dec598
[ "MIT" ]
null
null
null
blog1= Blog(title='python bisics', photo='https://images.pexels.com/photos/837140/pexels-photo-837140.jpeg', name='Yasser',date='10-06-2019',content='Hello How r u ?') blog2= Blog(title='python bisics', photo='https://images.pexels.com/photos/837140/pexels-photo-837140.jpeg', name='Mohammed',date='11-16-1979',conte...
29.571429
109
0.711353
3057879143c17360d6498f89a5f3db75d2469ccb
4,075
py
Python
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
4
2019-03-26T15:54:35.000Z
2021-05-27T13:18:43.000Z
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
12
2019-04-23T14:45:04.000Z
2022-03-17T09:40:04.000Z
modules/RetrieveResource.py
opentargets/platform-input-support
555c3ed091a7a3a767dc0c37054dbcd369f02252
[ "Apache-2.0" ]
2
2019-06-15T17:21:14.000Z
2021-05-14T18:35:18.000Z
import logging from modules.common.GoogleBucketResource import GoogleBucketResource from modules.common.Utils import Utils from modules.common import create_output_dir, remove_output_dir from yapsy.PluginManager import PluginManager from definitions import PIS_OUTPUT_DIR logger = logging.getLogger(__name__)
43.351064
117
0.690307
305a285236c3e11d999251641ede1bf722d4ce33
211
py
Python
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
web/app/conf/__init__.py
kvikshaug/btc.kvikshaug.no
a353096db9edf7ef0aa44e77c367c96b73fbfe6f
[ "Unlicense" ]
null
null
null
import importlib import os conf_module = importlib.import_module("conf.%s" % os.environ['CONFIGURATION']) settings = { key: getattr(conf_module, key) for key in dir(conf_module) if key.isupper() }
19.181818
78
0.706161
305fb866531bf4803870ee45e5b57b07d815bff0
694
py
Python
swiper/user/models.py
Han-spros/swiper
47590fe930ff22cbdf837b896c767bc42124ff54
[ "MIT" ]
null
null
null
swiper/user/models.py
Han-spros/swiper
47590fe930ff22cbdf837b896c767bc42124ff54
[ "MIT" ]
null
null
null
swiper/user/models.py
Han-spros/swiper
47590fe930ff22cbdf837b896c767bc42124ff54
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
38.555556
86
0.654179
30608fa48d5c9db3434a2558d2ebd1e7a3ae3040
1,696
py
Python
probs/discrete/negative_binomial.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
probs/discrete/negative_binomial.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
probs/discrete/negative_binomial.py
TylerYep/probs
feb46808bd7fe324f78642b581d6117fd6fedca4
[ "MIT" ]
null
null
null
from dataclasses import dataclass from scipy.stats import nbinom # type: ignore[import] from probs.discrete.rv import DiscreteRV
30.836364
80
0.646816
3062f03e110c5a790e2aa16881b269fc800f6f09
2,513
py
Python
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
1
2015-04-23T11:43:26.000Z
2015-04-23T11:43:26.000Z
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
baidu_API.py
spencerpomme/coconuts-on-fire
407d61b3583c472707a4e7b077a9a3ab12743996
[ "Apache-2.0" ]
null
null
null
#!python3 """ A simple script that uses Baidu Place API to search certain kinds of place in a range of circular space. This API can be called maximum 2000 times per day. """ import requests, json # import psycopg2 mykey = "IniXfqhsWAyZQpkmh5FtEVv0" # my developer key city = "" place = "" coor1 = (39.915, 116.404) c...
23.707547
78
0.634302
3063873cf1d375e656a6b627f5a8d2ac1ba1cb4a
2,293
py
Python
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
null
null
null
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
null
null
null
src/models/evaluate_model.py
ThordurPall/MLOpsExercises-
8714d83477f6132893b74675e529bfeef13ece85
[ "MIT" ]
1
2021-06-11T12:38:38.000Z
2021-06-11T12:38:38.000Z
# -*- coding: utf-8 -*- import logging from pathlib import Path import click import torch from classifier import Classifier from torchvision import datasets, transforms if __name__ == '__main__': log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' logging.basicConfig(level=logging.INFO, format=l...
35.276923
78
0.645007
3066e6439632008223c0fd046661610d442765bc
4,681
py
Python
package/statistics.py
vohoaiviet/PyReID
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
14
2015-11-23T16:26:58.000Z
2019-10-02T07:47:09.000Z
package/statistics.py
Luigolas/PyReid
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
null
null
null
package/statistics.py
Luigolas/PyReid
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
8
2016-08-06T05:45:48.000Z
2022-02-05T06:21:26.000Z
__author__ = 'luigolas' import numpy as np from scipy.stats import cumfreq
37.150794
120
0.58919
30679d7bee3f8456ed467600e053b128e8b6036a
49
py
Python
gather_agent/handlers/__init__.py
burmanm/gather_agent
37d9eb80cf717d12a132ff1c98a0c80eeeaa5a66
[ "Apache-2.0" ]
null
null
null
gather_agent/handlers/__init__.py
burmanm/gather_agent
37d9eb80cf717d12a132ff1c98a0c80eeeaa5a66
[ "Apache-2.0" ]
null
null
null
gather_agent/handlers/__init__.py
burmanm/gather_agent
37d9eb80cf717d12a132ff1c98a0c80eeeaa5a66
[ "Apache-2.0" ]
null
null
null
from rhqmetrics_handler import RHQMetricsHandler
24.5
48
0.918367
3068043469fb1de1fd2079110d1f76aaf77142ca
3,253
py
Python
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
adminwindow.py
gaurav0810-ga/Spot-Counselling-Management-System
34dffa34f1ffe016a912dc3cfcba6cd3f74eee18
[ "Apache-2.0" ]
null
null
null
from tkinter import* #=====importing self created module which will show the registartion form=======# import registrationform #=====importing self created module which will help in deleting student record from data base======# import deletestudent #=============importing selfcreated update student record ========...
61.377358
204
0.670765
30696989ca682d46c351e2a46bb6af6c82145eb0
3,443
py
Python
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
null
null
null
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
null
null
null
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
3
2021-04-28T07:49:40.000Z
2021-04-28T17:59:13.000Z
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Customer, Seller, Product, Order
40.988095
137
0.639559
3069d018acdd28b4231703721ede5dfa5cd4942f
4,665
py
Python
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
124
2017-11-14T14:42:25.000Z
2022-03-31T08:02:07.000Z
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
65
2017-11-15T07:25:38.000Z
2022-01-31T10:38:45.000Z
dnachisel/builtin_specifications/AvoidBlastMatches.py
simone-pignotti/DnaChisel
b7f0f925c9daefcc5fec903a13cfa74c3b726a7a
[ "MIT" ]
31
2018-10-18T12:59:47.000Z
2022-02-11T16:54:43.000Z
"""Implementation of AvoidBlastMatches.""" from ..Specification import Specification, SpecEvaluation # from .VoidSpecification import VoidSpecification from ..biotools import blast_sequence from ..Location import Location
30.690789
78
0.609003
3069d773ef41f354c54cc922824a8eac7764671a
8,769
py
Python
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
2
2016-06-25T16:07:09.000Z
2020-01-18T01:56:30.000Z
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
null
null
null
filesysdb/__init__.py
fictorial/filesysdb
bbf1e32218b71c7c15c33ada660433fffc6fa6ab
[ "MIT" ]
null
null
null
from aadict import aadict from cachetools import LRUCache import ujson as json import regex from shortuuid import uuid from functools import wraps from glob import glob from time import time import logging import os import shutil import unicodedata _logger = logging.getLogger(__name__) _basepath = None _serialize =...
30.134021
73
0.655149
306ba668c7b411ccfc244e0a763013d6e68ac1a9
171
py
Python
ex049.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
2
2021-11-04T21:09:11.000Z
2021-11-08T09:42:10.000Z
ex049.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
ex049.py
vinisantos7/PythonExercicios
bc8f38e03a606d6b0216632a93affeab0792e534
[ "MIT" ]
null
null
null
print("x"*25) print("Bem-Vindo a Tabuada v2.0") print("x"*25) n = int(input("Digite um nmero para a tabuada: ")) for t in range(1, 11): print(f"{n} x {t:2} = {n*t}")
24.428571
51
0.590643
306c66581ea850b95ab997fea6a54ccae480729d
149
py
Python
Term 2/1-5-problem.py
theseana/miniatur
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
[ "MIT" ]
1
2022-01-16T00:30:43.000Z
2022-01-16T00:30:43.000Z
Term 2/1-5-problem.py
theseana/miniatur
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
[ "MIT" ]
null
null
null
Term 2/1-5-problem.py
theseana/miniatur
eed89de0b1e0b96bb32067d5c049c6fd4ca5f872
[ "MIT" ]
null
null
null
n1=17 n2=28 if n1>n2: print('n1 bozorgtar az n2') elif n1<n2: print('n2 bozorgtar az n1') elif n1==n2: print('n1 va n2 barabar hastand')
16.555556
37
0.637584
306d9087bb69542cb8af6dee2a42b1098927e7a0
1,192
py
Python
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
packages/postgres-database/src/simcore_postgres_database/migration/versions/39fa67f45cc0_adds_table_for_scicrunch_rrids.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
"""Adds table for scicrunch rrids Revision ID: 39fa67f45cc0 Revises: 3452ca7b13e9 Create Date: 2020-12-15 18:16:03.581479+00:00 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "39fa67f45cc0" down_revision = "3452ca7b13e9" branch_labels = None depends_on = None ...
25.913043
65
0.605705
307114b26313aa3265e1bd2c48447893e64378ae
2,541
py
Python
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
conexionbasedato.py
feedesa/MyPythonScripts
66f06f9d44ea6c76cfadb1a620bb468176beefe0
[ "MIT" ]
null
null
null
import pymysql from tkinter import messagebox # bbdd= pymysql.connect( host= "localhost", user= "root", passwd="", db= "ejemplo1") # cursor= bbdd.cursor() # cursor.execute("DELETE FROM SOCIOS WHERE ID= 3") # bbdd.commit() # bbdd.close() # bbdd= pymysql.connect( host= "localhost", user= "root", passw...
21
104
0.547816
30713a8fbba0af913226f90bffb00ec0ccd49f74
1,420
py
Python
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
HLTrigger/Configuration/python/Tools/dasFileQuery.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import sys import json import das_client
39.444444
86
0.554225
3073c042c76656cc6f035106fb8e66424b847e5f
477
py
Python
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
00-modules/builtin_modules/pickle_examples.py
cccaaannn/useful_functions
1570cda8c642a39f04ed9f22ebeeab2bfb9e9424
[ "MIT" ]
null
null
null
import pickle # pickle can serialize python objects data = {1:"hi", 2: "there"} # convert to byte byte_data = pickle.dumps(data) # convert back to python object data2 = pickle.loads(byte_data) # ----------using with files---------- filename = "" # write to a file pickle.dump(data, open(filename, "wb" )) with op...
17.666667
58
0.677149
30750377e92de60cf64b84cb659e89e05ec986a3
4,676
py
Python
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
3
2020-10-22T06:18:17.000Z
2021-03-19T16:49:00.000Z
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
11
2019-11-01T23:04:31.000Z
2022-02-10T12:32:11.000Z
appsite/scripts/cactus/loaddb.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
null
null
null
from os import sys, path from resolver.models import * sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) sys.path.append('/home/app') from client.lib.cactus_client import CactusClient
27.833333
111
0.594311
307806ce04eed5ab7fc2db0bbc77902ec9abf704
180
py
Python
Jarvis/features/launch_app.py
HezyCB/JARVIS-2
aa3ba0aa2f4595c48e0bd18211c65a0569684eb4
[ "MIT" ]
76
2021-02-03T14:44:27.000Z
2022-03-28T04:39:36.000Z
Jarvis/features/launch_app.py
HezyCB/JARVIS-2
aa3ba0aa2f4595c48e0bd18211c65a0569684eb4
[ "MIT" ]
9
2021-03-25T03:17:36.000Z
2022-03-19T19:24:42.000Z
Jarvis/features/launch_app.py
HezyCB/JARVIS-2
aa3ba0aa2f4595c48e0bd18211c65a0569684eb4
[ "MIT" ]
77
2021-03-06T08:10:36.000Z
2022-03-25T16:10:05.000Z
import subprocess
20
38
0.627778
307b3ba6e61f0edd61df95b0af94e845aa5436e7
418
py
Python
django-rest-framework-fast/api/v2/views.py
mervatkheir/kite-python-blog-post-code
9a331e5d327cd27c6ecd72926f3e74afd252efb5
[ "MIT" ]
238
2018-10-10T18:50:40.000Z
2022-02-09T21:26:24.000Z
django-rest-framework-fast/api/v2/views.py
mrrizal/kite-python-blog-post-code
597f2d75b2ad5dda97e9b19f6e9c7195642e1739
[ "MIT" ]
38
2019-12-04T22:42:45.000Z
2022-03-12T00:04:57.000Z
django-rest-framework-fast/api/v2/views.py
mrrizal/kite-python-blog-post-code
597f2d75b2ad5dda97e9b19f6e9c7195642e1739
[ "MIT" ]
154
2018-11-11T22:48:09.000Z
2022-03-22T07:12:18.000Z
from characters.models import Character from characters.serializers import CharacterSerializer from rest_framework import generics
29.857143
65
0.832536
307b75907e2ef43110ad5b30dc9de4dad44b596b
1,454
py
Python
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/acl/admin.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.utils.translation import ugettext_lazy as _ from .views import DeleteRole, EditRole, NewRole, RolesList, RoleUsers
37.282051
79
0.586657
307c7a8c88bf6ef5840be4d2b400a14178b101d4
5,138
py
Python
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
71
2020-04-06T08:23:30.000Z
2022-03-21T03:40:11.000Z
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
10
2020-04-11T14:45:52.000Z
2021-08-19T04:44:13.000Z
src/visualization.py
DianaTaukin/DSD-SATN
5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312
[ "Apache-2.0" ]
8
2020-05-19T12:18:49.000Z
2022-03-22T08:04:27.000Z
from base import * import utils.neuralrenderer_render as nr
49.883495
194
0.571039
307f461b2850c76795bf48a0896004e467675d49
455
py
Python
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
3
2015-11-26T11:44:57.000Z
2021-12-07T18:08:53.000Z
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
5
2016-04-22T10:06:41.000Z
2022-02-27T02:53:10.000Z
proxy/test/test_proxy.py
SFFReganDowling/test
c141daca395585710e5ff335e96ffd23ce9c71bb
[ "MIT" ]
null
null
null
import wsgiref.util import flask from proxy import proxy # pylint: disable=W0212
21.666667
64
0.674725
307fe557fde0d2f4724e816d89631bf4c19e5543
186
py
Python
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
import sys if __name__ == '__main__': main()
14.307692
46
0.505376
3080c9c3e2fa02a8d02d8a5c53a2bd5e45b99323
6,756
py
Python
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
17
2021-07-26T01:03:59.000Z
2022-01-23T10:31:56.000Z
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
2
2021-12-10T09:53:48.000Z
2022-01-25T17:08:41.000Z
exps/jets/top_quark_gbdt.py
ranigb/Set-Tree
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
[ "MIT" ]
3
2021-09-14T11:39:35.000Z
2022-01-23T06:51:48.000Z
import os import numpy as np import argparse import logging import random import pickle from pprint import pformat from exps.data import ParticleNetDataset from settree.set_data import SetDataset, OPERATIONS, merge_init_datasets import exps.eval_utils as eval from exps.eval_utils import create_logger data_root = '/ho...
43.87013
112
0.568532
061872db87a6479a4c69671bb3e56ad3b315b346
152
py
Python
pyblnet/__init__.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
null
null
null
pyblnet/__init__.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
null
null
null
pyblnet/__init__.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .blnet_web import BLNETWeb, test_blnet from .blnet_conn import BLNETDirect from .blnet import BLNET
21.714286
43
0.743421
0618cfbdfa965d703fa909c1b6226865c210caa9
452
py
Python
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
5
2021-06-12T13:03:25.000Z
2022-03-14T11:16:04.000Z
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
null
null
null
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
null
null
null
from psycopg2 import connect import requests import json r = requests.get( "http://localhost:9091/api/getDatabaseContainerByContainerID", params = {"containerID":"Metadatabase"} ) r.json() conn=connect( dbname="metadatabase", user = "postgres", host = r.json()['IpAddress'], password = "postgr...
17.384615
64
0.692478
0619dcc1160c6a4dfdbc2934437079b0ef6afaf8
395
py
Python
setup.py
JurgenPalsma/dc-generator
2df92be5d1061864ee654eb413bdd08e599bc3dd
[ "MIT" ]
12
2020-03-26T13:53:27.000Z
2022-03-26T16:26:20.000Z
setup.py
JurgenPalsma/dc-generator
2df92be5d1061864ee654eb413bdd08e599bc3dd
[ "MIT" ]
null
null
null
setup.py
JurgenPalsma/dc-generator
2df92be5d1061864ee654eb413bdd08e599bc3dd
[ "MIT" ]
7
2019-02-23T12:25:10.000Z
2021-12-09T07:20:13.000Z
from setuptools import setup setup(name='dcgenerator', version='0.1', description='Generate dc events from time series', url='https://github.com/JurgenPalsma/dcgenerator', author='Flying Circus', author_email='jurgen.palsma@gmail.com', license='MIT', packages=['dcgenerator'], ...
28.214286
56
0.63038
061a89369cd09d094301833ef16484b3a48346f9
2,801
py
Python
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
103
2021-09-25T03:03:32.000Z
2022-03-20T19:13:48.000Z
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
null
null
null
wonk/config.py
cjduffett/wonk
7ee7d6e444497cb91901ed4bd6de53d5aa574963
[ "Apache-2.0" ]
6
2021-09-27T17:50:23.000Z
2022-02-15T22:44:12.000Z
"""Manage Wonk's configuration.""" import pathlib from typing import Any, Dict, List import yaml from pydantic import BaseModel from toposort import toposort_flatten # type: ignore from wonk.exceptions import UnknownParentError def load_config(config_path: pathlib.Path = None) -> Config: """Load a configura...
30.11828
98
0.672617
061be587da4bb712ec3ad5fa16ba9684df1988f9
5,325
py
Python
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
25
2021-11-08T12:48:09.000Z
2022-03-29T02:56:18.000Z
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
12
2021-10-04T05:59:56.000Z
2022-03-29T06:06:17.000Z
models/quantize_utils.py
ARM-software/sesr
26dd727996809fe13efb0c0f137f259c1b2d0f6e
[ "Apache-2.0" ]
6
2021-11-26T09:27:18.000Z
2022-02-24T14:52:01.000Z
# Copyright 2021 Arm Inc. 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 # # Unless required by applicable law or agree...
40.037594
105
0.637934
061ff9f824e772b63623e52f1ce6ebb062cf98da
3,192
py
Python
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
65
2017-09-24T19:38:34.000Z
2022-01-18T16:07:05.000Z
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
null
null
null
sorting/sorting_train.py
soumen-chakrabarti/gumbel_sinkhorn
aedf8adbc7f123821374da84a23e51d3a0cf54c5
[ "Apache-2.0" ]
22
2017-10-01T12:55:38.000Z
2022-01-13T19:33:15.000Z
# Copyright 2017 Google Inc. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.466667
79
0.635965
0624b48ea9d4dc4aaa2193d16b26d5a5663fbaf2
1,578
py
Python
tests/cli_test.py
chineseluo/opensourcetest
b0d222c8b29ff8f70a740ac2b1588a437d41b761
[ "Apache-2.0" ]
69
2020-10-20T14:25:49.000Z
2022-02-18T02:50:20.000Z
tests/cli_test.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
6
2020-11-23T06:56:09.000Z
2022-03-16T04:33:53.000Z
tests/cli_test.py
aoozoo/opensourcetest
6eaff706c9397847834ef3eef7ad57d5b7f5c5a3
[ "Apache-2.0" ]
8
2021-02-01T03:23:20.000Z
2022-02-18T02:50:47.000Z
#!/user/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------ @Project : opensourcetest @Time : 2020/11/12 15:01 @Auth : chineseluo @Email : 848257135@qq.com @File : cli_test.py @IDE : PyCharm ------------------------------------ """ import os import sys import unittest from op...
27.684211
49
0.591255
0625d68871943fd8a255cbe675fa3fb3bffccaf0
2,364
py
Python
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
null
null
null
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
2
2021-05-28T10:56:22.000Z
2021-05-28T10:56:35.000Z
multicast_client.py
mmuravytskyi/multiprotocol-chat
1a763c53c43d1d7e07ecf066bb0ed3d9dbc73af9
[ "MIT" ]
1
2021-12-31T15:08:27.000Z
2021-12-31T15:08:27.000Z
import socket import struct import config import json import threading import random if __name__ == '__main__': port = random.randint(50_000, 65_000) # pass selected port to the TCP thread, in order to listen on the same port # thread in the background as daemon th = threading.Thread(target=tcp_hand...
32.383562
94
0.629019
0626ef011bc905ed25a0243ba65749c5fcdfec23
18,567
py
Python
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
import numpy as np import torch from collections import defaultdict, deque, OrderedDict import heapq from data_structures import DoublyLinkedList, UndirectedGraph,Fragment import time import sys loss = torch.nn.GaussianNLLLoss() def stitch_objects_tsmn_online_2(o, THRESHOLD_MAX=3, VARX=0.03, ...
41.817568
149
0.522271
06274af203a120ff736b3555a30e9a1003120ec1
4,324
py
Python
BlenderAddon/game_gamekit/config.py
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
1
2017-01-16T11:53:44.000Z
2017-01-16T11:53:44.000Z
BlenderAddon/game_gamekit/config.py
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
null
null
null
BlenderAddon/game_gamekit/config.py
slagusev/gamekit
a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d
[ "MIT" ]
null
null
null
#Copyright (c) 2010 harkon.kr # # ***** BEGIN MIT LICENSE BLOCK ***** # #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy...
30.885714
78
0.563136
06277cec3797e9fe624139a04c8d08693f4a94d7
5,063
py
Python
app/models/__init__.py
LIhDi/python-atendimento-agendamento-back-end
affb722440678415d1d6293e84be3f1743c915b7
[ "MIT" ]
null
null
null
app/models/__init__.py
LIhDi/python-atendimento-agendamento-back-end
affb722440678415d1d6293e84be3f1743c915b7
[ "MIT" ]
null
null
null
app/models/__init__.py
LIhDi/python-atendimento-agendamento-back-end
affb722440678415d1d6293e84be3f1743c915b7
[ "MIT" ]
null
null
null
from enum import Enum
35.405594
109
0.635197
06282a67e7f0b15f67df455cc6ff5d4a87a91f5b
550
py
Python
2018/day01.py
leandrocoding/aoc
8e7d072d2302fcdec3bd441970ccf81d1479f1ef
[ "MIT" ]
1
2020-12-31T13:32:52.000Z
2020-12-31T13:32:52.000Z
2018/day01.py
leandrocoding/aoc
8e7d072d2302fcdec3bd441970ccf81d1479f1ef
[ "MIT" ]
null
null
null
2018/day01.py
leandrocoding/aoc
8e7d072d2302fcdec3bd441970ccf81d1479f1ef
[ "MIT" ]
null
null
null
import os path = os.path.join(os.path.dirname(__file__), 'day01.txt') with open(path) as f: inputdata = f.readlines() print(f"\nAOC 2018 Day 01: \n") print(f"Part 1: {part1()}") print(f"Part 2: {part2()}")
21.153846
59
0.56
062887e67ee371cc8403b61489299bbce2f354a5
2,259
py
Python
setup.py
abhijithneilabraham/signs
1ce8f6fe5468ec9a69d2d29646be3b3e400879d2
[ "MIT" ]
13
2018-06-22T21:30:28.000Z
2022-01-26T20:58:24.000Z
setup.py
abhijithneilabraham/signs
1ce8f6fe5468ec9a69d2d29646be3b3e400879d2
[ "MIT" ]
13
2018-07-29T14:41:52.000Z
2022-02-09T08:22:27.000Z
setup.py
abhijithneilabraham/signs
1ce8f6fe5468ec9a69d2d29646be3b3e400879d2
[ "MIT" ]
3
2018-08-06T06:42:39.000Z
2022-02-10T14:53:02.000Z
#! /usr/bin/env python # # Copyright (C) 2018 Mikko Kotila import os DESCRIPTION = "Signs Text Processing for Deep Learning" LONG_DESCRIPTION = """\ Signs is a utility for text preprocessing, vectorizing, and analysis such as semantic similarity, mainly for the purpose of using unstructured data in deep learning mode...
30.945205
78
0.557769
062a23a5f74a1d166ea135fc95ab88b6338d9bd7
856
py
Python
burstInfer/get_adjusted.py
ManchesterBioinference/burstInfer
933bc76ae8e7fadc36bab1b6bf07ed18e5978a01
[ "Apache-2.0" ]
1
2021-05-05T05:09:53.000Z
2021-05-05T05:09:53.000Z
burstInfer/get_adjusted.py
ManchesterBioinference/burstInfer
933bc76ae8e7fadc36bab1b6bf07ed18e5978a01
[ "Apache-2.0" ]
2
2022-02-08T20:42:30.000Z
2022-02-11T17:57:22.000Z
burstInfer/get_adjusted.py
ManchesterBioinference/burstInfer
933bc76ae8e7fadc36bab1b6bf07ed18e5978a01
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 9 08:46:08 2020 @author: Jon """ from numba import jit import numpy as np
24.457143
80
0.603972
062db264f7e87f340fddb2744772935245986efa
5,542
py
Python
Snow-Cooling/Libraries/HT_thermal_resistance.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
7
2017-06-02T20:31:22.000Z
2021-04-05T13:52:33.000Z
Snow-Cooling/Libraries/HT_thermal_resistance.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
null
null
null
Snow-Cooling/Libraries/HT_thermal_resistance.py
CarlGriffinsteed/UVM-ME144-Heat-Transfer
9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca
[ "CC-BY-3.0" ]
9
2019-01-24T17:43:41.000Z
2021-07-25T18:08:34.000Z
"""Object name: Resistance Function name: serial_sum(R,nori,nend), performs serial sum of a resistance object list from nori to nend Function name: parallel_sum(R,nori,nend), performs parallel sum of a resistance object list from nori to nend """ ### definition of thermal resistance ### from sympy.interactive ...
39.304965
154
0.601227
062fa22aced8965048eae9457b5cdda95f4b8fc2
2,269
py
Python
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
import csv import MySQLdb from datetime import datetime from tabulate import tabulate #should be changed to sys/argv but this is temporary anyway FILENAME = '/tmp/buttons.csv' NUM_ROWS = 2 if __name__ == '__main__': main()
27.011905
79
0.584839
0630137217338e4305c7a3e00109299b6cd31cc9
133
py
Python
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
src/rstatmon/session_manager.py
git-ogawa/raspi-statmon
619d7a8f697cad92437e2f558de2e0a626b5072f
[ "BSD-3-Clause" ]
null
null
null
from flask import session
12.090909
37
0.646617
06315d61570f26c6f3e6abf1ddc7df8cd17de830
44
py
Python
20200428/src/doct/addd_test.py
vultar150/Pyprac
72fab30229ff632df8792eae17492f671e1d60e4
[ "Apache-2.0" ]
null
null
null
20200428/src/doct/addd_test.py
vultar150/Pyprac
72fab30229ff632df8792eae17492f671e1d60e4
[ "Apache-2.0" ]
null
null
null
20200428/src/doct/addd_test.py
vultar150/Pyprac
72fab30229ff632df8792eae17492f671e1d60e4
[ "Apache-2.0" ]
null
null
null
import doctest doctest.testfile("addd.rst")
14.666667
28
0.795455
0633ac683c3ed56680bcb92fef00c1d243facc3c
3,040
py
Python
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
null
null
null
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
null
null
null
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
1
2021-02-28T21:52:47.000Z
2021-02-28T21:52:47.000Z
from flask import Flask, request, url_for, redirect, session, flash, jsonify, abort import json # from flask_login import LoginManager, UserMixin, login_required, logout_user from flask_login import login_user, logout_user, login_required import os from flask_restful import Resource, Api from passlib.apps import ...
33.406593
108
0.608553
0636d326475e08bd9d33f6ec4c15e278d333f1e5
4,554
py
Python
tests/core/test_tile_generator.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
199
2017-10-27T12:13:08.000Z
2022-03-24T09:54:48.000Z
tests/core/test_tile_generator.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
4
2018-03-23T03:15:37.000Z
2019-11-06T15:58:24.000Z
tests/core/test_tile_generator.py
virtualritz/tessagon
af1b1b12a6e92b226f76bfd616bde90d5e15b07c
[ "Apache-2.0" ]
20
2017-10-27T14:41:08.000Z
2021-12-28T10:12:59.000Z
from core_tests_base import CoreTestsBase, FakeTessagon, FakeTileSubClass from tessagon.core.tile_generator import TileGenerator
48.967742
78
0.572244
0637f6c3c9de8ad36608c3847e85336fe19b3b26
645
py
Python
and/ttp/2017/semana4/walkingAmongMountains.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
1
2017-09-16T04:05:31.000Z
2017-09-16T04:05:31.000Z
and/ttp/2017/semana4/walkingAmongMountains.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
9
2017-01-25T19:34:38.000Z
2020-07-27T17:02:09.000Z
and/ttp/2017/semana4/walkingAmongMountains.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
null
null
null
n = input(); mp = [[int(i) for i in raw_input()] for j in xrange(n)] pnt = [[0 for i in xrange(n)] for j in xrange(n)] x, y = [int(i) for i in raw_input().split()] for i in xrange(1,x): pnt[0][i] = pnt[0][i-1]+mp[0][i]-mp[0][i-1] if mp[0][i]>mp[0][i-1] else pnt[0][i-1] for i in xrange(1,y): pnt[i][0] = pnt[i-1][0]+...
37.941176
85
0.525581
0639398dfb32e33d9f80356f092412a5f93dcc65
368
py
Python
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
from . import config as config_module from .resource import resource_config, Resource from .view import ResourceView __all__ = [ "resource_config", "Resource", "ResourceView", ] __version__ = "1.0a2"
19.368421
47
0.709239
063b14d87276bf24509b35e8dd89ae6d528821b9
518
py
Python
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
text = input() key = int(input()) print(decryped_data(text,key))
24.666667
65
0.57722
063bfcdb61c52f48cebfa7c465fedd55623d891f
621
py
Python
setup.py
OseiasBeu/speaker_ass
b7ec38c131b17c502348873f5c90450752e41b9e
[ "MIT" ]
null
null
null
setup.py
OseiasBeu/speaker_ass
b7ec38c131b17c502348873f5c90450752e41b9e
[ "MIT" ]
null
null
null
setup.py
OseiasBeu/speaker_ass
b7ec38c131b17c502348873f5c90450752e41b9e
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from setuptools import setup with open("README.md", "r") as fh: readme = fh.read() setup(name='fala_assis', version='0.0.1', url='https://github.com/OseiasBeu/AssistenteDeFala', license='MIT License', author='Oseias Beu', long_description=readme, long_des...
34.5
110
0.679549
063c305a923cd42896c01fbe6e2e8a0cb43f9912
452
py
Python
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
excript/aulas/aula26_concatena.py
victorers1/anotacoes_curso_python
c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e
[ "MIT" ]
null
null
null
num_int = 5 num_dec = 7.3 val_str = "texto qualquer " print("Primeiro nmero :", num_int) print("O poder do Kakaroto mais de %i mil" %num_dec) print("Ol mundo " + val_str + str(num_int)) print("Concatenando decimal:", num_dec) print("Concatenando decimal: %.10f" %num_dec) print("Concatenando decimal: " + str(num_dec...
30.133333
55
0.721239
063ed7c5bac55d0b3c1f5775f5ccbe6840c1974c
3,603
py
Python
download_data/download_data.py
russelljjarvis/readabilityinscience
353d79f11f2380fd4872242397a255a4b1da675c
[ "MIT" ]
14
2017-03-24T16:01:52.000Z
2021-01-22T17:57:48.000Z
download_data/download_data.py
russelljjarvis/readabilityinscience
353d79f11f2380fd4872242397a255a4b1da675c
[ "MIT" ]
3
2021-03-05T07:49:21.000Z
2022-01-09T00:54:51.000Z
download_data/download_data.py
russelljjarvis/readabilityinscience
353d79f11f2380fd4872242397a255a4b1da675c
[ "MIT" ]
7
2017-08-08T09:46:36.000Z
2021-08-23T16:18:12.000Z
#%% #md """ This script downloads the dataset use in the analysis. __It requires 2 inputs to be specified__ repo_directory and email (see first cell block). """ #%% # Where is the main directory of the repo repo_directory = './' # Pubmed requires you to identify with an email addreesss email = '' #%% import os os...
28.595238
154
0.686095
063efdb8c7270aa4b860492c35df24062791fbc9
297
py
Python
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from sbdc.preprocessing import ContiguousSegmentSet from sbdc.datasets import bbc_load X = bbc_load() cs = ContiguousSegmentSet( min_segment_length=100, small_segment_vanish_strategy="top") cs.fit(X[:, 2]) text_segments = cs.transform() print text_segments[:2]
19.8
51
0.744108
063f03923348104f14d70cb5ad60e17ea2bae4f7
1,586
py
Python
scripts/parser_example.py
sync-or-swim/sos-journaler
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
null
null
null
scripts/parser_example.py
sync-or-swim/sos-journaler
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
27
2020-01-29T05:50:52.000Z
2020-12-20T04:53:01.000Z
scripts/parser_example.py
BryceBeagle/sync-or-swim
f98897b47a8025e74fae4b427af95e07363a64c8
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from pathlib import Path from argparse import ArgumentParser import dateutil.parser if __name__ == "__main__": main()
32.367347
73
0.551702
0640bc1b181bd6fee650f3342edd6931b1ff3c2c
554
py
Python
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
# Base imports from os import environ # Third party imports from graphene import Field, ObjectType, String, Int # Project imports from graphql_api.tenor.schemas.hacker_gif.result import Result from graphql_api.tenor.resolvers.hacker_gif import resolve_hacker_gifs API_KEY = environ.get('TENOR_API_KEY')
23.083333
70
0.743682
06421c486cf48d8751641e5e70de10c89a4e549d
2,367
py
Python
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
null
null
null
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
null
null
null
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
1
2019-04-09T06:50:06.000Z
2019-04-09T06:50:06.000Z
# coding: latin-1 # Flask example: https://realpython.com/flask-by-example-part-1-project-setup/ from flask import Flask from waitress import serve app = Flask(__name__) from functions.date import get_date from functions.connect import connect header = '<html>\n\t<header>\n\t\t<title>\n\t\t\tHome control panel\n\t\...
35.863636
246
0.6485
0643039f86602184a503cb24840a75bcaf50a6c2
10,371
py
Python
handlers.py
martinslabber/tape-library-robot-control
ce4ca180c6d5a6be81702c252a1a8b4cde848b9b
[ "MIT" ]
null
null
null
handlers.py
martinslabber/tape-library-robot-control
ce4ca180c6d5a6be81702c252a1a8b4cde848b9b
[ "MIT" ]
1
2020-05-05T09:08:20.000Z
2020-06-19T10:15:01.000Z
handlers.py
martinslabber/tape-library-robot-control
ce4ca180c6d5a6be81702c252a1a8b4cde848b9b
[ "MIT" ]
1
2020-06-15T09:02:01.000Z
2020-06-15T09:02:01.000Z
# Handlers import json import logging from aiohttp import web def tape_library_handler_wrapper( request, action_name, required_params=None, optional_params=None, skip_lock_check=False, ): """This wrapper performs error handling for the API calls. Raises ------ Multiple exception...
29.05042
89
0.563687