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
ebd3c4127f7770e12f634b24cbfe903d62dc536d
57
py
Python
LUCI/LuciConvenience.py
benjaminvigneron/LUCI
227bb1e0b87aa06012b2809d9af7767a261e0f00
[ "MIT" ]
null
null
null
LUCI/LuciConvenience.py
benjaminvigneron/LUCI
227bb1e0b87aa06012b2809d9af7767a261e0f00
[ "MIT" ]
null
null
null
LUCI/LuciConvenience.py
benjaminvigneron/LUCI
227bb1e0b87aa06012b2809d9af7767a261e0f00
[ "MIT" ]
null
null
null
""" A hodge-podge of convenience functions for luci """
11.4
47
0.701754
ebd48457bf3399a79fee4cd86c9c5e15db08cd7f
235
py
Python
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
Practice/Beginner/Hard Cash(CASH)/solution.py
DipanjanDasIT/CodeChefCodes
f3d6c9ee6598b1c873d614c4aff005c2971a4fc0
[ "MIT" ]
null
null
null
testcases = int(input()) for _ in range(testcases): main_details = list(map(int, input().split())) coin_details = list(map(lambda x: int(x)%main_details[-1], input().split())) print(sum(coin_details)%main_details[-1])
39.166667
81
0.659574
ebd4b3b718d780d64a2bf799562bbb822aab0940
16,347
py
Python
testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/WAN_MANAGER/TS_WANMANAGER_DSL_CheckInternetConnectivity_PrimaryWanForDSLAndWANOE.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2021 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
53.596721
174
0.603475
ebd4fa6e495803588cbdc17f69290991cb8d3593
2,409
py
Python
tests/conftest.py
frnsys/maup
2cd12184e3a0d60128c4991e7e8eb706e3a227bd
[ "MIT" ]
50
2019-05-10T22:38:14.000Z
2022-03-17T20:11:43.000Z
tests/conftest.py
frnsys/maup
2cd12184e3a0d60128c4991e7e8eb706e3a227bd
[ "MIT" ]
42
2019-03-23T13:03:47.000Z
2022-03-14T22:23:57.000Z
tests/conftest.py
frnsys/maup
2cd12184e3a0d60128c4991e7e8eb706e3a227bd
[ "MIT" ]
16
2019-03-25T18:03:04.000Z
2021-09-27T08:16:30.000Z
import geopandas as gp import pytest from shapely.geometry import Polygon import maup CRS = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
23.617647
85
0.550851
ebd5e7cdc22ace82a24160df0b1f3fbcd2c0b44d
1,389
py
Python
plot_benchmark.py
99991/ParallelZipFile
070e54845ac9c42805c1e211992f26b719ed3920
[ "MIT" ]
null
null
null
plot_benchmark.py
99991/ParallelZipFile
070e54845ac9c42805c1e211992f26b719ed3920
[ "MIT" ]
null
null
null
plot_benchmark.py
99991/ParallelZipFile
070e54845ac9c42805c1e211992f26b719ed3920
[ "MIT" ]
null
null
null
""" Plot results of benchmark. Need to run benchmark.py first to generate the file benchmark_results.json. """ import json from collections import defaultdict import matplotlib.pyplot as plt def groupby(values, keyfunc): """Group values by key returned by keyfunc.""" groups = defaultdict(list) for value ...
25.254545
82
0.62275
ebd7565d7fb3e2e6e97cd012dbbf6e7433713b29
872
py
Python
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
null
null
null
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
20
2021-11-08T13:02:33.000Z
2021-11-29T01:03:40.000Z
tests/test_dedge.py
GiliardGodoi/edgesets
b59a600400972ccc82e5e17f2acbb2b45045b40b
[ "MIT" ]
null
null
null
from edgesets import UEdge, DEdge
24.222222
61
0.603211
ebd871d4dbf6a21fb3d86e6cb1fedb9b96ed2220
1,889
py
Python
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
pred.py
amoshyc/tthl-code
d00ba5abd2ade5b55db6a6b95d136041022e3150
[ "Apache-2.0" ]
null
null
null
import argparse from pathlib import Path import numpy as np import scipy import keras from keras.models import load_model from moviepy.editor import VideoFileClip, concatenate_videoclips from tqdm import tqdm if __name__ == '__main__': main()
32.568966
88
0.644256
ebd878270215dfbcc338d538a43df8bec58e8bb9
4,389
py
Python
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
blog/views.py
captainxavier/AutoBlog
44fb23628fe0210a3dcec80b91e1217d27ee9462
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.utils import timezone from django.db.models import Count, Q from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.contrib.auth import login, authenticate, log...
33.503817
98
0.642971
ebd938bccdfd5e3d285fcfe2b39abb7192868335
1,408
py
Python
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
6
2018-11-15T05:48:02.000Z
2021-06-18T02:22:31.000Z
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
null
null
null
data_loader/data_set_loader.py
ys10/WaveRNN
dc4eec65bc1eec59ebc533469d40f072df3a6be6
[ "MIT" ]
1
2021-04-02T11:53:52.000Z
2021-04-02T11:53:52.000Z
# coding=utf-8 import tensorflow as tf
48.551724
120
0.598011
ebda183d9ae687038f19ffe815f5ccbfc5935c5a
1,323
py
Python
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
5
2021-02-18T17:46:39.000Z
2021-12-29T15:48:07.000Z
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
null
null
null
ssht00ls/classes/connections/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
2
2021-03-19T14:06:20.000Z
2021-09-26T14:08:34.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # imports. from ssht00ls.classes.config import * from ssht00ls.classes import utils # the ssh connections object class. # Initialized objects. connections = Connections()
28.76087
118
0.665911
ebdc4515eef225eea20fa462e0ef3055b00b55ae
193
py
Python
_solutions/pandas/series/pandas_series_create_even.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/series/pandas_series_create_even.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/pandas/series/pandas_series_create_even.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
data = np.arange(0, 20, 2) result = pd.Series(data) # Alternative Solution # s = pd.Series(range(0, 20, 2)) # Alternative Solution # s = pd.Series([x for x in range(0, 20) if x % 2 == 0])
16.083333
56
0.61658
ebde515b95808947b4370dd040bc2675c00b8d5a
907
py
Python
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
22
2015-07-21T03:15:36.000Z
2021-02-23T07:58:03.000Z
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2016-03-20T12:06:07.000Z
2018-01-16T10:34:19.000Z
ycyc/tests/__init__.py
MrLYC/ycyc
1938493294fbad3a461cc3a752c5385d30a6e51d
[ "MIT" ]
3
2015-05-08T00:55:38.000Z
2017-02-25T03:30:14.000Z
#!/usr/bin/env python # encoding: utf-8 from contextlib import contextmanager import mock __author__ = 'Liu Yicong' __email__ = 'imyikong@gmail.com'
24.513514
77
0.62183
ebe0baf06bf88a67d2daea2010828c40f054c75a
558
py
Python
corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/data_interfaces/migrations/0016_createscheduleinstanceactiondefinition_specific_start_date.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-11 12:37 from __future__ import absolute_import from __future__ import unicode_literals from django.db import migrations, models
25.363636
75
0.682796
ebe2b6defd1e57b30e21b97498d0791cda38301d
353
py
Python
src/output/console.py
fufuok/PyAgent
f04b0d05e733b9989562934f2cdf1fa7a6af947a
[ "MIT" ]
2
2021-11-19T04:10:18.000Z
2021-12-01T02:39:56.000Z
src/output/console.py
huyingjun/PyAgent
ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4
[ "MIT" ]
1
2021-12-22T14:12:42.000Z
2022-02-07T12:44:59.000Z
src/output/console.py
huyingjun/PyAgent
ff7096634aa8deb617d2fe9d47fd2c6fbf8ff9a4
[ "MIT" ]
3
2021-12-04T02:50:07.000Z
2021-12-27T03:49:35.000Z
# -*- coding:utf-8 -*- """ console.py ~~~~~~~~ - :author: Fufu, 2021/6/7 """ from . import OutputPlugin from ..libs.metric import Metric
16.809524
50
0.552408
ebe364266010bc086bf3592d22da99f969271db1
699
py
Python
tests/slack_sdk/web/test_web_client_issue_1049.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
2,486
2016-11-03T14:31:43.000Z
2020-10-26T23:07:44.000Z
tests/slack_sdk/web/test_web_client_issue_1049.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
721
2016-11-03T21:26:56.000Z
2020-10-26T12:41:29.000Z
tests/slack_sdk/web/test_web_client_issue_1049.py
priya1puresoftware/python-slack-sdk
3503182feaaf4d41b57fd8bf10038ebc99f1f3c7
[ "MIT" ]
627
2016-11-02T19:04:19.000Z
2020-10-25T19:21:13.000Z
import json import unittest from slack_sdk.web import WebClient from tests.slack_sdk.web.mock_web_api_server import ( setup_mock_web_api_server, cleanup_mock_web_api_server, )
25.888889
76
0.688126
ebe421e20d63c5797e08d5c60d06d2e3c0b635d7
734
py
Python
netforce_service/netforce_service/models/task_list.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_service/netforce_service/models/task_list.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_service/netforce_service/models/task_list.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
from netforce.model import Model, fields, get_model, clear_cache from netforce.database import get_connection from datetime import * import time from netforce import access TaskList.register()
30.583333
73
0.667575
ebe505828b5e47c65eb660e7346462d4ff167740
696
py
Python
startpara.py
bhsnsrma/Cisco_Python
e92e272d8335f6b7fef27466a085430dd1694396
[ "Apache-2.0" ]
null
null
null
startpara.py
bhsnsrma/Cisco_Python
e92e272d8335f6b7fef27466a085430dd1694396
[ "Apache-2.0" ]
null
null
null
startpara.py
bhsnsrma/Cisco_Python
e92e272d8335f6b7fef27466a085430dd1694396
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import paramiko,time #using as ssh client client=paramiko.SSHClient() #auto adjut host kue verification with yes or no client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) #time to connect to remote Cisco IOS addr=input("Enter your Router IP :") u='root' p='cisco' #connected with SSh sessio...
27.84
81
0.787356
ebe611c4dd602efaddd3352116b777a3b429c7f6
16,830
py
Python
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
2
2020-03-30T00:06:43.000Z
2021-07-18T18:07:15.000Z
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
null
null
null
sdkcore/SdkCoreTesting/scripts/arsdkgenobjc.py
papachuj/groundsdk-ios
f205f75b11a57f49b39ee558b2e8e39f59a15963
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys, os import arsdkparser #=============================================================================== #=============================================================================== def class_name(name): splitted_name = name.split('_') return "ArsdkFeature" + "".join(x.c...
39.048724
128
0.57148
ebe8666cf6e33ea8f8a62d695ff363e1865d7f05
4,998
py
Python
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
game.py
TheAmmiR/snake-game
7a95a36c1ef7c0e9064bad3976f14b25bdb19f2a
[ "MIT" ]
null
null
null
import numpy import pygame import random from pygame import gfxdraw pygame.init() config_instance = open('settings.txt', 'r', encoding = 'utf-8') settings = file_handler(config_instance) game = Game(settings) game.start()
33.543624
146
0.652461
ccd7c7cddab93c97ea1df7fdefa52d6f4a71efc0
484
py
Python
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
static/python/demo.py
Nota-Bene/Nota-Bene.github.io
57c0a25176627263bb9403e8f660d36cffa9882b
[ "MIT" ]
null
null
null
import time import random
23.047619
64
0.60124
ccdb25e847708f6452a1e362c123c06d0c2c27e2
2,961
py
Python
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
32
2020-09-10T12:54:09.000Z
2022-03-21T08:55:29.000Z
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
null
null
null
pytorch/torchnet.py
sjliu68/Remote-Sensing-Image-Classification
9bd5ec28380961c9e66288dd75c998425622043e
[ "MIT" ]
19
2020-08-10T10:16:47.000Z
2022-02-17T06:52:14.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jan 6 10:07:13 2020 @author: sjliu.me@gmail.com """ import torch import torch.nn as nn import torch.nn.functional as F
32.538462
83
0.55049
ccdce89434f75942295d9616fd82c9bb36f9f529
27
py
Python
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Server/Reports/reports/__init__.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
__all__ = ['templatetags']
13.5
26
0.703704
ccdd11c45e65428dfc4eae76238a33996803a95a
12,491
py
Python
py/manipulation/props/parametric_object/parametric_object_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
null
null
null
py/manipulation/props/parametric_object/parametric_object_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
1
2021-10-05T16:07:56.000Z
2021-10-05T16:07:56.000Z
py/manipulation/props/parametric_object/parametric_object_test.py
LaudateCorpus1/dm_robotics
647bc810788c74972c1684a8d2e4d2dfd2791485
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. # # 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 ag...
41.636667
80
0.629173
ccdd4e7946bbbb66bc7ecddf26b85179c631159d
1,012
py
Python
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
null
null
null
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
null
null
null
rpmreq/actions.py
softwarefactory-project/rpmreq
b9b30cf6a184929db23ac86c8cc037592ee8b6be
[ "Apache-2.0" ]
1
2019-03-10T10:07:04.000Z
2019-03-10T10:07:04.000Z
import hawkey import logging from rpmreq import graph from rpmreq import query log = logging.getLogger(__name__) def last_version(dep, repos): """ Return latest package meeting dep or latest version of dep regardless of version range. :param dep: dependency to meet :param repos: repos to quer...
27.351351
57
0.666008
ccde37610c8f0bf0da8d0c2c4fba8732e91c7b0e
1,033
py
Python
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
app/utils/path_utils.py
Tim-ty-tang/mlflow-fastapi-deploy
c8884a0462fc9f1ce3aa47f9d000af2bffa82123
[ "MIT" ]
null
null
null
from mlflow.tracking import MlflowClient from urllib.parse import urlparse
38.259259
110
0.693127
ccde416df2e474e2d91671ed935f8eaa2f12d8eb
5,350
py
Python
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
null
null
null
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
1
2017-12-18T13:44:01.000Z
2017-12-18T13:44:01.000Z
25h8_service.py
openprocurement/robot_tests.broker.25h8
619ffd180a8f051ef46d62767d54f4796baa122c
[ "Apache-2.0" ]
3
2018-06-11T10:30:05.000Z
2019-08-07T07:55:40.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from datetime import datetime, timedelta from iso8601 import parse_date from pytz import timezone import urllib import json import os
37.152778
114
0.629533
ccdea5fc87e2dce7da82287cb335d1d1997b89b2
125
py
Python
barbearia/email_config.py
FabioMarquesArao/OPE_BARBEARIA
867e7d4b67d9d70b6056b2d817cd3d2561ca7131
[ "MIT" ]
null
null
null
barbearia/email_config.py
FabioMarquesArao/OPE_BARBEARIA
867e7d4b67d9d70b6056b2d817cd3d2561ca7131
[ "MIT" ]
null
null
null
barbearia/email_config.py
FabioMarquesArao/OPE_BARBEARIA
867e7d4b67d9d70b6056b2d817cd3d2561ca7131
[ "MIT" ]
null
null
null
EMAIL_ADDRESS = 'domfigarobarbearia@gmail.com' EMAIL_PASSWORD = 'barbeariadomfigaro' HEROKU_PASSWORD = "Barbeariadomfigaro!"
31.25
46
0.832
ccdfefff2e5b0b2164f247904feff97a33210609
47
py
Python
src/week_5/evaluation/__init__.py
Gost2017/text-analytics-lecture
a51976ba7cf7a992af4c0fba52dc9eef57a8155b
[ "MIT" ]
2
2018-03-05T20:45:11.000Z
2019-03-17T02:59:57.000Z
src/week_5/evaluation/__init__.py
Gost2017/text-analytics-lecture
a51976ba7cf7a992af4c0fba52dc9eef57a8155b
[ "MIT" ]
null
null
null
src/week_5/evaluation/__init__.py
Gost2017/text-analytics-lecture
a51976ba7cf7a992af4c0fba52dc9eef57a8155b
[ "MIT" ]
8
2018-03-02T14:12:35.000Z
2018-04-21T10:31:25.000Z
''' Created on 15/03/2018 @author: pelejaf '''
9.4
21
0.638298
cce06a46f4f819aee94f70073960cb4bc2718754
76
py
Python
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
2
2021-05-19T10:53:25.000Z
2022-01-20T01:20:08.000Z
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
null
null
null
config/prod.py
Cjwpython/WordlessBook
3426ccf3ab2f8848caef98bbc7635407774d32b2
[ "MIT" ]
1
2022-01-20T01:19:56.000Z
2022-01-20T01:19:56.000Z
# coding: utf-8 from config.base import * DEBUG = False SERVER_PORT = 8899
12.666667
25
0.723684
cce181f9f38d4d3c462cfc4fd68ac4c8d8aebe76
6,574
py
Python
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
1
2020-08-21T03:05:08.000Z
2020-08-21T03:05:08.000Z
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
null
null
null
connect_four.py
seanstappas/dynamic-connect-4
f6106f71ac8779513cd80a2f46397bb778e21018
[ "MIT" ]
null
null
null
from __future__ import print_function NUM_ROWS = 7 NUM_COLS = 7 DIRECTIONS = ('E', 'W', 'N', 'S') MOVEMENT_DIFFS = { 'N': (0, -1), 'S': (0, 1), 'E': (1, 0), 'W': (-1, 0) } X_MOVEMENT_DIFFS = { 'N': 0, 'S': 0, 'E': 1, 'W': -1 } Y_MOVEMENT_DIFFS = { 'N': -1, 'S': 1, 'E': 0, ...
29.479821
119
0.605872
cce3ac8194087917625821b84302b29b6337c46a
419
py
Python
web/src/schemas/database.py
disteLLL/saltyboy
d1c777c31d82f3b6e2126d8170446d9b028c37ab
[ "MIT" ]
null
null
null
web/src/schemas/database.py
disteLLL/saltyboy
d1c777c31d82f3b6e2126d8170446d9b028c37ab
[ "MIT" ]
null
null
null
web/src/schemas/database.py
disteLLL/saltyboy
d1c777c31d82f3b6e2126d8170446d9b028c37ab
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Dict from dataclasses_jsonschema import JsonSchemaMixin
22.052632
50
0.78043
cce3bf69f8b9a7979f41b539d693ed801301a438
3,781
py
Python
pyampute/tests/test_mapping.py
RianneSchouten/pyampute
98de0d5591546f958b0106217f60df92dc00fbb9
[ "BSD-3-Clause" ]
3
2022-02-14T02:02:23.000Z
2022-02-20T09:52:41.000Z
pyampute/tests/test_mapping.py
flacle/pyampute
8785f62c52a762dfc3113abe3610ba4893ef5f4b
[ "BSD-3-Clause" ]
24
2022-01-26T15:42:13.000Z
2022-03-12T15:49:56.000Z
pyampute/tests/test_mapping.py
flacle/pyampute
8785f62c52a762dfc3113abe3610ba4893ef5f4b
[ "BSD-3-Clause" ]
1
2022-02-15T19:15:42.000Z
2022-02-15T19:15:42.000Z
import numpy as np import pandas as pd import unittest from pyampute.ampute import MultivariateAmputation from pyampute.exploration.md_patterns import mdPatterns if __name__ == "__main__": unittest.main()
31.773109
100
0.539275
cce820db4737d5f4fc516df5c5d36a6fb126649f
1,560
py
Python
classification.py
alisher0717/one-shot-learning
b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0
[ "MIT" ]
null
null
null
classification.py
alisher0717/one-shot-learning
b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0
[ "MIT" ]
null
null
null
classification.py
alisher0717/one-shot-learning
b1a0814df045e4a9c3bf8e0d7cbc7a0979e9ceb0
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import numpy as np import random import cv2 from keras.utils import to_categorical from keras.models import Model from keras.layers import Dropout, Lambda, Dense, Conv2D, Flatten, Input, MaxPooling2D from keras.optimizers import RMSprop from ...
38.04878
104
0.688462
cce86a805da411d647ff0f543066e46f420f6023
596
py
Python
setup.py
holtrop/simple-svn-browser
62641493b95535bf0efb9855fec3dd496b37764e
[ "Zlib" ]
null
null
null
setup.py
holtrop/simple-svn-browser
62641493b95535bf0efb9855fec3dd496b37764e
[ "Zlib" ]
null
null
null
setup.py
holtrop/simple-svn-browser
62641493b95535bf0efb9855fec3dd496b37764e
[ "Zlib" ]
null
null
null
import sys if sys.version_info < (3, 5): print("Python 3.5 is required for this package") sys.exit(1) from setuptools import setup setup(name = "simplesvnbrowser", version = "0.0.1", description = "A simple subversion repository browser application", url = "https://github.com/holtrop/simple-...
29.8
73
0.634228
cce90a7d4c65cdb80621e7e28495129d068861f2
2,092
py
Python
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
Synchro-Update-Vols.py
Apoorb/HCS_Synchro-Reader
d89428069584f420d584e2011a5cf21cd0a51f8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 30 10:02:36 2019 @author: abibeka Purpose: Batch update synchro volumes """ # 0.0 Housekeeping. Clear variable space #****************************************************************************************** from IPython import get_ipython #run magic commands ipython =...
31.223881
110
0.663002
ccea292c2e611183f7753e3277974ac6da80216f
5,695
py
Python
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
4
2017-08-27T16:53:56.000Z
2022-03-27T10:48:02.000Z
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
3
2019-01-30T20:04:00.000Z
2021-06-21T02:11:17.000Z
matplotlib.indigoPlugin/Contents/Server Plugin/chart_multiline.py
DaveL17/matplotlib
857daf4222390d021defb87b57c3360fa12af5ab
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Creates the multiline text charts Given the unique nature of multiline text charts, we use a separate method to construct them. ----- """ # Built-in Modules import pickle import sys import textwrap import traceback # Third-party Modules # Note the order and structu...
33.5
114
0.545391
cceb89993da7a1b69dbd4927d78012815ff5b4de
1,814
py
Python
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/apigw-manager/tests/apigw_manager/apigw/test_command.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making - PaaS (BlueKing-PaaS) available. * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in compliance...
37.791667
118
0.711136
ccece4c2f4cefc9d065c0f4184c45e006ab941e8
1,342
py
Python
tests/test_common.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
6
2020-09-25T07:38:00.000Z
2022-03-11T09:09:22.000Z
tests/test_common.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-10-29T08:39:34.000Z
2021-02-09T14:07:09.000Z
tests/test_common.py
tussedrotten/pylie
df34b820b9d9273bc9c4287e559e5d5837faf794
[ "BSD-3-Clause" ]
1
2020-11-21T12:33:44.000Z
2020-11-21T12:33:44.000Z
from pylie.common import * from pylie import SO3
29.822222
63
0.688525
ccedbc549ffc192d24b74e12a04695a4d740a2b9
1,409
py
Python
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
null
null
null
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
6
2015-01-28T00:48:39.000Z
2015-01-28T00:51:48.000Z
sources/base.py
chenders/hours
878e0fa57ad4810851fd2bab529e7e1525cf9fbb
[ "MIT" ]
null
null
null
import pytz from datetime import timedelta from dateutil import parser from django.utils.text import Truncator from django.db import IntegrityError from core.models import Data
31.311111
76
0.648687
ccede3910d44ac17adace50d3005cb0696103c2a
398
py
Python
roadmaps/signal_listeners.py
adambober/roadmap_builder
6d48fc4ff65de0bb667f2495004d55f6398b5536
[ "MIT" ]
3
2021-12-04T00:25:34.000Z
2022-03-20T17:33:52.000Z
roadmaps/signal_listeners.py
adambober/roadmap_builder
6d48fc4ff65de0bb667f2495004d55f6398b5536
[ "MIT" ]
null
null
null
roadmaps/signal_listeners.py
adambober/roadmap_builder
6d48fc4ff65de0bb667f2495004d55f6398b5536
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from roadmaps.models import RoadmapNode from roadmaps.services.progress import ProgressPropagator
33.166667
63
0.836683
ccf0191c3e20264408fdd3e37fe77537c8aef935
7,725
py
Python
tests/datastructures_tests/intensity_data_test.py
czbiohub/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
6
2019-10-30T23:00:01.000Z
2021-03-02T19:09:07.000Z
tests/datastructures_tests/intensity_data_test.py
czbiohub/ReconstructOrder
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
14
2019-07-08T22:51:29.000Z
2019-07-13T15:44:01.000Z
tests/datastructures_tests/intensity_data_test.py
mehta-lab/reconstruct-order
e729ae3871aea0a5ec2d42744a9448c7f0a93037
[ "Unlicense" ]
2
2020-05-02T23:28:36.000Z
2020-07-16T23:46:46.000Z
import numpy as np import pytest from numpy.testing import assert_array_equal from ReconstructOrder.datastructures.intensity_data import IntensityData # ==== test basic construction ===== def test_basic_constructor_nparray(): """ test assignment using numpy arrays """ int_data = IntensityData() ...
24.759615
77
0.655016
ccf118cf4e661c54ae6e3a8fa5192d55fe0bbd47
1,722
py
Python
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
1
2022-03-22T14:59:01.000Z
2022-03-22T14:59:01.000Z
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
configs/mario_pg_config.py
Shiien/verify_rl_torch
45866609ac55fcf99aaaa89df94573acf35580d2
[ "MIT" ]
null
null
null
import torch
43.05
119
0.624855
ccf122ab24b6c118407351673ac8790f51122e47
505
py
Python
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
31-100/31-40/34.py
higee/project_euler
2ecdefb6e4a588f50cea47321c88ee7c7ac28110
[ "MIT" ]
null
null
null
if __name__ == "__main__": global fac_dic fac_dic = {n : fac(n) for n in range(10)} answer = list(main()) print(answer)
21.041667
57
0.584158
ccf2d7d2d0ffc342a84d86056b65cf383d097b4c
7,638
py
Python
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
audio_processing.py
poria-cat/Transformer-TTS-Pytorch
1e9e2dccc16c17372bf86ca73001f76645f53338
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import torchaudio import numpy as np from scipy.signal import get_window from librosa.util import pad_center, tiny from librosa.filters import window_sumsquare from librosa.filters import mel as librosa_mel_fn def dynamic_range_compression(x, C=1, clip_val=1e-5): """ ...
40.2
161
0.660775
ccf38eaa3eb535456d8a6a2a6262774cda8e86a7
13,771
bzl
Python
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
toolchain/ndk_cc_toolchain_config.bzl
jbeich/skcms
9c30a95f0f167ee1513e5a1ea6846b15a010385c
[ "BSD-3-Clause" ]
null
null
null
"""This module defines the ndk_cc_toolchain_config rule. This file is based on the `external/androidndk/cc_toolchain_config.bzl` file produced by the built-in `android_ndk_repository` Bazel rule[1], which was used to build the SkCMS repository up until this revision[2]. The paths in this file point to locations insid...
34.002469
188
0.559872
ccf57840058ae1e39f456a4f292c8353027f974d
7,149
py
Python
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
VirtualJudgeSpider/OJs/HDUClass.py
mr-kkid/OnlineJudgeSpider
c83c01d8e989ae87834bdabdb3fae0984eae2eaa
[ "MIT" ]
null
null
null
import re from http import cookiejar from urllib import request, parse from bs4 import BeautifulSoup from VirtualJudgeSpider import Config from VirtualJudgeSpider.Config import Problem, Spider, Result from VirtualJudgeSpider.OJs.BaseClass import Base
41.807018
120
0.55854
ccf57bf381b881ac46ecdef94c8bf2a01ef756ae
705
py
Python
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
onlineJudge/baekjoon/DFS/Q2667.py
dahyeong-yun/prtc_coding-test-py
f082e42cc47d7da912bd229b355a813f2d38fabb
[ "MIT" ]
null
null
null
''' ''' n = int(input()) # square_map = [] for i in range(n): square_map.append(list(map(int, input()))) ''' ''' _house_count = 0 house = [] bundle = 0 for i in range(n): for j in range(n): if dfx(i, j): house.append(_house_count) _house_count = 0 bundle += ...
16.022727
46
0.486525
ccf5cf766e01ecc826d0e351e27a11fbaff7d8c0
3,329
py
Python
openhivenpy/types/attachment.py
FrostbyteBot/hiven.py
1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e
[ "MIT" ]
9
2020-11-13T19:07:54.000Z
2021-01-30T23:12:57.000Z
openhivenpy/types/attachment.py
FrostbyteBot/hiven.py
1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e
[ "MIT" ]
46
2020-11-05T20:32:41.000Z
2021-04-03T22:48:18.000Z
openhivenpy/types/attachment.py
FrostbyteBot/openhiven.py
1a2831cf4e0512cc8dd2b8f8f5d04b582158a21e
[ "MIT" ]
2
2020-12-19T14:27:07.000Z
2021-01-29T10:52:33.000Z
""" Attachment File which implements the Hiven Attachment type and its methods (endpoints) --- Under MIT License Copyright 2020 - 2021 Luna Klatzer 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 Softw...
34.677083
79
0.714329
ccf684f8b04fadc89a621f3af0e959e3165d4fdf
1,530
py
Python
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
null
null
null
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
7
2020-02-11T23:41:11.000Z
2022-01-13T01:04:03.000Z
queue_task/views.py
emoryBlame/queue_server
946345111359d5001244eb0cc8fd1b8acc50dd3f
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Task from rest_framework import serializers from rest_framework.response import Response from rest_framework.decorators import api_view # Create your views here.
23.90625
110
0.698693
ccf6ab1d7fc1142582573ac98bff25dde4b1d9c1
471
py
Python
test_project/server/settings/environments/development.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
13
2018-10-06T13:04:54.000Z
2020-08-14T13:03:01.000Z
test_project/server/settings/environments/development.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
6
2018-10-09T15:45:43.000Z
2021-06-23T12:31:51.000Z
test_project/server/settings/environments/development.py
wemake-services/wemake-django-rest
f1ab3b4b5bf3bf04866e7695667049fefe7b98f1
[ "MIT" ]
2
2018-11-16T02:58:41.000Z
2020-07-18T18:19:15.000Z
# -*- coding: utf-8 -*- """ This file contains all the settings that defines the development server. SECURITY WARNING: don't run with debug turned on in production! """ import logging from typing import List from server.settings.components.common import INSTALLED_APPS, MIDDLEWARE # Setting the development status: ...
19.625
83
0.755839
ccf715d5c23093aaf3f22692cfa66ef6452f1f55
605
py
Python
test/sample_robot_api.py
things-factory/vision-client-python
b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d
[ "MIT" ]
null
null
null
test/sample_robot_api.py
things-factory/vision-client-python
b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d
[ "MIT" ]
null
null
null
test/sample_robot_api.py
things-factory/vision-client-python
b76e1fb3e1f4537de7a5fa07330c137f37a9cc5d
[ "MIT" ]
null
null
null
import sys import json from random import choice, random import time from pyaidoop_graphql_client.api import Client if __name__ == "__main__": main(sys.argv)
24.2
93
0.661157
ccf716c91df18440671ec6222d7ac8edd7636308
6,275
py
Python
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
1
2016-11-12T01:16:32.000Z
2016-11-12T01:16:32.000Z
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
null
null
null
dispotrains.webapp/src/analysis/all_stations.py
emembrives/dispotrains
6ef69d4a62d60a470ed6fd96d04e47d29a0ae44f
[ "Apache-2.0" ]
2
2016-05-20T21:04:15.000Z
2020-02-02T15:25:40.000Z
#!/bin/env python3 """ Extracts all metro and RER stations from an OSM dump. """ import xml.etree.cElementTree as ET import argparse import csv from math import radians, cos, sin, asin, sqrt def extract_stations_from_dump(dump_path): """Extract a list of |Station|s from an XML dump.""" tree = ET.parse(dump_p...
32.179487
94
0.629163
ccf73deff0cd7b3da75f4fe279624fa28407626b
493
py
Python
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
null
null
null
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
null
null
null
scripts/insert_plots.py
hamzaMahdi/sphero_formation
71dd4a8097c578f9237ed1f65e3debdcc3a8cc5b
[ "MIT" ]
1
2019-11-06T21:27:51.000Z
2019-11-06T21:27:51.000Z
# note : this does not create the link between the map and the world. It only spawns the robots. # Please make sure to go back and manually add the path to the bitmap file file_name = 'plots.txt' f = open("../new_results/" + file_name, "w+") counter = 1 for i in range(1, 10): for j in range(1, 6): f.write('...
35.214286
102
0.622718
ccf80cabc3a7e5b0b42749bb4a83f5a36f41004c
5,615
py
Python
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
lib/aquilon/worker/formats/entitlement.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2018-2019 Contributor # # 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 #...
37.18543
79
0.655565
ccf83380f75272da17e827a8354142f3491d9b15
1,618
py
Python
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
133
2019-07-24T11:32:34.000Z
2022-03-25T02:43:55.000Z
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
396
2019-07-24T06:30:19.000Z
2022-03-24T07:59:07.000Z
tests/test_fixture.py
macneiln/py4web
ed50294d650fb466a9a06c26b8f311091b2d0035
[ "BSD-3-Clause" ]
159
2019-07-24T11:32:37.000Z
2022-03-28T15:17:05.000Z
from types import SimpleNamespace import pytest import threading from py4web.core import Fixture result = {'seq': []} foo = Foo()
22.164384
64
0.631644
ccf92b8e5eba6aedbf6d4f91a3902a09d0c24f3f
13,049
py
Python
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/objects/components/object_inventory_component.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\objects\components\object_inventory_component.py # Compiled at: 2020-10-06 03:00:48 # Size of source...
58.515695
486
0.683884
ccf98db2c183a542430a289ff4949ad327d07cde
786
py
Python
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
sqs_consumer/management/commands/process_queue.py
guilhermebferreira/sqs-consumer
30e2a636219b7784e43d851570255193e258678d
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from django.core.management import BaseCommand, CommandError from sqs_consumer.worker.service import WorkerService
34.173913
95
0.667939
ccfb0220e26dd4f7df5cf240f68d1efa01669ca5
212
py
Python
helper_functions.py
lindsayad/python
4b63a8b02de6a7c0caa7bb770f3f22366e066a7f
[ "MIT" ]
null
null
null
helper_functions.py
lindsayad/python
4b63a8b02de6a7c0caa7bb770f3f22366e066a7f
[ "MIT" ]
null
null
null
helper_functions.py
lindsayad/python
4b63a8b02de6a7c0caa7bb770f3f22366e066a7f
[ "MIT" ]
null
null
null
import numpy as np
26.5
73
0.584906
ccfb1aaf66833ea1e34ee0d93d00ff4476230fb8
4,890
py
Python
tests/test_filesystem_paths.py
NinjasCL-archive/masonite-fs
333c11d19927f9cf371d12bb87af88b0ca3dd698
[ "MIT" ]
2
2018-08-18T01:15:33.000Z
2018-08-18T17:28:08.000Z
tests/test_filesystem_paths.py
NinjasCL-archive/masonite-fs
333c11d19927f9cf371d12bb87af88b0ca3dd698
[ "MIT" ]
null
null
null
tests/test_filesystem_paths.py
NinjasCL-archive/masonite-fs
333c11d19927f9cf371d12bb87af88b0ca3dd698
[ "MIT" ]
null
null
null
# coding: utf-8 from the import expect from filesystem import paths from filesystem.paths import root
37.045455
91
0.740082
ccfb60a5f0e99b7473379c8b27f4c338be01c980
2,222
py
Python
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
2
2021-07-10T05:56:04.000Z
2021-08-04T14:56:47.000Z
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
21
2021-04-27T06:05:05.000Z
2021-11-01T23:19:36.000Z
openpharmacophore/tests/test_zinc.py
dprada/OpenPharmacophore
bfcf4bdafd586b27a48fd5d1f13614707b5e55a8
[ "MIT" ]
3
2021-06-21T19:09:47.000Z
2021-07-16T01:16:27.000Z
from openpharmacophore.databases.zinc import get_zinc_urls, discretize_values import pytest
35.83871
83
0.564806
ccfbb57a4333021e3f1feae704010ec46562da66
3,608
py
Python
2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py
APMonitor/arduino
f36e65a70dd7122d1829883899e40e56bf6c4279
[ "Apache-2.0" ]
71
2017-06-09T06:15:09.000Z
2022-01-19T12:02:22.000Z
2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py
rezabbasi/arduino
4d9ea70688427e610228036c44560a11246930e1
[ "Apache-2.0" ]
5
2017-09-14T15:03:39.000Z
2020-04-24T01:05:03.000Z
2_Regression/Energy_balance_MIMO/Python_minimize/mimo_fit.py
rezabbasi/arduino
4d9ea70688427e610228036c44560a11246930e1
[ "Apache-2.0" ]
49
2017-05-11T04:02:25.000Z
2021-11-24T17:56:14.000Z
import numpy as np import matplotlib.pyplot as plt from scipy.integrate import odeint from scipy.optimize import minimize import pandas as pd # generate data file from TCLab or get sample data file from: # http://apmonitor.com/pdc/index.php/Main/ArduinoEstimation2 # Import data file # Column 1 = time (t) # ...
26.335766
62
0.560421
ccfbcfc80bfd4176875b1439857777b6f9e25659
4,052
py
Python
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
Day12/Part2.py
PeterDowdy/AdventOfCode2019
93078b5fc2ef78cdb1b860a3535839dc718c9f5f
[ "MIT" ]
null
null
null
from math import gcd moons = [(-16, -1, -12), (0, -4, -17), (-11, 11, 0), (2, 2, -6)] velocities = [(0,0,0),(0,0,0),(0,0,0),(0,0,0)] x_positions = set() y_positions = set() z_positions = set() x_positions.add((moons[0][0],moons[1][0],moons[2][0],moons[3][0],velocities[0][0],velocities[1][0],velocities[2][0],velociti...
57.070423
159
0.637957
ccfc779a1ced7c9e46cfbe2591e7ace76abaf9a2
643
py
Python
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
1
2021-03-26T05:07:20.000Z
2021-03-26T05:07:20.000Z
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
null
null
null
tests/test.py
y95847frank/AutomatedTicketBot
66754758430c7a1240b69259e32fcb452639c134
[ "MIT" ]
null
null
null
import AutoTicketsBot as tBot configDestination = 'var/config.yml' args = tBot.addArgs() config = tBot.configRead(configDestination) if tBot.configWrite(configDestination, args, config) is True: print("Successfully store new config to {}".format(configDestination)) ticketsBot = tBot.AutoTicketsBot(config) #schedul...
29.227273
71
0.785381
ccfc9563a897ecbadd4690eb294f53f692567173
1,834
py
Python
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
03/main.py
cjcbusatto/advent-of-code-2020
7868a6dfe9233809e47c27dd2afd2a287fbf4906
[ "MIT" ]
null
null
null
extended_map = get_map_from_input('input') number_of_threes = traverse_map_counting_trees(extended_map, 1, 1) print(f"1x1 => {number_of_threes}") number_of_threes = traverse_map_counting_trees(extended_map, 3, 1) print(f"3x1 => {number_of_threes}") number_of_threes = traverse_map_counting_trees(extended_map, 5, 1...
26.970588
136
0.657579
ccfca93576d38c7241f634e36cb1fb7366307974
343
py
Python
{{cookiecutter.project_slug}}/sources/conftest.py
AsheKR/cookiecutter-django
d0402aefcc2eeaffa747faa7ef50ad97286bfcca
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/sources/conftest.py
AsheKR/cookiecutter-django
d0402aefcc2eeaffa747faa7ef50ad97286bfcca
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/sources/conftest.py
AsheKR/cookiecutter-django
d0402aefcc2eeaffa747faa7ef50ad97286bfcca
[ "BSD-3-Clause" ]
null
null
null
import os import sys import pytest from django.contrib.auth import get_user_model from users.tests.factories import UserFactory sys.path.append(os.path.join(os.path.dirname(__file__), 'app')) User = get_user_model()
15.590909
63
0.752187
ccfd2ea93b839a028809fe07b95b0245dfeb7f66
191
py
Python
src/numba_vectormath.py
arkavo/Maxwell-ecosystem
d956ea892ebe581b8b2c0325df59fa58a6d5db9a
[ "Apache-2.0" ]
null
null
null
src/numba_vectormath.py
arkavo/Maxwell-ecosystem
d956ea892ebe581b8b2c0325df59fa58a6d5db9a
[ "Apache-2.0" ]
null
null
null
src/numba_vectormath.py
arkavo/Maxwell-ecosystem
d956ea892ebe581b8b2c0325df59fa58a6d5db9a
[ "Apache-2.0" ]
null
null
null
import numpy as np import numba from numba import jit
19.1
39
0.581152
ccfe49b139702ec62120531b875985143b174591
751
py
Python
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
kattis/k_ones.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
''' Smallest factor to reach a number composed of digit '1' Status: Accepted ''' ############################################################################### def main(): """Read input and print output""" while True: try: number = int(input()) except EOFError: break...
22.757576
79
0.370173
ccfe72e943c07b30fc915317d0d3a67d9c72f9cc
2,190
py
Python
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
4
2018-07-29T10:48:53.000Z
2018-08-23T13:02:15.000Z
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
7
2018-11-15T15:17:45.000Z
2021-05-11T19:58:55.000Z
back/api/message.py
LyonParapente/EventOrganizer
b263c2ce61b6ad1d6c414eb388ca5ee9492a9b73
[ "MIT" ]
null
null
null
from flask import request, abort from flask_restful_swagger_3 import Resource, swagger from flask_jwt_extended import jwt_required, get_jwt_identity, get_jwt from models.message import Message, MessageCreate from database.manager import db from emails import send_new_message
27.721519
109
0.590411
ccff8fb01ea3f497743ce74c1e9b8975a96ada59
5,544
py
Python
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
346
2015-06-07T19:55:15.000Z
2022-03-18T07:55:10.000Z
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
202
2015-06-16T15:28:05.000Z
2022-01-06T18:26:13.000Z
PYTHON/dgemm_omp.py
dbaaha/Kernels
232fc44fc9427dd7b56862cec2d46296c467b4e8
[ "BSD-3-Clause" ]
101
2015-06-15T22:06:46.000Z
2022-01-13T02:56:02.000Z
#!/usr/bin/env python3 # # Copyright (c) 2015, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
37.459459
100
0.590729
ccff9565d795674cf4b93f869a86dae2c49d6c9e
1,859
py
Python
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
DS_Algo/quick_sort.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
# coding:utf-8 # example 17: quick_sort.py import random # def quick_sort(array): # if len(array) <= 1: # return array # pivot_idx = 0 # pivot = array[pivot_idx] # less_part = [num for num in array[pivot_idx + 1:] if num <= pivot] # great_part = [num for num in array[pivot_idx + 1:] if nu...
27.338235
72
0.603012
ccffcaa195c026f029865dcd87b3fe8d69e0f7e3
3,129
py
Python
xquotient/test/historic/test_undefertask1to2.py
twisted/quotient
95f2515219da99a77905852bc01deeb27e93466e
[ "MIT" ]
6
2016-02-15T07:33:39.000Z
2018-12-03T17:20:58.000Z
xquotient/test/historic/test_undefertask1to2.py
DalavanCloud/quotient
95f2515219da99a77905852bc01deeb27e93466e
[ "MIT" ]
1
2021-02-18T20:01:02.000Z
2021-02-18T20:01:02.000Z
xquotient/test/historic/test_undefertask1to2.py
DalavanCloud/quotient
95f2515219da99a77905852bc01deeb27e93466e
[ "MIT" ]
4
2015-11-15T17:28:20.000Z
2018-12-03T17:20:48.000Z
from zope.interface import implements from epsilon.extime import Time from axiom.iaxiom import IScheduler from axiom.item import Item from axiom.attributes import text from axiom.test.historic.stubloader import StubbedTest from xquotient.exmess import _UndeferTask, Message, INBOX_STATUS, CLEAN_STATUS from xquotient....
33.645161
78
0.683925
69003cd799998d8973cda2d04b1c36351df5836d
2,304
py
Python
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
1
2020-07-31T01:31:52.000Z
2020-07-31T01:31:52.000Z
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
12
2020-07-20T18:55:15.000Z
2021-09-23T05:08:26.000Z
tests/test_zestimation.py
jibanCat/gpy_dla_detection
4d987adec75a417313fdc6601ee41a0ea60a0a2e
[ "MIT" ]
null
null
null
""" A test file for testing zestimation The learned file could be downloaded at [learned_zqso_only_model_outdata_full_dr9q_minus_concordance_norm_1176-1256.mat] (https://drive.google.com/file/d/1SqAU_BXwKUx8Zr38KTaA_nvuvbw-WPQM/view?usp=sharing) """ import os import re import time import numpy as np from .test_selec...
29.538462
123
0.69401
6901b7acffb34f8f8d84f5944353762bec3fbb2a
2,981
py
Python
tests/test_xml_parser_quart.py
criteo/quart
7d018837d7b2f372da3fa83b1b78e4067d89557a
[ "Apache-2.0" ]
1
2017-12-07T11:37:51.000Z
2017-12-07T11:37:51.000Z
tests/test_xml_parser_quart.py
muneebirfan/quart
7d018837d7b2f372da3fa83b1b78e4067d89557a
[ "Apache-2.0" ]
null
null
null
tests/test_xml_parser_quart.py
muneebirfan/quart
7d018837d7b2f372da3fa83b1b78e4067d89557a
[ "Apache-2.0" ]
2
2018-06-26T15:28:10.000Z
2022-02-21T11:29:35.000Z
import pytest from quart.xml_parser_quart import fusion_vulnerability_dictionaries EXPECTED_1 = \ {u'1': {'category': u'Category 1', 'consequence': u'Consequence 1', 'diagnosis': u'Diagnosis 1', 'hosts': [{'ip': u'1.1.1.1', 'name': 'host1'}, {'ip': u'2.2.2...
36.353659
77
0.495136
6902524469a111f980df924fbfd0b52b4036a41b
1,651
py
Python
poker/poker_base/test.py
chitty/poker_base
913c13b89a0c4e4c0ec7e3b01495a96309a02f26
[ "MIT" ]
null
null
null
poker/poker_base/test.py
chitty/poker_base
913c13b89a0c4e4c0ec7e3b01495a96309a02f26
[ "MIT" ]
null
null
null
poker/poker_base/test.py
chitty/poker_base
913c13b89a0c4e4c0ec7e3b01495a96309a02f26
[ "MIT" ]
null
null
null
from poker import poker, kind, two_pair, hand_rank, card_ranks, best_hand def test(): "Test cases for the functions in poker program" sf = "6C 7C 8C 9C TC".split() # Straight Flush fk = "9D 9H 9S 9C 7D".split() # Four of a Kind fh = "TD TC TH 7C 7D".split() # Full House tp = "5S 5D AC AS KS".sp...
35.12766
73
0.574197
690437062ad9bc153f8073ff84de085091fb62c1
5,249
py
Python
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
303
2016-03-03T00:44:37.000Z
2022-03-14T03:43:38.000Z
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
52
2016-02-26T21:41:31.000Z
2021-06-27T08:33:51.000Z
megaman/embedding/base.py
jakevdp/Mmani
681b6cdbd358b207e8b6c4a482262c84bea15bd7
[ "BSD-2-Clause" ]
67
2016-03-03T22:38:35.000Z
2022-01-12T08:03:47.000Z
""" base estimator class for megaman """ # Author: James McQueen -- <jmcq@u.washington.edu> # LICENSE: Simplified BSD https://github.com/mmp2/megaman/blob/master/LICENSE import numpy as np from scipy.sparse import isspmatrix from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils.validation impo...
36.451389
81
0.599543
6905dd86176dcedc7d4f61bca47e2cde2c5fae84
8,048
py
Python
pymorsegui.py
mmgrant73/pymorsecode
594c341817598e86a7be766ca591a99cd8db0e94
[ "MIT" ]
1
2021-04-15T03:26:32.000Z
2021-04-15T03:26:32.000Z
pymorsegui.py
mmgrant73/pymorsecode
594c341817598e86a7be766ca591a99cd8db0e94
[ "MIT" ]
null
null
null
pymorsegui.py
mmgrant73/pymorsecode
594c341817598e86a7be766ca591a99cd8db0e94
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # generated by wxGlade 0.9.4 on Sat Feb 1 19:14:54 2020 # import wx from pymorsecode import MorseCode # begin wxGlade: dependencies # end wxGlade # begin wxGlade: extracode # end wxGlade # end of class MyFrame # end of class MyApp if __name__ == "__main__": a...
44.21978
146
0.650596
690613c67cd63310af621f929b186a79abbe5cd8
1,032
py
Python
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
4
2020-01-21T21:46:42.000Z
2021-02-24T18:30:24.000Z
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
1,313
2019-10-18T22:48:16.000Z
2022-03-30T17:42:47.000Z
ppr-api/migrations/versions/d3f96fb8b8e5_update_user_profile_definition.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
201
2019-10-18T21:34:41.000Z
2022-03-31T20:07:42.000Z
"""update user profile definition Revision ID: d3f96fb8b8e5 Revises: 2b13f89aa1b3 Create Date: 2021-10-18 15:45:33.906745 """ from alembic import op import sqlalchemy as sa from alembic_utils.pg_function import PGFunction from sqlalchemy import text as sql_text # revision identifiers, used by Alembic. revision = 'd3...
30.352941
94
0.738372
6906a12f2953d09ffd721ec5d1611ca70e378fb9
2,948
py
Python
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
141
2017-12-12T21:45:53.000Z
2022-03-25T07:03:39.000Z
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
32
2015-10-05T14:09:52.000Z
2021-05-30T10:28:41.000Z
questions/available-captures-for-rook/Solution.py
marcus-aurelianus/leetcode-solutions
8b43e72fe1f51c84abc3e89b181ca51f09dc7ca6
[ "MIT" ]
56
2015-09-30T05:23:28.000Z
2022-03-08T07:57:11.000Z
""" On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns. These are given as characters 'R', '.', 'B', and 'p' respectively. Uppercase characters represent white pieces, and lowercase characters represent black pieces. The rook moves as in the rules of Chess:...
39.837838
353
0.402307
6908c59f82b4dce18b0359af8fb11f6688af03cf
3,200
py
Python
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_sin.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
42.105263
89
0.637813
690958b4739c7c62384b219e19362e11eacddb43
968
py
Python
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
9
2021-12-21T02:58:21.000Z
2022-01-25T14:00:06.000Z
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
51
2022-01-01T15:59:58.000Z
2022-03-26T21:25:42.000Z
src/simmate/website/core_components/filters/dynamics.py
laurenmm/simmate-1
c06b94c46919b01cda50f78221ad14f75c100a14
[ "BSD-3-Clause" ]
7
2022-01-01T03:44:32.000Z
2022-03-29T19:59:27.000Z
# -*- coding: utf-8 -*- from simmate.website.core_components.filters import ( Structure, Forces, Thermodynamics, Calculation, ) from simmate.database.base_data_types.dynamics import ( DynamicsRun as DynamicsRunTable, DynamicsIonicStep as DynamicsIonicStepTable, )
25.473684
59
0.599174
690b4a69f377b976688d836e3b5ab8c8dc9b6884
3,821
py
Python
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
webproject/taller1/algoritmoCoseno.py
jairocollante/sr
f395c0f9aef804ec0100edcfe1a1c6ccab2494a1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from taller1.models import Userid_Timestamp_Count
43.420455
108
0.741952
690bf7914b0e1d6a8fa65445caa5e076e78c0f57
5,646
py
Python
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
66
2018-09-21T22:55:34.000Z
2022-03-22T14:29:57.000Z
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
4
2018-10-04T22:09:01.000Z
2022-03-31T16:18:38.000Z
python/dataconversion/shapefile_to_plt.py
Mehrdadj93/handyscripts
5df9a69e17345ca5a3e42dda2424da2da0ab6f12
[ "MIT" ]
50
2018-09-23T15:50:55.000Z
2022-03-06T06:59:33.000Z
"""Convert Shapefiles to Tecplot plt format usage: > python shapefile_to_plt.py shapefile.shp outfile.plt Necessary modules ----------------- pyshp The Python Shapefile Library (pyshp) reads and writes ESRI Shapefiles in pure Python. https://pypi.python.org/pypi/pyshp https://www.esri.com/library/whi...
33.607143
104
0.669146
690cf46e3a65cc79fc30a8178dbe551901ad1473
2,746
py
Python
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
mastering_oop/special_methods/card_factory.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
"""When creating factory functions, plain functions are good unless you need to inherit from a higher level class. If you don't need to inherit, dont use a class.""" from functools import partial from .suits import * from .cards import * def card_mapping(rank, suit): """Get the desired rank. If the rank isnt ...
31.563218
89
0.617626
690dd745221fea2279bf9ae3ddea1cf478e5ead0
2,645
py
Python
tests/test_spider_qidian.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
5
2018-03-05T02:32:53.000Z
2020-10-27T13:13:59.000Z
tests/test_spider_qidian.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
null
null
null
tests/test_spider_qidian.py
congjinruo/JulyNovel
feff0adfecab1c21728fc177c94621b9b8707bbd
[ "Apache-2.0" ]
1
2019-02-20T03:04:22.000Z
2019-02-20T03:04:22.000Z
# -*- coding: utf-8 -*- import unittest from app.services.spider_qidian import QidianSpider
45.603448
135
0.662004
690f42d3fe72fbc49129a7da627897da2c12d466
2,614
py
Python
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
16
2015-11-22T13:12:46.000Z
2020-09-04T06:42:55.000Z
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
8
2016-01-09T23:32:46.000Z
2019-09-30T23:30:49.000Z
tests/fixtures/client.py
radiac/mara
413f1f9f4c7117839a8c03d72733d6f75494ddd3
[ "BSD-3-Clause" ]
7
2016-07-19T04:39:31.000Z
2020-09-04T06:43:06.000Z
from __future__ import annotations import logging import socket import pytest from .constants import TEST_HOST, TEST_PORT logger = logging.getLogger("tests.fixtures.client")
25.627451
87
0.613236
690f93b1369267fc52a8a48543ba3893e460a7b1
7,768
py
Python
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
1
2017-11-26T22:12:16.000Z
2017-11-26T22:12:16.000Z
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
null
null
null
pi.py
przemyslawgarlinski/pi_iowrap
3eef421ebe718dd3bfe1723d1ede6b6a7bc76599
[ "MIT" ]
null
null
null
"""Standard raspberry GPIO access layer. It defines abstract layer that extends InOutInterface to access all standard ports on rapsberry pi. It uses RPi.GPIO under the hood. Thanks to that you have a standardized way of accessing these ports, as well as any others implementing InOutInterface. """ import logging fr...
36.469484
80
0.608651
6910edd2d74b03e0e705138a62b8524d93b325d6
4,190
py
Python
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
cogs/ments.py
NastyHub/yewon
62e7666a6be8c970871d15af4dfbbcd3ff0a97fd
[ "MIT" ]
null
null
null
import discord import os import json from discord.ext import commands, tasks import time import asyncio import random from discord.utils import MAX_ASYNCIO_SECONDS ########################################################################## #generalrole = discord.utils.get(ctx.guild.roles, id=661454256251076613) #logch...
28.310811
100
0.587351
691177c77ccb4ef9f4c89444502885d55b50a94c
5,007
py
Python
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
data/process_data.py
MitraG/Disaster-Response-Project
179d875f9d16aba08cca14d9517531fb29b28041
[ "OLDAP-2.4" ]
null
null
null
#First, we import the relevant libraries import sys import pandas as pd from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): '''This function will load the messages and categories datasets. Then, this function will merge the datasets by left join using the common id...
37.931818
117
0.675654
6911b43b591ee3e9e1fa26ab8ffa4f05986921b5
7,123
py
Python
ai_challenge/agents/_ignore_Agent.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
72
2017-05-22T18:22:58.000Z
2019-03-11T22:49:00.000Z
ai_challenge/agents/_ignore_Agent.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
1
2017-06-09T05:26:43.000Z
2017-08-22T11:41:41.000Z
ai_challenge/agents/_ignore_Agent.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
3
2017-05-25T08:49:27.000Z
2019-09-09T18:41:54.000Z
import torch from argparse import ArgumentParser, Namespace import logging import os from collections import namedtuple import random import torch Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward', 'done'))
28.378486
80
0.579952
691235d4163755651c608d7db64917c20c45cfde
1,568
py
Python
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
null
null
null
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
1
2021-08-17T12:17:29.000Z
2021-08-17T12:17:29.000Z
randomseq/modules/make_random.py
andreagrioni/special-couscous
17b8dcd0bcafab2f6952ddf3b38cd1292f62cee7
[ "MIT" ]
null
null
null
import pandas as pd from modules import bedtools from modules import intervals if __name__ == "__main__": pass
28
73
0.658163
6913dde4acd202b7bb00fc51376d6dcff16b4ba7
100
py
Python
q025.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q025.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q025.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 f=1 fprev=1 n=2 while f < 10**999: f,fprev = f + fprev,f n += 1 print(n)
11.111111
23
0.58
69146b024afb8e8179d7794495072111c92f9cf1
532
py
Python
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
1
2022-03-06T11:37:47.000Z
2022-03-06T11:37:47.000Z
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
null
null
null
Modulo3/aula18.py
Werberty/Curso-em-Video-Python3
24c0299edd635fb9c2db2ecbaf8532d292f92d49
[ "MIT" ]
null
null
null
test = list() test.append('Werberty') test.append(21) galera = list() galera.append(test[:]) test[0] = 'Maria' test[1] = 22 galera.append(test[:]) print(galera) pessoal = [['joo', 19], ['Ana', 33], ['Joaquim', 13], ['Maria', 45]] print(pessoal[1]) print(pessoal[2][1]) for p in pessoal: print(f'{p[0]} tem {p[1]} an...
22.166667
69
0.614662
6914bfcaeef4fb7954973326e68cefa7ccd0e8c9
4,667
py
Python
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
5
2019-06-30T14:45:12.000Z
2020-07-26T12:59:36.000Z
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
1
2020-07-11T10:47:57.000Z
2020-09-16T10:53:36.000Z
summariser/ngram_vector/vector_generator.py
UKPLab/ijcai2019-relis
8a40762dcfa90c075a4f6591cbdceb468026ef17
[ "MIT" ]
2
2019-12-24T02:10:42.000Z
2020-04-27T05:39:49.000Z
from summariser.ngram_vector.base import Sentence from summariser.utils.data_helpers import * from nltk.stem.porter import PorterStemmer from summariser.ngram_vector.state_type import * import random
42.045045
122
0.630812
69153ffe65a563075cabcea48239e1f649f663fd
320
py
Python
setup.py
onidzelskyi/python_betbright_test
5de60c10857829bc3d326558132fa512776e952d
[ "MIT" ]
null
null
null
setup.py
onidzelskyi/python_betbright_test
5de60c10857829bc3d326558132fa512776e952d
[ "MIT" ]
null
null
null
setup.py
onidzelskyi/python_betbright_test
5de60c10857829bc3d326558132fa512776e952d
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='betbright_test', version='0.1', description='Python product category classification kit', url='', author='Oleksii Nidzelskyi', author_email='alexey.education@gmail.com', license='MIT', packages=['betbright_test'], zip_safe=False)
26.666667
63
0.6625
69157e91f425c2893ef06beb1c157d48d39855f1
198
py
Python
docsie_universal_importer/providers/google_cloud_storage/urls.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
null
null
null
docsie_universal_importer/providers/google_cloud_storage/urls.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
null
null
null
docsie_universal_importer/providers/google_cloud_storage/urls.py
Zarif99/test-universal
062972ed64d9f048de702ab1edf4025cffca2abb
[ "BSD-3-Clause" ]
null
null
null
from docsie_universal_importer.providers.base.urls import default_urlpatterns from .import_provider import GoogleCloudStorageProvider urlpatterns = default_urlpatterns(GoogleCloudStorageProvider)
33
77
0.89899
691732087c532907538627537cd1a0c66892dfed
2,182
py
Python
example/multicut/performance/simple_experiments.py
abailoni/elf
e3b459b4dcc1d72a8dd3d38eabbf3b7183285372
[ "MIT" ]
23
2019-09-07T23:02:08.000Z
2022-03-19T09:50:58.000Z
example/multicut/performance/simple_experiments.py
abailoni/elf
e3b459b4dcc1d72a8dd3d38eabbf3b7183285372
[ "MIT" ]
34
2019-08-07T11:54:01.000Z
2022-03-29T09:50:54.000Z
example/multicut/performance/simple_experiments.py
abailoni/elf
e3b459b4dcc1d72a8dd3d38eabbf3b7183285372
[ "MIT" ]
12
2019-08-23T09:01:29.000Z
2021-11-09T01:21:20.000Z
import argparse import json import os import time from elf.segmentation.multicut import get_multicut_solver, _to_objective from elf.segmentation.utils import load_multicut_problem # TODO add large problems! where decomp should shine... if __name__ == "__main__": main()
34.634921
96
0.648029
6917abd481963fb432ab3aee8ef82db2c9fb0a45
104
py
Python
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
app/utils/Constants.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
1
2021-02-18T03:08:21.000Z
2021-02-18T03:08:21.000Z
IMAP_GMAIL = 'imap.gmail.com' IMAP_OUTLOOK = 'outlook.office365.com' IMAP_YAHOO = 'imap.mail.yahoo.com'
26
38
0.759615
691961c351775c6d1643e0e7e934a4b430e01308
35
py
Python
tests/__init__.py
anrputina/oadds
f2e058f48a9edfbdd9ee7229b4f303cdd4543190
[ "MIT" ]
5
2020-12-25T19:38:32.000Z
2021-06-12T20:39:05.000Z
tests/__init__.py
anrputina/ods-anomalydetection
f2e058f48a9edfbdd9ee7229b4f303cdd4543190
[ "MIT" ]
63
2020-08-04T12:08:09.000Z
2020-10-09T12:08:09.000Z
tests/__init__.py
anrputina/ods-anomalydetection
f2e058f48a9edfbdd9ee7229b4f303cdd4543190
[ "MIT" ]
null
null
null
"""Unit test package for oadds."""
17.5
34
0.657143
69212d7ab58acd86f0a6a7a1366fa6f42c3e9584
1,296
py
Python
src/openprocurement/tender/openua/procedure/models/award.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/openua/procedure/models/award.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/openua/procedure/models/award.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from schematics.types import StringType, BooleanType, MD5Type, BaseType from schematics.exceptions import ValidationError from schematics.types.compound import ModelType from openprocurement.api.models import ListType from openprocurement.tender.core.procedure.models.award import ( Award as BaseAward, PatchAwar...
35.027027
98
0.759259
6922080e0ef28e36cb9344b32948cabc43d991c9
4,448
py
Python
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
53
2016-02-27T09:40:21.000Z
2022-01-19T21:37:44.000Z
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
132
2016-02-26T13:18:58.000Z
2021-12-01T21:52:42.000Z
tests/test_exch_uniform.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
32
2016-02-26T13:21:40.000Z
2022-03-08T08:54:51.000Z
from __future__ import print_function import numpy as np from fidimag.atomistic import Sim from fidimag.common import CuboidMesh from fidimag.atomistic import UniformExchange def test_exch_1d(): """ Test the x component of the exchange field in a 1D mesh, with the spin ordering: 0 1 2 3 4 5 """...
23.046632
77
0.546088