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
3794d2cf81706b3a4b46cdb0956d6d92b0823772
4,910
py
Python
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
null
null
null
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
54
2021-04-28T05:14:45.000Z
2021-12-10T09:14:28.000Z
nglp/lib/openapi.py
mauromsl/NGLP-Analytics
d6df05f82dbf2ffa5e136a20b6e89f7ef3bcbef2
[ "MIT" ]
1
2022-03-09T16:09:25.000Z
2022-03-09T16:09:25.000Z
from copy import deepcopy from nglp.lib.seamless import Construct, SeamlessException
46.761905
222
0.578411
37962a94c4bab8df8fabf49b0401e28ebeb74d78
110
py
Python
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
1
2020-04-13T04:46:54.000Z
2020-04-13T04:46:54.000Z
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
null
null
null
bot/DataBase/Logic/MigrationManager.py
Amirioelmos/zekranehbot
0868cafa74059814923dec90c0b488ff747ada52
[ "MIT" ]
null
null
null
from bot.DataBase.Logic import Page, MainText
13.75
45
0.709091
379775ff8a53d3afa965e36ca834f885ac3d5ba5
1,919
py
Python
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
62
2017-01-15T10:29:44.000Z
2022-03-12T07:25:42.000Z
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
22
2017-01-13T09:54:44.000Z
2018-07-23T23:41:24.000Z
netconf/ncc/rc-xr.py
reachtoashish/ltrmpl-2203-sandiego
0a17e6c8431d3529a03b72132231a82cd4b54acc
[ "Apache-2.0" ]
29
2017-01-10T11:15:18.000Z
2021-05-14T04:23:39.000Z
#!/usr/bin/env python # # Copyright (c) 2018 Cisco and/or its affiliates # import sys import requests from argparse import ArgumentParser from requests.auth import HTTPBasicAuth def send_request(protocol, host, port, username, password): '''Generate a simple RESTCONF request. ''' # url = "{}://{}:{}/restc...
36.207547
163
0.615425
37990b900d049794f3a0a486dc1c773935bc6ed9
584
py
Python
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
5_0_even_odd.py
ChuckChen2020/ElementsOfProgrammingInterviews
635817bab6cddb397c45aa4b57c07a74b5ddb0a8
[ "MIT" ]
null
null
null
if __name__ == '__main__': A = [9, 6, 3, 7, 4, 2, 1, 5, 8, 0] even_odd(A) print(A)
36.5
302
0.556507
379a96fa891f104347b8acc6017c208b33cfdbbb
4,072
py
Python
sdks/python/apache_beam/tests/pipeline_verifiers.py
chamikaramj/beam
7c710360868d784c5b6bf99b8341748807b08101
[ "Apache-2.0" ]
1
2019-05-24T14:03:58.000Z
2019-05-24T14:03:58.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2017-04-24T20:32:25.000Z
2022-03-29T12:59:55.000Z
sdks/python/apache_beam/tests/pipeline_verifiers.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2019-03-04T02:12:46.000Z
2021-08-10T20:29:37.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.933333
75
0.747299
379c7664f3196827528f606b799c51a4a8796797
450
py
Python
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
AuthenticationSystem/models/user.py
ljnath/RBAC
7a4c2b0b4fd2d533ffdbf92d8b2d00b1ff510cae
[ "MIT" ]
null
null
null
""" Base model class for User """
22.5
57
0.575556
379d365c3b72852583302df9254d3e745ae62646
4,975
py
Python
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
flappy.py
mrlmaia/myFlappyBird
393421c6d33051e3e5f9fb9b872651e2e8615de3
[ "MIT" ]
null
null
null
import pygame, random from pygame.locals import * SCREEN_WIDTH = 400 SCREEN_HEIGTH = 800 SPEED = 10 GRAVITY = 1 GAME_SPEED = 10 X = 0 Y = 1 GROUND_WIDTH = 2 * SCREEN_WIDTH GROUND_HEIGHT = 100 PIPE_WIDTH = 80 PIPE_HEIGHT = 500 PIPE_GAP = 200 def is_off_screen(sprite): return sprite.rect[X] < - (sprite.rect[2...
26.604278
102
0.637186
379d69c530c32691ab9a0100007cee3fa8cae31c
2,487
py
Python
GolVe_Classification/GolVe+lr/train_model.py
majingliang/machine_learning
cd70e3a07bd1f0803ebcffebca565e70aff96de8
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
GolVe_Classification/GolVe+lr/train_model.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.datasets.base import Bunch import os import pickle from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.cross_validation import train_test_split import random from collections import defaultdict from sklearn.linear_model import LogisticRegressionCV...
36.573529
136
0.644552
379d9ac43e5f8a9e61641e45c339fb8f78a1a4d0
3,136
py
Python
homeassistant/components/sensor/wink.py
TastyPi/home-assistant
aa1e4c564cb8660bf6b7637bc25317ee58869214
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/sensor/wink.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for Wink sensors. For more details about this platform, please refer to the documentation at at https://home-assistant.io/components/sensor.wink/ """ import logging from homeassistant.const import TEMP_CELSIUS from homeassistant.helpers.entity import Entity from homeassistant.components.wink import WinkDe...
32.666667
79
0.638712
379e0ba70961375d128909802ed03cfc631262e2
2,925
py
Python
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
src/backend/opsbot/stdlib.py
xiashuqin89/bk-chatbot
d3f95363032f699cbc7e6617060642e0763443a6
[ "MIT" ]
null
null
null
""" TencentBlueKing is pleased to support the open source community by making PaaS (BlueKing PaaSCommunity Edition) available. Copyright (C) 2017-2018 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 with the License....
28.676471
93
0.631111
379e75e6e2f4c60b9d24105610450fe718d5528e
7,552
py
Python
testing/unit-tests/python/python_database_entry_test.py
ncorgan/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
4
2017-06-10T13:21:44.000Z
2019-10-30T21:20:19.000Z
testing/unit-tests/python/python_database_entry_test.py
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
12
2017-04-05T11:13:34.000Z
2018-06-03T14:31:03.000Z
testing/unit-tests/python/python_database_entry_test.py
PMArkive/libpkmn
c683bf8b85b03eef74a132b5cfdce9be0969d523
[ "MIT" ]
2
2019-01-22T21:02:31.000Z
2019-10-30T21:20:20.000Z
#!/usr/bin/env python # # Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) # import pkmn import os import sys import unittest if __name__ == "__main__": suite = unittest.Tes...
39.957672
79
0.626589
37a04284c1db8c872e8f613b6e64d74da4d5e0ad
4,303
py
Python
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
lavalink/nodemanager.py
Massinez/Lavalink.py
df841c1e2a98d1de5e0ed4634e2a925577b603dc
[ "MIT" ]
null
null
null
import logging from .node import Node from .events import NodeConnectedEvent, NodeDisconnectedEvent log = logging.getLogger('lavalink') def remove_node(self, node: Node): """ Removes a node. ---------- :param node: The node to remove from the list """ s...
30.51773
121
0.565884
37a06a46bd7dbc7b3904bddfec3b2e850b11c9b4
518
py
Python
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
tests/endpoints/test_pricing.py
tacchang001/oandapyV20helper
c8bff56ce9b3d69207911c899652df4328a8a847
[ "MIT" ]
null
null
null
import json import pytest from oandaV20helper.endpoints.pricing import to_dom # if __name__ == '__main__': # pytest.main(['-v', __file__])
22.521739
51
0.606178
37a25acc37f7d6522679e3d2bfe44a22a8595cc0
2,364
py
Python
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
tests/__init__.py
utsc-networking/utsc-tools
d5bc10cf825f1be46999d5a42da62cc0df456f0c
[ "MIT" ]
null
null
null
import logging from pathlib import Path from utsc.core import Util
38.129032
88
0.648054
37a39ff3342130319876ca4904644fe3206688ea
3,889
py
Python
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
249
2018-04-07T12:04:11.000Z
2019-01-25T01:11:34.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
243
2018-04-11T16:37:11.000Z
2019-01-25T16:50:37.000Z
esphome/components/modbus_controller/number/__init__.py
OttoWinter/esphomeyaml
6a85259e4d6d1b0a0f819688b8e555efcb99ecb0
[ "MIT" ]
40
2018-04-10T05:50:14.000Z
2019-01-25T15:20:36.000Z
import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import number from esphome.const import ( CONF_ADDRESS, CONF_ID, CONF_MAX_VALUE, CONF_MIN_VALUE, CONF_MULTIPLY, CONF_STEP, ) from .. import ( MODBUS_WRITE_REGISTER_TYPE, add_modbus_base_propertie...
30.865079
92
0.674466
37a3c304b781c6585c4f8031de43d9bb105b23e7
306
py
Python
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
8
2018-11-28T15:13:26.000Z
2021-10-08T18:34:28.000Z
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
4
2018-03-28T19:26:27.000Z
2018-04-07T03:02:15.000Z
scp/validateLog.py
GAStudyGroup/VRP
54ec7ff3f0a4247d3effe609cf916fc235a08664
[ "MIT" ]
2
2019-12-12T09:36:48.000Z
2020-04-23T08:26:22.000Z
#!/usr/bin/env python import sys try: file = open("log.txt","r") except OSError: pass i=0 for line in file: i+=1 if line.find("CROSSOVER ")!=-1: array = line.split(" ") if (float(array[3]) < float(array[1])) and (float(array[3]) < float(array[2])): print(line)
20.4
87
0.54902
37a850ace9c07a91ce0bd72124b829282874be9a
3,827
py
Python
src/training/scheduler.py
jplasser/cloob
8a16009440f8e8eb9acba8fbb046180719003b28
[ "MIT" ]
44
2021-10-30T06:20:59.000Z
2022-03-29T10:26:11.000Z
src/training/scheduler.py
afiaka87/cloob
d1c0fa166f4e8c42eba3fcd133caa2477b331860
[ "MIT" ]
9
2021-11-03T04:23:49.000Z
2022-03-31T15:48:17.000Z
src/training/scheduler.py
afiaka87/cloob
d1c0fa166f4e8c42eba3fcd133caa2477b331860
[ "MIT" ]
3
2021-12-29T22:08:25.000Z
2022-02-10T19:27:45.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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/LICEN...
43.488636
117
0.679906
37ad7164ae63d5ffb588e864b6d5d0bdac217918
9,305
py
Python
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
# USDA_CoA_Cropland.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 import json import numpy as np import pandas as pd from flowsa.common import * def CoA_Cropland_URL_helper(build_url, config, args): """This helper function uses the "build_url" input from flowbyactivity.py, which is a base url for coa cropla...
58.522013
153
0.629339
37ae25cb640514b4b69d9fbcf3fe21ab2db9d1d8
4,762
py
Python
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
chiron/apps/visits/views.py
vahidzee/chiron
66115f935a65253ec9c8a7feabfb7db0842acb29
[ "MIT" ]
null
null
null
from django.db import IntegrityError from rest_framework.authentication import TokenAuthentication, SessionAuthentication from rest_framework.response import Response import django.shortcuts as shortcuts from rest_framework import ( status, viewsets, serializers as drf_serializers, permissions as drf_pe...
37.203125
201
0.666107
37ae7793ffa7e66b7097c469d3d38ac44ab471b7
804
py
Python
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
bin/banner_grab.py
r4mmer/dotfiles
4036245c9737a1fe8043f9bb919bbc75f45447bb
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket import sys import os #grab the banner if __name__ == '__main__': main()
25.125
48
0.553483
37aec59f9b17b9d32ce9730876f6d8d46a79c1b0
478
py
Python
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
3-natural-language-processing/2-nlp-character-pred.py
MLStruckmann/tensorflow-templates
ca35a8f055929ee4ec552fa03737d808a0fe3491
[ "MIT" ]
null
null
null
# Simple character prediction model (stateful) model = keras.models.Sequential([ keras.layers.GRU(128, return_sequences=True, stateful=True, dropout=0.2, recurrent_dropout=0.2, batch_input_shape=[batch_size, None, max_id]), keras.layers.GRU(128, return_sequences=True, stateful=True, ...
43.454545
62
0.669456
37b007b20e0af00196c2315cf92bfae9d58c871d
12,681
py
Python
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
data_format_scripts/makeDatasetTxt_4Points_fromCasper.py
TT-happy-work/keras-yolo3
92ed71769c1040a18cf18e88dab30bfaa16248f4
[ "MIT" ]
null
null
null
import os from xml.etree import ElementTree from scipy.spatial import distance as dist import numpy as np from time import sleep import cv2 from PIL import Image, ImageDraw import colorsys if __name__ == '__main__': ## XML folder to convert to data text mainDbFolder = '/home/tamar/DBs/Reccelite/All_data/Taggi...
56.865471
439
0.59459
37b0b5325153d70a2933be3c3353f2d91d004e2d
194
py
Python
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
null
null
null
Exam/oppgave_3.py
Chillu1/PythonUiS
7169f0d625d6419a3e002b1e3285ca08fc99c020
[ "MIT" ]
1
2021-04-26T14:32:52.000Z
2021-04-26T14:32:52.000Z
print(translate_date("19.05.2021"))
32.333333
69
0.695876
37b2a8a74db0c97f1c16318f9a8201defdfcd005
129
py
Python
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
bangoo/theming/context_processors.py
slapec/bangoo
34facf122f15943a4368d5c2f45fe178ff01edaa
[ "MIT" ]
null
null
null
from django.conf import settings
32.25
71
0.75969
37b6eafa409acb5528b0f4f84a8bb707d55e196c
3,839
py
Python
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
13,935
2015-01-01T04:48:55.000Z
2022-03-30T02:02:42.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
848
2015-01-04T14:13:40.000Z
2022-03-04T02:29:44.000Z
pyspider/libs/wsgi_xmlrpc.py
zgwcome/pyspider
1e6375850538d8e04793f5e26b6d92adf8db6a9e
[ "Apache-2.0" ]
4,077
2015-01-02T03:01:27.000Z
2022-03-27T12:06:40.000Z
# Copyright (c) 2006-2007 Open Source Applications Foundation # # 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 require...
39.989583
109
0.655379
37b7d635ca3c11179e0de2c573fb71ee96d85d19
38,975
py
Python
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
dremail.py
shofutex/duplicati-sqs-report
e9257dae228f774fb818389cfd192f8886282bae
[ "MIT" ]
null
null
null
##### # # Module name: dremail.com # Purpose: Manage email connections for dupReport # # Notes: # ##### # Import system modules import imaplib import poplib import email import quopri import base64 import re import datetime import time import smtplib import os from email.mime.multipart import MIMEMultipart from...
58.345808
245
0.556459
37b838e0d54c247d6c2708be9b4641d2684a62fb
4,557
py
Python
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
tacker/extensions/common_services.py
hyunchic86/NDN-test
2417ececbd9a1b9bb4438baf5404cee872e4ec78
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Brocade Communications Systems 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 # # ...
28.841772
78
0.65745
37b92a6bf223f5761c53562b6e0bd7327e57e2bf
2,373
py
Python
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
2
2021-11-08T02:46:09.000Z
2021-11-08T09:41:00.000Z
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
null
null
null
uiworld.py
touilleMan/trimps
603335009a1768f104e4ed317d24a75579f1aeb1
[ "WTFPL" ]
null
null
null
from PyQt4 import QtCore, QtGui
35.954545
73
0.581542
37b9584c00e84d083226a073ff4103362f7643d1
7,215
py
Python
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
src/kblue/rfcomm.py
tulare/kblue
731aa3c4600f3b7c0e53efb51075335ca266b665
[ "MIT" ]
null
null
null
# -*- encoding: utf8 -*- import logging import re import socket import subprocess __all__ = [ 'RFComm' ] def close(self) : if self.connected : self.logger.debug('close socket') self._sock.close() self._sock = None def recv(self, text=False) : if no...
27.643678
151
0.537076
37ba68fb7f6a88c20de7da3f55c3be19e782456c
27,203
py
Python
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
null
null
null
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
103
2018-03-13T20:43:59.000Z
2021-02-06T19:27:16.000Z
preprocess/raven_preprocess/format_parser.py
TwoRavens/raven-metadata-service
9461522219f5ef0f4877f24c8f5923e462bd9557
[ "Apache-2.0" ]
1
2019-09-11T22:36:14.000Z
2019-09-11T22:36:14.000Z
from dateutil import parser from dateutil import relativedelta, tz from calendar import monthrange from six import text_type, binary_type, integer_types import datetime import string import collections import time '''Modified _ymd object that support format detection''' # def append(self, val): # # TODO...
38.422316
117
0.396133
37bb688f46ffd73cd913e78b3be6c48784ad0dc1
10,517
py
Python
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
SplineMeasurement/engine/vtk_widgets/ro_psi_spline_widget.py
TiNezlobinsky/SplineLV
7281bca555f8eda802091cfbe3687b8ab59bfa4b
[ "MIT" ]
null
null
null
from vtk import vtkSplineWidget, vtkLineSource, vtkActor, vtkPolyDataMapper from numpy import linspace from math import pi, asin, sqrt, sin from scipy import interpolate import numpy as np # CODE REGIONS: # 1) Spline computing # 2) Spline redrawing # 3) Setters # 4) Getters # 5) Coordinates transformation # 6) Handle...
32.865625
102
0.625464
37bb9c548de28b45dc95933c0395c9827f5a0ea9
679
py
Python
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
top_secret/__init__.py
trym-inc/top-secret
dd5681a682745e2fedc9e80cca99445d143d18e9
[ "MIT" ]
null
null
null
from ._vault import Vault from ._vault import vault from .exceptions import SecretMissingError from .exceptions import CastError from .exceptions import CastHandlerMissingError from .secret_sources import FileSecretSource from .secret_sources import EnvironmentVariableSecretSource from .preprocessors import base64prepr...
25.148148
59
0.792342
37bc562d644920ed8a17d263dab7566987d50ba4
1,054
py
Python
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
1
2018-07-10T17:08:17.000Z
2018-07-10T17:08:17.000Z
scripts/MakeHomList.py
danydoerr/GraphTeams
4b4257275ded8248eb54748b5b833a9d2d21cf37
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter as ADHF import sys import csv if __name__ == '__main__': # setting up the argument parser parser = ArgumentParser(description='Reads annotations in Ensemble ' + \ 'format and produces a homology table'...
23.422222
76
0.627135
37c1663589684a97815ff0fdc370dc7704b856ea
7,534
py
Python
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
5
2016-03-13T01:57:09.000Z
2021-10-02T00:22:10.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
1
2021-10-31T05:15:54.000Z
2021-10-31T05:15:54.000Z
warcunpack_ia.py
ArchiveTeam/warctozip
d36bbbaa529d146b5b25252edbcc8f966528d8aa
[ "MIT" ]
2
2016-05-19T12:38:35.000Z
2016-11-27T20:01:24.000Z
#!/usr/bin/env python """warcextract - dump warc record context to directory""" import os import sys import os.path import uuid import mimetypes import shlex from optparse import OptionParser from contextlib import closing from urlparse import urlparse from hanzo.warctools import ArchiveRecord, WarcRecord from hanz...
34.559633
150
0.599151
37c285e9e7b95a28d005834ffa6baf7dadf6349d
3,017
py
Python
twilio/rest/resources/task_router/reservations.py
quippp/twilio-python
22b84cdfd19a6b1bde84350053870a7c507af410
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
venv/lib/python2.7/site-packages/twilio/rest/resources/task_router/reservations.py
jideobs/twilioAngular
eb95308d287d7dbb72fe516a633199a0af8b76b9
[ "MIT" ]
13
2017-08-19T16:46:08.000Z
2018-11-05T23:11:34.000Z
from .. import NextGenInstanceResource, NextGenListResource
35.081395
77
0.668213
37c5b7a57373382792f04fb19c487676bd6c5d39
12,537
py
Python
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
4
2020-10-14T03:57:52.000Z
2021-09-23T13:34:03.000Z
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
1
2021-06-04T10:34:32.000Z
2021-06-07T04:54:35.000Z
csaws_creation/train_val_creation/generate_patches.py
ChrisMats/seemingly_uninformative_labels
bcbe060f8be89d731626e3f37752d5906c0a6752
[ "MIT" ]
4
2021-02-23T07:05:31.000Z
2021-09-08T19:48:57.000Z
"""This script creates the patched dataset""" import sys import glob import json from tqdm import tqdm import numpy as np from PIL import Image import multiprocessing from datetime import datetime from joblib import Parallel, delayed from scipy.interpolate import interp1d from scipy.ndimage import generic_filter from ...
38.457055
126
0.582755
37c805b450d20bb9b6a8e39a0e4789acb07d84c1
4,677
py
Python
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
lwtestsuite/bvttest/lwtestssh/nbpipe.py
kenferrara/pbis-open
690c325d947b2bf6fb3032f9d660e41b94aea4be
[ "Apache-2.0" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
"""Implements a non-blocking pipe class.""" # Since it uses thread rather than select, it is portable to at least # posix and windows environments. # Author: Rasjid Wilcox, copyright (c) 2002 # Ideas taken from the Python 2.2 telnetlib.py library. # # Last modified: 3 August 2002 # Licence: Python 2.2 Style ...
34.902985
88
0.5418
805ba55ed86af7e1a77e310df139512e78b99f6e
61,165
py
Python
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
9
2018-11-02T02:51:50.000Z
2022-01-12T06:22:33.000Z
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
3
2019-05-11T21:28:32.000Z
2020-04-27T00:58:46.000Z
iptv_proxy/providers/iptv_provider/configuration.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
7
2019-01-03T20:31:30.000Z
2022-01-29T04:09:24.000Z
import copy import json import logging from iptv_proxy.providers import ProvidersController from iptv_proxy.security import SecurityManager logger = logging.getLogger(__name__)
42.066713
154
0.457615
805d2ac887895555a1420da719830b54829502f8
173
py
Python
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex014.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
# um programa que pega a C, e transforma em F c = float(input('informe a temperatura: ')) f = ((9*c)/5)+32 print('A temperatura {}c, corresponde {}f'.format(c,f))
34.6
60
0.647399
805da18c2eba7f3fc55361ca302201ceacee9c53
2,927
py
Python
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/48/_dump_ida_/overlay_d/make_psx.py
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
set_name(0x80123B68, "EA_cd_seek", SN_NOWARN) set_name(0x80123B70, "MY_CdGetSector", SN_NOWARN) set_name(0x80123BA4, "init_cdstream", SN_NOWARN) set_name(0x80123BB4, "flush_cdstream", SN_NOWARN) set_name(0x80123BD8, "check_complete_frame", SN_NOWARN) set_name(0x80123C58, "reset_cdstream", SN_NOWARN) set_name(0x80123C80...
49.610169
58
0.82166
806068b887f576294d51b641529a19d602f962e8
423
py
Python
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
4
2021-04-14T09:28:51.000Z
2022-02-07T10:52:14.000Z
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
85
2018-10-30T10:49:28.000Z
2022-03-25T13:51:31.000Z
impc_etl/workflow/config.py
ficolo/impc-etl
3ca0fadaaa2b6e5d6fc424f949a9faa7680cd5f5
[ "Apache-2.0" ]
7
2018-10-30T11:36:57.000Z
2021-07-15T15:36:14.000Z
import luigi from luigi.contrib.hdfs import HdfsTarget
26.4375
54
0.640662
8061201f4d94b2f8e4d053bc0f34429d3c1312e3
468
py
Python
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
portfolio/newsletter/admin.py
Tobi-De/portfolio
ef627539cfaf4117abfdea39bab16c90c79f82eb
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import News, Subscriber
27.529412
88
0.711538
80615ede9944c60d7f347d9b93800d3c39e08d0f
1,258
py
Python
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
null
null
null
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
1
2021-12-17T16:45:56.000Z
2022-02-02T20:40:57.000Z
tests/test_value.py
DanielTOsborne/repgen5
a13e0005dc2a471bb9c112b53ab5e2e0d2596f72
[ "MIT" ]
1
2021-03-31T21:38:55.000Z
2021-03-31T21:38:55.000Z
import unittest from nose2.tools import params import sys import datetime sys.path.append("../") from repgen.data import Value from repgen.util import TZ
34
139
0.645469
8061f8f83585386d7f3cee51d2a8ec30b9f44859
9,096
py
Python
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
14
2020-09-17T17:04:04.000Z
2021-08-19T05:08:49.000Z
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
85
2020-10-01T16:53:21.000Z
2021-07-08T17:44:17.000Z
Data Science Project/Mall Customer Segmentation & Analysis/Mall Customer Segmentation & Analysis.py
jrderek/Data-science-master-resources
95adab02dccbf5fbe6333389324a1f8d032d3165
[ "MIT" ]
5
2020-09-18T08:53:01.000Z
2021-08-19T05:12:52.000Z
#!/usr/bin/env python # coding: utf-8 # ### Author : Sanjoy Biswas # ### Topic : Mall Customer Segmentation & Analysis # ### Email : sanjoy.eee32@gmail.com # # **Data Import And Preprocessing** # In[1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from plotly.offlin...
30.626263
498
0.744173
80624346f155364d7ebf81125c59e583fc168c60
4,319
py
Python
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
2
2019-08-26T13:49:22.000Z
2019-11-11T18:43:29.000Z
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
null
null
null
colorlight-5a-75b/uart-probe/colorlight-uart-probe.py
TomKeddie/prj-litex
cc79c041d22ad552a12b49f531d007491b536521
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This file is Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD # Disclaimer: This SoC is still a Proof of Concept with large timings violations on the IP/UDP and # Etherbone stack that need to be optimized. It was initially just used to validate the reversed # pin...
34.277778
115
0.552674
8062ec2ad344155703ac04ea390798756763b6a7
508
py
Python
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
obsolete/multithreadTest.py
gilesp/quickdrawmcgraw
c85a8c073d7e4681386cab78ef646728f3f66cb0
[ "MIT" ]
null
null
null
from time import sleep import threading import stepper import RPi.GPIO as GPIO motor1Pins = [7, 8, 9, 10] motor2Pins = [17, 18, 22, 23] motor1Thread = threading.Thread(target = moveMotor, args=(motor1Pins, 45)) motor2Thread = threading.Thread(target = moveMotor, args=(motor2Pins, -45)) motor1Thread.start() motor2Thr...
23.090909
75
0.718504
8063b17195dc598c722e984e0438f0d945c3c21d
4,109
py
Python
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
16
2015-04-07T19:26:01.000Z
2020-03-05T21:09:07.000Z
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
2
2015-02-11T13:29:35.000Z
2015-03-02T21:03:08.000Z
src/jig/commands/tests/test_sticky.py
robmadole/jig
6596e15afb0bb7f69850a71d9071440ba101f539
[ "BSD-2-Clause" ]
2
2020-05-29T06:48:16.000Z
2020-05-29T06:54:36.000Z
# coding=utf-8 import git from os.path import expanduser from mock import patch, MagicMock from jig.tests.testcase import CommandTestCase, result_with_hint from jig.commands import sticky from jig.exc import ( ForcedExit, JigUserDirectoryError, GitConfigError, InitTemplateDirAlreadySet, GitTemplatesMissing, Gi...
28.534722
76
0.607204
8063da22cb97bc1092b0a5274319e07381b8faeb
5,624
py
Python
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
20
2022-03-02T08:47:25.000Z
2022-03-30T11:18:26.000Z
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
3
2022-03-04T04:23:10.000Z
2022-03-05T17:29:52.000Z
model/utils.py
yhygao/CBIM-Medical-Image-Segmentation
5586f705156ef3c442393276d184e4d51d2a2408
[ "Apache-2.0" ]
5
2022-03-02T08:47:32.000Z
2022-03-30T11:18:53.000Z
import numpy as np import torch import torch.nn as nn import pdb
48.068376
477
0.641536
806408d9791890be53cd6c762cf29adc75259e09
1,925
py
Python
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
osakoh/recipe-API
2c7163a63479a16b64e885a27170b3d76ad554f1
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import Client, TestCase # Client: test request in the application for unit test from django.urls import reverse # generate urls for django admin page from django.utils.translation import gettext as _
42.777778
111
0.671688
80647f5099199c99b0e0a984c775048c1fbf6fda
8,731
py
Python
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
2
2022-01-10T12:36:21.000Z
2022-01-18T11:13:40.000Z
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
null
null
null
parser.py
envlh/henry
53a1097a8650b99a8145b16853dbfece13922cb4
[ "CC0-1.0" ]
1
2022-01-10T13:15:43.000Z
2022-01-10T13:15:43.000Z
import json import re import requests import unidecode import urllib.parse if __name__ == '__main__': main()
45.712042
285
0.569465
8064b62c6658077a658035b75bf939d6a102f7cb
1,591
py
Python
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-11-22T18:15:09.000Z
2021-11-22T18:15:09.000Z
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
3
2021-05-10T18:46:16.000Z
2021-06-01T16:51:48.000Z
tests/test_solidarity_tax_credit.py
RogerEMO/srd
40eb8bb02cfd3b1f60ed9eb3e361877fea744cb5
[ "MIT" ]
1
2021-05-05T17:20:06.000Z
2021-05-05T17:20:06.000Z
import pytest from math import isclose import sys sys.path.append('/Users/pyann/Dropbox (CEDIA)/srd/Model') import srd from srd import quebec qc_form = quebec.form(2016)
32.469388
80
0.529855
80650e96ed810fec1ddeaacf215ceee808005014
952
py
Python
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
null
null
null
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
2
2020-03-24T17:07:58.000Z
2020-03-31T03:19:38.000Z
application.py
crawftv/python-portfolio
5264f4339428279e611539be67a53cc2c0135150
[ "BSD-3-Clause" ]
null
null
null
from flask import Flask, render_template from firestore_utilities import get_medium, db, get_github_events, get_projects application = Flask(__name__) if __name__ == "__main__": application.run(host="0.0.0.0")
21.636364
79
0.719538
806566fc4d9daeabfef5f2000f79ccd69c7d32a1
49,754
py
Python
2021/BondwireProfileEditor_Win_Linux.py
zhangjq933/HowtoSim_Script
d958cc6cc743106e8f6ddf58dead6551a8ac7784
[ "MIT" ]
79
2019-04-01T04:35:01.000Z
2022-03-30T10:59:32.000Z
2021/BondwireProfileEditor_Win_Linux.py
raflzhang/HowtoSim_Script
90fb8cca87d47d2c45b8ff5d07a35e8a6c846685
[ "MIT" ]
1
2020-03-29T20:52:06.000Z
2020-03-30T05:35:30.000Z
2021/BondwireProfileEditor_Win_Linux.py
raflzhang/HowtoSim_Script
90fb8cca87d47d2c45b8ff5d07a35e8a6c846685
[ "MIT" ]
73
2019-05-07T10:26:53.000Z
2022-03-24T02:25:08.000Z
# coding=utf-8 import os, re, sys, clr, json, math, logging, random, time from itertools import combinations os.chdir(os.path.dirname(__file__)) logging.basicConfig(filename='gui.log', filemode='w', encoding='utf-8', level=logging.DEBUG) clr.AddReference('System.Drawing') clr.AddReference('System.Windows.Forms') ...
39.8032
116
0.552116
8065e364ac71356df1a3bb45b9af18ea539918a5
750
py
Python
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
testing.py
louisack/instagram_bot
83ef95f369fd25a16889a0c7b2d006cbc266481c
[ "MIT" ]
null
null
null
from time import sleep from selenium import webdriver from secrets import password from selenium.webdriver.common.keys import Keys from time import sleep, strftime chromedriver_path ='/mnt/c/Users/louis/Documents/GitHub/instagram_bot/chromedriver.exe'
39.473684
90
0.728
806640663332b26791d299631d7a07702f2f99ab
1,738
py
Python
nodedge/blocks/custom/input_block.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
7
2020-03-25T19:54:56.000Z
2021-06-09T04:43:58.000Z
nodedge/blocks/custom/input_block.py
Nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
9
2020-01-17T10:47:54.000Z
2021-05-30T12:40:28.000Z
nodedge/blocks/custom/input_block.py
nodedge/nodedge
5658269a1841f33b3c42d6f79b8b50411e105787
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import List from nodedge.blocks.block import Block from nodedge.blocks.block_config import BLOCKS_ICONS_PATH, OP_NODE_INPUT, registerNode from nodedge.blocks.graphics_block import GraphicsBlock from nodedge.blocks.graphics_input_block_content import GraphicsInputBlockContent from no...
30.491228
86
0.705984
8066624d5dffeae87c4031c186ee89c3a0ab8dcd
5,890
py
Python
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
app/core.py
JulienPetit-1/DataTools_Project
60dc787e219e3a00a4a0b14808e8ad32a7e0f878
[ "MIT" ]
null
null
null
import pandas as pd
38.496732
168
0.543633
80676fec9d54f2f82f75da34b314f6afd4212486
3,799
py
Python
main/classify_program.py
Abel-Huang/simple-image-classifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
4
2017-05-17T08:01:38.000Z
2018-07-22T11:13:55.000Z
main/classify_program.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
main/classify_program.py
Abel-Huang/ImageClassifier
89d2822c2b06cdec728f734d43d9638f4b601348
[ "MIT" ]
null
null
null
import cv2 import numpy as np from sklearn import svm from sklearn.externals import joblib from main import data_set as ds from main import feature_program as fp from util import save_2_db as db from util import file_manage as fm # #
37.245098
90
0.61253
8067b4374ba41b815a9a3686f3eb5766d004309f
75
py
Python
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
__init__.py
interruping/naver_ai_hackathon_2018_kin_964turon
dfdff75a2a83b3ca71c05f25bc70b16c9d7728f3
[ "MIT" ]
null
null
null
from .konlpy_set import KinQueryDatasetVer2, preprocess, get_embedding_dim
37.5
74
0.88
80693af1a223015fc9f6a5347749723828613409
102
py
Python
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/test/test_compiler/testcorpus/91_line_numbers2_comp.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) a = [ x for x in y ]
20.4
76
0.627451
8069c80b4ba47527c4c176a2e51cb7a78d306b86
4,616
py
Python
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
null
null
null
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
174
2021-06-21T08:19:03.000Z
2022-03-30T23:44:55.000Z
momoichigo/app/views/resource_queue_view.py
nothink/momoichigo
85710c31a4dddb85fc1597ceb31c80d97779502b
[ "MIT" ]
1
2021-09-24T13:40:53.000Z
2021-09-24T13:40:53.000Z
"""momoichigo views.""" from __future__ import annotations import io import logging from typing import Any, List, Tuple from urllib.parse import urlparse import pendulum import requests from django.core.exceptions import ValidationError from django.db import transaction from rest_framework import mixins, status, view...
34.192593
85
0.620234
806dd6f207f96deb9deb2732e42a0bf1d99fbad0
993
py
Python
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
62
2019-02-13T20:26:12.000Z
2022-02-23T19:47:34.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
58
2018-07-09T10:58:33.000Z
2022-01-31T20:27:13.000Z
uds/uds_config_tool/SupportedServices/iContainer.py
J3rome/python-uds
fe0f7a9505cb7b87f693ab736d713d7871dff288
[ "MIT" ]
33
2019-03-25T07:30:34.000Z
2022-03-08T12:55:35.000Z
#!/usr/bin/env python __author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" from abc import ABCMeta, abstractmethod
31.03125
81
0.775428
806ddac5cfe116c67e0d9529de64b5b850440192
347
py
Python
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
Algoritmo(Python)/Alg_S7_4.py
Daniel-Conte/Exercicios-de-Algoritmo
5a42722516097d0aec14d80549e18501b182eebd
[ "MIT" ]
null
null
null
#variables media = 0 maior = 0 menor = 9999 #input + process for(i) in range(1, 11): N = int(input("Digite um nmero: ")) if(N > maior): maior = N if(N < menor): menor = N media = (media + (N / 10)) print("Maior nmero: {0}".format(maior)) print("Menor nmero: {0}".format(menor)) print("Me...
23.133333
40
0.570605
806f5dbad8693bef1f42f7424619c01bd49c62cd
2,464
py
Python
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
25
2019-02-09T21:19:15.000Z
2022-01-24T22:11:20.000Z
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
null
null
null
test_depth_cityscapes.py
sanweiliti/Segmentation-MonoDepth-Pytorch
d1a3de8d10c60fe9d3b86b585e0f0089555fc8a6
[ "MIT" ]
4
2019-02-21T07:08:06.000Z
2022-01-25T12:43:24.000Z
import yaml import torch import argparse from torch.utils import data from tqdm import tqdm from ptsemseg.models import get_model from ptsemseg.loader import get_loader from ptsemseg.metrics import runningScoreDepth, averageMeter if __name__ == "__main__": parser = argparse.ArgumentParser(description="Hyperpa...
28.988235
100
0.616477
806fe60353ed1a2e39330d425617b5fb47e04792
1,951
py
Python
tests/test_lambda.py
ZhukovAlexander/lambdify
e291c15bacffc871cd1c10aefe9f132420259dfd
[ "Apache-2.0" ]
51
2016-04-07T12:50:08.000Z
2020-05-19T14:56:47.000Z
tests/test_lambda.py
ZhukovAlexander/easy-lambda
e291c15bacffc871cd1c10aefe9f132420259dfd
[ "Apache-2.0" ]
null
null
null
tests/test_lambda.py
ZhukovAlexander/easy-lambda
e291c15bacffc871cd1c10aefe9f132420259dfd
[ "Apache-2.0" ]
8
2016-04-08T10:05:30.000Z
2020-01-20T14:01:05.000Z
import unittest import zipfile from StringIO import StringIO import tempfile import shutil import boto3 import dill import moto import mock import pip from easy_lambda.deployment import Lambda, DeploymentPackage
28.691176
86
0.671963
807024c63669049ff37fa7c1466e2b39243f3485
2,397
py
Python
command_executor/command.py
stephrdev/python-command-executor
87b43da25e86cd60ca29b31fe5d0202e7be53cf9
[ "MIT" ]
null
null
null
command_executor/command.py
stephrdev/python-command-executor
87b43da25e86cd60ca29b31fe5d0202e7be53cf9
[ "MIT" ]
2
2021-06-01T22:31:14.000Z
2021-06-01T22:32:14.000Z
command_executor/command.py
stephrdev/python-command-executor
87b43da25e86cd60ca29b31fe5d0202e7be53cf9
[ "MIT" ]
null
null
null
import shlex import subprocess from .exceptions import CommandExecutionError, CommandParameterError
34.242857
90
0.637046
80727ce2ec20ae44ac4f84444e1d4ed99b47a36d
2,926
py
Python
tests/test_types.py
tonysimpson/pointbreak
04e59cdda19a797b926b9541607077ad77522503
[ "MIT" ]
6
2018-07-13T09:52:14.000Z
2019-11-27T12:39:27.000Z
tests/test_types.py
tonysimpson/pointbreak
04e59cdda19a797b926b9541607077ad77522503
[ "MIT" ]
10
2018-07-12T14:44:44.000Z
2019-02-07T18:59:02.000Z
tests/test_types.py
tonysimpson/pointbreak
04e59cdda19a797b926b9541607077ad77522503
[ "MIT" ]
null
null
null
import struct import pointbreak import pointbreak.types as types from pointbreak.types import TestAccessor as Accessor
32.153846
75
0.679084
8072dab55c7898746ef42113226d03eadb2ebafb
9,853
py
Python
data/bonecell.py
edocoh87/ssd.pytorch
09fe21af84976dd6ab09ff0c5649db2793e47468
[ "MIT" ]
null
null
null
data/bonecell.py
edocoh87/ssd.pytorch
09fe21af84976dd6ab09ff0c5649db2793e47468
[ "MIT" ]
null
null
null
data/bonecell.py
edocoh87/ssd.pytorch
09fe21af84976dd6ab09ff0c5649db2793e47468
[ "MIT" ]
null
null
null
""" Author: Edo Cohen-Karlik """ from __future__ import division # import os.path as osp import json # import sys import os import torch import torch.utils.data as data import cv2 import numpy as np #from augmentations import SSDAugmentation, SSDBoneCellAugmentation # ignore classes with label value -1. BONE_CELL_CL...
36.492593
99
0.603978
80743b7e8796f67c8ef10fc04ba79b234767738a
58
py
Python
clinicadl/tsvtools/restrict/__init__.py
Raelag0112/clinicadl
4b9508ea6bbe5498069b1d76ad2c3636f67e3184
[ "MIT" ]
25
2021-08-01T05:52:34.000Z
2022-03-22T04:18:01.000Z
clinicadl/tsvtools/restrict/__init__.py
Raelag0112/clinicadl
4b9508ea6bbe5498069b1d76ad2c3636f67e3184
[ "MIT" ]
82
2021-07-12T08:28:36.000Z
2022-03-02T16:12:04.000Z
clinicadl/tsvtools/restrict/__init__.py
Raelag0112/clinicadl
4b9508ea6bbe5498069b1d76ad2c3636f67e3184
[ "MIT" ]
12
2021-07-30T08:01:02.000Z
2022-03-14T11:45:03.000Z
from .restrict import aibl_restriction, oasis_restriction
29
57
0.87931
807550fad07fb0b1cb61d8b299a86f07564ce6d8
1,989
py
Python
tests/test_macros.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
154
2015-02-04T08:41:23.000Z
2022-03-18T19:39:53.000Z
tests/test_macros.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
115
2015-06-14T13:31:07.000Z
2022-02-14T23:02:19.000Z
tests/test_macros.py
KennethBlaney/rivescript-python
87db472847ab526060afd9a5b8548e9689501a85
[ "MIT" ]
87
2015-04-18T23:15:18.000Z
2022-03-18T09:52:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from .config import RiveScriptTestCase
28.014085
68
0.507793
80757abfd788a13520ba7245a84a078943b84c38
2,556
py
Python
ABONO/__init__.py
SalahEddineLahniche/MLC-Kaggle-2017
489b76182227cbf51812c051381da4e58098d338
[ "MIT" ]
null
null
null
ABONO/__init__.py
SalahEddineLahniche/MLC-Kaggle-2017
489b76182227cbf51812c051381da4e58098d338
[ "MIT" ]
1
2018-04-25T20:48:35.000Z
2020-06-19T00:48:49.000Z
ABONO/__init__.py
SalahEddineLahniche/MLC-Kaggle-2017
489b76182227cbf51812c051381da4e58098d338
[ "MIT" ]
null
null
null
import functools import pandas as pd from ABONO.Regressor import Regressor from ABONO.Processer import Processer from ABONO.Session import Session TRAIN_PATH = 'data/train.csv' TEST_PATH = 'data/test.csv'
38.149254
100
0.621283
8075ab5a27998d20f0817eccb49607a1460552d7
29,946
py
Python
neon/layers/recurrent.py
sjuvekar/neon
abe5d30a68663c739a97a9e657516d530c66dbd9
[ "Apache-2.0" ]
null
null
null
neon/layers/recurrent.py
sjuvekar/neon
abe5d30a68663c739a97a9e657516d530c66dbd9
[ "Apache-2.0" ]
4
2021-03-26T00:21:20.000Z
2022-03-12T00:46:11.000Z
neon/layers/recurrent.py
huamichaelchen/neon
abe5d30a68663c739a97a9e657516d530c66dbd9
[ "Apache-2.0" ]
1
2016-08-12T09:05:04.000Z
2016-08-12T09:05:04.000Z
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems 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 # # http://www.apache.o...
40.522327
98
0.601783
8075ab5b7644cd6b940830cbdac14017e16f9d27
439
py
Python
Exercise_7_9.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_7_9.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_7_9.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
#No pastrami: sandwich_orders = ['maxican','pastrami','aloo','pastrami','spicypoteto''pastrami','lulu'] finished_sandwich = [] while sandwich_orders: sandwich = sandwich_orders.pop() if sandwich == 'pastrami': print("We are out of pastrami.") continue print("I made your",sandwich,"sandwich...
27.4375
89
0.697039
8077f1dd7b219933df17d90b224491a92c222729
174
py
Python
secrets.py
bethskw/botcocktails
1090d6e85161efb174891911a4cdb4523c97719a
[ "MIT" ]
3
2019-02-20T21:47:08.000Z
2021-03-19T19:23:17.000Z
secrets.py
bethskw/botcocktails
1090d6e85161efb174891911a4cdb4523c97719a
[ "MIT" ]
null
null
null
secrets.py
bethskw/botcocktails
1090d6e85161efb174891911a4cdb4523c97719a
[ "MIT" ]
1
2018-11-27T22:03:24.000Z
2018-11-27T22:03:24.000Z
C_KEY = "XXXXX" # replace with your own C_SECRET = "XXXXX" # replace with your own A_TOKEN = "xxxxx" # replace with your own A_TOKEN_SECRET = "XXXXX" # replace with your own
43.5
48
0.724138
80785349bd512737005eabd1247ba002964d3d8f
6,811
py
Python
keyhandler.py
egriffith/AWSKeyHandler
9dbe1068440f801a7c522f7fd212bebef1af2a65
[ "MIT" ]
null
null
null
keyhandler.py
egriffith/AWSKeyHandler
9dbe1068440f801a7c522f7fd212bebef1af2a65
[ "MIT" ]
null
null
null
keyhandler.py
egriffith/AWSKeyHandler
9dbe1068440f801a7c522f7fd212bebef1af2a65
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import sys from os.path import expanduser import argparse import boto3 import botocore if __name__ == "__main__": main(sys.argv[1:])
38.050279
145
0.550286
807a1e3f55548f5582ab4aedb29f22ea0b5d8d38
1,072
py
Python
SimpyTest.py
EternalVeryRookie/ParticleConstrainedOnCurve
d8248bb90560bc7193bca46886587412ca2fa70b
[ "MIT" ]
null
null
null
SimpyTest.py
EternalVeryRookie/ParticleConstrainedOnCurve
d8248bb90560bc7193bca46886587412ca2fa70b
[ "MIT" ]
null
null
null
SimpyTest.py
EternalVeryRookie/ParticleConstrainedOnCurve
d8248bb90560bc7193bca46886587412ca2fa70b
[ "MIT" ]
null
null
null
from sympy import * #3 X = Symbol("X") Y = Symbol("Y") t = Symbol("t") l_x = Symbol("l_x") l_y = Symbol("l_y") a_x = Symbol("a_x") b_x = Symbol("b_x") c_x = Symbol("c_x") d_x = Symbol("d_x") a_y = Symbol("a_y") b_y = Symbol("b_y") c_y = Symbol("c_y") d_y = Symbol("d_y") print( expand( (X - (a_x + b_x*(t-l_x) + c...
34.580645
250
0.477612
807ac64b53208d8bf2363b570ae4aa35ea88e5a3
8,868
py
Python
scripts/cros_list_modified_packages.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
scripts/cros_list_modified_packages.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
scripts/cros_list_modified_packages.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Calculate what workon packages have changed since the last build. A workon package is treated as changed if any of the bel...
36.195918
80
0.726545
807bc3f452b97032c17869ac27799d53c9ea920a
4,316
py
Python
test/data/test_sampler.py
130ndim/pytorch_geometric
1d3e63ba9ec3e37b6bae1ee5cbf460a1382497c6
[ "MIT" ]
3
2019-05-31T15:23:59.000Z
2021-06-17T09:32:39.000Z
test/data/test_sampler.py
LiJFrank/pytorch_geometric
70e575d69c77f6c234373257dcf02014a290bed8
[ "MIT" ]
null
null
null
test/data/test_sampler.py
LiJFrank/pytorch_geometric
70e575d69c77f6c234373257dcf02014a290bed8
[ "MIT" ]
3
2020-11-06T22:02:43.000Z
2021-01-28T13:52:22.000Z
import sys import random import os.path as osp import shutil import torch from torch.nn.functional import relu from torch_geometric.utils import erdos_renyi_graph from torch_geometric.data import Data, NeighborSampler from torch_geometric.datasets import Planetoid from torch_geometric.nn.conv import SAGEConv import t...
37.530435
79
0.610519
807d3ab6f17cdae70028ea61e5d4a7c531be358c
529
py
Python
test/test_departures.py
leonardbinet/navitia-python
f3886793c84b541ed3d410a1732e12ac4b5e3dde
[ "MIT" ]
9
2017-01-10T14:40:31.000Z
2022-02-14T19:25:18.000Z
test/test_departures.py
leonardbinet/navitia-python
f3886793c84b541ed3d410a1732e12ac4b5e3dde
[ "MIT" ]
2
2016-12-15T15:05:58.000Z
2019-05-30T10:30:21.000Z
test/test_departures.py
leonardbinet/navitia-python
f3886793c84b541ed3d410a1732e12ac4b5e3dde
[ "MIT" ]
3
2017-10-06T10:45:38.000Z
2021-01-21T14:29:43.000Z
"""Tests for the object departures module.""" import responses # initialize package, and does not mix up names import test as _test import navitia_client import requests
24.045455
62
0.689981
807d9d3bca9503251f4ab16f47e0f015f14cf3d1
264
py
Python
api/status/admin.py
OMO-NOSA/REST-API
455295b34dc048c3756e0c5ae6c531c280ccc8c8
[ "bzip2-1.0.6" ]
null
null
null
api/status/admin.py
OMO-NOSA/REST-API
455295b34dc048c3756e0c5ae6c531c280ccc8c8
[ "bzip2-1.0.6" ]
11
2020-06-06T00:07:30.000Z
2022-03-12T00:04:06.000Z
api/status/admin.py
OMO-NOSA/REST-API
455295b34dc048c3756e0c5ae6c531c280ccc8c8
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import admin # Register your models here from . forms import StatusForm from .models import Status admin.site.register(Status)
24
47
0.731061
807e9b1b026b86213f993cb57eef6c26141e77e2
3,222
py
Python
share/ttkwidgets/debugwindow.py
Marusoftware/Marutools
2b462ea02abaf957eb037c281b62d7efe053840e
[ "MIT" ]
null
null
null
share/ttkwidgets/debugwindow.py
Marusoftware/Marutools
2b462ea02abaf957eb037c281b62d7efe053840e
[ "MIT" ]
5
2021-01-21T09:46:12.000Z
2022-02-14T13:54:44.000Z
share/ttkwidgets/debugwindow.py
Marusoftware/Marutools
2b462ea02abaf957eb037c281b62d7efe053840e
[ "MIT" ]
2
2021-11-02T11:01:53.000Z
2022-02-14T10:11:21.000Z
""" Author: RedFantom License: GNU GPLv3 Source: This repository """ try: import Tkinter as tk import ttk import tkFileDialog as fd except ImportError: import tkinter as tk from tkinter import ttk import tkinter.filedialog as fd import sys from ttkwidgets import AutoHideScrollbar
33.915789
118
0.619491
807f29911fba7b1a336c50a170090123fe9e9f0c
967
py
Python
migrations/versions/e9596ed3a618_add_release_date_uk_field_and_director_.py
jimmybutton/moviedb
61028ac4db7f58a671ab3a1c2afd3bfb53372773
[ "MIT" ]
null
null
null
migrations/versions/e9596ed3a618_add_release_date_uk_field_and_director_.py
jimmybutton/moviedb
61028ac4db7f58a671ab3a1c2afd3bfb53372773
[ "MIT" ]
null
null
null
migrations/versions/e9596ed3a618_add_release_date_uk_field_and_director_.py
jimmybutton/moviedb
61028ac4db7f58a671ab3a1c2afd3bfb53372773
[ "MIT" ]
null
null
null
"""add release_date_uk field and director_id to movie model Revision ID: e9596ed3a618 Revises: affd804a37d8 Create Date: 2020-08-05 17:34:58.197456 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e9596ed3a618' down_revision = 'affd804a37d8' branch_labels = Non...
29.30303
82
0.698035
808194511d3bb385bc1da7eb37a9fb429a3efa5a
26,267
py
Python
retro/tables/generate_tdi_table.py
ellohfin/retro
58ec8f5b698e6140acd215717f051d99e407c4e5
[ "Apache-2.0" ]
1
2018-03-02T01:05:52.000Z
2018-03-02T01:05:52.000Z
retro/tables/generate_tdi_table.py
ellohfin/retro
58ec8f5b698e6140acd215717f051d99e407c4e5
[ "Apache-2.0" ]
30
2018-01-30T21:03:28.000Z
2019-11-07T16:42:07.000Z
retro/tables/generate_tdi_table.py
ellohfin/retro
58ec8f5b698e6140acd215717f051d99e407c4e5
[ "Apache-2.0" ]
6
2017-07-27T19:49:13.000Z
2019-11-19T13:38:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=wrong-import-position, too-many-locals """ Create time- and DOM-independent (TDI) whole-detector Cartesian-binned Retro table. The generated table is useful for computing the total charge expected to be deposited by a hypothesis across the entire detecto...
37.685796
86
0.619751
8083275f4400ee1792daa63652d62cc4e6bfe804
885
py
Python
commandment/alembics/disabled_versions/e47e29a9537c_create_certificate_payload_table.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
138
2017-11-21T17:57:59.000Z
2022-02-16T13:08:39.000Z
commandment/alembics/disabled_versions/e47e29a9537c_create_certificate_payload_table.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
24
2017-11-12T01:42:13.000Z
2022-02-24T21:53:28.000Z
commandment/alembics/disabled_versions/e47e29a9537c_create_certificate_payload_table.py
pythonModule/commandment
32ca167e44753014857a3f0329c8662f0df97f02
[ "MIT" ]
35
2017-11-15T12:14:44.000Z
2022-02-26T00:44:36.000Z
"""Create certificate_payload table Revision ID: e47e29a9537c Revises: 072fba4a2256 Create Date: 2017-05-19 19:51:20.672688 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e47e29a9537c' down_revision = '072fba4a2256' branch_labels = None depends_on = None
27.65625
83
0.629379
8083cb6483b18e6dd4299dd81d56acefd37473b1
28,929
py
Python
exipicrename/exipicrename.py
unixhex/exipicrename2
b2a2f5af224c4a2c93f81e48c2622c7522d76489
[ "MIT" ]
1
2020-02-14T13:41:28.000Z
2020-02-14T13:41:28.000Z
exipicrename/exipicrename.py
unixhex/exipicrename2
b2a2f5af224c4a2c93f81e48c2622c7522d76489
[ "MIT" ]
3
2021-06-08T19:46:29.000Z
2022-03-11T23:44:57.000Z
exipicrename/exipicrename.py
unixhex/exipicrename2
b2a2f5af224c4a2c93f81e48c2622c7522d76489
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ exipicrename beta of python3 version. Reads exif data from pictures and rename them. Used exif tags are: * DateTimeOriginal * FNumber * ExposureTime * FocalLength * Model * ISOSpeedRatings """ # Copyright (c) 2019 Hella Breitkopf, https://www.unixwitch.de # MIT License -> see LICENSE fil...
35.023002
108
0.624564
80855b801b71f76158fe03a357cb9349f1c0a767
4,324
py
Python
api/urls.py
deka108/meas_deka
9646b04b878f325ade0a59e41bfcb10ab962d753
[ "Apache-2.0" ]
null
null
null
api/urls.py
deka108/meas_deka
9646b04b878f325ade0a59e41bfcb10ab962d753
[ "Apache-2.0" ]
1
2018-06-19T16:27:31.000Z
2018-06-21T02:57:03.000Z
api/urls.py
deka108/mathqa-server
9646b04b878f325ade0a59e41bfcb10ab962d753
[ "Apache-2.0" ]
null
null
null
""" # Name: cms/urls.py # Description: # Created by: Phuc Le-Sanh # Date Created: Nov 23, 2016 # Last Modified: Nov 23, 2016 # Modified by: Phuc Le-Sanh """ from django.conf.urls import url, include # from rest_framework import routers from rest_framework.authtoken import views as rest_views from re...
37.275862
85
0.640148
8085b1f5f46541c577be405f9307b4ff5a65fd68
8,396
py
Python
tests/unit_tests/test_syntheticdataset2_shapes.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
tests/unit_tests/test_syntheticdataset2_shapes.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
tests/unit_tests/test_syntheticdataset2_shapes.py
liyu711/SUAS
2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b
[ "MIT" ]
null
null
null
from SyntheticDataset2.ElementsCreator import * import unittest from PIL import Image
41.156863
87
0.638161
8088b3c5ba94e3f16d523776ee4f502d91b3b6b5
1,243
py
Python
44.wildcard-matching.py
leonhx/leetcode-practice
35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec
[ "MIT" ]
null
null
null
44.wildcard-matching.py
leonhx/leetcode-practice
35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec
[ "MIT" ]
null
null
null
44.wildcard-matching.py
leonhx/leetcode-practice
35fabe5a1b98c05a5dd5d6a62201e9cb54be69ec
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=44 lang=python3 # # [44] Wildcard Matching #
34.527778
69
0.436846
8089824c1db000c6c79126935002dddc0b661de7
664
py
Python
Scripts/Utilities/linear_regg.py
aryanmangal769/UGV-DTU_ROS_Stack
6a00c83d076361bdf171c1ad4ef383ad262da4e6
[ "BSD-3-Clause" ]
null
null
null
Scripts/Utilities/linear_regg.py
aryanmangal769/UGV-DTU_ROS_Stack
6a00c83d076361bdf171c1ad4ef383ad262da4e6
[ "BSD-3-Clause" ]
null
null
null
Scripts/Utilities/linear_regg.py
aryanmangal769/UGV-DTU_ROS_Stack
6a00c83d076361bdf171c1ad4ef383ad262da4e6
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from fractions import Fraction if __name__ == '__main__': #enter coordinates vectors Y = np.array([[-420,-330]]).T X = np.array([[300,0]]).T # y =mx +c O = np.ones(X.shape) A = np.append(X,O,axis=1) A_t = A.T A_t_dot_A = A_t.dot(A) A_t_dot_A_inv = np.linalg.inv(A_t_dot_A) ...
16.6
48
0.643072
808a844aeabff3fdc0f7f9b10b9c6a241b07b945
2,159
py
Python
pythia/pyre/inventory/FacilityArrayFacility.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
1
2015-11-30T08:01:39.000Z
2015-11-30T08:01:39.000Z
pythia/pyre/inventory/FacilityArrayFacility.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
27
2018-05-24T18:31:25.000Z
2021-10-16T03:57:52.000Z
pythia/pyre/inventory/FacilityArrayFacility.py
willic3/pythia
2657b95a0c07fd3c914ab6b5f7ec89a8edba004c
[ "BSD-3-Clause" ]
7
2019-07-19T02:30:56.000Z
2021-06-02T22:00:01.000Z
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # California Institute of Technology # (C) 2008 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
29.986111
94
0.544697
808ba59db073ed00f5b7a13b6e51d1825bca7ae9
2,052
py
Python
psearch/scripts/split.py
meddwl/psearch
58c374bdf6550ab43a8832aeaf9b18d5969640b5
[ "BSD-3-Clause" ]
24
2018-11-05T10:07:26.000Z
2022-03-28T06:26:23.000Z
psearch/scripts/split.py
meddwl/psearch
58c374bdf6550ab43a8832aeaf9b18d5969640b5
[ "BSD-3-Clause" ]
4
2020-01-03T21:10:16.000Z
2021-11-04T16:47:55.000Z
psearch/scripts/split.py
meddwl/psearch
58c374bdf6550ab43a8832aeaf9b18d5969640b5
[ "BSD-3-Clause" ]
10
2019-11-21T18:48:28.000Z
2021-08-22T12:19:01.000Z
#!/usr/bin/env python3 # author : Alina Kutlushina # date : 01.05.2018 # license : BSD-3 #============================================================================== import sys import argparse import pandas as pd def main(in_fname, out_act_fname, out_inact_fname): """ split a d...
41.04
113
0.60039
808ef805aa204de16575cc7dc058ed93b79e7158
175
py
Python
mxnet/process.py
ParadoxZW/Face_Cam_Exe
4623a8abb8d485f4c714081b6e3b78105e7423a7
[ "MIT" ]
4
2018-11-04T06:13:39.000Z
2019-12-16T13:32:18.000Z
mxnet/process.py
ParadoxZW/Face_Cam_Exe
4623a8abb8d485f4c714081b6e3b78105e7423a7
[ "MIT" ]
null
null
null
mxnet/process.py
ParadoxZW/Face_Cam_Exe
4623a8abb8d485f4c714081b6e3b78105e7423a7
[ "MIT" ]
null
null
null
# import cv2 import os # import numpy as np list = os.listdir('./') names = open('sn.txt', 'a') for path in list: names.write('(\'mxnet\\\\' + path +'\' ,\'.\'),\n')
25
55
0.531429
808f76f97cbe057b74c0a81a931896d5d9eb9b7d
2,084
py
Python
1024/cl/spiders/grass.py
wkias/1024
501e9cb2563e8dc6cad84e99db2128f2a447af91
[ "MIT" ]
2
2020-12-02T12:25:52.000Z
2021-01-08T02:51:54.000Z
1024/cl/spiders/grass.py
wkias/1024
501e9cb2563e8dc6cad84e99db2128f2a447af91
[ "MIT" ]
null
null
null
1024/cl/spiders/grass.py
wkias/1024
501e9cb2563e8dc6cad84e99db2128f2a447af91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from ..items import ClItem from ..settings import META_URL from ..settings import SELECT from ..settings import TYPE from ..settings import DOWNLOAD_HISTORY
41.68
88
0.490883
808fdabed7258384deb736c07d8b5eb6ec74e18d
97
py
Python
src/constants.py
lbilic/Soft
ebdf52f28b60c89f8efb89b7b3cada01026950bc
[ "MIT" ]
20
2018-12-18T06:46:04.000Z
2022-02-20T16:04:46.000Z
src/constants.py
lbilic/Soft
ebdf52f28b60c89f8efb89b7b3cada01026950bc
[ "MIT" ]
6
2018-03-30T13:12:05.000Z
2018-03-30T13:12:16.000Z
src/constants.py
lbilic/Soft
ebdf52f28b60c89f8efb89b7b3cada01026950bc
[ "MIT" ]
14
2018-06-19T13:33:41.000Z
2021-12-22T13:58:38.000Z
FOREGROUND_THRESHOLD = .25 IMG_PATCH_SIZE = 16 NUM_CHANNELS = 3 NUM_LABELS = 2 PIXEL_DEPTH = 255
16.166667
26
0.783505
8091841aebc9cd0d5574ba4316a7afa63efa62f3
12,177
py
Python
doc/test-keys.py
marmidr/TWins
3e29cc9dbe348ffd59f6aad06ddd6ddd3aef91a7
[ "MIT" ]
null
null
null
doc/test-keys.py
marmidr/TWins
3e29cc9dbe348ffd59f6aad06ddd6ddd3aef91a7
[ "MIT" ]
null
null
null
doc/test-keys.py
marmidr/TWins
3e29cc9dbe348ffd59f6aad06ddd6ddd3aef91a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # https://wiki.bash-hackers.org/scripting/terminalcodes import sys,termios, time ## Font attributes ## # off off = '\x1b[0m' # off default = '\x1b[39m' # default foreground DEFAULT = '\x1b[49m' # default background # bd = '\x1b[1m' # bold ft = '\x1b[2m' # faint st = '\x1b[3m' # standout ul = '\...
31.710938
88
0.302538
8091f803a97bac3ff576f5dd377c3775b3de1ebd
740
py
Python
Twitoff-01/twitoff/app.py
ivan-mihailov/LS-Unit-3-Sprint-3-Module-1
964029740d8db34121f19e5dec4c76c23c256c01
[ "Apache-2.0" ]
null
null
null
Twitoff-01/twitoff/app.py
ivan-mihailov/LS-Unit-3-Sprint-3-Module-1
964029740d8db34121f19e5dec4c76c23c256c01
[ "Apache-2.0" ]
null
null
null
Twitoff-01/twitoff/app.py
ivan-mihailov/LS-Unit-3-Sprint-3-Module-1
964029740d8db34121f19e5dec4c76c23c256c01
[ "Apache-2.0" ]
null
null
null
import os from flask import Flask, render_template, request from .models import db, User def create_app(): """Create and configure an instance of the Flask appication.""" app_dir = os.path.dirname(os.path.abspath(__file__)) database = "sqlite:///{}".format(os.path.join(app_dir, "twitoff.sqlite3")) ...
29.6
83
0.644595
809321ce7f4ed89b3d9c2cee1b729e5803693f21
1,664
py
Python
locations/spiders/costacoffee_pl.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/costacoffee_pl.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
locations/spiders/costacoffee_pl.py
cmecklenborg/alltheplaces
e62b59fb0071b6e289c4622d368fdb203a28347e
[ "MIT" ]
null
null
null
import scrapy from locations.items import GeojsonPointItem
32.627451
86
0.412861
809358564886b7b38cfb4df0981ded339161c3b7
7,530
py
Python
Recurrent Neural Network.py
Sayansree/Recurrent-Neural-Network-from-scrach
16daa7a203b4558fecbd783d9218929561485bb3
[ "MIT" ]
null
null
null
Recurrent Neural Network.py
Sayansree/Recurrent-Neural-Network-from-scrach
16daa7a203b4558fecbd783d9218929561485bb3
[ "MIT" ]
null
null
null
Recurrent Neural Network.py
Sayansree/Recurrent-Neural-Network-from-scrach
16daa7a203b4558fecbd783d9218929561485bb3
[ "MIT" ]
null
null
null
import numpy as np """ basic implementation of Recurrent Neural Networks from scrach to train model to learn to add any number pair when given in binary arrayed format devloper-->sayaneree paria """ ###we train RNN to learn how to add two numbers # we generate 10,1000 random pair of numbers whose sum is be...
41.147541
165
0.619389
8093a2725077b2b49d9c6858f567993bef3daea9
572
py
Python
Asyncio/asyncio_ensure_future.py
xlui/PythonExamples
0389efb84e01dc1310bb2bab7aa2433c0e1b45c4
[ "MIT" ]
null
null
null
Asyncio/asyncio_ensure_future.py
xlui/PythonExamples
0389efb84e01dc1310bb2bab7aa2433c0e1b45c4
[ "MIT" ]
null
null
null
Asyncio/asyncio_ensure_future.py
xlui/PythonExamples
0389efb84e01dc1310bb2bab7aa2433c0e1b45c4
[ "MIT" ]
null
null
null
# asyncio_ensure_future.py import asyncio event_loop = asyncio.get_event_loop() event_loop.run_until_complete(outer()) event_loop.close()
20.428571
49
0.685315
80940e10972b61cf1900104bd927a2163e4fae1d
1,737
py
Python
tests/test_db_operations.py
antoniodimariano/metrics_consumer
5c485f3b6c2b6788f947c02b49083ce237424bfc
[ "Apache-2.0" ]
null
null
null
tests/test_db_operations.py
antoniodimariano/metrics_consumer
5c485f3b6c2b6788f947c02b49083ce237424bfc
[ "Apache-2.0" ]
null
null
null
tests/test_db_operations.py
antoniodimariano/metrics_consumer
5c485f3b6c2b6788f947c02b49083ce237424bfc
[ "Apache-2.0" ]
null
null
null
from psycopg2 import pool import psycopg2 import psycopg2.extras import unittest if __name__ == "__main__": unittest.main()
39.477273
185
0.666091
8094696f113e89bc44cd16bd0305b2a5ac21b60d
747
py
Python
productive/producer/models/livestock_sales_channel.py
tapiaw38/productive-app
b862069700882a242b8ae350c146bb8950142436
[ "MIT" ]
null
null
null
productive/producer/models/livestock_sales_channel.py
tapiaw38/productive-app
b862069700882a242b8ae350c146bb8950142436
[ "MIT" ]
null
null
null
productive/producer/models/livestock_sales_channel.py
tapiaw38/productive-app
b862069700882a242b8ae350c146bb8950142436
[ "MIT" ]
null
null
null
""" Model Sales Channel Production Livestock """ from django.db import models
31.125
69
0.709505