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
49c08ac397715e801d537d9aef1fa2cc32d852d3
3,915
py
Python
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
null
null
null
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
null
null
null
composite.py
ubuviz/vizion-composite-key
c8b549bb158fe64013d3db2074e3330a942509ab
[ "MIT" ]
1
2021-06-27T15:49:18.000Z
2021-06-27T15:49:18.000Z
""" This module provides a ``CompositePKModel`` which allows for basic retrieval and saving of models with composite keys. It is limited to the above tasks, and any use of the model past this is not guaranteed to work. A model with composite PK should look something like this:: from composite_pk import compos...
32.090164
89
0.614049
3,019
0.771137
0
0
0
0
0
0
1,533
0.391571
49c27444ea8191b6871d22350e36ce9770315509
752
py
Python
qurry/libraries/standard_library/constructs/gaussian.py
LSaldyt/curry
9004a396ec2e351aa143a10a53156649a6747343
[ "MIT" ]
11
2018-07-28T17:08:23.000Z
2019-02-08T03:04:03.000Z
qurry/libraries/standard_library/constructs/gaussian.py
LSaldyt/Qurry
9004a396ec2e351aa143a10a53156649a6747343
[ "MIT" ]
33
2019-07-09T09:46:44.000Z
2019-09-23T23:44:37.000Z
qurry/libraries/standard_library/constructs/gaussian.py
LSaldyt/Qurry
9004a396ec2e351aa143a10a53156649a6747343
[ "MIT" ]
4
2019-05-28T01:27:49.000Z
2019-12-26T18:01:51.000Z
from math import erf, sqrt from functools import partial from ..library.multinomial import multinomial, to_multinomial def gaussian_cdf(x, mu, sigma): y = (1.0 + erf((x - mu) / (sigma * sqrt(2.0)))) / 2.0 y = (1.0 + erf((x) / (sqrt(2.0)))) / 2.0 assert y >= 0 and y <= 1.0, 'y is not a valid probability: y...
34.181818
133
0.668883
0
0
0
0
0
0
0
0
170
0.226064
49c3520395affa81361da9069657257acb15bac3
8,299
py
Python
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/models.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
import numpy as np import torch import time from scipy import optimize from scipy.stats import norm import tmac.probability_distributions as tpd import tmac.fourier as tfo def tmac_ac(red_np, green_np, optimizer='BFGS', verbose=False, truncate_freq=False): """ Implementation of the Two-channel motion artifact cor...
49.106509
156
0.662128
0
0
0
0
0
0
0
0
2,439
0.293891
49c41f791b3306b65a7220115c0864d09f5d6134
2,166
py
Python
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
5
2020-10-14T14:10:27.000Z
2020-11-23T12:46:08.000Z
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
5
2020-10-14T18:57:37.000Z
2021-10-21T11:10:12.000Z
demo.py
TianhongDai/esil-hindsight
b7c22da087095610018f281245fd4f622ef190ed
[ "MIT" ]
1
2021-12-01T08:55:28.000Z
2021-12-01T08:55:28.000Z
from arguments import get_args import numpy as np from network.models import MLP_Net from utils.utils import get_env_params import torch import os, gym """ script to watch the demo of the ESIL """ # process the inputs def process_inputs(o, g, o_mean, o_std, g_mean, g_std, args): o_clip = np.clip(o, -args.clip_obs...
40.111111
96
0.636657
0
0
0
0
0
0
0
0
365
0.168513
49c45451bcf8f4588b0bba3456a64c9403ea4bc6
1,071
py
Python
kickbase_api/models/league_user_stats.py
jhelgert/kickbase-api-python
6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2
[ "MIT" ]
7
2020-08-17T07:20:30.000Z
2022-02-03T19:21:53.000Z
kickbase_api/models/league_user_stats.py
jhelgert/kickbase-api-python
6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2
[ "MIT" ]
4
2020-11-01T10:39:11.000Z
2021-07-30T12:20:52.000Z
kickbase_api/models/league_user_stats.py
jhelgert/kickbase-api-python
6e8b12c69cf36a4ce5c3ac37f9328cde5946a3e2
[ "MIT" ]
4
2020-11-01T09:12:39.000Z
2021-08-23T13:25:00.000Z
from datetime import datetime from kickbase_api.models._transforms import parse_date, parse_key_value_array_to_dict from kickbase_api.models.base_model import BaseModel from kickbase_api.models.league_user_season_stats import LeagueUserSeasonStats class LeagueUserStats(BaseModel): name: str = None profile_im...
32.454545
104
0.655462
819
0.764706
0
0
0
0
0
0
135
0.12605
49c52e67e91490b5205014ce1748575c1b06124d
9,647
py
Python
ocradmin/lib/fcrepo/http/interfaces.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
2
2015-03-30T16:36:51.000Z
2016-06-15T01:39:47.000Z
ocradmin/lib/fcrepo/http/interfaces.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
2
2021-06-10T17:43:54.000Z
2021-12-13T19:40:08.000Z
ocradmin/lib/fcrepo/http/interfaces.py
mikesname/ocropodium
a3e379cca38dc1999349bf4e9b5608e81dc54b10
[ "Apache-2.0" ]
1
2015-11-08T00:40:11.000Z
2015-11-08T00:40:11.000Z
""" Interfaces for FCRepoRequestFactory, FCRepoResponse and FCRepoResponseBody. """ from exceptions import NotImplementedError # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # class I_FCRepoResponseBody: def __init__(self, raw_content, mime_type): """ Constructor takes tow...
35.996269
79
0.59604
9,269
0.960817
0
0
0
0
0
0
6,801
0.704986
49c547bb09c7eed025dfa278cd31af58e1182d17
4,397
py
Python
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
2
2019-07-18T18:35:31.000Z
2021-09-12T14:00:58.000Z
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
1
2020-04-26T04:22:26.000Z
2020-05-11T08:54:44.000Z
mesh_utilities.py
qingfengxia/quasi_static_metal_cutting
9773fc0ea33c290057cb2230365094058216caf0
[ "AFL-1.1" ]
null
null
null
#utf8 from __future__ import print_function, division import subprocess import os import os.path import sys import time default_tmp_mesh_filename = '/tmp/Mesh_1.med' # salome 9.x may be too new for this script, some version released in 2018 is better # salome_app = '/media/sf_OneDrive/Salome-9.8.0/salome' salome_app =...
43.97
120
0.705254
0
0
0
0
0
0
0
0
1,527
0.347282
49c7ae5b76fbf1b02e8d130eadfb4143e44dcc80
8,141
py
Python
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
3
2020-09-23T13:06:41.000Z
2022-01-14T10:14:20.000Z
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
65
2020-09-23T13:22:41.000Z
2022-03-17T11:02:42.000Z
cubi_tk/ena_constants.py
eudesbarbosa/cubi-tk
80c3ef9387f2399f796b2cc445b99781d541f222
[ "MIT" ]
4
2020-09-25T11:28:45.000Z
2021-11-01T12:00:13.000Z
"""Values for controlled vocabularies from ENA. Taken from - https://ena-docs.readthedocs.io/en/latest/submit/reads/webin-cli.html """ # Constants for platform definitions. LS454 = "LS454" ILLUMINA = "ILLUMINA" PACBIO_SMRT = "PACBIO_SMRT" IONTORRENT = "ION_TORRENT" CAPILLARY = "CAPILLARY" ONT = "OXFOR...
27.59661
91
0.737624
0
0
0
0
0
0
0
0
2,401
0.294927
49c885495b8b9d85f2a2df00b05e024d355e6e0a
1,463
py
Python
analytics/utils.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
10
2015-01-25T20:29:55.000Z
2020-12-08T21:35:09.000Z
analytics/utils.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
3
2018-05-15T06:28:20.000Z
2021-03-30T17:47:45.000Z
analytics/utils.py
educreations/py-analytics
abbc814925c6cc200b3329c7de9f1868e1cb8c01
[ "Apache-2.0" ]
6
2017-07-03T16:28:29.000Z
2020-06-15T19:10:45.000Z
""" Copyright 2012 Numan Sachwani <[email protected]> This file is provided to you 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...
32.511111
74
0.699932
0
0
0
0
0
0
0
0
1,074
0.734108
49c8b96abc3f198aa66587406ab8b7e9c78fd259
31
py
Python
lemkelcp/__init__.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
10
2019-03-17T19:37:25.000Z
2022-01-02T04:29:05.000Z
lemkelcp/__init__.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
1
2019-09-25T09:32:49.000Z
2021-12-28T05:05:55.000Z
lemkelcp/__init__.py
pritam-dey3/lemkelcp
4d963a6d0e6ba531496f5b0e99a52c0d288e4a6e
[ "MIT" ]
4
2019-02-24T11:49:10.000Z
2020-06-06T14:07:11.000Z
from .lemkelcp import lemkelcp
15.5
30
0.83871
0
0
0
0
0
0
0
0
0
0
49c93ee339debd703889e1a8187ecdfd356689ca
1,999
py
Python
settings.py
ArneBinder/Pytorch-LRP
c17902138f1d560f1f5d38f401ac856e071a5800
[ "BSD-3-Clause" ]
117
2019-03-19T08:47:03.000Z
2022-03-31T04:14:51.000Z
settings.py
ArneBinder/Pytorch-LRP
c17902138f1d560f1f5d38f401ac856e071a5800
[ "BSD-3-Clause" ]
10
2019-09-15T14:59:43.000Z
2022-03-15T14:18:02.000Z
settings.py
ArneBinder/Pytorch-LRP
c17902138f1d560f1f5d38f401ac856e071a5800
[ "BSD-3-Clause" ]
49
2019-03-19T08:47:03.000Z
2021-11-30T01:02:04.000Z
""" Settings for re-running the experiments from the paper "Layer-wise relevance propagation for explaining deep neural network decisions in MRI-based Alzheimer’s disease classification". Please note that you need to download the ADNI data from http://adni.loni.usc.edu/ and preprocess it using https://github.com/ANT...
40.795918
81
0.758379
0
0
0
0
0
0
0
0
1,876
0.937531
49ca8eabe12b4dbe3823135f9cccd4003e5ec8f9
274
py
Python
compiler_test.py
zpcore/ACOW
9d9186eb28af3e5e1242621457f36d5a7910366a
[ "MIT" ]
null
null
null
compiler_test.py
zpcore/ACOW
9d9186eb28af3e5e1242621457f36d5a7910366a
[ "MIT" ]
null
null
null
compiler_test.py
zpcore/ACOW
9d9186eb28af3e5e1242621457f36d5a7910366a
[ "MIT" ]
null
null
null
''' # Test the compiler ''' from ACOW import * data = ''' a1 U[1,2] !a0&G[1,3]a3 ''' print('MTL Formula:',data) # Test lex print('\nLex Test:') lexer.input(data) for tok in lexer: print(tok) # Test parser print('\nParser Test:') result = parser.parse(data) print(result)
13.7
27
0.645985
0
0
0
0
0
0
0
0
123
0.448905
49caba94d9ddd16a821b2ba8d9ea2e815b9e25e0
1,292
py
Python
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
code.py
RanaTe/AntiLogOut
0d970f6202fb16be469de6a98c45c0cfb4b910f0
[ "OML" ]
null
null
null
import board import time import random import usb_hid from adafruit_hid.mouse import Mouse from adafruit_hid.keyboard import Keyboard mouse = Mouse(usb_hid.devices) goright=True while True: #2 parts to sequence, move mostly right, then mostly left # set up for big move #longwait=random.randint(250,35...
25.84
66
0.666409
0
0
0
0
0
0
0
0
361
0.279412
49cc558662f5dd7e7fb056fd6f79d57effb78d66
315
py
Python
insta/admin.py
Stephenremmi/insta-clone
88af361dca160f7840842ebebc306a02f97920ca
[ "MIT" ]
null
null
null
insta/admin.py
Stephenremmi/insta-clone
88af361dca160f7840842ebebc306a02f97920ca
[ "MIT" ]
3
2021-03-30T13:54:34.000Z
2021-09-08T02:17:46.000Z
insta/admin.py
Stephenremmi/insta-clone
88af361dca160f7840842ebebc306a02f97920ca
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Post, Comment, UserProfile class ProfileAdmin(admin.ModelAdmin): filter_horizontal =("followers", "following",) # Register your models here. admin.site.register(Post) admin.site.register(Comment) admin.site.register(UserProfile, admin_class=ProfileAdmin)
26.25
58
0.796825
88
0.279365
0
0
0
0
0
0
50
0.15873
49cd3c2fd0bbd8a92289c21bd54ca7e440919719
25,042
py
Python
travelling/migrations/0001_initial.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0001_initial.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
travelling/migrations/0001_initial.py
HerbyDE/jagdreisencheck-webapp
9af5deda2423b787da88a0c893f3c474d8e4f73f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-27 14:43 from __future__ import unicode_literals import ckeditor.fields from django.conf import settings import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django_countries.fields ...
83.473333
349
0.633376
24,682
0.985624
0
0
0
0
0
0
7,449
0.29746
49ce339e404139f63103f0e97e83fc72d1aded23
15,097
py
Python
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
bio2.py
phenolophthaleinum/BioPython
67be63e69f136134ca8cb41676700c97da7a2006
[ "MIT" ]
null
null
null
from Bio.SeqIO import parse from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Seq import Seq from Bio.Alphabet import IUPAC, generic_dna from Bio import Alphabet, Entrez from Bio.SeqUtils import GC from Bio.Blast import NCBIWWW, NCBIXML from Bio import pairwise2 from Bio.pairwise2 import format_alignme...
39.111399
110
0.540703
8,601
0.569716
221
0.014639
0
0
0
0
3,739
0.247665
49cfbdd139a2858864f15766804aa976f1344306
6,456
py
Python
room/easyctf/exploit/46635.py
danieldavidson/tryhackme-ctf
f42362609ffb72151f7056371e6ad7207e42c8c5
[ "MIT" ]
null
null
null
room/easyctf/exploit/46635.py
danieldavidson/tryhackme-ctf
f42362609ffb72151f7056371e6ad7207e42c8c5
[ "MIT" ]
null
null
null
room/easyctf/exploit/46635.py
danieldavidson/tryhackme-ctf
f42362609ffb72151f7056371e6ad7207e42c8c5
[ "MIT" ]
1
2022-03-11T22:55:33.000Z
2022-03-11T22:55:33.000Z
#!/usr/bin/env python # Exploit Title: Unauthenticated SQL Injection on CMS Made Simple <= 2.2.9 # Date: 30-03-2019 # Exploit Author: Daniele Scanu @ Certimeter Group # Vendor Homepage: https://www.cmsmadesimple.org/ # Software Link: https://www.cmsmadesimple.org/downloads/cmsms/ # Version: <= 2.2.9 # Tested on:...
34.709677
189
0.586431
0
0
0
0
0
0
0
0
1,721
0.266574
49d510eb8a62e95ceab2defdd45b0de37d252639
968
py
Python
module3-nosql-and-document-oriented-databases/rpg_mongo.py
Dpgofast/DS-Unit-3-Sprint-2-SQL-and-Databases
f78bb4c67a182dd3c96ffdca1175d888239f2099
[ "MIT" ]
null
null
null
module3-nosql-and-document-oriented-databases/rpg_mongo.py
Dpgofast/DS-Unit-3-Sprint-2-SQL-and-Databases
f78bb4c67a182dd3c96ffdca1175d888239f2099
[ "MIT" ]
null
null
null
module3-nosql-and-document-oriented-databases/rpg_mongo.py
Dpgofast/DS-Unit-3-Sprint-2-SQL-and-Databases
f78bb4c67a182dd3c96ffdca1175d888239f2099
[ "MIT" ]
null
null
null
import pymongo client = pymongo.MongoClient('''mongodb://dakotapope:passwrd@ cluster0-shard-00-00-iaoct.mongodb.net:27017,cluster0-shard-00 -01-iaoct.mongodb.net:27017,cluster0-shard-00-02-iaoct.mongodb. net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource= admin&retryWrites=true''') # investigate the databa...
34.571429
74
0.764463
0
0
0
0
0
0
0
0
759
0.784091
49d5165d59fc22ca8bcab148e06413fa005d535e
2,799
py
Python
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
convertPP.py
Harry93x/FinancialToolbox
d34ef96d66b7447332d8f977da8fa9abc43cc981
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import xlrd import csv import sys import getopt # input configuration iColDate = 0 iColTransactionType = 1 iColAmount = 3 iColDescription = 6 transactionType = 'Repayment' descriptionType = 'Interest' #output configuration outHeader = ['Datum', 'Typ', 'Wert'] outType = 'Zinsen' outDelimiter = ';' ...
29.15625
198
0.649875
0
0
0
0
0
0
0
0
780
0.278671
49d5fecaf1e79a501de0719400a144c921ff2ac0
1,096
py
Python
lib/python3.7/site-packages/vine/__init__.py
nguyentranhoan/uit-mobile
8546312b01373d94cf00c64f7eacb769e0f4ccce
[ "BSD-3-Clause" ]
13
2018-03-28T23:07:01.000Z
2022-03-12T06:01:21.000Z
newenv/lib/python3.8/site-packages/vine/__init__.py
palakshivlani-11/cryptorium
eebb78c061007519e527b3d18b8df6bc13679c46
[ "Apache-2.0" ]
13
2020-03-24T17:53:51.000Z
2022-02-10T20:01:14.000Z
newenv/lib/python3.8/site-packages/vine/__init__.py
palakshivlani-11/cryptorium
eebb78c061007519e527b3d18b8df6bc13679c46
[ "Apache-2.0" ]
5
2018-03-28T23:07:05.000Z
2021-12-09T19:02:00.000Z
"""Promises, promises, promises.""" from __future__ import absolute_import, unicode_literals import re from collections import namedtuple from .abstract import Thenable from .promises import promise from .synchronization import barrier from .funtools import ( maybe_promise, ensure_promise, ppartial, preplace...
26.095238
68
0.699818
0
0
0
0
0
0
0
0
426
0.388686
49d6bd8f68e9b38cfe513863c74dbe676a8959d2
1,965
py
Python
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
4
2019-06-18T15:26:49.000Z
2021-08-11T18:57:39.000Z
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
2
2019-08-22T20:11:46.000Z
2019-08-22T22:35:17.000Z
Ben_Manuscripts/transport/figures/hops_dwells.py
shirtsgroup/LLC_Membranes
e94694f298909352d7e9d912625314a1e46aa5b6
[ "MIT" ]
4
2019-07-06T15:41:53.000Z
2021-01-27T17:59:13.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt from LLC_Membranes.timeseries.forecast_ctrw import System from LLC_Membranes.llclib import file_rw import names residues = ["GCL", "SOH"] wt = 10 path = "/home/bcoscia/Documents/Gromacs/Transport/NaGA3C11" colors = ['blue', 'red'] opacity = 1 n...
32.213115
128
0.692112
0
0
0
0
0
0
0
0
187
0.095165
49d70088af3c73de71bed44ae91ad6608da6929f
1,275
py
Python
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
1450.py
sinasiruosnejad/leetcode
8fe5a400bc03a5e129835e380ff9fe72af681d8a
[ "MIT" ]
null
null
null
def string_to_list(string,array): x=input(string) i=1 while x[i]!=']': if x[i]!=',': j=i temp='' while x[j]!=',': if x[j]==']': break temp+=x[j] j+=1 i=j array.append(i...
24.519231
59
0.542745
0
0
0
0
0
0
0
0
250
0.196078
49d77fe266bda3b95de391977fa5e234a79bc1d6
3,000
py
Python
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/migrate/versions/4dbaa3104f4_.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
"""Added tariff Revision ID: 4dbaa3104f4 Revises: 1d6f96d1df Create Date: 2015-05-27 16:00:09.343862 """ # revision identifiers, used by Alembic. revision = '4dbaa3104f4' down_revision = '1d6f96d1df' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(engine_name): ...
32.967033
85
0.685667
0
0
0
0
0
0
0
0
1,000
0.333333
49da0b5cb2458b175611bedd60d99e1e2e8ba045
4,970
py
Python
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
delay.py
MythologicalMC/Delay
932902e86e9493fa5d08cdb3857d74a178e7f2bc
[ "MIT" ]
null
null
null
#imports import os import subprocess from colorama import init,Fore, Back, Style import asyncio import urllib.parse import time from time import perf_counter init(convert=True) #vars ver = "Beta, Lots of commits going on!" ping = 0 pings = [] tempping = 0 searches = 0 base = 300 delay = 0 gotQ = "" dropTime = 0 reqTime...
37.938931
217
0.567203
0
0
0
0
0
0
597
0.111672
2,199
0.411336
49da88047bb20d46e7f9d9dfc0e2238764393527
10,360
py
Python
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
src/calc/parallel/calc_qual.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # calc_qual.py # # A program to calculate the quality factors and magnetic angle within some defined region # of an Athena++ disk using MPI # # To run: # mpirun -n [n] python calc_qual.py [options] # for [n] cores. # import numpy as np import os import sys sys.path.insert(0, '/home/per29/rds/rd...
40.948617
175
0.598359
0
0
0
0
0
0
0
0
3,075
0.296815
49db3a1ecbfa19102c7269a3533f50d40a8b3fab
4,838
py
Python
config/access/model_base.py
torrua/loglan_converter
e040825354bd07dda4f44d8dd84c79dc1db405c9
[ "MIT" ]
null
null
null
config/access/model_base.py
torrua/loglan_converter
e040825354bd07dda4f44d8dd84c79dc1db405c9
[ "MIT" ]
null
null
null
config/access/model_base.py
torrua/loglan_converter
e040825354bd07dda4f44d8dd84c79dc1db405c9
[ "MIT" ]
null
null
null
from sqlalchemy import Column, String, Integer, Text, Boolean, DateTime from config.access import Base from sqlalchemy.ext.declarative import declared_attr from datetime import datetime class BaseFunctions: """ Base class for common methods """ __tablename__ = None @declared_attr def import_...
28.627219
84
0.65895
4,350
0.899132
0
0
333
0.06883
0
0
1,079
0.223026
49dbc6af92d52afcc0e8a89b6aa09a1a1c7354f4
16,726
py
Python
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
1
2017-11-23T04:18:03.000Z
2017-11-23T04:18:03.000Z
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
5
2018-08-24T11:13:29.000Z
2018-08-29T00:40:36.000Z
src/fixate/drivers/ftdi.py
stig999/Fixate
24b4a16736c80b28f40aeb52972c52f9654983ef
[ "MIT" ]
null
null
null
import ctypes import struct import time from fixate.core.common import bits from fixate.core.exceptions import InstrumentError, InstrumentNotConnected import fixate.config import fixate.core.discover def open(ftdi_description=""): """Open is the public api for the bit bang driver for discovering and opening a con...
36.679825
117
0.598589
13,227
0.790805
0
0
1,786
0.10678
0
0
3,005
0.17966
49dc810a61e2972f79b20f3f39e3b0c03cad34a5
552
py
Python
Data Structures/Python/find-the-parity-outier.py
KhushMody/Ds-Algo-HacktoberFest
2cb5bdcfcdcb87b67ee31941cc9afc466507a05b
[ "MIT" ]
12
2020-10-04T06:48:29.000Z
2021-02-16T17:54:04.000Z
Data Structures/Python/find-the-parity-outier.py
KhushMody/Ds-Algo-HacktoberFest
2cb5bdcfcdcb87b67ee31941cc9afc466507a05b
[ "MIT" ]
14
2020-10-04T09:09:52.000Z
2021-10-16T19:59:23.000Z
Data Structures/Python/find-the-parity-outier.py
KhushMody/Ds-Algo-HacktoberFest
2cb5bdcfcdcb87b67ee31941cc9afc466507a05b
[ "MIT" ]
55
2020-10-04T03:09:25.000Z
2021-10-16T09:00:12.000Z
# You are given an array (which will have a length of at least 3, but could be very large) containing integers. The array is either entirely comprised of odd integers or entirely comprised of even integers except for a single integer N. Write a method that takes the array as an argument and returns this "outlier" N. #...
61.333333
317
0.711957
0
0
0
0
0
0
0
0
394
0.713768
49dd8d278f7b65614e35a417984b39bb22fa9ca9
5,621
py
Python
geoalchemy2/tests/test_functional.py
fredj/geoalchemy2
9f26714e8d181440ac03d7295d34d615cac11d02
[ "MIT" ]
null
null
null
geoalchemy2/tests/test_functional.py
fredj/geoalchemy2
9f26714e8d181440ac03d7295d34d615cac11d02
[ "MIT" ]
null
null
null
geoalchemy2/tests/test_functional.py
fredj/geoalchemy2
9f26714e8d181440ac03d7295d34d615cac11d02
[ "MIT" ]
null
null
null
import unittest from nose.tools import eq_, ok_, raises from sqlalchemy import create_engine, MetaData, Column, Integer, func from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base from geoalchemy2 import Geometry from sqlalchemy.exc import DataError, IntegrityError, InternalE...
29.898936
79
0.637609
4,827
0.858744
0
0
698
0.124177
0
0
677
0.120441
49de3b66d3ba8d7b390aa4f38533368a7826b8e9
689
py
Python
WebEmpresarial/social/models.py
MarcosKlender/Web_Empresarial
79b481488a74415e88898cff029233f339dc1e97
[ "BSD-3-Clause" ]
null
null
null
WebEmpresarial/social/models.py
MarcosKlender/Web_Empresarial
79b481488a74415e88898cff029233f339dc1e97
[ "BSD-3-Clause" ]
null
null
null
WebEmpresarial/social/models.py
MarcosKlender/Web_Empresarial
79b481488a74415e88898cff029233f339dc1e97
[ "BSD-3-Clause" ]
null
null
null
from django.db import models # Create your models here. class Link(models.Model): key = models.SlugField(max_length = 100, unique = True, verbose_name = 'Nombre Clave') name = models.CharField(max_length = 200, verbose_name = 'Red Social') url = models.URLField(max_length = 200, null = True, blank = True, ...
40.529412
95
0.685051
634
0.917511
0
0
0
0
0
0
122
0.176556
49df0f9be98b9b2a452a359335aef6fd2e914b5c
940
py
Python
p138_copy_list_with_random_pointer.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
p138_copy_list_with_random_pointer.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
p138_copy_list_with_random_pointer.py
moonfruit/leetcode
796b736d9b7b31f8052df6a0a140e34904b8230c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- utf-8 -*- # Definition for singly-linked list with a random pointer. # class RandomListNode: # def __init__(self, x): # self.label = x # self.next = None # self.random = None class Solution: # @param head, a RandomListNode # @return a RandomListNode def ...
22.926829
58
0.554255
537
0.571277
0
0
0
0
0
0
286
0.304255
49e017e3c7994fdc80e6366ccb4d6c457be60b26
1,904
py
Python
train.py
jmnybl/finnish-srl
aa53bc5e27e8c9e82bc9827602e448d805b4a960
[ "Apache-2.0" ]
null
null
null
train.py
jmnybl/finnish-srl
aa53bc5e27e8c9e82bc9827602e448d805b4a960
[ "Apache-2.0" ]
null
null
null
train.py
jmnybl/finnish-srl
aa53bc5e27e8c9e82bc9827602e448d805b4a960
[ "Apache-2.0" ]
null
null
null
from data_reader import Vocabulary, transform_data, save_vocabularies, Corpus from model import build_model from keras.callbacks import ModelCheckpoint def train(args): # ARGUMENTS training_file=args.data minibatch=64 max_sent_len_words=30 epochs=args.epochs corpus=Corpus(training_f...
33.403509
184
0.719538
0
0
0
0
0
0
0
0
511
0.268382
49e1f87f1d26cc79c1491809b52a416913e40d98
6,198
py
Python
peekingduck/utils/requirement_checker.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
1
2021-12-02T05:15:58.000Z
2021-12-02T05:15:58.000Z
peekingduck/utils/requirement_checker.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
peekingduck/utils/requirement_checker.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 AI Singapore # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
37.113772
93
0.649564
855
0.137948
2,099
0.338658
588
0.094869
0
0
3,254
0.525008
49e20e1482e371d2d36af2e6abc0d413c62cd098
1,119
py
Python
src/myproject/settings/admin_mail_console_handler.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
1
2019-05-18T04:34:59.000Z
2019-05-18T04:34:59.000Z
src/myproject/settings/admin_mail_console_handler.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
src/myproject/settings/admin_mail_console_handler.py
thinkAmi/DjangoCongress_JP_2019_talk
0b746f62808d979c1570de80084686f709996e1d
[ "Unlicense" ]
null
null
null
from .base import * # 後で確認できるよう、ファイルとして残しておく EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend' # filebasedを使う場合は、メールの保存先も指定すること # '.' の場合、カレントディレクトリに保存される # EMAIL_FILE_PATH = '.' EMAIL_FILE_PATH = str(pathlib.Path(BASE_DIR).joinpath('logs')) ADMINS = [('Admin1', '[email protected]')] # 開発モードでもADMI...
25.431818
66
0.570152
0
0
0
0
0
0
0
0
871
0.649515
49e262c808a1276127a4a16b770e3d39b6997140
7,494
py
Python
core/tests/machine_request.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/tests/machine_request.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
core/tests/machine_request.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
from dateutil.relativedelta import relativedelta from uuid import uuid4 import unittest import pytz from django.test import TestCase from django.utils.timezone import datetime from core.tests.helpers import CoreProviderMachineHelper, CoreMachineRequestHelper, CoreInstanceHelper from service.machine import process_m...
40.508108
102
0.665999
7,153
0.954497
0
0
0
0
0
0
1,197
0.159728
49e3a9de96ed6a59b374bbb066c35f87db59257f
3,455
py
Python
infoblox_netmri/api/remote/models/device_zone_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_zone_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_zone_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class DeviceZoneRemote(RemoteModel): """ Zones defined on a traffic filtering device. On devices that do not natively support zones (e.g., Cisco routers), there is one zone per interface, plus an additional 'intern...
31.697248
186
0.600868
3,347
0.968741
0
0
802
0.232127
0
0
2,524
0.730535
49e3eb2356e1b76dcdb5820a9f4030de1c698ff6
1,510
py
Python
nitmis_admin/controllers/register.py
kalesh13/nitmis
b8c73f74411bbad441557c6553cbbd35acc5a5ee
[ "MIT" ]
null
null
null
nitmis_admin/controllers/register.py
kalesh13/nitmis
b8c73f74411bbad441557c6553cbbd35acc5a5ee
[ "MIT" ]
5
2020-07-19T10:28:57.000Z
2021-08-19T18:25:28.000Z
nitmis_admin/controllers/register.py
kalesh13/nitmis
b8c73f74411bbad441557c6553cbbd35acc5a5ee
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from django.shortcuts import render from django.http.response import JsonResponse from nitmis_admin.serializers.UserSerializer import UserSerializer def create_user(role="Guest"): """ """ def fun_wrapper(func): d...
26.491228
74
0.625828
722
0.478146
0
0
306
0.202649
0
0
572
0.378808
49e46e9b59b725cb283f9125430ec7a34bd75825
9,521
py
Python
3_0_pgo_icp/solution/pose_graph_optimization/assignment_I_2/pgo_2D.py
karanchawla/ai_for_robotics
03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8
[ "BSD-3-Clause" ]
65
2017-03-03T07:30:28.000Z
2021-08-19T01:12:47.000Z
3_0_pgo_icp/solution/pose_graph_optimization/assignment_I_2/pgo_2D.py
karanchawla/ai_for_robotics
03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8
[ "BSD-3-Clause" ]
4
2017-03-02T13:51:40.000Z
2017-11-01T16:49:22.000Z
3_0_pgo_icp/solution/pose_graph_optimization/assignment_I_2/pgo_2D.py
ethz-asl/ai_for_robotics
03bb66bae99bac3acd79bc1ec6d3b9c0eeabcdf8
[ "BSD-3-Clause" ]
43
2017-03-02T11:31:21.000Z
2020-10-30T07:10:59.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Apr 2 10:00 2017 @author: Timo Hinzmann ([email protected]) """ import math from math import floor, ceil import numpy as np import matplotlib.pyplot as plt from scipy.sparse import linalg as sla from scipy import array, linalg, dot from enum import Enum imp...
36.619231
119
0.553513
7,911
0.8309
0
0
0
0
0
0
3,065
0.32192
49e502e61c40a6d5ce473d9fc363be1b2927b0ab
1,019
py
Python
simple_history/management/commands/_populate_utils.py
SummitESP/django-simple-history
78c929159263dd583bd4d8d5a28a274a9ad6be0b
[ "BSD-3-Clause" ]
null
null
null
simple_history/management/commands/_populate_utils.py
SummitESP/django-simple-history
78c929159263dd583bd4d8d5a28a274a9ad6be0b
[ "BSD-3-Clause" ]
1
2018-01-09T20:51:34.000Z
2018-01-09T20:51:34.000Z
simple_history/management/commands/_populate_utils.py
SummitESP/django-simple-history
78c929159263dd583bd4d8d5a28a274a9ad6be0b
[ "BSD-3-Clause" ]
null
null
null
from django.utils.timezone import now class NotHistorical(TypeError): """No related history model found.""" def get_history_model_for_model(model): """Find the history model for a given app model.""" try: manager_name = model._meta.simple_history_manager_attribute except AttributeError: ...
36.392857
68
0.677134
73
0.071639
0
0
0
0
0
0
224
0.219823
49e6d32460dd6b58678d99ca2b2edccf4f319501
1,174
py
Python
anagrams.py
zubrik13/coding_intrv_prer
853a7c8357ad43601313daadcc1c494d403a9aa0
[ "MIT" ]
null
null
null
anagrams.py
zubrik13/coding_intrv_prer
853a7c8357ad43601313daadcc1c494d403a9aa0
[ "MIT" ]
null
null
null
anagrams.py
zubrik13/coding_intrv_prer
853a7c8357ad43601313daadcc1c494d403a9aa0
[ "MIT" ]
null
null
null
""" A student is taking a cryptography class and has found anagrams to be very useful. Two strings are anagrams of each other if the first string's letters can be rearranged to form the second string. In other words, both strings must contain the same exact letters in the same exact frequency. For example, bacdc an...
30.894737
83
0.70017
0
0
0
0
0
0
0
0
824
0.701874
49e795b64e0b3cac7465448efafac4bd98ed4236
267
py
Python
PhoenixNow/login.py
ECGHelloWorld/PhoenixNow
88f98f59a91a4e99763ae4432df7945d811b63bf
[ "MIT" ]
2
2017-02-06T15:42:27.000Z
2021-01-14T15:13:08.000Z
PhoenixNow/login.py
ECGHelloWorld/PhoenixNow
88f98f59a91a4e99763ae4432df7945d811b63bf
[ "MIT" ]
null
null
null
PhoenixNow/login.py
ECGHelloWorld/PhoenixNow
88f98f59a91a4e99763ae4432df7945d811b63bf
[ "MIT" ]
6
2016-07-30T19:57:19.000Z
2019-08-06T03:44:54.000Z
from flask_login import LoginManager from PhoenixNow.model import User login_manager = LoginManager() login_manager.login_view = "regular.signin" @login_manager.user_loader def load_user(user_id): user = User.query.filter_by(id=user_id).first() return user
24.272727
51
0.794007
0
0
0
0
118
0.441948
0
0
16
0.059925
49e8bc016b4a92e63bbff49dadf2d0f5ff48a5c0
7,673
py
Python
mobi_parse_data.py
josting/CS538_Project
b503de4f8e632166f715bb28b621d21770e3142e
[ "MIT" ]
null
null
null
mobi_parse_data.py
josting/CS538_Project
b503de4f8e632166f715bb28b621d21770e3142e
[ "MIT" ]
null
null
null
mobi_parse_data.py
josting/CS538_Project
b503de4f8e632166f715bb28b621d21770e3142e
[ "MIT" ]
null
null
null
import os import datetime as dt import random import networkx # import matplotlib as mpl import matplotlib.pyplot as plt from const import * activity = {} with open(os.path.join(DATA_DIR, "mobiclique", "activity.csv")) as activity_fd: for line in activity_fd.readlines(): line = line.strip() ...
37.247573
121
0.59377
0
0
0
0
0
0
0
0
443
0.057735
49ea4f99ec3b4e468aba9dc32ef313173fda7ba3
6,995
py
Python
tests/tests_geomstats/test_general_linear.py
tfunatomi/geomstats
a5651680f98dea95c1f82a48af1a6dccf3e26bd1
[ "MIT" ]
2
2020-01-23T04:01:02.000Z
2020-08-18T19:20:27.000Z
tests/tests_geomstats/test_general_linear.py
tfunatomi/geomstats
a5651680f98dea95c1f82a48af1a6dccf3e26bd1
[ "MIT" ]
null
null
null
tests/tests_geomstats/test_general_linear.py
tfunatomi/geomstats
a5651680f98dea95c1f82a48af1a6dccf3e26bd1
[ "MIT" ]
null
null
null
"""Unit tests for the General Linear group.""" import warnings import tests.helper as helper import geomstats.backend as gs import geomstats.tests from geomstats.geometry.general_linear import GeneralLinear RTOL = 1e-5 class TestGeneralLinear(geomstats.tests.TestCase): def setUp(self): gs.random.seed(...
32.840376
74
0.501358
6,769
0.967691
0
0
2,496
0.356826
0
0
54
0.00772
49eb7a1d598ee46402c3d994c365fef1314082ef
454
py
Python
teszt/test_feladat03-06.py
python-feladatok-tesztekkel/05-01-10-dolgozat
ce1c8568daf83dc86bba1fb325cb7b8d1cf0dd3f
[ "CC0-1.0" ]
null
null
null
teszt/test_feladat03-06.py
python-feladatok-tesztekkel/05-01-10-dolgozat
ce1c8568daf83dc86bba1fb325cb7b8d1cf0dd3f
[ "CC0-1.0" ]
null
null
null
teszt/test_feladat03-06.py
python-feladatok-tesztekkel/05-01-10-dolgozat
ce1c8568daf83dc86bba1fb325cb7b8d1cf0dd3f
[ "CC0-1.0" ]
null
null
null
from unittest import TestCase import os,sys,inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parent_dir = os.path.dirname(current_dir) sys.path.insert(0, parent_dir) import feladatok class TestEBetukSzama6(TestCase): def test_feladat06(self): aktualis = fela...
32.428571
92
0.746696
227
0.493478
0
0
0
0
0
0
56
0.121739
49ebafbb9bb001087a55a6aebb22dbde9671371c
271
py
Python
{{cookiecutter.project_name}}/pages/main_page.py
victory-sokolov/selenium-boilerplate
43ac0e37c93c6379186f06050ab29e8521ac3ad1
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/pages/main_page.py
victory-sokolov/selenium-boilerplate
43ac0e37c93c6379186f06050ab29e8521ac3ad1
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/pages/main_page.py
victory-sokolov/selenium-boilerplate
43ac0e37c93c6379186f06050ab29e8521ac3ad1
[ "MIT" ]
null
null
null
from utils.Driver import Driver from pages.base_page import BasePage from pages.locators import MainPageLocators class MainPage(BasePage): def __init__(self, driver: Driver): self.locators = MainPageLocators super().__init__(driver=driver)
27.1
44
0.734317
151
0.557196
0
0
0
0
0
0
0
0
49edf4b8c87add119d94e632341ab23299a577d3
1,726
py
Python
boardgames/main/migrations/0001_initial.py
diophung/django-sample
4916f4aa70506f6f40b736f68a0bbe398ea1ea8e
[ "Apache-2.0" ]
null
null
null
boardgames/main/migrations/0001_initial.py
diophung/django-sample
4916f4aa70506f6f40b736f68a0bbe398ea1ea8e
[ "Apache-2.0" ]
null
null
null
boardgames/main/migrations/0001_initial.py
diophung/django-sample
4916f4aa70506f6f40b736f68a0bbe398ea1ea8e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-16 07:49 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
42.097561
162
0.636153
1,502
0.87022
0
0
0
0
0
0
253
0.146582
49ee2e293e1b411f588dd752ab4762901a62db20
7,801
py
Python
src/tools/nuscenes-devkit/prediction/tests/test_mtp_loss.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
475
2021-03-13T16:33:36.000Z
2022-03-30T06:00:39.000Z
src/tools/nuscenes-devkit/prediction/tests/test_mtp_loss.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
50
2021-03-17T04:48:20.000Z
2022-03-08T13:55:32.000Z
src/tools/nuscenes-devkit/prediction/tests/test_mtp_loss.py
jie311/TraDeS
896491a159abe65f61c6ad05662cda6e28d137a6
[ "MIT" ]
98
2021-03-14T12:12:49.000Z
2022-03-19T16:19:13.000Z
import math import unittest import torch from nuscenes.prediction.models import mtp class TestMTPLoss(unittest.TestCase): """ Test each component of MTPLoss as well as the __call__ method. """ def test_get_trajectories_and_modes(self): loss_n_modes_5 = mtp.MTPLoss(5, 0, 0) los...
42.396739
106
0.58313
7,711
0.988463
0
0
0
0
0
0
849
0.108832
49ef52693c6a396a1581cc399d1886b8613380b6
1,067
py
Python
json2graph.py
daveshah1/hypergraph_part
cea56e615eec01cb536ed23206ed101c213864a5
[ "0BSD" ]
null
null
null
json2graph.py
daveshah1/hypergraph_part
cea56e615eec01cb536ed23206ed101c213864a5
[ "0BSD" ]
null
null
null
json2graph.py
daveshah1/hypergraph_part
cea56e615eec01cb536ed23206ed101c213864a5
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # Convert Yosys JSON to simple text hypergraph for performance testing import sys, json node_count = 0 edge2node = {} netlist = None with open(sys.argv[1]) as jf: netlist = json.load(jf) top_module = None for name, module in sorted(netlist["modules"].items()): if "attributes" not in modul...
24.25
76
0.665417
0
0
0
0
0
0
0
0
220
0.206186
49f13b101323835947d8e0f19cb369eece2aefcf
3,966
py
Python
tools/lstm_dql_6.py
alexis-jacq/signals
3c960e125ed5265dfc9cd3278df948f3c846a5dd
[ "0BSD" ]
1
2020-02-18T12:52:02.000Z
2020-02-18T12:52:02.000Z
tools/lstm_dql_6.py
alexis-jacq/signals
3c960e125ed5265dfc9cd3278df948f3c846a5dd
[ "0BSD" ]
null
null
null
tools/lstm_dql_6.py
alexis-jacq/signals
3c960e125ed5265dfc9cd3278df948f3c846a5dd
[ "0BSD" ]
null
null
null
from Tkinter import * import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.autograd as autograd from torch.autograd import Variable master = Tk() goal = 0 var_goal = StringVar() GAMMA = 0.9 last_state = Variable(torch.Tensor([0,0,0,0,0,0])).u...
28.73913
122
0.660111
670
0.168936
0
0
0
0
0
0
167
0.042108
49f1fc4e36bfb8c6234c3e939d335df6e0c3dae5
500
py
Python
Engine/Shaders/compile_all_shader.py
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
240
2017-02-17T10:08:19.000Z
2022-03-25T14:45:29.000Z
Engine/Shaders/compile_all_shader.py
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
2
2016-10-12T07:08:38.000Z
2017-04-05T01:56:30.000Z
Engine/Shaders/compile_all_shader.py
yushroom/FishEngine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
39
2017-03-02T09:40:07.000Z
2021-12-04T07:28:53.000Z
import os import sys compiler = r'../Binary/RelWithDebInfo/ShaderCompiler' #compiler = r'../Binary/Debug/ShaderCompiler' shader_dirs = ['.', './Editor'] count = 0 for d in shader_dirs: for fn in os.listdir(d): print(fn) ext = fn.split('.')[-1] if ext in ['surf', 'shader']: cmd = compiler + ' ' + os.path.ab...
22.727273
62
0.624
0
0
0
0
0
0
0
0
165
0.33
49f2ebec4bd34c27d749eb184a9d941a3fa4ea04
14,058
py
Python
rbb_server/src/rbb_swagger_server/models/simulation_detailed.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
55
2019-05-09T06:43:05.000Z
2021-12-08T05:56:43.000Z
rbb_server/src/rbb_swagger_server/models/simulation_detailed.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
5
2019-09-08T15:33:28.000Z
2021-04-17T17:30:53.000Z
rbb_server/src/rbb_swagger_server/models/simulation_detailed.py
SK4P3/rbb_core
618617270314af5335de30179072244e1f440c4c
[ "MIT" ]
16
2019-08-08T07:15:35.000Z
2021-12-07T15:34:41.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from rbb_swagger_server.models.base_model_ import Model from rbb_swagger_server.models.simulation_environment_detailed import SimulationEnvironmentDetailed # noqa: F40...
34.20438
413
0.660905
13,411
0.953976
0
0
9,323
0.663181
0
0
8,506
0.605065
49f3758e9d44d3107ec62931b01722d7ad937589
5,857
py
Python
src/pathlinker.py
melliott432/spras
ba914f6a55a51c3e3b55b56844a533ff2936fae5
[ "MIT" ]
3
2021-05-05T23:40:39.000Z
2021-05-13T03:35:22.000Z
src/pathlinker.py
melliott432/spras
ba914f6a55a51c3e3b55b56844a533ff2936fae5
[ "MIT" ]
41
2021-04-27T01:48:28.000Z
2022-03-14T20:11:24.000Z
src/pathlinker.py
melliott432/spras
ba914f6a55a51c3e3b55b56844a533ff2936fae5
[ "MIT" ]
2
2021-07-06T18:27:19.000Z
2022-01-25T03:56:49.000Z
import docker import os import sys import pandas as pd import warnings from src.PRM import PRM from pathlib import Path from src.util import prepare_path_docker __all__ = ['PathLinker'] class PathLinker(PRM): required_inputs = ['nodetypes', 'network'] @staticmethod def generate_inputs(data, filename_map)...
42.751825
177
0.626771
5,668
0.967731
0
0
5,542
0.946218
0
0
2,631
0.449206
49f40691673fa4f67fa8dd4ced6c7bd474270052
4,978
py
Python
stonesoup/hypothesiser/gaussianmixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
1
2019-12-26T14:55:03.000Z
2019-12-26T14:55:03.000Z
stonesoup/hypothesiser/gaussianmixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
stonesoup/hypothesiser/gaussianmixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .base import Hypothesiser from ..base import Property from ..types.multihypothesis import MultipleHypothesis from ..types.prediction import (TaggedWeightedGaussianStatePrediction, WeightedGaussianStatePrediction) from ..types.state import TaggedWeightedGaussi...
45.669725
96
0.606268
4,647
0.933507
0
0
0
0
0
0
1,767
0.354962
49f45e903b240c04c0489fac65ede708075df463
1,458
py
Python
apps/approval/api/serializers.py
emilps/onlineweb4
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
[ "MIT" ]
null
null
null
apps/approval/api/serializers.py
emilps/onlineweb4
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
[ "MIT" ]
null
null
null
apps/approval/api/serializers.py
emilps/onlineweb4
6f4aca2a4522698366ecdc6ab63c807ce5df2a96
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError as DjangoValidationError from rest_framework import serializers from apps.approval.models import CommitteeApplication, CommitteePriority from apps.authentication.serializers import UserSerializer class CommitteeSerializer(serializers.ModelSerializer): group_name...
36.45
96
0.742798
1,204
0.825789
0
0
0
0
0
0
149
0.102195
49f6c77afc94bafb870dc3b17a265d3485c6c64e
2,909
py
Python
visualization/histogram.py
SalikLP/classification-of-encrypted-traffic
3c86e098aab58941f9339bb64945c1112ab556ef
[ "MIT" ]
35
2018-05-25T16:48:23.000Z
2022-03-15T14:35:07.000Z
visualization/histogram.py
SalikLP/classification-of-encrypted-traffic
3c86e098aab58941f9339bb64945c1112ab556ef
[ "MIT" ]
3
2018-03-18T13:03:09.000Z
2020-01-17T12:09:12.000Z
visualization/histogram.py
SalikLP/classification-of-encrypted-traffic
3c86e098aab58941f9339bb64945c1112ab556ef
[ "MIT" ]
14
2018-05-25T16:48:24.000Z
2022-01-04T12:56:31.000Z
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import StandardScaler from sklearn.cross_validation import train_test_split import utils import glob, os import pca.dataanalyzer as da, pca.pca as pca from sklearn.metrics import accuracy_score # visulaize ...
36.822785
127
0.700928
0
0
0
0
0
0
0
0
1,189
0.408732
49f6f1f5b6e7113a385ba89e9bd8fb4c985968b5
421
py
Python
examples/board_toolkit_simpletest.py
Neradoc/Adafruit_Board_Toolkit
c1602192f015924ce4ffd4e90dcd44769e565780
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
10
2021-03-16T18:05:53.000Z
2022-03-20T20:40:38.000Z
examples/board_toolkit_simpletest.py
Neradoc/Adafruit_Board_Toolkit
c1602192f015924ce4ffd4e90dcd44769e565780
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
8
2021-03-17T18:32:54.000Z
2021-12-31T19:58:01.000Z
examples/board_toolkit_simpletest.py
Neradoc/Adafruit_Board_Toolkit
c1602192f015924ce4ffd4e90dcd44769e565780
[ "MIT", "BSD-3-Clause", "MIT-0", "Unlicense" ]
4
2021-04-21T13:48:18.000Z
2022-03-13T15:07:01.000Z
# SPDX-FileCopyrightText: Copyright (c) 2021 Dan Halbert for Adafruit Industries # # SPDX-License-Identifier: Unlicense import adafruit_board_toolkit.circuitpython_serial comports = adafruit_board_toolkit.circuitpython_serial.repl_comports() if not comports: raise Exception("No CircuitPython boards found") # Pri...
32.384615
80
0.812352
0
0
0
0
0
0
0
0
205
0.486936
49f718d53ef81854c33add0bb6b608250490d75e
798
py
Python
saq/utils.py
cofin/saq
be81f383a0904e9084e24ccb5334e07fc5b61e00
[ "MIT" ]
29
2022-01-05T07:07:18.000Z
2022-03-29T20:09:03.000Z
saq/utils.py
cofin/saq
be81f383a0904e9084e24ccb5334e07fc5b61e00
[ "MIT" ]
3
2022-01-23T17:33:40.000Z
2022-03-10T03:36:21.000Z
saq/utils.py
cofin/saq
be81f383a0904e9084e24ccb5334e07fc5b61e00
[ "MIT" ]
4
2022-01-06T18:33:33.000Z
2022-03-23T18:44:19.000Z
import time import uuid from random import random def now(): return int(time.time() * 1000) def uuid1(): return str(uuid.uuid1()) def millis(s): return s * 1000 def seconds(ms): return ms / 1000 def exponential_backoff( attempts, base_delay, max_delay=None, jitter=True, ): ...
19
73
0.641604
0
0
0
0
0
0
0
0
283
0.354637
49f8927dba9de24eccfdfa6bd46fde3e6e325f82
221
py
Python
pipeline.py
sanidhya-singh/dagster-pipelines
671c4869dca14f96902981e2e8c84df1319ca89e
[ "MIT" ]
null
null
null
pipeline.py
sanidhya-singh/dagster-pipelines
671c4869dca14f96902981e2e8c84df1319ca89e
[ "MIT" ]
null
null
null
pipeline.py
sanidhya-singh/dagster-pipelines
671c4869dca14f96902981e2e8c84df1319ca89e
[ "MIT" ]
null
null
null
from dagster import job, op @op def get_name(): return "dagster" @op def hello(name: str): print(f"Hello, {name}!") @job(description="Hello world Dagster pipeline") def hello_dagster(): hello(get_name())
13.8125
48
0.669683
0
0
0
0
185
0.837104
0
0
56
0.253394
49fab0bf939b0f4cf2782196c0ddc5090bf9b5e5
4,508
py
Python
qulab/drivers/AFG3102.py
liuqichun3809/quantum-lab
05bea707b314ea1687866f56ee439079336cfbbc
[ "MIT" ]
3
2020-08-30T16:11:49.000Z
2021-03-05T12:09:30.000Z
qulab/drivers/AFG3102.py
liuqichun3809/quantum-lab
05bea707b314ea1687866f56ee439079336cfbbc
[ "MIT" ]
null
null
null
qulab/drivers/AFG3102.py
liuqichun3809/quantum-lab
05bea707b314ea1687866f56ee439079336cfbbc
[ "MIT" ]
2
2019-07-24T15:12:31.000Z
2019-09-20T02:17:28.000Z
# -*- coding: utf-8 -*- import time import numpy as np from qulab.device import BaseDriver, QInteger, QOption, QReal, QString, QVector class Driver(BaseDriver): error_command = '*ESR?' support_models = ['AFG3102'] quants = [ QOption('Output',ch=1, set_cmd='OUTP%(ch)d %(option)s', get_...
53.035294
132
0.618234
4,592
0.970414
0
0
0
0
0
0
2,500
0.528318
49fc564845398fd6fccf8887fc72513069095963
1,357
py
Python
02-intermediate/lstm_network/main.py
kevin2018pg/pytorch-notes
4ba3827fccbf17ec446b2538186dd78dea3ecb50
[ "MIT" ]
1
2020-12-03T02:41:07.000Z
2020-12-03T02:41:07.000Z
02-intermediate/lstm_network/main.py
kevin2018pg/pytorch-notes
4ba3827fccbf17ec446b2538186dd78dea3ecb50
[ "MIT" ]
null
null
null
02-intermediate/lstm_network/main.py
kevin2018pg/pytorch-notes
4ba3827fccbf17ec446b2538186dd78dea3ecb50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import torch import torch.nn as nn """ 输入3个句子,每个句子由5个单词构成,每个单词词向量10维 batch=3, seq_len=5, Embedding=10 """ # 设置LSTM参数,词向量维数10,隐藏元维度20,2个LSTM隐藏层,双向LSTM bilstm = nn.LSTM(input_size=10, hidden_size=20, num_layers=2, bidirectional=True) # 如下表示输入句子 input = torch.randn(5, 3, 10) # 初始化的隐藏元和记忆元,通常维度一样 ...
41.121212
106
0.740604
0
0
0
0
0
0
0
0
1,089
0.6604
49fd04fd3ec6534f06e8ff42c0869a4f70bf3dd5
1,484
py
Python
meiduo_mall/apps/meiduo_admin/views/order.py
zzZaida/meiduo_backend
c4f94ea7f9c47a08d3e37fb0ac2c1ec1dcf2c18b
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/order.py
zzZaida/meiduo_backend
c4f94ea7f9c47a08d3e37fb0ac2c1ec1dcf2c18b
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/order.py
zzZaida/meiduo_backend
c4f94ea7f9c47a08d3e37fb0ac2c1ec1dcf2c18b
[ "MIT" ]
null
null
null
from rest_framework.decorators import action from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from apps.meiduo_admin.serializers.order import OrderInfoSerializer from apps.meiduo_admin.utils import PageNum from apps.orders.models import OrderInfo class OrderModelViewSet(M...
26.035088
67
0.623989
1,247
0.80869
0
0
566
0.367056
0
0
542
0.351492
49fd9dcc627b703550931ebd10aa32549f023644
29,587
py
Python
QA/pycopia/remote/windows_server.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
3
2018-11-26T15:00:20.000Z
2022-01-28T23:17:58.000Z
QA/pycopia/remote/windows_server.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
null
null
null
QA/pycopia/remote/windows_server.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
1
2018-11-26T15:00:21.000Z
2018-11-26T15:00:21.000Z
#!/usr/bin/python3.4 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 app...
31.475532
119
0.590935
25,459
0.860479
0
0
0
0
0
0
7,034
0.23774
49fe4d073489d2871ae5e7fb65b3eed92cc792a4
372
py
Python
benchmark/info_locust.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
2
2018-05-28T14:15:00.000Z
2018-10-15T09:33:38.000Z
benchmark/info_locust.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
null
null
null
benchmark/info_locust.py
dmitryhd/avio
4e99c123de12a682f1ac1141899d670fbab81de6
[ "MIT" ]
null
null
null
from locust import HttpLocust, TaskSet def login(l): l.client.post("/login", {"username": "ellen_key", "password": "education"}) def info(l): l.client.get("/_info") def profile(l): l.client.get("/profile") class UserBehavior(TaskSet): tasks = {info: 1} class WebsiteUser(HttpLocust): task_s...
15.5
79
0.647849
142
0.38172
0
0
0
0
0
0
68
0.182796
b700ba706143879736399c02f81312c27b36379e
513
py
Python
userbot/plugins/funtxts.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
userbot/plugins/funtxts.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
userbot/plugins/funtxts.py
kumar451/CatUserbot
44fab853232fad163fee63565cc4f3e645596527
[ "MIT" ]
null
null
null
import nekos from ..utils import admin_cmd @borg.on(admin_cmd(pattern = "tcat$")) async def hmm(cat): if cat.fwd_from: return reactcat = nekos.textcat() await cat.edit(reactcat) @borg.on(admin_cmd(pattern = "why$")) async def hmm(cat): if cat.fwd_from: return whycat = nekos...
21.375
38
0.619883
0
0
0
0
456
0.888889
340
0.662768
20
0.038986
b700c7a198400a2306ffbc65c60b311d50ca469c
2,518
py
Python
tests/test_thread_python_exit.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
7
2020-05-30T05:57:39.000Z
2022-03-05T06:09:26.000Z
tests/test_thread_python_exit.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
2
2020-05-30T15:12:44.000Z
2020-10-06T12:54:41.000Z
tests/test_thread_python_exit.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
1
2020-03-03T19:37:44.000Z
2020-03-03T19:37:44.000Z
import time import continuous_threading def test_thread(): class Thread(continuous_threading.Thread): def _run(self, *args, **kwargs): print('here') th = Thread() th.start() time.sleep(0.1) def test_continuous(): class CountingThread(continuous_threading.ContinuousThread): ...
25.18
106
0.608817
812
0.322478
0
0
0
0
0
0
514
0.20413
b701550eed98d3100b7b0a2a4ed10c335a6dc06a
2,587
py
Python
src/models/transformer_encoder.py
tsumita/implicit_emotion
dae2d5a8162a2665b8e76812716068650feae710
[ "MIT" ]
6
2018-09-03T00:55:35.000Z
2020-01-09T11:53:31.000Z
src/models/transformer_encoder.py
tsumita/implicit_emotion
dae2d5a8162a2665b8e76812716068650feae710
[ "MIT" ]
null
null
null
src/models/transformer_encoder.py
tsumita/implicit_emotion
dae2d5a8162a2665b8e76812716068650feae710
[ "MIT" ]
2
2019-06-23T11:32:27.000Z
2019-07-04T22:15:33.000Z
import copy import torch.nn as nn from .transformer import (Encoder, EncoderLayer, MultiHeadedAttention, PositionwiseFeedforward, PositionalEncoding) class TransformerEncoder(nn.Module): """Transformer Encod...
32.3375
81
0.609586
2,328
0.899884
0
0
0
0
0
0
973
0.376111
b70252d52453ebc8294d55dbd8e4ca2fdec3a045
338
py
Python
bluebottle/members/migrations/0028_merge_20190215_1441.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/members/migrations/0028_merge_20190215_1441.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/members/migrations/0028_merge_20190215_1441.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-02-15 13:41 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('members', '0026_auto_20180919_1434'), ('members', '0027_auto_20190208_1119'), ] ope...
19.882353
48
0.662722
188
0.556213
0
0
0
0
0
0
139
0.411243
b7065834b7518e12325dc5b9284ed2b6d23d7a2b
5,221
py
Python
src/globus_cli/login_manager/tokenstore.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
47
2016-04-21T19:51:17.000Z
2022-02-25T14:13:30.000Z
src/globus_cli/login_manager/tokenstore.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
421
2016-04-20T18:45:24.000Z
2022-03-14T14:50:41.000Z
src/globus_cli/login_manager/tokenstore.py
sirosen/temp-cli-test
416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6
[ "Apache-2.0" ]
20
2016-09-10T20:25:27.000Z
2021-10-06T16:02:47.000Z
import os import sys import globus_sdk from globus_sdk.tokenstorage import SQLiteAdapter from ._old_config import invalidate_old_config # internal constants _CLIENT_DATA_CONFIG_KEY = "auth_client_data" # env vars used throughout this module GLOBUS_ENV = os.environ.get("GLOBUS_SDK_ENVIRONMENT") GLOBUS_PROFILE = os.e...
34.348684
88
0.679755
0
0
0
0
0
0
0
0
2,510
0.480751
b706818aa45f72b58b9687e3a435833411cd0110
5,325
py
Python
launchMinecraft.py
Timurinyo/tchrHlprStudent
598f0e1321b11555d327393ab78723e1e286703e
[ "MIT" ]
null
null
null
launchMinecraft.py
Timurinyo/tchrHlprStudent
598f0e1321b11555d327393ab78723e1e286703e
[ "MIT" ]
null
null
null
launchMinecraft.py
Timurinyo/tchrHlprStudent
598f0e1321b11555d327393ab78723e1e286703e
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 __author__ = 'CoderZh and Tymur' import sys from time import sleep # Important for multithreading sys.coinit_flags = 0 # pythoncom.COINIT_MULTITHREADED import win32com import win32com.client import win32gui import win32con import pythoncom #import keyboard from p...
28.475936
159
0.689202
0
0
0
0
0
0
0
0
1,617
0.303662
b7076a862b13e824331a204380735697e0b6b508
4,158
py
Python
trabajo/Plugins/test_plugin_MontoEscrito.py
f2scali/siendo
5e3c20143317e365cfecb5b56a0f2388acc46949
[ "Apache-2.0" ]
null
null
null
trabajo/Plugins/test_plugin_MontoEscrito.py
f2scali/siendo
5e3c20143317e365cfecb5b56a0f2388acc46949
[ "Apache-2.0" ]
null
null
null
trabajo/Plugins/test_plugin_MontoEscrito.py
f2scali/siendo
5e3c20143317e365cfecb5b56a0f2388acc46949
[ "Apache-2.0" ]
1
2021-10-01T22:22:09.000Z
2021-10-01T22:22:09.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'efrenfuentes' import unittest from plugin_MontoEscrito import numero_a_letras, numero_a_moneda class TestNumeroLetras(unittest.TestCase): def test_numero_demasiado_alto(self): numero = 1000000000000 self.assertRaises(OverflowError, numero_a...
39.980769
199
0.685907
3,954
0.950938
0
0
0
0
0
0
1,120
0.26936
b708d72fd35c4c8f3891e434790ce2fd08903cc3
2,238
py
Python
setup.py
hivesolutions/pconvert
ff4d09400dc1542080d86f3f99c702ab0ef1405d
[ "Apache-1.1" ]
4
2020-04-18T08:38:42.000Z
2020-12-10T01:54:57.000Z
setup.py
hivesolutions/pconvert
ff4d09400dc1542080d86f3f99c702ab0ef1405d
[ "Apache-1.1" ]
3
2020-09-09T16:40:47.000Z
2020-11-11T13:21:58.000Z
setup.py
hivesolutions/pconvert
ff4d09400dc1542080d86f3f99c702ab0ef1405d
[ "Apache-1.1" ]
4
2016-09-28T10:32:42.000Z
2020-11-11T12:39:02.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os import setuptools setuptools.setup( name = "pconvert-python", version = "0.4.1", author = "Hive Solutions Lda.", author_email = "[email protected]", description = "PNG Convert", license = "Apache License, Version 2.0", keyw...
33.402985
68
0.498213
0
0
0
0
0
0
0
0
1,129
0.504468
b70b18ff12c786f422768e26c9e8b6e9b54e1407
2,281
py
Python
tf2onnx/optimizer/optimizer_base.py
gcunhase/tensorflow-onnx
8a61c99fbc39c36d70781f95e2c7c582f46ba2db
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/optimizer/optimizer_base.py
gcunhase/tensorflow-onnx
8a61c99fbc39c36d70781f95e2c7c582f46ba2db
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/optimizer/optimizer_base.py
gcunhase/tensorflow-onnx
8a61c99fbc39c36d70781f95e2c7c582f46ba2db
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 """Graph Optimizer Base""" import copy from .. import logging, utils class GraphOptimizerBase(object): """optimizer graph to improve performance """ def __init__(self): self._logger = logging.getLogger('.'.join(__name__.split('.')[:-1] + [self.__class__._...
29.623377
112
0.615081
2,167
0.950022
0
0
954
0.418238
0
0
455
0.199474
b70b7e3ec23c6100b7d22c2fc18a52d85615b5ef
3,299
py
Python
train.py
anishjain18/Trigger-Word-Detector
85d635cabc553c612db414853b4569ec869d9bf7
[ "MIT" ]
15
2021-11-03T04:33:22.000Z
2022-03-30T18:24:57.000Z
train.py
anishjain18/Trigger-Word-Detector
85d635cabc553c612db414853b4569ec869d9bf7
[ "MIT" ]
null
null
null
train.py
anishjain18/Trigger-Word-Detector
85d635cabc553c612db414853b4569ec869d9bf7
[ "MIT" ]
21
2021-11-03T04:34:11.000Z
2022-03-22T10:17:06.000Z
import numpy as np from pydub import AudioSegment import random import sys import io import os import glob import IPython from td_utils import * from tensorflow.keras.callbacks import ModelCheckpoint from tensorflow.keras.models import Model, load_model, Sequential from tensorflow.keras.layers import Dense, Activation...
34.726316
109
0.632313
0
0
0
0
0
0
0
0
1,188
0.359238
b70ca02982a56be8fc00bc20da13192c0eb44f5a
1,753
py
Python
armchem/workspace.py
mmgalushka/armchem
00bd0d2085b47b03724af422b75e2801619b8c03
[ "MIT" ]
3
2020-05-13T21:48:26.000Z
2020-10-18T14:42:00.000Z
armchem/workspace.py
mmgalushka/armchem
00bd0d2085b47b03724af422b75e2801619b8c03
[ "MIT" ]
null
null
null
armchem/workspace.py
mmgalushka/armchem
00bd0d2085b47b03724af422b75e2801619b8c03
[ "MIT" ]
1
2022-02-27T01:04:38.000Z
2022-02-27T01:04:38.000Z
# ===================================================== # Copyright (c) 2017-present, AUROMIND Ltd. # ===================================================== import os from network import NeuralNetwork from experiments import Experiment from utils import save_object, load_object # ------------------------------------...
31.872727
84
0.497433
1,141
0.650884
0
0
0
0
0
0
495
0.282373
b70d32e911f44e99f8dbffab2918320edced91af
4,353
py
Python
uge/objects/cluster_queue_v1_0.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
6
2017-01-18T00:11:19.000Z
2022-02-10T08:18:00.000Z
uge/objects/cluster_queue_v1_0.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
3
2017-05-11T13:54:42.000Z
2020-08-12T06:15:43.000Z
uge/objects/cluster_queue_v1_0.py
gridengine/config-api
694f9667bb6569170356336283a18351456e8b82
[ "Apache-2.0" ]
4
2017-05-11T13:27:33.000Z
2019-10-29T02:02:24.000Z
#!/usr/bin/env python # # ___INFO__MARK_BEGIN__ ####################################################################################### # Copyright 2016-2021 Univa Corporation (acquired and owned by Altair Engineering Inc.) # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file e...
33.484615
172
0.574546
3,426
0.787043
0
0
0
0
0
0
2,786
0.640018
b70d6fb35471bf494fd9d6d6d9ddbd3c3ad564bf
6,789
py
Python
decomplz4l_prep/__init__.py
Tiempogithub/decomplz4l
1043daf70072bb4dc229c7503bce3b212156921b
[ "BSD-3-Clause" ]
1
2020-02-28T16:21:00.000Z
2020-02-28T16:21:00.000Z
decomplz4l_prep/__init__.py
Tiempogithub/decomplz4l
1043daf70072bb4dc229c7503bce3b212156921b
[ "BSD-3-Clause" ]
null
null
null
decomplz4l_prep/__init__.py
Tiempogithub/decomplz4l
1043daf70072bb4dc229c7503bce3b212156921b
[ "BSD-3-Clause" ]
2
2019-06-28T21:36:01.000Z
2019-08-19T07:55:51.000Z
#!/usr/bin/env python3 import os import sys import runpy from intelhex import IntelHex #import lz4.frame import subprocess import shutil def get_section_from_elf(elf,section_name): objdump = shutil.which('objdump') cmd = [ objdump,elf,'-h','--section='+section_name] out="" res=subprocess.run(cmd, stdou...
37.098361
162
0.627338
0
0
0
0
0
0
0
0
1,595
0.234939
b70e5693b800019c043a966f67e793acac17d9e5
3,819
py
Python
application/views/service/service.py
celerysoft/scholar-tool-manager
6188d981266eeec391ba646b9c7dc426ddec37e8
[ "Apache-2.0" ]
null
null
null
application/views/service/service.py
celerysoft/scholar-tool-manager
6188d981266eeec391ba646b9c7dc426ddec37e8
[ "Apache-2.0" ]
3
2019-04-29T22:55:49.000Z
2020-05-14T14:35:42.000Z
application/views/service/service.py
celerysoft/ScholarToolManager
6188d981266eeec391ba646b9c7dc426ddec37e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from flask import make_response, Blueprint from app import derive_import_root, add_url_rules_for_blueprint from application import exception from application.model.service import Service from application.model.service_template import ServiceTemplate from application.util.database import session...
38.19
101
0.625556
3,417
0.863097
0
0
247
0.062389
0
0
359
0.090679
b713985ca32368cb00dff148dea34d4486a5b5ad
1,293
py
Python
trello/searchs.py
fif911/trello3_little_bit_updated
baf0275c5a89b3bcf9c1544897cbe25fafbc53d0
[ "BSD-2-Clause" ]
16
2016-01-19T17:02:24.000Z
2020-02-20T19:23:32.000Z
trello/searchs.py
fif911/trello3_little_bit_updated
baf0275c5a89b3bcf9c1544897cbe25fafbc53d0
[ "BSD-2-Clause" ]
3
2016-02-10T14:17:58.000Z
2016-07-26T01:31:54.000Z
trello/searchs.py
fif911/trello3_little_bit_updated
baf0275c5a89b3bcf9c1544897cbe25fafbc53d0
[ "BSD-2-Clause" ]
7
2016-02-09T23:47:00.000Z
2021-06-05T17:03:22.000Z
import json import requests class Searchs(object): __module__ = 'trello' def __init__(self, apikey, token=None): self._apikey = apikey self._token = token def get(self, query, idOrganizations, idBoards=None, idCards=None, modelTypes=None, board_fields=None, boards_limit=None, ca...
76.058824
649
0.784996
1,251
0.967517
0
0
0
0
0
0
37
0.028616
b713b15110cb69ba0de9387f17cdd3a78231774b
3,736
py
Python
architect/design/bounded_exogenous_parameters.py
MIT-REALM/architect
1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb
[ "BSD-2-Clause" ]
2
2022-03-30T03:07:26.000Z
2022-03-30T17:35:21.000Z
architect/design/bounded_exogenous_parameters.py
MIT-REALM/architect
1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb
[ "BSD-2-Clause" ]
null
null
null
architect/design/bounded_exogenous_parameters.py
MIT-REALM/architect
1b5bbf6ddf08146cd3b8ad5c058539ac140e9ebb
[ "BSD-2-Clause" ]
null
null
null
"""Exogenous parameters are anything "uncontrollable" that affect the design; these are what we consider robustness against and are typically drawn from some distribution """ from typing import Optional, Sequence, Tuple, Union import jax import jax.numpy as jnp from jax._src.prng import PRNGKeyArray import numpy as np...
35.580952
87
0.608405
3,357
0.898555
0
0
290
0.077623
0
0
1,701
0.4553
b7150935db3a2cd174419b41f2e68609597221e8
103
py
Python
python/testData/quickdoc/AncestorClassDocstringForConstructor.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/quickdoc/AncestorClassDocstringForConstructor.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/quickdoc/AncestorClassDocstringForConstructor.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class Base: """Class docstring.""" class Sub(Base): def __in<the_ref>it__(self): pass
14.714286
32
0.592233
100
0.970874
0
0
0
0
0
0
22
0.213592
b7176f2e0dac30c4e5404b6399ccd7f4159c21b1
4,955
py
Python
courspider/department_calendar.py
Zylphrex/courspider
bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd
[ "MIT" ]
null
null
null
courspider/department_calendar.py
Zylphrex/courspider
bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd
[ "MIT" ]
null
null
null
courspider/department_calendar.py
Zylphrex/courspider
bbcd8f71afa3958405f7017890d5fc9ec8d0d4cd
[ "MIT" ]
null
null
null
import re from courspider.faculty_calendar_resources.department import Department from courspider.faculty_calendar_resources.url import URL from courspider.course import Course class DepartmentCalendar: def __init__(self, session, url): """ Initialize a new Department Calendar for the given url ...
40.284553
795
0.618365
4,775
0.963673
0
0
772
0.155802
0
0
2,430
0.490414
b7187d387790af8d5795d75e9899699ce907f9df
6,366
py
Python
chrome/test/chromedriver/run_buildbot_steps.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-02-03T05:19:48.000Z
2021-11-15T15:07:21.000Z
chrome/test/chromedriver/run_buildbot_steps.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/test/chromedriver/run_buildbot_steps.py
devasia1000/chromium
919a8a666862fb866a6bb7aa7f3ae8c0442b4828
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs all the buildbot steps for ChromeDriver except for update/compile.""" import optparse import os import platform import shu...
29.887324
80
0.678291
0
0
0
0
0
0
0
0
1,884
0.295947
b718b1cb323c068a0fab21f464ad842ab3d200e7
2,924
py
Python
src/TheLanguage/Parser/Expressions/UnitTests/CastExpressionParserInfo_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Parser/Expressions/UnitTests/CastExpressionParserInfo_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Parser/Expressions/UnitTests/CastExpressionParserInfo_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
1
2021-06-18T18:58:57.000Z
2021-06-18T18:58:57.000Z
# ---------------------------------------------------------------------- # | # | CastExpressionParserInfo_UnitTest.py # | # | David Brownell <[email protected]> # | 2021-10-04 09:14:16 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 ...
34.4
113
0.499316
0
0
0
0
0
0
0
0
1,053
0.360123
b71a0544974b49622ebf65934372dde5c8e554ce
363
py
Python
backend/api/models.py
pranav2812/9th-inter-iit-traffic-sign
27d3f14ce8235d5cdedb4bb2dbaa10e436f9b06b
[ "Apache-2.0" ]
1
2021-04-13T07:56:17.000Z
2021-04-13T07:56:17.000Z
backend/api/models.py
Tech-Meet-Solutions/Bosch-CV-9th-InterIIT
57f4bd915c4a1e2146a77210e92d756e1cc3722a
[ "Apache-2.0" ]
1
2021-04-09T11:52:01.000Z
2021-04-09T12:21:36.000Z
backend/api/models.py
pranav2812/9th-inter-iit-traffic-sign
27d3f14ce8235d5cdedb4bb2dbaa10e436f9b06b
[ "Apache-2.0" ]
3
2021-04-15T10:43:06.000Z
2021-05-16T00:36:39.000Z
from django.db import models class File(models.Model): id = models.AutoField(primary_key= True) b64 = models.TextField(blank=False, null=False) lastedit = models.DateTimeField(auto_now= True) image_class = models.TextField(blank = True, default = "") labels = models.TextField(blank = True, default= "") def __str...
33
59
0.730028
332
0.914601
0
0
0
0
0
0
27
0.07438
b71ce22664f675b460275b3803f757d02f90c92c
189
py
Python
release/Server/__init__.py
cdfmlr/readquickly_WeChatSmallApp
e489c507bfbf81a9a43872919000b99b803a079c
[ "MIT" ]
2
2019-04-03T13:19:32.000Z
2019-04-03T23:20:27.000Z
release/Server/__init__.py
cdfmlr/readquickly_WeChatSmallApp
e489c507bfbf81a9a43872919000b99b803a079c
[ "MIT" ]
1
2019-04-03T16:44:36.000Z
2019-04-03T23:16:35.000Z
release/Server/__init__.py
A666AHL/readquickly_WeChatSmallApp
7324b7bdd7cf6b7a77e127969077d1c84ada189d
[ "MIT" ]
2
2019-04-04T08:38:08.000Z
2019-04-04T09:01:42.000Z
''' # ReadQuickly 后端 ``` |-- Server |-- __init__.py |-- server.py (请求服务器) |-- content.py (整合响应数据) |-- spider (爬虫包) |-- weather (天气包) |-- notice (通知包) ``` '''
12.6
28
0.449735
0
0
0
0
0
0
0
0
233
1
b71d1eb99d842362c6523cbc96a06ae382953062
1,746
py
Python
JB/5.py
boostjanbjorge/adventofcode
5cdd540a553550b1000496dfa39cbf7cf431a85f
[ "MIT" ]
null
null
null
JB/5.py
boostjanbjorge/adventofcode
5cdd540a553550b1000496dfa39cbf7cf431a85f
[ "MIT" ]
null
null
null
JB/5.py
boostjanbjorge/adventofcode
5cdd540a553550b1000496dfa39cbf7cf431a85f
[ "MIT" ]
null
null
null
import collections import dataclasses import itertools @dataclasses.dataclass(frozen=True) class Point: x: int y: int @dataclasses.dataclass(frozen=True) class Segment: start: Point stop: Point @property def slope(self): dy = self.stop.y - self.start.y dx = self.stop.x - sel...
23.594595
83
0.57331
864
0.494845
862
0.4937
936
0.536082
0
0
97
0.055556
b71e4d45d0dd84308fd2a62e675360e49475c3fc
3,140
py
Python
readthedocs/search/parse_json.py
darrowco/readthedocs.org
fa7fc5a24306f1f6a27c7393f381c594ab29b357
[ "MIT" ]
null
null
null
readthedocs/search/parse_json.py
darrowco/readthedocs.org
fa7fc5a24306f1f6a27c7393f381c594ab29b357
[ "MIT" ]
null
null
null
readthedocs/search/parse_json.py
darrowco/readthedocs.org
fa7fc5a24306f1f6a27c7393f381c594ab29b357
[ "MIT" ]
null
null
null
"""Functions related to converting content into dict/JSON structures.""" import codecs import json import logging from pyquery import PyQuery log = logging.getLogger(__name__) def generate_sections_from_pyquery(body): """Given a pyquery object, generate section dicts for each section.""" # Capture text in...
28.288288
76
0.576752
0
0
1,335
0.424618
0
0
0
0
933
0.296756
b71eb8d88a38241242bcf5b67fab2d3309817366
8,427
py
Python
pottermore/pottermore.py
Ricotjhe/kennnyshiwa-cogs
5a596f298a6f7fe7502634793384a747060fc6c7
[ "MIT" ]
null
null
null
pottermore/pottermore.py
Ricotjhe/kennnyshiwa-cogs
5a596f298a6f7fe7502634793384a747060fc6c7
[ "MIT" ]
null
null
null
pottermore/pottermore.py
Ricotjhe/kennnyshiwa-cogs
5a596f298a6f7fe7502634793384a747060fc6c7
[ "MIT" ]
null
null
null
import contextlib from redbot.core import commands, Config from redbot.core.utils.menus import menu, DEFAULT_CONTROLS import discord import aiohttp import random slytherin = "https://cdn.shopify.com/s/files/1/1325/3287/products/HP8040B_930f8033-607f-41ee-a8e4-fa90871ce7a7.png?v=1546231154" gryffindor = "https://cdn1...
48.154286
174
0.657411
6,523
0.773784
0
0
5,875
0.696916
5,705
0.67675
2,944
0.349229
b71f0ad71dba6e7fc8ad5d041a1cde7948bbc25f
117
py
Python
contacts/views/contact_views.py
Onlynfk/Freshdesk-CRM-Platform
67137af09f7daf6fa2d19a9e70d573548137c9db
[ "MIT" ]
null
null
null
contacts/views/contact_views.py
Onlynfk/Freshdesk-CRM-Platform
67137af09f7daf6fa2d19a9e70d573548137c9db
[ "MIT" ]
null
null
null
contacts/views/contact_views.py
Onlynfk/Freshdesk-CRM-Platform
67137af09f7daf6fa2d19a9e70d573548137c9db
[ "MIT" ]
null
null
null
from django.shortcuts import render def contact(request): return render(request, 'contacts/contact.html')
19.5
52
0.735043
0
0
0
0
0
0
0
0
23
0.196581
b721a7e3b07e02d858ee3ed05e23ae34bf1e9c54
781
py
Python
algoritmos/PythonM2/desafio.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
algoritmos/PythonM2/desafio.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
algoritmos/PythonM2/desafio.py
MiguelTeixeiraUFPB/PythonM2
1ee07879b141eae4c4edd5f4ac43002b11167b2f
[ "MIT" ]
null
null
null
idadevelho=0 s=0 f=0 for p in range(1,3): print('---{}º pessoa---'.format(p)) nome=str(input('digite o {}º nome: '.format(p))).strip() idade=int(input('digite a idade da {}º pessoa: '.format(p))) peso=float(input('digite o peso da {}º pessoa: '.format(p))) sexo=str(input('sexo[M/F]: ')).upper()...
27.892857
67
0.581306
0
0
0
0
0
0
0
0
234
0.296954
b721cd3010a8637974b6ec065b10132ac28ed47b
1,957
py
Python
createVideo.py
Thefalas/disksMD
1f3a0a1814baf1fd8905da2e88d2244de90d14ec
[ "MIT" ]
null
null
null
createVideo.py
Thefalas/disksMD
1f3a0a1814baf1fd8905da2e88d2244de90d14ec
[ "MIT" ]
null
null
null
createVideo.py
Thefalas/disksMD
1f3a0a1814baf1fd8905da2e88d2244de90d14ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu May 3 18:33:28 2018 @author: malopez """ import pandas as pd import matplotlib.pyplot as plt import cv2 images_folder = "C:/Users/malopez/Desktop/disksMD/images" data_folder = "C:/Users/malopez/Desktop/disksMD/data" output_video = './video4.mp4' particle_radius = 1.0 n_part...
29.651515
68
0.701073
0
0
0
0
0
0
0
0
673
0.343718
b7222728ba7e52a01bbb0861ac4236dbfa5ce453
1,003
py
Python
utils/builder/register_builder/riscv/BootPriority.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
111
2020-06-12T22:31:30.000Z
2022-03-19T03:45:20.000Z
utils/builder/register_builder/riscv/BootPriority.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
34
2020-06-12T20:23:40.000Z
2022-03-15T20:04:31.000Z
utils/builder/register_builder/riscv/BootPriority.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
32
2020-06-12T19:15:26.000Z
2022-02-20T11:38:31.000Z
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PR...
37.148148
78
0.755733
238
0.237288
0
0
0
0
0
0
872
0.869392
b72306e350f2a9f34586f4bdf8fb4a7f6ec9f932
4,141
py
Python
truffe2/generic/templatetags/generic_extras.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
9
2016-09-14T02:19:19.000Z
2020-10-18T14:52:14.000Z
truffe2/generic/templatetags/generic_extras.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
19
2016-11-09T21:28:51.000Z
2021-02-10T22:37:31.000Z
truffe2/generic/templatetags/generic_extras.py
JonathanCollaud/truffe2
5cbb055ac1acf7e7dc697340618fcb56c67fbd91
[ "BSD-2-Clause" ]
13
2016-12-31T14:22:09.000Z
2020-12-27T19:43:19.000Z
from django import template from django.utils.safestring import mark_safe import bleach from bleach.sanitizer import BleachSanitizer from bleach.encoding import force_unicode from bootstrap3.renderers import FieldRenderer from bootstrap3.text import text_value import html5lib import re register = template.Library() ...
26.375796
157
0.657088
1,226
0.296064
0
0
2,710
0.654431
0
0
496
0.119778
b7243a1265f9290fb4007832856d3ae61b5b1b98
1,158
py
Python
tests/conftest.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
284
2015-01-09T12:02:28.000Z
2022-03-27T14:30:46.000Z
tests/conftest.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
799
2015-02-26T08:49:46.000Z
2022-03-31T16:09:26.000Z
tests/conftest.py
davis68/relate
eb40c8c17d4a724a60de3caa3334521a833bad5c
[ "Unlicense" ]
120
2015-01-30T18:00:56.000Z
2022-03-28T06:24:43.000Z
import pytest # from pytest_factoryboy import register def pytest_addoption(parser): parser.addoption( "--slow", action="store_true", default=False, help="run slow tests", ) parser.addoption( "--all", action="store_true", default=False, help="run all tests", ) def _is_connection_psql...
30.473684
78
0.636442
0
0
0
0
0
0
0
0
252
0.217617
b72448ecc9aed4165b8b074fbdda6ef50c31088e
2,210
py
Python
main.py
Kallu609/mp3-to-mp4-converter
780d4741b79a45c1e5541527a58313a36d665e47
[ "MIT" ]
null
null
null
main.py
Kallu609/mp3-to-mp4-converter
780d4741b79a45c1e5541527a58313a36d665e47
[ "MIT" ]
null
null
null
main.py
Kallu609/mp3-to-mp4-converter
780d4741b79a45c1e5541527a58313a36d665e47
[ "MIT" ]
1
2020-03-28T02:57:32.000Z
2020-03-28T02:57:32.000Z
import subprocess from mimetypes import MimeTypes from os import devnull, getcwd, listdir, makedirs, walk from os.path import basename, dirname, exists, isfile, join, splitext from pprint import pprint from urllib.request import pathname2url ALLOWED_AUDIO_MIMETYPES = ['audio/mpeg'] ALLOWED_IMAGE_MIMETYPES = ['image/jp...
26.95122
89
0.687783
0
0
0
0
0
0
0
0
335
0.151584
b7247af0becba5f41e0c2a4a41f7a5b86547cdbf
24
py
Python
lang/Python/terminal-control-cursor-positioning-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
lang/Python/terminal-control-cursor-positioning-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/terminal-control-cursor-positioning-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
print("\033[6;3HHello")
12
23
0.666667
0
0
0
0
0
0
0
0
16
0.666667
b724c571207a17423525239296130cc889afe81a
6,169
py
Python
ambassador/tests/ambassador_test.py
tesserai/ambassador
70fadc62872be9b041b90cba54d3920a21777548
[ "Apache-2.0" ]
1
2019-01-22T05:36:23.000Z
2019-01-22T05:36:23.000Z
ambassador/tests/ambassador_test.py
tesserai/ambassador
70fadc62872be9b041b90cba54d3920a21777548
[ "Apache-2.0" ]
null
null
null
ambassador/tests/ambassador_test.py
tesserai/ambassador
70fadc62872be9b041b90cba54d3920a21777548
[ "Apache-2.0" ]
null
null
null
import sys import difflib import errno import json import logging import functools import os import pytest from shell import shell from diag_paranoia import diag_paranoia, filtered_overview, sanitize_errors VALIDATOR_IMAGE = "datawire/ambassador-envoy-alpine:v1.5.0-116-g7ccb25882" DIR = os.path.dirname(__file__) E...
31.635897
120
0.595396
0
0
0
0
4,334
0.702545
0
0
1,464
0.237316
b7253bf44267f3981869514c6f90cf8cf83b6b75
538
py
Python
geocode_missing.py
UoA-eResearch/billboards
196a4931dc7ed21a5ff001e539254b0a93ddad2c
[ "MIT" ]
null
null
null
geocode_missing.py
UoA-eResearch/billboards
196a4931dc7ed21a5ff001e539254b0a93ddad2c
[ "MIT" ]
null
null
null
geocode_missing.py
UoA-eResearch/billboards
196a4931dc7ed21a5ff001e539254b0a93ddad2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import googlemaps import sys import os gmaps = googlemaps.Client(key=os.environ["GOOGLE_API_KEY"]) print(gmaps) filename = sys.argv[1] with open(filename) as f: data = json.load(f) for d in data: if d.get("address") and not d.get("latitude"): result = gmaps.geocode(...
23.391304
59
0.633829
0
0
0
0
0
0
0
0
120
0.223048
b7262426be3d901c9e4c8163e1aff5cbb71a7660
48,109
py
Python
tardis/plasma/properties/continuum_processes.py
AlexHls/tardis
5d6e2299f35953a65e2c974994c55fe4aa3caae9
[ "BSD-3-Clause" ]
null
null
null
tardis/plasma/properties/continuum_processes.py
AlexHls/tardis
5d6e2299f35953a65e2c974994c55fe4aa3caae9
[ "BSD-3-Clause" ]
1
2020-07-20T16:45:52.000Z
2020-07-20T16:45:52.000Z
tardis/plasma/properties/continuum_processes.py
jordi5/tardis
2e1cb75c91ea842526b0c7c80a13cc8646178813
[ "BSD-3-Clause" ]
null
null
null
import logging import numpy as np import pandas as pd from numba import prange, njit from tardis import constants as const from tardis.plasma.exceptions import PlasmaException from tardis.plasma.properties.base import ( ProcessingPlasmaProperty, Input, TransitionProbabilitiesProperty, ) from tardis.plasm...
33.155755
127
0.642749
39,129
0.813341
0
0
11,543
0.239934
0
0
17,145
0.356378
b727e8a96c1fbd46e661c2a5b89a290d333e2329
1,805
py
Python
pull_related_videos.py
jgawrilo/youtube
553bfe4cf303bc06abf8173f5ed0f4deb3ede57f
[ "Apache-2.0" ]
1
2017-01-13T12:57:06.000Z
2017-01-13T12:57:06.000Z
pull_related_videos.py
jgawrilo/youtube
553bfe4cf303bc06abf8173f5ed0f4deb3ede57f
[ "Apache-2.0" ]
null
null
null
pull_related_videos.py
jgawrilo/youtube
553bfe4cf303bc06abf8173f5ed0f4deb3ede57f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.tools import argparser import json import os import codecs from bs4 import BeautifulSoup import argparse import requests import sys import googleapiclient def get_video_info(vid, youtube): respons...
28.203125
113
0.67867
0
0
0
0
0
0
0
0
565
0.313019