hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
4a0f002191d74bb50bea698bd5937724a5cff101
1,648
py
Python
gamer_registration_system/con/tests/test_models.py
splummer/gamer_reg
7cccbbf8e6e52e46594c8128a7e7a523b8202f03
[ "MIT" ]
null
null
null
gamer_registration_system/con/tests/test_models.py
splummer/gamer_reg
7cccbbf8e6e52e46594c8128a7e7a523b8202f03
[ "MIT" ]
null
null
null
gamer_registration_system/con/tests/test_models.py
splummer/gamer_reg
7cccbbf8e6e52e46594c8128a7e7a523b8202f03
[ "MIT" ]
null
null
null
import pytest import datetime from django.test import TestCase from django.utils import timezone from gamer_registration_system.con.models import Convention, Event, EventSchedule # Create your tests here. class EventScheduleModelTests(TestCase): new_con = Convention(convention_name='Test Future Con') new_eve...
43.368421
95
0.723908
1,439
0.87318
0
0
0
0
0
0
369
0.223908
4a0f14554b46d464f95e7a64d1a1063eea95e280
661
py
Python
Codes/gracekoo/interview_33.py
ghoslation/algorithm
5708bf89e59a80cd0f50f2e6138f069b4f9bc96e
[ "Apache-2.0" ]
256
2017-10-25T13:02:15.000Z
2022-02-25T13:47:59.000Z
Codes/gracekoo/interview_33.py
IYoreI/Algorithm
0addf0cda0ec9e3f46c480eeda3a8ecb64c94121
[ "Apache-2.0" ]
56
2017-10-27T01:34:20.000Z
2022-03-01T00:20:55.000Z
Codes/gracekoo/interview_33.py
IYoreI/Algorithm
0addf0cda0ec9e3f46c480eeda3a8ecb64c94121
[ "Apache-2.0" ]
83
2017-10-25T12:51:53.000Z
2022-02-15T08:27:03.000Z
# -*- coding: utf-8 -*- # @Time: 2020/7/3 10:21 # @Author: GraceKoo # @File: interview_33.py # @Desc: https://leetcode-cn.com/problems/chou-shu-lcof/ class Solution: def nthUglyNumber(self, n: int) -> int: if n <= 0: return 0 dp, a, b, c = [1] * n, 0, 0, 0 for i in range(1, n):...
24.481481
59
0.444781
462
0.698941
0
0
0
0
0
0
145
0.219365
4a108377cf0f5dbdfd8a79087fc2255b8874224a
2,599
py
Python
SafeCracker.py
epollinger/python
26b500ace6e9ec743c6046be3e191262fb5eb1e9
[ "MIT" ]
null
null
null
SafeCracker.py
epollinger/python
26b500ace6e9ec743c6046be3e191262fb5eb1e9
[ "MIT" ]
null
null
null
SafeCracker.py
epollinger/python
26b500ace6e9ec743c6046be3e191262fb5eb1e9
[ "MIT" ]
null
null
null
# Solution for the SafeCracker 50 Puzzle from Creative Crafthouse # By: Eric Pollinger # 9/11/2016 # # Function to handle the addition of a given slice def add(slice): if row1Outer[(index1 + slice) % 16] != -1: valRow1 = row1Outer[(index1 + slice) % 16] else: valRow1 = row0Inner[slice] ...
41.253968
147
0.485571
0
0
0
0
0
0
0
0
362
0.139284
4a12505b82a3a30031591a8cfae55ddea0b1e877
978
py
Python
mul_func.py
motokimura/shake_shake_chainer
3b87193dbfcf58723586dfc34c9bc21a900da327
[ "MIT" ]
2
2018-11-26T13:51:56.000Z
2019-08-12T00:22:20.000Z
mul_func.py
motokimura/shake_shake_chainer
3b87193dbfcf58723586dfc34c9bc21a900da327
[ "MIT" ]
null
null
null
mul_func.py
motokimura/shake_shake_chainer
3b87193dbfcf58723586dfc34c9bc21a900da327
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import chainer from chainer import cuda from chainer import configuration class Mul(chainer.function.Function): def __init__(self): return def forward(self, inputs): x1, x2 = inputs xp = cuda.get_array_module(x1) # Get numpy(x=n) or c...
26.432432
81
0.578732
811
0.829243
0
0
0
0
0
0
86
0.087935
4a1271f036e10e95cf781747d5f3a517fd97dc81
1,673
py
Python
client/osx/objc_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
6
2015-04-03T02:25:28.000Z
2021-11-17T21:42:59.000Z
client/osx/objc_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
3
2020-02-11T22:29:15.000Z
2021-06-10T17:44:31.000Z
client/osx/objc_test.py
nahidupa/grr
100a9d85ef2abb234e12e3ac2623caffb4116be7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2012 Google Inc. All Rights Reserved. """Tests for grr.client.lib.osx.objc. These tests don't have OS X dependencies and will run on linux. """ import ctypes import mox from grr.client.osx import objc from grr.lib import flags from grr.lib import test_lib class ObjcTest(test_li...
26.983871
70
0.706515
1,282
0.766288
0
0
0
0
0
0
273
0.16318
4a135294042232d55bf132afa1098b5dfc142ad5
731
py
Python
tests/test_demo.py
bruziev/security_interface
0758a88f3c6ce96502ad287ab1a743cd5040c0b8
[ "MIT" ]
5
2018-11-02T07:50:30.000Z
2019-03-22T19:40:17.000Z
tests/test_demo.py
theruziev/security_interface
cacb85f0736c20f6cbe1b4d148ebb8b56b921642
[ "MIT" ]
146
2019-05-30T09:16:06.000Z
2022-02-04T17:20:51.000Z
tests/test_demo.py
theruziev/security_interface
cacb85f0736c20f6cbe1b4d148ebb8b56b921642
[ "MIT" ]
1
2018-11-13T06:21:01.000Z
2018-11-13T06:21:01.000Z
import pytest from demo.jwt import IdentityMaker, JwtIdentityPolicy, JwtAuthPolicy from security_interface.api import Security SECRET = "SECRET" identity_maker = IdentityMaker(expired_after=1, secret=SECRET) jwt_identity = JwtIdentityPolicy(secret=SECRET) jwt_auth = JwtAuthPolicy() security = Security(jwt_identity...
27.074074
68
0.74829
0
0
0
0
396
0.541724
375
0.512996
86
0.117647
4a1469b6007eb43c8ea911ee36cf0b4ea0c6bbef
867
py
Python
demos/grasp_fusion/ros/grasp_fusion/node_scripts/bounding_box_to_tf.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
demos/grasp_fusion/ros/grasp_fusion/node_scripts/bounding_box_to_tf.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
2
2019-04-11T05:36:23.000Z
2019-08-19T12:58:10.000Z
demos/grasp_fusion/ros/grasp_fusion/node_scripts/bounding_box_to_tf.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy import tf from jsk_recognition_msgs.msg import BoundingBox class BoundingBoxToTf(object): def __init__(self): self.tf_frame = rospy.get_param('~tf_frame', 'bounding_box') self.broadcaster = tf.TransformBroadcaster() self.sub = rospy.Subscriber('~inpu...
27.09375
72
0.55594
651
0.750865
0
0
0
0
0
0
85
0.098039
4a188b12918e6b0e9f8e6f9cc1f7a056cc5daf48
42
py
Python
pymkup/__init__.py
psolin/pymkup
5f2e5787f3150e10b9c6391c805b02be7496cdc1
[ "MIT" ]
7
2021-04-17T11:35:00.000Z
2021-12-30T04:05:27.000Z
pymkup/__init__.py
psolin/pymkup
5f2e5787f3150e10b9c6391c805b02be7496cdc1
[ "MIT" ]
23
2021-04-15T18:01:44.000Z
2021-05-21T15:58:59.000Z
pymkup/__init__.py
psolin/pymkup
5f2e5787f3150e10b9c6391c805b02be7496cdc1
[ "MIT" ]
2
2021-04-20T18:09:46.000Z
2021-04-24T13:04:04.000Z
from .pymkup import * __version__ = '0.1'
14
21
0.690476
0
0
0
0
0
0
0
0
5
0.119048
4a18f414dde63eff7e1a06931ef3b1725eecda3f
539
py
Python
tests/import/module_getattr.py
sebi5361/micropython
6c054cd124bc6229bee127128264dc0829dea53c
[ "MIT" ]
198
2017-03-24T23:23:54.000Z
2022-01-07T07:14:00.000Z
tests/import/module_getattr.py
sebi5361/micropython
6c054cd124bc6229bee127128264dc0829dea53c
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
tests/import/module_getattr.py
sebi5361/micropython
6c054cd124bc6229bee127128264dc0829dea53c
[ "MIT" ]
187
2017-03-24T23:23:58.000Z
2022-02-25T01:48:45.000Z
# test __getattr__ on module # ensure that does_not_exist doesn't exist to start with this = __import__(__name__) try: this.does_not_exist assert False except AttributeError: pass # define __getattr__ def __getattr__(attr): if attr == 'does_not_exist': return False raise AttributeError # ...
22.458333
70
0.742115
0
0
0
0
0
0
0
0
254
0.471243
4a1afa3059a4ff0d3f5701a8c02d7add860eb0bd
1,094
py
Python
transform_pdf2image/__init__.py
SilasPDJ/maeportifolios_desktop_etc
a341648c8161251d42055155f6fd99fd388d9f2d
[ "MIT" ]
null
null
null
transform_pdf2image/__init__.py
SilasPDJ/maeportifolios_desktop_etc
a341648c8161251d42055155f6fd99fd388d9f2d
[ "MIT" ]
null
null
null
transform_pdf2image/__init__.py
SilasPDJ/maeportifolios_desktop_etc
a341648c8161251d42055155f6fd99fd388d9f2d
[ "MIT" ]
null
null
null
from defs_utils import * import pdf2image import os def transforma_pdf_em_img_por_materia(materia, pdf_path=None): searched = materia if pdf_path: list_files = list_dir(complete_name(searched, pre=pdf_path), True) else: list_files = list_dir(complete_name(searched), True) volta = os.ge...
30.388889
74
0.546618
0
0
0
0
0
0
0
0
96
0.087751
4a1b274e1ae2fba791921111ffefa8e3eb237de0
826
py
Python
Own/Python/Tutorials/Lists.py
cychitivav/programming_exercises
e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78
[ "MIT" ]
null
null
null
Own/Python/Tutorials/Lists.py
cychitivav/programming_exercises
e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78
[ "MIT" ]
null
null
null
Own/Python/Tutorials/Lists.py
cychitivav/programming_exercises
e8e7ddb4ec4eea52ee0d3826a144c7dc97195e78
[ "MIT" ]
null
null
null
#Cristian Chitiva #[email protected] #12/Sept/2018 myList = ['Hi', 5, 6 , 3.4, "i"] #Create the list myList.append([4, 5]) #Add sublist [4, 5] to myList myList.insert(2,"f") #Add "f" in the position 2 print(myList) myList = [1, 3, 4, 5, 23, 4, 3, 222, 454, 6445, 6, 4654, 455] myList.sort() #So...
25.030303
68
0.641646
0
0
0
0
0
0
0
0
263
0.318402
4a1b69377cbe114d0ff86a93ac41f2645662116e
7,955
py
Python
src/scripts/retrive_sfd_data.py
seattlepublicrecords/revealseattle
727d6fcaed3abd3170f4941d249067c52e86bf96
[ "Apache-2.0" ]
null
null
null
src/scripts/retrive_sfd_data.py
seattlepublicrecords/revealseattle
727d6fcaed3abd3170f4941d249067c52e86bf96
[ "Apache-2.0" ]
5
2016-10-12T05:21:56.000Z
2016-10-12T10:26:10.000Z
src/scripts/retrive_sfd_data.py
seattlepublicrecords/revealseattle
727d6fcaed3abd3170f4941d249067c52e86bf96
[ "Apache-2.0" ]
null
null
null
import sys, traceback from bs4 import BeautifulSoup import rethinkdb as r import requests import time import geocoder import datetime from dateutil.parser import parse as dtparse from pytz import timezone r.connect( "localhost", 28015).repl() la = timezone('America/Los_Angeles') table = r.db("revealseattle").table("dis...
56.021127
215
0.63193
0
0
0
0
0
0
0
0
2,192
0.27555
4a1b9f76326f96b5e172977b7e2c29700d0ab015
2,654
py
Python
tests/test_unasync.py
nsidnev/unasyncer
e48f9104b123707f621adce87721f1028912094d
[ "MIT" ]
null
null
null
tests/test_unasync.py
nsidnev/unasyncer
e48f9104b123707f621adce87721f1028912094d
[ "MIT" ]
null
null
null
tests/test_unasync.py
nsidnev/unasyncer
e48f9104b123707f621adce87721f1028912094d
[ "MIT" ]
null
null
null
import os import pathlib import pytest from unasyncer.unasync import unasync_path @pytest.fixture def expected_unasynced_code(sources: pathlib.Path) -> str: with open(sources / "right_sync.py") as right_sync_file: return right_sync_file.read() def test_create_right_sync_structure_for_dir(sources: path...
28.234043
80
0.712509
0
0
0
0
173
0.065185
0
0
365
0.137528
4a1ca9697d104014d8cea3a47f68e33f8be8c14c
4,281
py
Python
baccarat.py
lnbalon/open-casino
2358b12fa2c3c6f17a06c261cf763a2709e4b034
[ "MIT" ]
null
null
null
baccarat.py
lnbalon/open-casino
2358b12fa2c3c6f17a06c261cf763a2709e4b034
[ "MIT" ]
null
null
null
baccarat.py
lnbalon/open-casino
2358b12fa2c3c6f17a06c261cf763a2709e4b034
[ "MIT" ]
null
null
null
import random def shuffle_shoe(n_decks=8): cards = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K'] deck = cards * 4 shoe = deck * n_decks random.shuffle(shoe) return shoe def deal_game(shoe): # initialize a list to store cards for player and banker player = [] banker = [] # defi...
28.731544
79
0.5758
0
0
0
0
0
0
0
0
1,205
0.281476
4a1d8a246738fe7d87ca8aa627f3e6f93ad3cc07
3,561
py
Python
tests/amqp/test_rpc_client.py
OpenMatchmaking/sage-utils-python
348394bf9cd3adb96fe3915d1d4d99daa46ab437
[ "BSD-3-Clause" ]
null
null
null
tests/amqp/test_rpc_client.py
OpenMatchmaking/sage-utils-python
348394bf9cd3adb96fe3915d1d4d99daa46ab437
[ "BSD-3-Clause" ]
2
2018-04-07T23:24:19.000Z
2018-05-25T08:31:31.000Z
tests/amqp/test_rpc_client.py
OpenMatchmaking/sage-utils-python
348394bf9cd3adb96fe3915d1d4d99daa46ab437
[ "BSD-3-Clause" ]
null
null
null
import pytest from sage_utils.amqp.clients import RpcAmqpClient from sage_utils.amqp.extension import AmqpExtension from sage_utils.constants import VALIDATION_ERROR from sage_utils.wrappers import Response from tests.fixtures import Application, FakeConfig, FakeRegisterMicroserviceWorker REQUEST_QUEUE = FakeRegiste...
35.61
114
0.775344
0
0
0
0
2,977
0.836001
2,914
0.818309
98
0.02752
4a21f3279034131e287608aa7f238be08a6231f6
986
py
Python
project4github/largest_digit.py
chinkaih319/SC101
25c179c96e0a2bbc4e47768c029ee4bf49e06245
[ "MIT" ]
null
null
null
project4github/largest_digit.py
chinkaih319/SC101
25c179c96e0a2bbc4e47768c029ee4bf49e06245
[ "MIT" ]
null
null
null
project4github/largest_digit.py
chinkaih319/SC101
25c179c96e0a2bbc4e47768c029ee4bf49e06245
[ "MIT" ]
null
null
null
""" File: largest_digit.py Name: ---------------------------------- This file recursively prints the biggest digit in 5 different integers, 12345, 281, 6, -111, -9453 If your implementation is correct, you should see 5, 8, 6, 1, 9 on Console. """ def main(): print(find_largest_digit(12345)) # 5 print(find_larg...
18.603774
54
0.558824
0
0
0
0
0
0
0
0
300
0.30426
4a2373574a8c20f2e658dd78ede53ea3d56378cc
1,196
py
Python
eclipse-mosquitto/test/broker/07-will-no-flag.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
2
2021-04-20T14:28:59.000Z
2021-05-06T07:46:53.000Z
eclipse-mosquitto/test/broker/07-will-no-flag.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
eclipse-mosquitto/test/broker/07-will-no-flag.py
HenriqueBuzin/mosquitto-eclipse-mqtt
00468923fcf70eefdf2c707b6ba9bdd4f859faf2
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # Test whether a connection is disconnected if it sets the will flag but does # not provide a will payload. from mosq_test_helper import * def do_test(proto_ver): rc = 1 keepalive = 10 connect_packet = mosq_test.gen_connect("will-no-payload", keepalive=keepalive, will_topic="will/t...
28.47619
158
0.655518
0
0
0
0
0
0
0
0
261
0.218227
4a243a51f1c3704674b477f2c65030fc5b33c2c9
563
py
Python
setup.py
gsgoncalves/K-NRM
b7bc8c44ddf6c8d0bc14a399beb05c9c1956fe2f
[ "BSD-3-Clause" ]
198
2017-11-02T18:11:44.000Z
2022-03-26T00:03:03.000Z
setup.py
gsgoncalves/K-NRM
b7bc8c44ddf6c8d0bc14a399beb05c9c1956fe2f
[ "BSD-3-Clause" ]
18
2017-11-14T08:04:21.000Z
2022-01-14T09:09:45.000Z
setup.py
gsgoncalves/K-NRM
b7bc8c44ddf6c8d0bc14a399beb05c9c1956fe2f
[ "BSD-3-Clause" ]
43
2017-11-02T16:43:35.000Z
2021-06-13T09:22:13.000Z
# Copyright (c) 2017, Carnegie Mellon University. All rights reserved. # # Use of the K-NRM package is subject to the terms of the software license set # forth in the LICENSE file included with this software, and also available at # https://github.com/AdeDZY/K-NRM/blob/master/LICENSE from setuptools import setup from ...
31.277778
78
0.719361
0
0
0
0
0
0
0
0
355
0.630551
4a26cd7230b52b52759159c2aeac729e2261aebf
2,674
py
Python
tohu/v4/set_special_methods.py
maxalbert/tohu
3adf0c58b13ef1e1d716d7d613484d2adc58fb60
[ "MIT" ]
1
2019-03-07T19:58:45.000Z
2019-03-07T19:58:45.000Z
tohu/v4/set_special_methods.py
maxalbert/tohu
3adf0c58b13ef1e1d716d7d613484d2adc58fb60
[ "MIT" ]
9
2017-10-04T15:08:53.000Z
2021-02-02T21:51:41.000Z
tohu/v4/set_special_methods.py
maxalbert/tohu
3adf0c58b13ef1e1d716d7d613484d2adc58fb60
[ "MIT" ]
null
null
null
""" This module is not meant to be imported directly. Its purpose is to patch the TohuBaseGenerator class so that its special methods __add__, __mul__ etc. support other generators as arguments. """ from operator import add, mul, gt, ge, lt, le, eq from .base import TohuBaseGenerator from .primitive_generators import...
29.384615
102
0.775243
0
0
0
0
0
0
0
0
658
0.246073
c57aaa710fcf9be54652ebcd007f595595a9e9c7
12,486
py
Python
backend/bot/bot.py
makarbaderko/hackathon_itgenio_2020.2
35dc545a749af2a10d9e1584bbba97e0b5e48af9
[ "MIT" ]
null
null
null
backend/bot/bot.py
makarbaderko/hackathon_itgenio_2020.2
35dc545a749af2a10d9e1584bbba97e0b5e48af9
[ "MIT" ]
null
null
null
backend/bot/bot.py
makarbaderko/hackathon_itgenio_2020.2
35dc545a749af2a10d9e1584bbba97e0b5e48af9
[ "MIT" ]
null
null
null
#Imports import config import telebot from db_manager import SQL import os #Globals restaurants = {"12345":"abc"} current_restaurant_id = "" current_restaurant_key = "" couriers = {"12345":"abc"} current_courier_id = "" current_courier_key = "" current_courier_altitude = 0 current_courier_longitude = 0 #DB + BOT CO...
47.116981
213
0.744594
0
0
0
0
1,825
0.125421
0
0
5,492
0.377431
c57c19f3188cfdc20686ab1aee33afbfe3ee78b0
1,205
py
Python
Project/HDLT/User/getCloseUsers.py
Opty-MSc/HDS
5ffff7908d185bbbf57cef4b9516ecd4b4ac70c8
[ "MIT" ]
null
null
null
Project/HDLT/User/getCloseUsers.py
Opty-MSc/HDS
5ffff7908d185bbbf57cef4b9516ecd4b4ac70c8
[ "MIT" ]
null
null
null
Project/HDLT/User/getCloseUsers.py
Opty-MSc/HDS
5ffff7908d185bbbf57cef4b9516ecd4b4ac70c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from math import hypot from sys import argv from typing import List, Dict, Tuple def main(fn, maxD): with open(fn) as file: positions: List[str] = file.readlines() uLocations: Dict[int, Dict[str, Tuple[int, int]]] = {} for position in positions: positionSplit = posi...
33.472222
108
0.582573
0
0
0
0
0
0
0
0
116
0.096266
c57cdef697b1ae7480e0770028e9b4a5e38b5778
2,155
py
Python
stock/migrations/0020_stockproductcds_stockproductdis.py
unicefburundi/paludisme
775af3c15349d4437e3780690eb6fa2ea8622ee7
[ "MIT" ]
1
2017-04-26T10:09:12.000Z
2017-04-26T10:09:12.000Z
stock/migrations/0020_stockproductcds_stockproductdis.py
srugano/paludisme
775af3c15349d4437e3780690eb6fa2ea8622ee7
[ "MIT" ]
null
null
null
stock/migrations/0020_stockproductcds_stockproductdis.py
srugano/paludisme
775af3c15349d4437e3780690eb6fa2ea8622ee7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-10 20:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("bdiadmin", "0013_auto_20170319_1415"), ("stock", "0...
32.164179
86
0.429234
1,964
0.911369
0
0
0
0
0
0
296
0.137355
c57e5f3b0b518154b490e3d006aecf49846e001b
5,271
py
Python
source_synphot/source.py
gnarayan/source_synphot
3bc3d48217ad7ea5630131e68fd3c544d14d10f6
[ "MIT" ]
null
null
null
source_synphot/source.py
gnarayan/source_synphot
3bc3d48217ad7ea5630131e68fd3c544d14d10f6
[ "MIT" ]
null
null
null
source_synphot/source.py
gnarayan/source_synphot
3bc3d48217ad7ea5630131e68fd3c544d14d10f6
[ "MIT" ]
1
2020-05-05T04:38:41.000Z
2020-05-05T04:38:41.000Z
# -*- coding: UTF-8 -*- """ Source processing routines """ from __future__ import absolute_import from __future__ import unicode_literals import warnings from collections import OrderedDict from astropy.cosmology import default_cosmology import numpy as np import os import pysynphot as S import astropy.table as at fro...
30.824561
97
0.634415
0
0
0
0
0
0
0
0
2,064
0.391577
c57ebe95c16965a0958db44e83cf0116a400cb09
415
py
Python
objects.py
umesh0689/Mandorian
bb5bd963686c020482082dbb3e52218520410276
[ "MIT" ]
null
null
null
objects.py
umesh0689/Mandorian
bb5bd963686c020482082dbb3e52218520410276
[ "MIT" ]
null
null
null
objects.py
umesh0689/Mandorian
bb5bd963686c020482082dbb3e52218520410276
[ "MIT" ]
null
null
null
from random import randint class Objects: def __init__(self): self._type=' ' self._arr=[] def creating_objects(self): times=randint(10,20) for i in range(times): temp=[] temp.append(randint(1,4))#1=slant 2=horizontal 3=vertical 4=powerup temp.a...
31.923077
79
0.573494
388
0.93494
0
0
0
0
0
0
45
0.108434
c58214974ffbd819063cc0bd44598acdfc483c89
2,264
py
Python
Code/GMM Test Scripts/yellowTest.py
Praveen1098/Gaussian_Mixture_Modelling
653fee21eaf777172696ea0440fef5c29dcb4893
[ "BSD-2-Clause" ]
null
null
null
Code/GMM Test Scripts/yellowTest.py
Praveen1098/Gaussian_Mixture_Modelling
653fee21eaf777172696ea0440fef5c29dcb4893
[ "BSD-2-Clause" ]
null
null
null
Code/GMM Test Scripts/yellowTest.py
Praveen1098/Gaussian_Mixture_Modelling
653fee21eaf777172696ea0440fef5c29dcb4893
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import cv2 import numpy as np from matplotlib import pyplot as plt import os import math def gaussian(x, mu, sig): return ((1/(sig*math.sqrt(2*math.pi)))*np.exp(-np.power(x - mu, 2.) / (2 * np.power(sig, 2.)))) x=list(range(0, 256)) g1=gaussian(x,np.array([239.82])...
31.444444
99
0.560512
0
0
0
0
0
0
0
0
181
0.079947
c582597e359b4f6dc67ebe89e7ea7ad56c231461
264
py
Python
Python/w3resource/Challenge5.py
TakaIzuki/school-work
c6f8c4a8f1f07b7e4f027e4d53c40e868780a71b
[ "Unlicense" ]
1
2021-03-12T14:57:38.000Z
2021-03-12T14:57:38.000Z
Python/w3resource/Challenge5.py
TakaIzuki/school-work
c6f8c4a8f1f07b7e4f027e4d53c40e868780a71b
[ "Unlicense" ]
null
null
null
Python/w3resource/Challenge5.py
TakaIzuki/school-work
c6f8c4a8f1f07b7e4f027e4d53c40e868780a71b
[ "Unlicense" ]
null
null
null
sample = ["abc", "xyz", "aba", "1221"] def stringCounter(items): amount = 0 for i in items: if len(i) >= 2 and i[0] == i[-1]: amount += 1 return amount print("The amount of string that meet the criteria is:",stringCounter(sample))
26.4
78
0.579545
0
0
0
0
0
0
0
0
70
0.265152
c58302aba3746df3f777c33afe351a9fca738f8e
3,937
py
Python
trayapp/tray_app.py
RoW171/trayPy
d5ba97d144d00e175184c87d3ad4ff553b01eec6
[ "MIT" ]
3
2020-06-02T19:33:31.000Z
2022-01-21T23:59:47.000Z
trayapp/tray_app.py
robin-weiland/trayPy
d5ba97d144d00e175184c87d3ad4ff553b01eec6
[ "MIT" ]
null
null
null
trayapp/tray_app.py
robin-weiland/trayPy
d5ba97d144d00e175184c87d3ad4ff553b01eec6
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Robin 'r0w' Weiland" __date__ = "2020-03-02" __version__ = "0.1.2" """Library for creating system tray applications based on Moses Palmér's 'pystray' library See README for insntructions""" __all__ = ('TrayApp',) from typing import Union, Tuple from pystray im...
39.767677
145
0.631953
1,398
0.355003
0
0
0
0
0
0
1,381
0.350686
c583a57704c6fdfa2c477fd3c64065132094d1ee
5,210
py
Python
compiler/domain.py
cul-it/arxiv-compiler
b4aaca17a08a752d8b5c12224edabd011a8920f7
[ "MIT" ]
5
2019-05-26T22:47:35.000Z
2021-11-05T12:30:07.000Z
compiler/domain.py
arXiv/arxiv-compiler
b4aaca17a08a752d8b5c12224edabd011a8920f7
[ "MIT" ]
16
2019-02-12T23:25:04.000Z
2021-04-30T15:04:48.000Z
compiler/domain.py
cul-it/arxiv-compiler
b4aaca17a08a752d8b5c12224edabd011a8920f7
[ "MIT" ]
3
2019-01-10T22:01:50.000Z
2020-12-06T16:29:51.000Z
"""Domain class for the compiler service.""" from typing import NamedTuple, Optional, BinaryIO, Dict import io from datetime import datetime from .util import ResponseStream from enum import Enum class Format(Enum): """Compilation formats supported by this service.""" PDF = "pdf" DVI = "dvi" PS = "p...
28.944444
77
0.632438
4,992
0.958157
0
0
1,823
0.349904
0
0
2,418
0.464107
c58427c4a5c249ad637ef0452752594d7390392b
40,912
py
Python
zziplib-0.13.62/docs/make-doc.py
guangbin79/Lua_5.1.5-Android
d85e3f54169a36c9281f7da9ad2b4c3c34027e4b
[ "MIT" ]
28
2017-04-20T06:21:26.000Z
2021-12-10T15:22:51.000Z
zziplib-0.13.62/docs/make-doc.py
guangbin79/Lua_5.1.5-Android
d85e3f54169a36c9281f7da9ad2b4c3c34027e4b
[ "MIT" ]
3
2017-04-05T00:41:45.000Z
2020-04-04T00:44:24.000Z
zziplib-0.13.62/docs/make-doc.py
guangbin79/Lua_5.1.5-Android
d85e3f54169a36c9281f7da9ad2b4c3c34027e4b
[ "MIT" ]
15
2015-02-23T16:35:28.000Z
2022-03-25T13:40:33.000Z
#! /usr/bin/python # -*- coding: UTF-8 -*- import sys import re import string import commands import warnings errors = 0 def warn(msg, error=None): global errors errors += 1 if error is None: warnings.warn("-- "+str(errors)+" --\n "+msg, RuntimeWarning, 2) else: warnings.warn("-- "+str...
39.758989
79
0.535784
18,156
0.443684
0
0
0
0
0
0
13,897
0.339606
c5844e0aad5d3be4e5309b96d1cf831066661e3d
2,618
py
Python
cpm/cli.py
tzabal/cpm
b8736ec5a72e2e9f22e73b237a814516545db3e0
[ "Apache-2.0" ]
14
2017-03-09T20:55:06.000Z
2021-11-12T11:43:51.000Z
cpm/cli.py
tzabal/cpm
b8736ec5a72e2e9f22e73b237a814516545db3e0
[ "Apache-2.0" ]
null
null
null
cpm/cli.py
tzabal/cpm
b8736ec5a72e2e9f22e73b237a814516545db3e0
[ "Apache-2.0" ]
6
2017-03-28T01:54:46.000Z
2021-02-23T20:42:49.000Z
# Copyright 2015 Tzanetos Balitsaris # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
35.378378
92
0.699771
0
0
0
0
0
0
0
0
1,217
0.464859
c584ba722dcfc049b1e65f8d0be9570ef5cdc8bf
1,566
py
Python
KivyApp/login.py
yeltayzhastay/jadenapp
41f593fb897cb6b4e17aeeb1dff4287a9e89f4d9
[ "MIT" ]
null
null
null
KivyApp/login.py
yeltayzhastay/jadenapp
41f593fb897cb6b4e17aeeb1dff4287a9e89f4d9
[ "MIT" ]
null
null
null
KivyApp/login.py
yeltayzhastay/jadenapp
41f593fb897cb6b4e17aeeb1dff4287a9e89f4d9
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import pickle from sklearn.metrics.pairwise import linear_kernel from sklearn.feature_extraction.text import TfidfVectorizer import csv from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.textinput import TextInput ...
27.473684
81
0.659642
1,218
0.777778
0
0
0
0
0
0
85
0.054278
c584ef51737ff6abecfeaa9cb9bcdc82e84361a4
369
py
Python
yoyoman01_traject/scripts/set_state_model.py
Gepetto/yoyoman01_robot
cd2fccb9378a1208605de88c88ec7b1482eaa271
[ "BSD-2-Clause" ]
null
null
null
yoyoman01_traject/scripts/set_state_model.py
Gepetto/yoyoman01_robot
cd2fccb9378a1208605de88c88ec7b1482eaa271
[ "BSD-2-Clause" ]
1
2018-09-28T14:13:45.000Z
2018-10-01T12:42:07.000Z
yoyoman01_traject/scripts/set_state_model.py
Gepetto/yoyoman01_robot
cd2fccb9378a1208605de88c88ec7b1482eaa271
[ "BSD-2-Clause" ]
2
2018-04-13T07:29:15.000Z
2018-05-24T14:19:07.000Z
#!/usr/bin/env python import rospy import roslaunch if __name__ == "__main__": rospy.sleep(6.5) uuid = roslaunch.rlutil.get_or_generate_uuid(None, False) roslaunch.configure_logging(uuid) launch = roslaunch.parent.ROSLaunchParent(uuid,["/home/ntestar/catkin_ws/src/yoyoman01_robot/yoyoman01_traject/launch/set...
30.75
139
0.772358
0
0
0
0
0
0
0
0
118
0.319783
c585553f44b153f6ed94aa2150ec4058763335d6
744
py
Python
quiz/templatetags/quiz_tags.py
Gagan-Shenoy/sushiksha-website
a41991df1a1d46336cbf019e83add5df56dde363
[ "Apache-2.0" ]
31
2020-11-07T03:23:55.000Z
2022-03-16T18:21:45.000Z
quiz/templatetags/quiz_tags.py
Gagan-Shenoy/sushiksha-website
a41991df1a1d46336cbf019e83add5df56dde363
[ "Apache-2.0" ]
124
2020-11-07T03:27:49.000Z
2022-03-20T05:28:06.000Z
quiz/templatetags/quiz_tags.py
Gagan-Shenoy/sushiksha-website
a41991df1a1d46336cbf019e83add5df56dde363
[ "Apache-2.0" ]
44
2020-11-09T04:39:39.000Z
2022-03-12T09:48:19.000Z
from django import template register = template.Library() @register.inclusion_tag('quiz/correct_answer.html', takes_context=True) def correct_answer_for_all(context, question): """ processes the correct answer based on a given question object if the answer is incorrect, informs the user """ answe...
28.615385
71
0.728495
0
0
0
0
679
0.912634
0
0
212
0.284946
c5858aecb37322f35c3a4e926766151d51d2a7ee
12,867
py
Python
pixel_gps.py
DerekGloudemans/tensorflow-yolov4-tflite
1faf48015f7587ce417d3623566926a5c8d30b42
[ "MIT" ]
1
2021-01-29T15:09:35.000Z
2021-01-29T15:09:35.000Z
pixel_gps.py
DerekGloudemans/tensorflow-yolov4-tflite
1faf48015f7587ce417d3623566926a5c8d30b42
[ "MIT" ]
null
null
null
pixel_gps.py
DerekGloudemans/tensorflow-yolov4-tflite
1faf48015f7587ce417d3623566926a5c8d30b42
[ "MIT" ]
1
2021-01-29T15:09:58.000Z
2021-01-29T15:09:58.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jun 29 14:14:45 2020 @author: Nikki """ import numpy as np import cv2 import transform as tform import sys import math import scipy.spatial import markers ###--------------------------------------------------------------------------- # Allows video to be initialized usin...
32.087282
120
0.550245
0
0
0
0
0
0
0
0
5,666
0.440351
c5864362375a81a891800b2885457459c5fea69d
85
py
Python
src/dal_select2/__init__.py
pandabuilder/django-autocomplete-light
41f699aadaa6214acd5d947b717394b1237a7223
[ "MIT" ]
null
null
null
src/dal_select2/__init__.py
pandabuilder/django-autocomplete-light
41f699aadaa6214acd5d947b717394b1237a7223
[ "MIT" ]
null
null
null
src/dal_select2/__init__.py
pandabuilder/django-autocomplete-light
41f699aadaa6214acd5d947b717394b1237a7223
[ "MIT" ]
null
null
null
"""Select2 support for DAL.""" # default_app_config = 'dal_select2.apps.DefaultApp'
21.25
52
0.741176
0
0
0
0
0
0
0
0
82
0.964706
c5873bfe530e5cfee8ae3643ecee6214da8d25dd
714
py
Python
AssetsApp/urls.py
Kayarn-Mechatronics/Octello
45f4f73c764ca816918c31ef3ae4889740a68802
[ "Apache-2.0" ]
null
null
null
AssetsApp/urls.py
Kayarn-Mechatronics/Octello
45f4f73c764ca816918c31ef3ae4889740a68802
[ "Apache-2.0" ]
null
null
null
AssetsApp/urls.py
Kayarn-Mechatronics/Octello
45f4f73c764ca816918c31ef3ae4889740a68802
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ #Assets Section path('all', views.AssetsView.all_assets, name='AssetsList'), path('lookup', views.AssetsView.lookup, name='Lookup_Asset'), path('add', views.AssetsView.add_asset, name='Add_Asset'), path('<str:asset_id>/statement', vie...
42
105
0.736695
0
0
0
0
0
0
0
0
270
0.378151
c5874d6ddb540e4365637af3b4bd8fde3429502b
1,493
py
Python
migrations/versions/597e346723ee_.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
migrations/versions/597e346723ee_.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
migrations/versions/597e346723ee_.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
"""empty message Revision ID: 597e346723ee Revises: 56b57f01c4b4 Create Date: 2015-03-25 16:36:11.552342 """ # revision identifiers, used by Alembic. revision = '597e346723ee' down_revision = '56b57f01c4b4' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import column, table from sqlalchemy impor...
25.741379
87
0.660415
0
0
0
0
0
0
0
0
695
0.465506
c58a05ca2bcf72d1989a9ba98a67911ef7b9e543
4,813
py
Python
cloudify_gcp/dns/dns.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
4
2016-10-24T17:42:07.000Z
2020-05-31T00:34:07.000Z
cloudify_gcp/dns/dns.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
35
2015-04-30T20:14:01.000Z
2022-02-03T21:35:54.000Z
cloudify_gcp/dns/dns.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
13
2015-04-17T16:42:03.000Z
2021-06-24T04:12:14.000Z
# ####### # Copyright (c) 2014-2020 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
29.347561
76
0.606482
2,696
0.56015
0
0
2,155
0.447746
0
0
1,427
0.296489
c58b105434ef0739e6e7fc842f2dba276d5bf04c
8,974
py
Python
SaIL/network/supervised_regression_network.py
yonetaniryo/SaIL
c7404024c7787184c3638e9730bd185373ed0bf6
[ "BSD-3-Clause" ]
12
2018-05-18T19:29:09.000Z
2020-05-15T13:47:12.000Z
SaIL/network/supervised_regression_network.py
yonetaniryo/SaIL
c7404024c7787184c3638e9730bd185373ed0bf6
[ "BSD-3-Clause" ]
1
2018-05-18T19:36:42.000Z
2018-07-20T03:03:13.000Z
SaIL/network/supervised_regression_network.py
yonetaniryo/SaIL
c7404024c7787184c3638e9730bd185373ed0bf6
[ "BSD-3-Clause" ]
10
2018-01-11T21:23:40.000Z
2021-11-10T04:38:07.000Z
#!/usr/bin/env python """Generic network class for supervised regression Created on: March 25, 2017 Author: Mohak Bhardwaj""" from collections import defaultdict from planning_python.heuristic_functions.heuristic_function import EuclideanHeuristicNoAng, ManhattanHeuristicNoAng, DubinsHeuristic import numpy as np impor...
45.323232
178
0.676621
8,642
0.963004
0
0
0
0
0
0
2,506
0.279251
c58b2acf5e308231e4fc666a15cea8491b5c0053
187
py
Python
netsuite/constants.py
cart-com/netsuite
5a4cbbea26c6584348ebea2b4d6de0b9607cea0c
[ "MIT" ]
null
null
null
netsuite/constants.py
cart-com/netsuite
5a4cbbea26c6584348ebea2b4d6de0b9607cea0c
[ "MIT" ]
null
null
null
netsuite/constants.py
cart-com/netsuite
5a4cbbea26c6584348ebea2b4d6de0b9607cea0c
[ "MIT" ]
null
null
null
import os NOT_SET: object = object() DEFAULT_INI_PATH: str = os.environ.get( "NETSUITE_CONFIG", os.path.expanduser("~/.config/netsuite.ini"), ) DEFAULT_INI_SECTION: str = "netsuite"
23.375
68
0.727273
0
0
0
0
0
0
0
0
51
0.272727
c58da775f7281671275019ef175a55447db04132
7,996
py
Python
delivery_merge/merge.py
astroconda/delivery_merge
ae16564097d28c9c1ce8ac19f266dc15429b20b8
[ "BSD-3-Clause" ]
null
null
null
delivery_merge/merge.py
astroconda/delivery_merge
ae16564097d28c9c1ce8ac19f266dc15429b20b8
[ "BSD-3-Clause" ]
2
2019-05-16T19:28:10.000Z
2019-05-17T02:15:45.000Z
delivery_merge/merge.py
astroconda/delivery_merge
ae16564097d28c9c1ce8ac19f266dc15429b20b8
[ "BSD-3-Clause" ]
null
null
null
import os import re import sys from .conda import conda, conda_env_load, conda_cmd_channels, ei_touch from .utils import comment_find, git, pushd, sh from configparser import ConfigParser from glob import glob from ruamel.yaml import YAML DMFILE_RE = re.compile(r'^(?P<name>[A-z\-_l]+)(?:[=<>\!]+)?(?P<version>[A-z0-9....
31.984
141
0.580665
88
0.011006
1,475
0.184467
0
0
0
0
2,516
0.314657
c58f7f6e36957f182ebdaa734a818234840d4203
5,762
py
Python
HMM/utils.py
rushill2/CS440SP21
62fb36db6639a93f9d31866b0e77559abd6f53ff
[ "AFL-1.1" ]
null
null
null
HMM/utils.py
rushill2/CS440SP21
62fb36db6639a93f9d31866b0e77559abd6f53ff
[ "AFL-1.1" ]
null
null
null
HMM/utils.py
rushill2/CS440SP21
62fb36db6639a93f9d31866b0e77559abd6f53ff
[ "AFL-1.1" ]
null
null
null
# mp4.py # --------------- # Licensing Information: You are free to use or extend this projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to the University of Illinois at Urbana-Champaign # # Created Fa...
38.413333
183
0.634155
0
0
0
0
0
0
0
0
1,489
0.258417
c5924e0b85cfa3c5247ec98d6988bcc8eef21a43
251
py
Python
1 - Beginner/1079.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
1
2020-09-09T12:48:09.000Z
2020-09-09T12:48:09.000Z
1 - Beginner/1079.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
1 - Beginner/1079.py
andrematte/uri-submissions
796e7fee56650d9e882880318d6e7734038be2dc
[ "MIT" ]
null
null
null
# Uri Online Judge 1079 N = int(input()) for i in range(0,N): Numbers = input() num1 = float(Numbers.split()[0]) num2 = float(Numbers.split()[1]) num3 = float(Numbers.split()[2]) print(((2*num1+3*num2+5*num3)/10).__round__(1))
19.307692
51
0.59761
0
0
0
0
0
0
0
0
23
0.091633
c5940979564969266e00ad7e811e6b04f162aae1
633
py
Python
ex4/sigmoidGradient.py
junwon1994/Coursera-ML
91e96c3c14c058cd6d745a4fada1baf40d91458f
[ "MIT" ]
3
2018-03-16T01:48:14.000Z
2020-08-14T09:52:58.000Z
ex4/sigmoidGradient.py
junwon1994/Coursera-ML
91e96c3c14c058cd6d745a4fada1baf40d91458f
[ "MIT" ]
null
null
null
ex4/sigmoidGradient.py
junwon1994/Coursera-ML
91e96c3c14c058cd6d745a4fada1baf40d91458f
[ "MIT" ]
null
null
null
from ex2.sigmoid import sigmoid def sigmoidGradient(z): """computes the gradient of the sigmoid function evaluated at z. This should work regardless if z is a matrix or a vector. In particular, if z is a vector or matrix, you should return the gradient for each element.""" # =====================...
37.235294
77
0.554502
0
0
0
0
0
0
0
0
497
0.78515
c594a1e017366c6929f4c36ec117193b359c4b5f
2,363
py
Python
test.py
sebdah/python-inspector
32415acb6447115cbca5d799a4ce63e9ccc37030
[ "Apache-2.0" ]
1
2019-06-13T04:43:05.000Z
2019-06-13T04:43:05.000Z
test.py
sebdah/python-inspector
32415acb6447115cbca5d799a4ce63e9ccc37030
[ "Apache-2.0" ]
null
null
null
test.py
sebdah/python-inspector
32415acb6447115cbca5d799a4ce63e9ccc37030
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Test the Inspector """ import os.path, sys sys.path.append(os.path.dirname(__file__)) import unittest import inspector ######################################################## # # Inspector test # ######################################################## def func2(*args, **kwargs): ""...
24.614583
70
0.55311
1,332
0.56369
0
0
0
0
0
0
1,084
0.458739
c596936b4b1e69d9d5a5ea7c1e0eafe831e8c36a
4,418
py
Python
dynamodb.py
oliveroneill/sir
12573e191c6a740dd06f98500070e443e63452a8
[ "MIT" ]
null
null
null
dynamodb.py
oliveroneill/sir
12573e191c6a740dd06f98500070e443e63452a8
[ "MIT" ]
null
null
null
dynamodb.py
oliveroneill/sir
12573e191c6a740dd06f98500070e443e63452a8
[ "MIT" ]
null
null
null
"""Util functions for accessing data via DynamoDB.""" import boto3 from boto3.dynamodb.conditions import Key class UnknownInviteCodeError(Exception): """An error when an unknown invite code is entered.""" pass def get_invitee(invite_code: str): """Get a dictionary of the stored information for this inv...
30.468966
102
0.658443
109
0.024672
0
0
0
0
0
0
2,781
0.62947
c596d357a3ee4b4fab32730d15cc0655102ec33a
10,199
py
Python
psets/ZHH_HHToTauTauGG_GenSim_pset_cfg.py
bsathian/Hgg-MC-Generation
5f44503b6d5c57aef862299cbcd5a9910a4f8ab8
[ "MIT" ]
null
null
null
psets/ZHH_HHToTauTauGG_GenSim_pset_cfg.py
bsathian/Hgg-MC-Generation
5f44503b6d5c57aef862299cbcd5a9910a4f8ab8
[ "MIT" ]
null
null
null
psets/ZHH_HHToTauTauGG_GenSim_pset_cfg.py
bsathian/Hgg-MC-Generation
5f44503b6d5c57aef862299cbcd5a9910a4f8ab8
[ "MIT" ]
1
2021-05-17T22:24:09.000Z
2021-05-17T22:24:09.000Z
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: Configuration/GenProduction/python/HIG-RunIIFall17wmLHEGS-05498-fragment.py --python_filename HIG-RunIIFall17wmLHEGS-05498_1_cfg.py --event...
55.12973
1,451
0.755956
0
0
0
0
0
0
0
0
5,884
0.576919
c597a65becfbb1c61ad0f698d1e6335d34dce5df
4,251
py
Python
viewcount.py
Peace1-zhwiki/MOSIW
13a97842ef53fd500296d3569e548a83e12698d1
[ "MIT" ]
null
null
null
viewcount.py
Peace1-zhwiki/MOSIW
13a97842ef53fd500296d3569e548a83e12698d1
[ "MIT" ]
null
null
null
viewcount.py
Peace1-zhwiki/MOSIW
13a97842ef53fd500296d3569e548a83e12698d1
[ "MIT" ]
null
null
null
import pywikibot from pywikibot import pagegenerators from urllib.request import urlopen import urllib.parse import regex as re #use this rather than "re" to avoid the "look-behind requires fixed-width pattern" error site = pywikibot.Site('zh','wikipedia') cat = pywikibot.Category(site,'Category:連結格式不正確的條目') page_to_w...
53.810127
1,865
0.717008
0
0
0
0
0
0
0
0
2,628
0.58937
c59b4e98e7d29ef1358075e68917d6c46dec6776
5,306
py
Python
pyvarnam/varnam.py
sebinthomas/pyvarnam
87ad99c6d399c1bcaa55fddc2dab36d0e48a3c90
[ "MIT" ]
1
2022-03-01T18:46:27.000Z
2022-03-01T18:46:27.000Z
pyvarnam/varnam.py
sebinthomas/pyvarnam
87ad99c6d399c1bcaa55fddc2dab36d0e48a3c90
[ "MIT" ]
null
null
null
pyvarnam/varnam.py
sebinthomas/pyvarnam
87ad99c6d399c1bcaa55fddc2dab36d0e48a3c90
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ The main varnam module. """ from .library import InternalVarnamLibrary from .utils import * from .varnam_defs import * from warnings import warn import ctypes as C class Varnam: """ Varnam class which encapsulates all InternalVarnamLibrary calls. """...
35.139073
81
0.55032
5,083
0.957972
0
0
0
0
0
0
1,551
0.292311
c59b618649e99ca9999f774d8427182098a18b35
3,755
py
Python
classifier/bic.py
NYPL/Simplified-server-core
d924b0cfb687f8c1eaaf731e510dd9196a77b0b2
[ "Apache-2.0" ]
8
2017-05-15T13:58:57.000Z
2020-09-01T19:28:44.000Z
classifier/bic.py
NYPL/Simplified-server-core
d924b0cfb687f8c1eaaf731e510dd9196a77b0b2
[ "Apache-2.0" ]
621
2016-01-26T17:10:56.000Z
2022-03-29T20:51:40.000Z
classifier/bic.py
NYPL/Simplified-server-core
d924b0cfb687f8c1eaaf731e510dd9196a77b0b2
[ "Apache-2.0" ]
16
2016-09-02T14:59:44.000Z
2021-02-26T15:30:03.000Z
from . import * class BICClassifier(Classifier): # These prefixes came from from http://editeur.dyndns.org/bic_categories LEVEL_1_PREFIXES = { Art_Design: 'A', Biography_Memoir: 'B', Foreign_Language_Study: 'C', Literary_Criticism: 'D', Reference_Study_Aids: 'G', ...
27.408759
91
0.541145
3,681
0.980293
0
0
704
0.187483
0
0
568
0.151265
c59ba40f823d1d5bb7c0c5cd08444d56a4e529a0
4,490
py
Python
pusher/pusher.py
tkhieu/pusher-rest-python
95a91c92b66612c7fa3ad71190deb65a91a1901f
[ "MIT" ]
null
null
null
pusher/pusher.py
tkhieu/pusher-rest-python
95a91c92b66612c7fa3ad71190deb65a91a1901f
[ "MIT" ]
null
null
null
pusher/pusher.py
tkhieu/pusher-rest-python
95a91c92b66612c7fa3ad71190deb65a91a1901f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import (print_function, unicode_literals, absolute_import, division) from pusher.config import Config from pusher.request import Request from pusher.sync import SynchronousBackend from pusher.util import GET, POST, text, validate_channel import collectio...
32.302158
121
0.632294
3,670
0.817372
0
0
2,724
0.606682
0
0
1,337
0.297773
c59c27c031d685506df2be78e4e37cfcf8d5d558
1,986
py
Python
src/bigfix_prefetch/__main__.py
jgstew/generate-prefetch
e92497b3ec9216fe46ec14c96ba21c51141e0b24
[ "MIT" ]
null
null
null
src/bigfix_prefetch/__main__.py
jgstew/generate-prefetch
e92497b3ec9216fe46ec14c96ba21c51141e0b24
[ "MIT" ]
null
null
null
src/bigfix_prefetch/__main__.py
jgstew/generate-prefetch
e92497b3ec9216fe46ec14c96ba21c51141e0b24
[ "MIT" ]
null
null
null
""" To run this module directly """ # pylint: disable=no-else-return import argparse import os try: from . import prefetch_from_file except ImportError: import prefetch_from_file try: from . import prefetch_from_url except ImportError: import prefetch_from_url def validate_filepath_or_url(filepath_o...
25.461538
81
0.676737
0
0
0
0
0
0
0
0
537
0.270393
c59c737c48fd15ed97be12bba02f43112a04741e
2,577
py
Python
workshop/sampledecoder/src/rfi_power_switch.py
arnd/aws-iot-core-lorawan
945b7ceea07a17525cfdf15420a573a250fe1149
[ "MIT-0" ]
54
2020-12-15T21:57:58.000Z
2022-03-27T14:05:14.000Z
workshop/sampledecoder/src/rfi_power_switch.py
arnd/aws-iot-core-lorawan
945b7ceea07a17525cfdf15420a573a250fe1149
[ "MIT-0" ]
20
2020-12-16T19:09:02.000Z
2022-03-05T13:28:51.000Z
workshop/sampledecoder/src/rfi_power_switch.py
arnd/aws-iot-core-lorawan
945b7ceea07a17525cfdf15420a573a250fe1149
[ "MIT-0" ]
25
2020-12-16T01:18:22.000Z
2022-03-04T12:05:24.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without ...
33.038462
145
0.578968
0
0
0
0
0
0
0
0
1,387
0.538223
c59dc3c8ab8e831eb7caf7fcbfb73b6aca3f9f0b
1,219
py
Python
src/tests/aguirregabiria_simple_tests.py
cdagnino/LearningModels
b31d4e1dd5381ba06fc5b1d2b0e2eb1515f2d15f
[ "Apache-2.0" ]
null
null
null
src/tests/aguirregabiria_simple_tests.py
cdagnino/LearningModels
b31d4e1dd5381ba06fc5b1d2b0e2eb1515f2d15f
[ "Apache-2.0" ]
null
null
null
src/tests/aguirregabiria_simple_tests.py
cdagnino/LearningModels
b31d4e1dd5381ba06fc5b1d2b0e2eb1515f2d15f
[ "Apache-2.0" ]
null
null
null
import numpy as np from src import const #TODO: should be imported from aguirregabiria_simple.py def period_profit(p: np.ndarray, lambdas: np.ndarray, betas_transition=const.betas_transition): """ Correct expected period return profit. See ReadMe for derivation """ constant_part = (p-const.c) * np.e *...
42.034483
114
0.599672
0
0
0
0
0
0
0
0
135
0.110204
c59e1c319be909d4355e8aed4203a86618692226
6,187
py
Python
rdhyee_utils/aws/__init__.py
rdhyee/rdhyee_utils
3504ee3dd6230f576dfc091129cc38efdc296af2
[ "Apache-2.0" ]
null
null
null
rdhyee_utils/aws/__init__.py
rdhyee/rdhyee_utils
3504ee3dd6230f576dfc091129cc38efdc296af2
[ "Apache-2.0" ]
null
null
null
rdhyee_utils/aws/__init__.py
rdhyee/rdhyee_utils
3504ee3dd6230f576dfc091129cc38efdc296af2
[ "Apache-2.0" ]
null
null
null
# code adapted from http://my.safaribooksonline.com/book/-/9781449308100/2dot-ec2-recipes/id2529379 def launch_instance(aws_access_key_id=None, aws_secret_access_key=None, ami='ami-a29943cb', instance_type='t1.micro', key_name='rdhyee_publi...
40.175325
99
0.589139
0
0
0
0
0
0
0
0
3,571
0.577178
c59e4dc0f8a313005e4c9d3eaf2d4fcbd2711fd5
10,998
py
Python
kinto/tests/core/test_authorization.py
swhgoon/kinto
10001d44bb08e4fbc74da31a41a4eaa461e0fd7f
[ "Apache-2.0" ]
null
null
null
kinto/tests/core/test_authorization.py
swhgoon/kinto
10001d44bb08e4fbc74da31a41a4eaa461e0fd7f
[ "Apache-2.0" ]
null
null
null
kinto/tests/core/test_authorization.py
swhgoon/kinto
10001d44bb08e4fbc74da31a41a4eaa461e0fd7f
[ "Apache-2.0" ]
1
2020-07-15T04:27:08.000Z
2020-07-15T04:27:08.000Z
import mock from pyramid.request import Request from .support import DummyRequest, unittest from kinto.core import authentication from kinto.core.authorization import RouteFactory, AuthorizationPolicy from kinto.core.storage import exceptions as storage_exceptions class RouteFactoryTest(unittest.TestCase): def...
43.816733
79
0.68267
10,722
0.974905
0
0
0
0
0
0
1,072
0.097472
c59e92e67a171f7d5604e58b73bfb9fa142c32b1
6,663
py
Python
src/main.py
tomaszbartoszewski/sense-hat-sokoban
a6784d648103f8dc29e99113e7ed4ca502618ff0
[ "MIT" ]
null
null
null
src/main.py
tomaszbartoszewski/sense-hat-sokoban
a6784d648103f8dc29e99113e7ed4ca502618ff0
[ "MIT" ]
null
null
null
src/main.py
tomaszbartoszewski/sense-hat-sokoban
a6784d648103f8dc29e99113e7ed4ca502618ff0
[ "MIT" ]
null
null
null
import copy #from enum import IntFlag from time import sleep # I tried to use enum here, but I was having a problem with packages in the image, so I gave up as I just want to get it done class FieldValue: Empty = 0 Wall = 1 Player = 2 Box = 4 Goal = 8 class SenseHATColour: Red = (204, 4, 4) ...
33.994898
141
0.600931
253
0.037971
0
0
0
0
0
0
329
0.049377
c59ff391ff6f3b1025b7ee03eaa7698322a5189f
4,082
py
Python
src/similary_reviews/repeated_review_detection.py
maxuepo/x-review-processor
0ea78eb4b88eaf4212f5145dad9dff2c4fdd7fc3
[ "MIT" ]
null
null
null
src/similary_reviews/repeated_review_detection.py
maxuepo/x-review-processor
0ea78eb4b88eaf4212f5145dad9dff2c4fdd7fc3
[ "MIT" ]
null
null
null
src/similary_reviews/repeated_review_detection.py
maxuepo/x-review-processor
0ea78eb4b88eaf4212f5145dad9dff2c4fdd7fc3
[ "MIT" ]
null
null
null
from __future__ import print_function from sklearn.feature_extraction.text import TfidfVectorizer from common.util import ReviewUtil import numpy as np import ntpath import pandas as pd import os from common.base_task import BaseTask class ReviewDedupTask(BaseTask): def __init__(self, inputdir, threshold=0.9, sit...
41.232323
106
0.609015
3,845
0.94194
0
0
0
0
0
0
241
0.05904
c59ff6269abc6e4442e009258e5c25cd74a0c2dd
59,325
py
Python
nipyapi/nifi/apis/parameter_contexts_api.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/apis/parameter_contexts_api.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/apis/parameter_contexts_api.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
50.661827
752
0.615306
58,438
0.985048
0
0
0
0
0
0
34,545
0.582301
c5a01d4fbbbb1fc700ce617c6691f4e30e690d80
16,811
py
Python
sw/3rd_party/VTK-7.1.0/Utilities/Maintenance/vtk_reindent_code.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
4
2019-05-30T01:52:12.000Z
2021-09-29T21:12:13.000Z
sw/3rd_party/VTK-7.1.0/Utilities/Maintenance/vtk_reindent_code.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
null
null
null
sw/3rd_party/VTK-7.1.0/Utilities/Maintenance/vtk_reindent_code.py
esean/stl_voro_fill
c569a4019ff80afbf85482c7193711ea85a7cafb
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python """ Usage: python vtk_reindent_code.py [--test] <file1> [<file2> ...] This script takes old-style "Whitesmiths" indented VTK source files as input, and re-indents the braces according to the new VTK style. Only the brace indentation is modified. If called with the --test option, then it ...
39.278037
79
0.479924
0
0
0
0
0
0
0
0
5,231
0.311165
c5a14c70626d442e04bd03fd58414f48d6a57094
119
py
Python
communication_modules/azure_iot_hub/__init__.py
dbenge/SimpleSensor_contrib
f48c31d3a0e0e29531ac5b0b445dccafd4f1e1d9
[ "Apache-2.0" ]
null
null
null
communication_modules/azure_iot_hub/__init__.py
dbenge/SimpleSensor_contrib
f48c31d3a0e0e29531ac5b0b445dccafd4f1e1d9
[ "Apache-2.0" ]
5
2018-07-22T03:06:33.000Z
2018-11-08T22:42:53.000Z
communication_modules/azure_iot_hub/__init__.py
dbenge/SimpleSensor_contrib
f48c31d3a0e0e29531ac5b0b445dccafd4f1e1d9
[ "Apache-2.0" ]
3
2018-07-11T14:49:06.000Z
2022-03-24T18:31:26.000Z
from simplesensor.communication_modules.azure_iot_hub.azureIotHubModule import AzureIotHubModule as CommunicationModule
119
119
0.932773
0
0
0
0
0
0
0
0
0
0
c5a2b2cc9bb64eb2dd4546a33e1ab663ecfa9c59
591
py
Python
example/example_list.py
vtheno/Vtools
5a03891d0c2365602aaae68541f31ba89a6476e5
[ "MIT" ]
2
2018-04-25T08:59:55.000Z
2018-04-25T09:53:35.000Z
example/example_list.py
vtheno/Vtools
5a03891d0c2365602aaae68541f31ba89a6476e5
[ "MIT" ]
null
null
null
example/example_list.py
vtheno/Vtools
5a03891d0c2365602aaae68541f31ba89a6476e5
[ "MIT" ]
null
null
null
from util.List import * print( dir() ) lst = list(range(9999)) hd,*tl = lst print( hd ) print( tl ) del hd,tl Lst = toList(lst) try: print( hd,tl ) except NameError as e: with Lst as (hd,tl): print( hd ) print( tl ) print( type(hd),type(tl) ) print( Lst.hd is hd ) print(...
18.46875
41
0.563452
0
0
0
0
0
0
0
0
0
0
c5a673641a1ea480ef65b68e6729bcb7a7f14c22
1,809
py
Python
scripts_for_public/05_crf_solver.py
NeLy-EPFL/Ascending_neuron_screen_analysis_pipeline
438b9db15765bf26581ecd4b8a1f93e8a844ebbd
[ "Apache-2.0" ]
null
null
null
scripts_for_public/05_crf_solver.py
NeLy-EPFL/Ascending_neuron_screen_analysis_pipeline
438b9db15765bf26581ecd4b8a1f93e8a844ebbd
[ "Apache-2.0" ]
null
null
null
scripts_for_public/05_crf_solver.py
NeLy-EPFL/Ascending_neuron_screen_analysis_pipeline
438b9db15765bf26581ecd4b8a1f93e8a844ebbd
[ "Apache-2.0" ]
null
null
null
import os.path from scipy.optimize import fsolve import math import numpy as np from matplotlib import pyplot as plt import pandas as pd import utils_Florian as utils def equations(p, t_peak, t_half): x, y = p return (0.5 * (math.exp(-x * t_peak) - math.exp(-y * t_peak)) - (math.exp(-x * t_half) - math.exp...
28.265625
172
0.480376
0
0
0
0
0
0
0
0
68
0.03759
c5aa6db1461a81d1e86603163e1dd494f722650c
1,334
py
Python
multi_prisoner/tests.py
Charlotte-exp/Multichannel-Games
83ebb452454ed5d1a8535b59dac49099a9509be4
[ "MIT" ]
null
null
null
multi_prisoner/tests.py
Charlotte-exp/Multichannel-Games
83ebb452454ed5d1a8535b59dac49099a9509be4
[ "MIT" ]
1
2021-01-20T11:48:18.000Z
2021-01-20T11:48:18.000Z
crosstalk/tests.py
Charlotte-exp/Multichannel-Games
83ebb452454ed5d1a8535b59dac49099a9509be4
[ "MIT" ]
2
2021-01-21T15:29:19.000Z
2022-03-29T09:26:36.000Z
from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): if self.round_number <= self.participant.vars['last_round']: yield pages.Decision, {"decision_high": 1, "decision_low": 1}...
47.642857
102
0.596702
1,205
0.901946
1,179
0.882485
0
0
0
0
626
0.468563
c5ab0b3466c00112abbf1baa6d0c33332509984d
511
py
Python
plugins/zhihu/handler.py
KuangjuX/QBot
20533f55f58e5dfeef533b338accd1ca2f3dc405
[ "MIT" ]
null
null
null
plugins/zhihu/handler.py
KuangjuX/QBot
20533f55f58e5dfeef533b338accd1ca2f3dc405
[ "MIT" ]
null
null
null
plugins/zhihu/handler.py
KuangjuX/QBot
20533f55f58e5dfeef533b338accd1ca2f3dc405
[ "MIT" ]
null
null
null
import requests async def req_top_topic(): url = "https://www.zhihu.com/api/v4/search/top_search" user_agent = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6" headers = { "User-Agent": user_agent } try: resp = requests.get(url=url, ...
31.9375
115
0.60274
0
0
0
0
0
0
494
0.966732
187
0.365949
c5ab8747666ccf31bc2f89c48e1288edc70dac32
11,219
py
Python
docqa/triviaqa/answer_detection.py
Willyoung2017/doc-qa
7ee02218952b0b9db63bc82b3895f743cdbd8f22
[ "Apache-2.0" ]
422
2017-10-31T12:20:29.000Z
2022-03-14T11:25:16.000Z
docqa/triviaqa/answer_detection.py
Willyoung2017/doc-qa
7ee02218952b0b9db63bc82b3895f743cdbd8f22
[ "Apache-2.0" ]
54
2017-11-02T10:34:45.000Z
2021-02-04T05:05:20.000Z
docqa/triviaqa/answer_detection.py
Willyoung2017/doc-qa
7ee02218952b0b9db63bc82b3895f743cdbd8f22
[ "Apache-2.0" ]
138
2017-11-02T10:49:09.000Z
2021-11-26T15:34:01.000Z
import re import string import numpy as np from tqdm import tqdm from typing import List from docqa.triviaqa.read_data import TriviaQaQuestion from docqa.triviaqa.trivia_qa_eval import normalize_answer, f1_score from docqa.utils import flatten_iterable, split """ Tools for turning the aliases and answer strings from...
38.553265
119
0.557269
5,869
0.522897
0
0
0
0
0
0
1,358
0.120991
c5ad2bebf11ef489fbbd6dfa3f637f4206f67729
2,171
py
Python
custom_components/grocy/schema.py
smhgit/grocery_list
dd9a5fc753c35b21167d09d6a3bf8f412a081199
[ "Apache-2.0" ]
1
2020-07-20T14:38:49.000Z
2020-07-20T14:38:49.000Z
custom_components/grocy/schema.py
smhgit/grocery_list
dd9a5fc753c35b21167d09d6a3bf8f412a081199
[ "Apache-2.0" ]
1
2020-04-04T23:26:45.000Z
2020-04-04T23:26:45.000Z
custom_components/grocy/schema.py
smhgit/grocery_list
dd9a5fc753c35b21167d09d6a3bf8f412a081199
[ "Apache-2.0" ]
null
null
null
"""Schemas for grocy.""" import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.const import (CONF_HOST, CONF_ENTITY_ID, CONF_USERNAME, CONF_PASSWORD) from .const import (DOMAIN, CONF_APIKEY, CONF_AMOUNT, CONF_SHOPPING_LIST_ID, CONF_B...
36.79661
90
0.726854
0
0
0
0
0
0
0
0
24
0.011055
c5addbf22c0a3577e07532c7bdb1e500725ff953
548
py
Python
examples/vacuum_send_command.py
giuseppeg88/lovelace-xiaomi-vacuum-map-card
ab6f395a7cd8af0b55aa59b46e949845d27acea6
[ "MIT" ]
798
2019-07-30T09:50:47.000Z
2022-03-26T13:29:00.000Z
examples/vacuum_send_command.py
giuseppeg88/lovelace-xiaomi-vacuum-map-card
ab6f395a7cd8af0b55aa59b46e949845d27acea6
[ "MIT" ]
214
2019-08-12T20:20:22.000Z
2022-03-28T16:29:39.000Z
examples/vacuum_send_command.py
giuseppeg88/lovelace-xiaomi-vacuum-map-card
ab6f395a7cd8af0b55aa59b46e949845d27acea6
[ "MIT" ]
157
2019-08-02T16:37:18.000Z
2022-03-28T18:39:30.000Z
entity_id = data.get('entity_id') command = data.get('command') params = str(data.get('params')) parsedParams = [] for z in params.replace(' ', '').replace('],[', '|').replace('[', '').replace(']', '').split('|'): rect = [] for c in z.split(','): rect.append(int(c)) parsedParams.append(rect) if co...
32.235294
98
0.607664
0
0
0
0
0
0
0
0
143
0.260949
c5ae3a56e64e4529136d5912d32600637f06223a
417
py
Python
base/migrations/0006_profile_history.py
polarity-cf/arugo
530ea6092702916d63f36308d5a615d118b73850
[ "MIT" ]
34
2021-11-11T14:00:15.000Z
2022-03-16T12:30:04.000Z
base/migrations/0006_profile_history.py
polarity-cf/arugo
530ea6092702916d63f36308d5a615d118b73850
[ "MIT" ]
22
2021-11-11T23:18:14.000Z
2022-03-31T15:07:02.000Z
base/migrations/0006_profile_history.py
polarity-cf/arugo
530ea6092702916d63f36308d5a615d118b73850
[ "MIT" ]
1
2022-03-14T07:35:09.000Z
2022-03-14T07:35:09.000Z
# Generated by Django 3.2.9 on 2021-11-13 14:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0005_authquery_password'), ] operations = [ migrations.AddField( model_name='profile', name='h...
21.947368
67
0.568345
318
0.76259
0
0
0
0
0
0
101
0.242206
c5aeb41622feaa3f7b1564f4b8743b3dd401d728
199
py
Python
nanodet/util/rank_filter.py
zjiao19/nanodet
17af4a81fa93e0405f3a9f8c8feb75ad7b9adc50
[ "Apache-2.0" ]
8
2021-05-01T14:11:19.000Z
2022-01-11T01:08:35.000Z
nanodet/util/rank_filter.py
zjiao19/nanodet
17af4a81fa93e0405f3a9f8c8feb75ad7b9adc50
[ "Apache-2.0" ]
1
2021-12-20T08:01:20.000Z
2021-12-20T08:01:20.000Z
nanodet/util/rank_filter.py
zjiao19/nanodet
17af4a81fa93e0405f3a9f8c8feb75ad7b9adc50
[ "Apache-2.0" ]
null
null
null
def rank_filter(func): def func_filter(local_rank=-1, *args, **kwargs): if local_rank < 1: return func(*args, **kwargs) else: pass return func_filter
22.111111
52
0.557789
0
0
0
0
0
0
0
0
0
0
c5b0116a9713ffc1692da22ed0c63bbffd60bb86
897
py
Python
ThreePointsCircle.py
formeo/checkio_tasks
54ab77821e797238379afe483f6f6358cfba39a6
[ "MIT" ]
null
null
null
ThreePointsCircle.py
formeo/checkio_tasks
54ab77821e797238379afe483f6f6358cfba39a6
[ "MIT" ]
null
null
null
ThreePointsCircle.py
formeo/checkio_tasks
54ab77821e797238379afe483f6f6358cfba39a6
[ "MIT" ]
null
null
null
import math def checkio(data): x1=int(data[1]) y1=int(data[3]) x2 = int(data[7]) y2 = int(data[9]) x3 = int(data[13]) y3 = int(data[15]) A = x2 - x1 B = y2 - y1 C = x3 - x1 D = y3 - y1 E = A * (x1 + x2) + B * (y1 + y2) F = C * (x1 + x3) + D * (y1 + y3) G = 2 * (A ...
19.085106
68
0.402453
0
0
0
0
0
0
0
0
60
0.06689
c5b2728e8814b93e58ee5c076b847c4197704dea
903
py
Python
schafkopf/utils/settings_utils.py
PanchoVarallo/Schafkopf-Application
98e58f69cadfeb63c13068320df1e8ea96cd91fe
[ "MIT" ]
1
2022-01-19T23:58:03.000Z
2022-01-19T23:58:03.000Z
schafkopf/utils/settings_utils.py
PanchoVarallo/Schafkopf-Application
98e58f69cadfeb63c13068320df1e8ea96cd91fe
[ "MIT" ]
7
2020-12-02T19:02:51.000Z
2020-12-04T11:01:29.000Z
schafkopf/utils/settings_utils.py
PanchoVarallo/Schafkopf-Application
98e58f69cadfeb63c13068320df1e8ea96cd91fe
[ "MIT" ]
null
null
null
import configparser import enum ini = 'settings.ini' class Database(enum.Enum): SQLITE = 1 POSTGRES = 2 def get_db() -> Database: return Database[get_entry('Database', 'db')] def get_database_url() -> str: return get_entry('Database', 'database_url') def get_init_username() -> str: return g...
22.02439
94
0.683278
58
0.06423
0
0
0
0
0
0
204
0.225914
c5b46f4e695997da12b52c911a37e6a3483e1e67
3,070
py
Python
tests/parser/test_lambda.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
tests/parser/test_lambda.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
3
2022-02-23T08:12:52.000Z
2022-03-09T00:13:33.000Z
tests/parser/test_lambda.py
csun-comp430-s22/lispy
03820211bd3c5a83e0de4b1ac26a864080e06aca
[ "MIT" ]
null
null
null
import pytest from lispyc import nodes from lispyc.exceptions import SpecialFormSyntaxError, TypeSyntaxError from lispyc.nodes import ComposedForm, Constant from lispyc.nodes import FunctionParameter as Param from lispyc.nodes import Program, Variable, types from lispyc.parser import parse VALID = [ ("(lambda () ...
32.659574
98
0.551466
0
0
0
0
609
0.198371
0
0
962
0.313355
c5b6c0de5cd1879d83d673da44359c98a06dd5a1
306
py
Python
auth/api/urls.py
gabrielangelo/revelo-wallet
3e91117b673e5aaf50773aa180af4117235965c9
[ "BSD-3-Clause" ]
null
null
null
auth/api/urls.py
gabrielangelo/revelo-wallet
3e91117b673e5aaf50773aa180af4117235965c9
[ "BSD-3-Clause" ]
8
2020-02-11T23:50:12.000Z
2022-03-14T22:51:54.000Z
auth/api/urls.py
gabrielangelo/revelo-wallet
3e91117b673e5aaf50773aa180af4117235965c9
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from rest_framework_jwt.views import ( obtain_jwt_token, refresh_jwt_token, verify_jwt_token ) urlpatterns = [ url(r'^obtain-token', obtain_jwt_token), url(r'^token-refresh/', refresh_jwt_token), url(r'^api-token-verify/', verify_jwt_token) ]
20.4
48
0.712418
0
0
0
0
0
0
0
0
55
0.179739
c5b9de0176823bf46c536854ba42d25cf47a7c38
5,289
py
Python
test/check_multiset.py
constantinpape/paintera_tools
d37f27f559e0d716b797483d94ce9eb886d807d0
[ "MIT" ]
1
2019-06-23T21:32:15.000Z
2019-06-23T21:32:15.000Z
test/check_multiset.py
constantinpape/paintera_tools
d37f27f559e0d716b797483d94ce9eb886d807d0
[ "MIT" ]
null
null
null
test/check_multiset.py
constantinpape/paintera_tools
d37f27f559e0d716b797483d94ce9eb886d807d0
[ "MIT" ]
1
2019-08-08T11:36:47.000Z
2019-08-08T11:36:47.000Z
import nifty.tools as nt import numpy as np import z5py from elf.label_multiset import deserialize_multiset from tqdm import trange def check_serialization(mset1, mset2): if len(mset1) != len(mset2): print("Serialization sizes disagree:", len(mset1), len(mset2)) return False if not np.array_...
32.850932
119
0.622613
0
0
0
0
0
0
0
0
876
0.165627
c5bb6e0941f5920f796692212ebb5a1963fb2579
729
py
Python
jp.atcoder/abc119/abc119_c/11972856.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc119/abc119_c/11972856.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc119/abc119_c/11972856.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys from itertools import product n, *abc = map(int, sys.stdin.readline().split()) *l, = map(int, sys.stdin.read().split()) def main(): cand = [] for p in product([0, 1, 2, 3], repeat=n): group = [[] for _ in range(4)] for i in range(n): group[p[i]].append(l[i]) ...
25.137931
49
0.447188
0
0
0
0
0
0
0
0
10
0.013717
c5bc4fd8ba6c477f146381cee819b78adb80847e
2,882
py
Python
projects/Gan/gan.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
projects/Gan/gan.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
projects/Gan/gan.py
Bingwen-Hu/hackaway
69727d76fd652390d9660e9ea4354ba5cc76dd5c
[ "BSD-2-Clause" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from torchvision.transforms import ToTensor from torchvision.datasets import MNIST from vis_util import visual_mnist ##### settings x_dim = 28 * 28 # size of mnist digit z_dim = 100 # random noise h_dim = 128 ...
26.440367
80
0.623178
916
0.317835
0
0
0
0
0
0
716
0.248439
c5bc81bb35d2ed62c01fad8ae72988d4d2b92a04
6,296
py
Python
apps/orgs/views.py
hzde0128/edu_online
c514493d98e1a3a1033c0471f47307c9bc5ae3ec
[ "MIT" ]
11
2020-04-11T14:41:07.000Z
2022-01-30T06:02:21.000Z
apps/orgs/views.py
hzde0128/edu_online
c514493d98e1a3a1033c0471f47307c9bc5ae3ec
[ "MIT" ]
1
2020-06-20T13:37:28.000Z
2020-06-20T13:37:28.000Z
apps/orgs/views.py
hzde0128/edu_online
c514493d98e1a3a1033c0471f47307c9bc5ae3ec
[ "MIT" ]
4
2020-10-12T07:01:37.000Z
2021-08-08T11:29:33.000Z
from django.shortcuts import render, redirect, reverse from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from django.db.models import Q from django.views.generic import View from .models import OrgInfo, CityInfo, TeacherInfo from operations.models import UserLove # Create your views here. clas...
29.420561
122
0.54749
6,321
0.949669
0
0
3,304
0.496394
0
0
1,440
0.216346
c5bd4d3b64eb6bd036b9f5e78b463c58d2f38085
1,021
py
Python
PictureColoring/MyUtils.py
chiihero/DeepLearning
029d547ada401a00a1cc0b314cdb2fb8937062c9
[ "Apache-2.0" ]
null
null
null
PictureColoring/MyUtils.py
chiihero/DeepLearning
029d547ada401a00a1cc0b314cdb2fb8937062c9
[ "Apache-2.0" ]
null
null
null
PictureColoring/MyUtils.py
chiihero/DeepLearning
029d547ada401a00a1cc0b314cdb2fb8937062c9
[ "Apache-2.0" ]
null
null
null
from keras.callbacks import TensorBoard,EarlyStopping,TerminateOnNaN,ReduceLROnPlateau,ModelCheckpoint import os import sys import tensorflow as tf import keras.backend.tensorflow_backend as KTF file_abspath = os.path.abspath(sys.argv[0]) # exe所在文件地址 location = os.path.dirname(file_abspath) # exe所在文件夹目录地址 tbCallB...
51.05
248
0.813908
0
0
0
0
0
0
0
0
117
0.111323
c5be6868849918d06af4471aca57e790b36777ca
8,545
py
Python
tests/analysis/test_executor.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
1
2019-07-09T16:42:15.000Z
2019-07-09T16:42:15.000Z
tests/analysis/test_executor.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
103
2016-11-14T15:58:53.000Z
2022-03-07T21:01:03.000Z
tests/analysis/test_executor.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
2
2017-03-17T20:43:22.000Z
2018-01-04T19:15:18.000Z
from copy import deepcopy from bmds.bmds3.constants import ContinuousModelIds, DichotomousModelIds from bmds.bmds3.types.priors import PriorClass from bmds_server.analysis.executor import AnalysisSession class TestAnalysisSession: def test_default_dichotomous(self, bmds3_complete_dichotomous): # assure ...
45.452128
99
0.640609
8,336
0.975541
0
0
0
0
0
0
1,495
0.174956
c5bedaf2756a09941c7750735b35a4cb10278fa5
483
py
Python
1094.py
gabzin/beecrowd
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-12-15T20:27:14.000Z
2022-03-01T12:30:08.000Z
1094.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
1094.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
tot=coe=rat=sap=0 for i in range(int(input())): n,s=input().split() n=int(n) tot+=n if s=='C':coe+=n elif s=='R':rat+=n elif s=='S':sap+=n print(f"Total: {tot} cobaias\nTotal de coelhos: {coe}\nTotal de ratos: {rat}\nTotal de sapos: {sap}") p=(coe/tot)*100 print("Percentual de coelhos: %.2f"%p,e...
25.421053
101
0.585921
0
0
0
0
0
0
0
0
204
0.42236
c5c1ceac12c3d4acf6d93b005cde760e9701d344
1,722
py
Python
extras/createTestBlocksForReadBlkUpdate.py
Manny27nyc/BitcoinArmory
1d02a6640d6257ab0c37013e5cd4b99681a5cfc3
[ "MIT" ]
505
2016-02-04T15:54:46.000Z
2022-03-27T18:43:01.000Z
extras/createTestBlocksForReadBlkUpdate.py
jimmysong/BitcoinArmory
1c7190176897a2e0f3e4e198ab2f199059bb2402
[ "MIT" ]
528
2016-02-06T19:50:12.000Z
2022-01-15T10:21:16.000Z
extras/createTestBlocksForReadBlkUpdate.py
jimmysong/BitcoinArmory
1c7190176897a2e0f3e4e198ab2f199059bb2402
[ "MIT" ]
208
2015-01-02T10:31:40.000Z
2021-12-14T07:37:36.000Z
from sys import path path.append('..') from armoryengine import * TheBDM.setBlocking(True) TheBDM.setOnlineMode(True) if not os.path.exists('testmultiblock'): os.mkdir('testmultiblock') fout = [] fout.append([0, 101, 'testmultiblock/blk00000.dat']) fout.append([0, 102, 'testmultiblock/blk00000_test1.dat']) #...
28.229508
89
0.662602
0
0
0
0
0
0
0
0
516
0.299652
c5c1e4e3885d653cd8bccb778237b0517bd6b7f7
369
py
Python
dashboard/migrations/0034_auto_20201226_2150.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
dashboard/migrations/0034_auto_20201226_2150.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
dashboard/migrations/0034_auto_20201226_2150.py
BDALab/GENEActiv-sleep-analyses-system
f0458de041153f2dee240a53571149827de00a2e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-12-26 20:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dashboard', '0033_auto_20201226_2148'), ] operations = [ migrations.RenameField( model_name='sleepnight', old_name='data', ...
20.5
49
0.593496
284
0.769648
0
0
0
0
0
0
112
0.303523
c5c266d68c81372fdaece6c752fe6c6bf1fa42c1
7,050
py
Python
fear_greed_index/CNNFearAndGreedIndex.py
mcharipar/multi_tool_bot
6f9ec31a6542d6bb6782fff5cd8e43ce4e9b3670
[ "MIT" ]
null
null
null
fear_greed_index/CNNFearAndGreedIndex.py
mcharipar/multi_tool_bot
6f9ec31a6542d6bb6782fff5cd8e43ce4e9b3670
[ "MIT" ]
null
null
null
fear_greed_index/CNNFearAndGreedIndex.py
mcharipar/multi_tool_bot
6f9ec31a6542d6bb6782fff5cd8e43ce4e9b3670
[ "MIT" ]
null
null
null
"""Fear and Greed Index Class""" __docformat__ = "numpy" from matplotlib import pyplot as plt from fear_greed_index import scrape_cnn from fear_greed_index.FearAndGreedIndicator import FearAndGreedIndicator class CNNFearAndGreedIndex: """CNN Fear and Greed Index Attributes ---------- junk_bond_deman...
34.90099
86
0.601135
6,840
0.970213
0
0
0
0
0
0
2,241
0.317872
c5c3d96b3d93a31801e5a47a67db36d7b2787b3f
1,632
py
Python
pyDEV/imagespic.py
wangzhihong911/py37
68e39791689bd35dcdc1f08c05a8d6e7c7bacf11
[ "BSD-3-Clause" ]
null
null
null
pyDEV/imagespic.py
wangzhihong911/py37
68e39791689bd35dcdc1f08c05a8d6e7c7bacf11
[ "BSD-3-Clause" ]
null
null
null
pyDEV/imagespic.py
wangzhihong911/py37
68e39791689bd35dcdc1f08c05a8d6e7c7bacf11
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/dev python # coding=utf-8 #让爬虫等待几秒 from pyDEV import BsDI, ToolDI from bs4 import BeautifulSoup; import os import urllib; #创建入口url url_web = "http://48et.com/pic/12/" html_pag = ''; for i in range(1,1001): if i > 1 : html_pag='p_'+str(i)+'.html' url_web = url_web+html_pag html = BsDI.ge...
32
115
0.604167
0
0
0
0
0
0
0
0
556
0.307182
c5c4c83c0fcae56bd39628ba7e24ff40a480e5b9
3,553
py
Python
models/van_der_waals.py
HARSHAL-IITB/spa-design-tool
84d250a02cc3f4af56770550c9f559feb524cb07
[ "MIT" ]
null
null
null
models/van_der_waals.py
HARSHAL-IITB/spa-design-tool
84d250a02cc3f4af56770550c9f559feb524cb07
[ "MIT" ]
null
null
null
models/van_der_waals.py
HARSHAL-IITB/spa-design-tool
84d250a02cc3f4af56770550c9f559feb524cb07
[ "MIT" ]
null
null
null
#! /usr/bin/env python # The MIT License (MIT) # # Copyright (c) 2015, EPFL Reconfigurable Robotics Laboratory, # Philip Moseley, [email protected] # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
41.8
82
0.474529
0
0
0
0
0
0
0
0
2,319
0.652688
c5c5651c307431ee7d13f20d6102f8ee5f585f1c
6,331
py
Python
party/migrations/0002_auto__chg_field_party_primaries_date__chg_field_party_qualifying_date_.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
party/migrations/0002_auto__chg_field_party_primaries_date__chg_field_party_qualifying_date_.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
party/migrations/0002_auto__chg_field_party_primaries_date__chg_field_party_qualifying_date_.py
daonb/okqa
3babf225911294dec1249472a9a3f6141fa7d6a7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Party.primaries_date' db.alter_column('party_party', 'primaries_date', self.gf('django.db...
65.947917
182
0.599905
6,198
0.978992
0
0
0
0
0
0
4,330
0.683936
c5c61d26183ce293ac95d3678eb8c57a71b32702
2,767
py
Python
modules/boost/simd/arithmetic/script/average.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
2
2016-09-14T00:23:53.000Z
2018-01-14T12:51:18.000Z
modules/boost/simd/arithmetic/script/average.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
null
null
null
modules/boost/simd/arithmetic/script/average.py
timblechmann/nt2
6c71f7063ca4e5975c9c019877e6b2fe07c9e4ce
[ "BSL-1.0" ]
null
null
null
[ ## this file was manually modified by jt { 'functor' : { 'description' : [ "The function always returns a value of the same type than the entry.", "Take care that for integers the value returned can differ by one unit", "from \c ceil((a+b)/2.0) o...
39.528571
108
0.37116
0
0
0
0
0
0
0
0
1,518
0.548609
c5c6c50d1f1d2f7cfb0c7a23c1b784e0443a1dce
6,165
py
Python
conductor_helpers/workflow.py
metamorph-inc/conductor-mdao
293744893aba5c44f025414d83f53cb7cedd5299
[ "MIT" ]
null
null
null
conductor_helpers/workflow.py
metamorph-inc/conductor-mdao
293744893aba5c44f025414d83f53cb7cedd5299
[ "MIT" ]
null
null
null
conductor_helpers/workflow.py
metamorph-inc/conductor-mdao
293744893aba5c44f025414d83f53cb7cedd5299
[ "MIT" ]
null
null
null
from __future__ import print_function from conductor.conductor import MetadataClient, WorkflowClient class Workflow(object): def __init__(self, name, description=None): self.tasks = {} self.inputs = {} self.outputs = {} self.connections = {} self.name = name if de...
32.447368
91
0.577129
3,971
0.64412
0
0
0
0
0
0
1,440
0.233577
c5c799a24a8cdb582f6cb85ceb027f2c8d2d114f
4,049
py
Python
vswitch/server.py
jvy1106/vswitch
c5a248889dc4458c5beb4848c864d28692365758
[ "MIT" ]
null
null
null
vswitch/server.py
jvy1106/vswitch
c5a248889dc4458c5beb4848c864d28692365758
[ "MIT" ]
null
null
null
vswitch/server.py
jvy1106/vswitch
c5a248889dc4458c5beb4848c864d28692365758
[ "MIT" ]
null
null
null
'''super basic web server to start/stop and monitor virtual environments''' import sys import os import logging import web import time import argparse from webpyutils import api from webpyutils import APIServer from vswitch import VirtualSwitch #get project path from current file or venv it setup locally PROJECT_PATH ...
32.918699
136
0.630526
1,926
0.475673
0
0
1,628
0.402075
0
0
1,152
0.284515
c5c89aef54358898a0e1bcf5928f0cc81d126d81
2,441
py
Python
vmware.py
Sbaljepa/get_esxi_host_info
cb12bcc3712135e22fc456178349c51cbd480c03
[ "MIT" ]
null
null
null
vmware.py
Sbaljepa/get_esxi_host_info
cb12bcc3712135e22fc456178349c51cbd480c03
[ "MIT" ]
null
null
null
vmware.py
Sbaljepa/get_esxi_host_info
cb12bcc3712135e22fc456178349c51cbd480c03
[ "MIT" ]
null
null
null
from con_esxi_host import * from math import pow, ceil class vmware: def get_vm_info(self): si = connect_to_host() #global virtual inv = si.RetrieveContent() dc1 = inv.rootFolder.childEntity[0] vmList = dc1.vmFolder.childEntity virtual = [] for vm in...
51.93617
107
0.603032
2,382
0.97583
0
0
0
0
0
0
631
0.258501
c5c995d4fb4af0698845544bbd38a70bcaadb45a
2,155
py
Python
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt from pathlib import Path import glob2 as glob import os import sys savedir = "./output/" def AddWatermarkFolder(str_foldername, str_watermarkname, alpha1=1.0, alpha2=0.2): path = str_foldername + '/*.png*' for iter, path_name in enumerate(glob.glob...
31.691176
94
0.673782
0
0
0
0
0
0
0
0
399
0.185151
c5ca707dce77fad1c990e8395c01664a2f944aa1
4,980
py
Python
idfy_rest_client/models/person_person_information.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
idfy_rest_client/models/person_person_information.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
idfy_rest_client/models/person_person_information.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ idfy_rest_client.models.person_person_information This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ) """ from idfy_rest_client.api_helper import APIHelper class PersonPersonInformation(object): """Implementation of the 'Person.P...
34.109589
121
0.555823
4,734
0.950602
0
0
1,970
0.395582
0
0
2,215
0.444779
c5cb2fe4e70cd612e8f9a3f0b90ce50441f4e7bc
1,018
py
Python
deployer/logger.py
bwood/deployer
d7dfbcd87497e2a1f803201880bbe9d885e9ed1d
[ "MIT" ]
1
2021-03-01T23:58:53.000Z
2021-03-01T23:58:53.000Z
deployer/logger.py
bwood/deployer
d7dfbcd87497e2a1f803201880bbe9d885e9ed1d
[ "MIT" ]
null
null
null
deployer/logger.py
bwood/deployer
d7dfbcd87497e2a1f803201880bbe9d885e9ed1d
[ "MIT" ]
2
2020-12-04T22:43:10.000Z
2021-06-09T17:25:25.000Z
import logging import subprocess # create logger logger = logging.getLogger('simple_example') logger.setLevel(logging.DEBUG) # create console handler and set level to INFO console_logger = logging.StreamHandler() console_logger.setLevel(logging.INFO) # create formatter formatter = logging.Formatter('%(asctime)s - %(...
32.83871
79
0.739686
0
0
0
0
0
0
0
0
359
0.352652
c5cbbb0cba0072bbd3a2426dbea64e76c05e64a7
2,214
py
Python
home/views.py
felixyin/qdqtrj_website
43ae31af887cfe537d6f0cff5329dac619190210
[ "MIT" ]
null
null
null
home/views.py
felixyin/qdqtrj_website
43ae31af887cfe537d6f0cff5329dac619190210
[ "MIT" ]
null
null
null
home/views.py
felixyin/qdqtrj_website
43ae31af887cfe537d6f0cff5329dac619190210
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.views.decorators.cache import cache_page from django.views.decorators.gzip import gzip_page from django.views.generic import DetailView from about.models import AboutItem from blog.models import Article from home.models import Home f...
41
95
0.677958
1,676
0.746881
0
0
0
0
0
0
433
0.192959
c5cc1d9938221b8bf194d0222219ed92f3839aa4
4,366
py
Python
lib/scaler/preprocessing_data/data_preprocessor.py
thangbk2209/mfea_autoscaling
5b9425331734a93a38b4f73cafd11456c5e1fcf7
[ "MIT" ]
null
null
null
lib/scaler/preprocessing_data/data_preprocessor.py
thangbk2209/mfea_autoscaling
5b9425331734a93a38b4f73cafd11456c5e1fcf7
[ "MIT" ]
null
null
null
lib/scaler/preprocessing_data/data_preprocessor.py
thangbk2209/mfea_autoscaling
5b9425331734a93a38b4f73cafd11456c5e1fcf7
[ "MIT" ]
2
2020-11-11T13:30:05.000Z
2021-01-02T10:09:27.000Z
import numpy as np from pandas import read_csv import pandas as pd from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from config import * from lib.preprocess.read_data import DataReader from lib.scaler.preprocessing_data.data_normalizer import DataNormalizer class DataPreprocessor:...
33.584615
79
0.610399
4,068
0.931745
0
0
0
0
0
0
402
0.092075
c5cc748812d8a678d614f011ee8f5b8566bed123
16,292
py
Python
devel/.private/px_comm/lib/python2.7/dist-packages/px_comm/msg/_CameraInfo.py
akshastry/Neo_WS
6c646227b1fedf4fb8cf700533ca8fc47f381b46
[ "MIT" ]
1
2021-08-31T03:07:52.000Z
2021-08-31T03:07:52.000Z
devel/.private/px_comm/lib/python2.7/dist-packages/px_comm/msg/_CameraInfo.py
akshastry/Neo_WS
6c646227b1fedf4fb8cf700533ca8fc47f381b46
[ "MIT" ]
null
null
null
devel/.private/px_comm/lib/python2.7/dist-packages/px_comm/msg/_CameraInfo.py
akshastry/Neo_WS
6c646227b1fedf4fb8cf700533ca8fc47f381b46
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from px_comm/CameraInfo.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import std_msgs.msg class CameraInfo(genpy.Message): _md5...
35.112069
201
0.60097
15,460
0.948932
0
0
0
0
0
0
5,339
0.327707
c5cca9d03c0d9fcd4b29b96bb68a691816ff964e
3,567
py
Python
search/models.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
4
2019-03-28T06:42:17.000Z
2021-06-06T13:10:51.000Z
search/models.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
177
2018-09-28T14:21:56.000Z
2022-03-30T21:45:26.000Z
search/models.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
8
2018-10-25T20:43:10.000Z
2022-03-17T14:19:27.000Z
from itertools import chain from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.shortcuts import render from wagtail.core.models import Page from wagtail.search.models import Query from about.models import AboutPage, AboutSubPage, CaseStudyPage, HistoryPage, PeoplePage from contact.mode...
37.547368
111
0.670311
2,892
0.810765
0
0
0
0
0
0
527
0.147743
c5ce058c2bdc9823f2137dda32497aab8ba53bf6
24,607
py
Python
gluoncv/model_zoo/action_recognition/r2plus1d.py
AND2797/gluon-cv
7d2d9c2502f18cbdc19c0921982baf511272acb1
[ "Apache-2.0" ]
1
2020-03-12T14:43:42.000Z
2020-03-12T14:43:42.000Z
gluoncv/model_zoo/action_recognition/r2plus1d.py
AND2797/gluon-cv
7d2d9c2502f18cbdc19c0921982baf511272acb1
[ "Apache-2.0" ]
null
null
null
gluoncv/model_zoo/action_recognition/r2plus1d.py
AND2797/gluon-cv
7d2d9c2502f18cbdc19c0921982baf511272acb1
[ "Apache-2.0" ]
null
null
null
# pylint: disable=arguments-differ,unused-argument,line-too-long """R2Plus1D, implemented in Gluon. https://arxiv.org/abs/1711.11248. Code partially borrowed from https://github.com/pytorch/vision/blob/master/torchvision/models/video/resnet.py.""" __all__ = ['R2Plus1D', 'r2plus1d_resnet18_kinetics400', 'r2...
41.70678
113
0.580038
13,622
0.553582
0
0
0
0
0
0
10,507
0.426992
c5cf1d1707b39d0f011396e7faf49933a0c0daf1
1,079
py
Python
run.py
jsicot/idref2zotero
0838c10cd3236296cd685c84daa77bd8e48567f1
[ "MIT" ]
1
2020-01-27T09:14:23.000Z
2020-01-27T09:14:23.000Z
run.py
jsicot/idref2zotero
0838c10cd3236296cd685c84daa77bd8e48567f1
[ "MIT" ]
null
null
null
run.py
jsicot/idref2zotero
0838c10cd3236296cd685c84daa77bd8e48567f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import retrieve_author_ppn as autppn import retrieve_references as refs import zot_helpers as pyzot from itertools import islice researchers = autppn.constructOutput('test.csv') autppn.writeCsv('out.csv', researchers) for researcher in researchers: ppn = researcher['ppn'] creator_name...
34.806452
88
0.65431
0
0
0
0
0
0
0
0
190
0.176089