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
34407ff51a7436c54d71af05b2afac72b8892085
2,978
py
Python
client.py
ashu20071/backdoor-shell
4554875fee0d7f6e0063ef10fc920b1d577aced7
[ "MIT" ]
null
null
null
client.py
ashu20071/backdoor-shell
4554875fee0d7f6e0063ef10fc920b1d577aced7
[ "MIT" ]
null
null
null
client.py
ashu20071/backdoor-shell
4554875fee0d7f6e0063ef10fc920b1d577aced7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests; import json; import os; import threading; from sys import argv; import time; ''' GLOBAL VARS ''' VICTIM = ["127.0.0.1",1337]; # (<ip_address>, <port_no.>) ''' FUNCTIONS ''' ''' payload format: ''' ''' MAIN ''' if __name__ == "__main__": print("Starting attacker-side prog...
23.634921
84
0.6182
344205ea38acaaf0d381e72dbd1e7ae6ae7ff1df
4,435
py
Python
app.py
WiIIiamTang/logistic-map-encryption
b323c76a25cde1a7663887db35c0de393edfdfcc
[ "MIT" ]
null
null
null
app.py
WiIIiamTang/logistic-map-encryption
b323c76a25cde1a7663887db35c0de393edfdfcc
[ "MIT" ]
null
null
null
app.py
WiIIiamTang/logistic-map-encryption
b323c76a25cde1a7663887db35c0de393edfdfcc
[ "MIT" ]
null
null
null
import os import uuid from werkzeug.utils import secure_filename from pathlib import Path import random from flask import Flask, flash, request, redirect, url_for, render_template, jsonify from flask_cors import CORS, cross_origin import chaosencryptor.src.models from PIL import Image import json DEBUG = False dirp = ...
28.798701
94
0.64938
3442e1c11024fc9efc57990cff859cf751f64fe7
396
py
Python
rest_framework_push_notifications/serializers.py
incuna/rest-framework-push-notifications
e57f06db45754af9e0b50159b8f12104222b2f68
[ "BSD-2-Clause" ]
1
2021-09-18T08:13:11.000Z
2021-09-18T08:13:11.000Z
rest_framework_push_notifications/serializers.py
incuna/rest-framework-push-notifications
e57f06db45754af9e0b50159b8f12104222b2f68
[ "BSD-2-Clause" ]
7
2015-06-22T11:39:45.000Z
2021-06-10T17:46:53.000Z
rest_framework_push_notifications/serializers.py
incuna/rest-framework-push-notifications
e57f06db45754af9e0b50159b8f12104222b2f68
[ "BSD-2-Clause" ]
null
null
null
from push_notifications import models from rest_framework.serializers import HyperlinkedModelSerializer
28.285714
74
0.742424
3444a8319c7228a4e4f05ad69676ae8d14fa03cb
271
py
Python
galleries/admin.py
Ingabineza12/gallery-app
5c28558203d68dd582b77df408cf6f21ccc01100
[ "Unlicense" ]
1
2021-08-02T01:29:38.000Z
2021-08-02T01:29:38.000Z
galleries/admin.py
Ingabineza12/gallery-app
5c28558203d68dd582b77df408cf6f21ccc01100
[ "Unlicense" ]
null
null
null
galleries/admin.py
Ingabineza12/gallery-app
5c28558203d68dd582b77df408cf6f21ccc01100
[ "Unlicense" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Photographer,Location,Image,Category # Register your models here. admin.site.register(Photographer) admin.site.register(Location) admin.site.register(Image) admin.site.register(Category)
24.636364
56
0.819188
3445518d519b291bcc71a0a8b94567bddb6ff6c0
15,358
py
Python
utils/prepare.py
Mehrad0711/HUBERT
2f13fd2f7f5a2ec13544f4007158b582ae7408c3
[ "MIT" ]
3
2021-05-22T08:25:17.000Z
2021-11-11T03:23:35.000Z
utils/prepare.py
Mehrad0711/HUBERT
2f13fd2f7f5a2ec13544f4007158b582ae7408c3
[ "MIT" ]
null
null
null
utils/prepare.py
Mehrad0711/HUBERT
2f13fd2f7f5a2ec13544f4007158b582ae7408c3
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import os from modules.model import BertForSequenceClassification_tpr from utils.data_utils import convert_examples_to_features, logger from transformers.file_utils import PYTORCH_PRETRAINED_BERT_...
51.023256
150
0.650606
344722b00d3920bfcddd02e2177d5a68ad33dd3e
19,272
py
Python
scripts/mnpr_system.py
semontesdeoca/MNPR
8acf9862e38b709eba63a978d35cc658754ec9e9
[ "MIT" ]
218
2018-06-11T08:46:41.000Z
2022-03-06T02:09:41.000Z
scripts/mnpr_system.py
Yleroimar/3D-Comic-Rendering
8c3221625dfbb5a4d5efc92b235d547a4e6e66ad
[ "MIT" ]
32
2018-06-14T05:27:50.000Z
2021-11-23T08:56:40.000Z
scripts/mnpr_system.py
Yleroimar/3D-Comic-Rendering
8c3221625dfbb5a4d5efc92b235d547a4e6e66ad
[ "MIT" ]
35
2018-06-11T08:50:43.000Z
2021-11-28T07:48:20.000Z
""" @license: MIT @repository: https://github.com/semontesdeoca/MNPR _ _ __ ___ _ __ _ __ _ __ ___ _ _ ___| |_ ___ _ __ ___ | '_ ` _ \| '_ \| '_ \| '__| / __| | | / __| __/ _ \ '_ ` _ \ | | | | | | | | | |_) | | \__ \ |_| \__ \ || __/ | | | | ...
38.390438
166
0.634651
344753395c32fdc8e1cad3a8b60e006debbc3651
354
py
Python
social_blog/blog_posts/forms.py
higorspinto/Social-Blog
bec89351bf76778059f112c0e2a66de9348dda54
[ "MIT" ]
null
null
null
social_blog/blog_posts/forms.py
higorspinto/Social-Blog
bec89351bf76778059f112c0e2a66de9348dda54
[ "MIT" ]
4
2021-03-19T03:43:40.000Z
2022-01-13T01:39:30.000Z
social_blog/blog_posts/forms.py
higorspinto/Social-Blog
bec89351bf76778059f112c0e2a66de9348dda54
[ "MIT" ]
null
null
null
# blogs_posts/forms.py from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField from wtforms.validators import DataRequired
29.5
61
0.762712
34477ed091a62fd041fd8da29b9f4d7e60820e1c
415
py
Python
python/dgl/contrib/data/__init__.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
9,516
2018-12-08T22:11:31.000Z
2022-03-31T13:04:33.000Z
python/dgl/contrib/data/__init__.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,494
2018-12-08T22:43:00.000Z
2022-03-31T21:16:27.000Z
python/dgl/contrib/data/__init__.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,529
2018-12-08T22:56:14.000Z
2022-03-31T13:07:41.000Z
from __future__ import absolute_import from . import knowledge_graph as knwlgrh
37.727273
63
0.691566
3447c0a2e4e87d813f8b9dc78d7b0714f0ad5791
1,568
py
Python
blog/migrations/0001_initial.py
ht-90/django-blog
b7dd80a4066ecf3c288461e0c5785f953a1d2e5f
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
ht-90/django-blog
b7dd80a4066ecf3c288461e0c5785f953a1d2e5f
[ "MIT" ]
1
2021-02-23T11:25:37.000Z
2021-02-23T11:25:37.000Z
blog/migrations/0001_initial.py
ht-90/django-blog
b7dd80a4066ecf3c288461e0c5785f953a1d2e5f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-26 08:07 from django.db import migrations, models import django.db.models.deletion
37.333333
124
0.574617
34484b496b16254e0e79a35db6fc4ba9d65b609e
2,607
py
Python
inference.py
CraigWang1/EfficientDet-1
930d6a69aa8d5c62a69ab0349181e83f80ac4c8d
[ "Apache-2.0" ]
null
null
null
inference.py
CraigWang1/EfficientDet-1
930d6a69aa8d5c62a69ab0349181e83f80ac4c8d
[ "Apache-2.0" ]
null
null
null
inference.py
CraigWang1/EfficientDet-1
930d6a69aa8d5c62a69ab0349181e83f80ac4c8d
[ "Apache-2.0" ]
null
null
null
from model import efficientdet import cv2 import os import numpy as np import time from utils import preprocess_image from utils.anchors import anchors_for_shape from utils.draw_boxes import draw_boxes from utils.post_process_boxes import post_process_boxes if __name__ == '__main__': main()
37.782609
116
0.602225
3448b89c1dac5e906490d2d8bd353d5694464dd2
6,609
py
Python
sklearn_pmml_model/svm/_base.py
iamDecode/sklearn-pmml-model
186c0655b6b42b787d58229118b187cc6b156b38
[ "BSD-2-Clause" ]
62
2018-06-14T05:57:00.000Z
2022-03-15T03:03:42.000Z
sklearn_pmml_model/svm/_base.py
iamDecode/sklearn-pmml-model
186c0655b6b42b787d58229118b187cc6b156b38
[ "BSD-2-Clause" ]
30
2018-10-25T16:54:53.000Z
2022-01-28T12:59:17.000Z
sklearn_pmml_model/svm/_base.py
iamDecode/sklearn-pmml-model
186c0655b6b42b787d58229118b187cc6b156b38
[ "BSD-2-Clause" ]
9
2018-06-19T09:56:18.000Z
2022-03-17T16:23:44.000Z
# License: BSD 2-Clause from sklearn_pmml_model.base import PMMLBaseRegressor, parse_array import numpy as np def get_vectors(vector_dictionary, s): """Return support vector values, parsed as a numpy array.""" instance = vector_dictionary.find(f"VectorInstance[@id='{s}']") if instance is None: raise Exce...
31.927536
120
0.693751
34495a06737335e1258b7f38ad90e67ba9e2259e
2,532
py
Python
enaml/mpl_canvas.py
viz4biz/PyDataNYC2015
066154ea9f1837c355e6108a28b85889f3020da3
[ "Apache-2.0" ]
11
2015-11-11T13:57:21.000Z
2019-08-14T15:53:43.000Z
enaml/mpl_canvas.py
viz4biz/PyDataNYC2015
066154ea9f1837c355e6108a28b85889f3020da3
[ "Apache-2.0" ]
null
null
null
enaml/mpl_canvas.py
viz4biz/PyDataNYC2015
066154ea9f1837c355e6108a28b85889f3020da3
[ "Apache-2.0" ]
6
2015-11-11T13:57:25.000Z
2018-09-12T07:53:03.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
31.65
87
0.612164
3449704981ebbc8bc32237e12d8a30eef51a79de
1,566
py
Python
evaluate/previous_works/svsyn/supervision/photometric.py
Syniez/Joint_360depth
4f28c3b5b7f648173480052e205e898c6c7a5151
[ "MIT" ]
92
2019-09-08T09:55:05.000Z
2022-02-21T21:29:40.000Z
supervision/photometric.py
zjsprit/SphericalViewSynthesis
fcdec95bf3ad109767d27396434b51cf3aad2b4b
[ "BSD-2-Clause" ]
4
2020-05-12T02:29:36.000Z
2021-11-26T07:49:43.000Z
supervision/photometric.py
zjsprit/SphericalViewSynthesis
fcdec95bf3ad109767d27396434b51cf3aad2b4b
[ "BSD-2-Clause" ]
26
2019-09-16T02:26:33.000Z
2021-10-21T03:55:02.000Z
import torch from .ssim import *
30.115385
83
0.604725
3449bef65b5b8a27951b1370c04e2abfac01c124
1,917
py
Python
Python/waytoolong.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
16
2021-10-03T11:15:49.000Z
2021-10-31T04:40:24.000Z
Python/waytoolong.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
232
2021-10-02T14:51:43.000Z
2021-11-14T08:23:27.000Z
Python/waytoolong.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
166
2021-10-02T13:56:34.000Z
2021-10-31T17:56:34.000Z
# A. Way Too Long Words # ------------------------------- # time limit per test1 second # memory limit per test 256 megabytes # input :standard input # ...
36.865385
107
0.649974
344a8a5e768a6b664f7f2dcbefec0978989b66e3
584
py
Python
stake-pool/py/stake/constants.py
wowswap-io/solana-program-library
3af176d6c4d872afe029396a597736484d4a8212
[ "Apache-2.0" ]
null
null
null
stake-pool/py/stake/constants.py
wowswap-io/solana-program-library
3af176d6c4d872afe029396a597736484d4a8212
[ "Apache-2.0" ]
21
2022-03-18T20:20:29.000Z
2022-03-29T08:38:49.000Z
stake-pool/py/stake/constants.py
wowswap-io/solana-program-library
3af176d6c4d872afe029396a597736484d4a8212
[ "Apache-2.0" ]
null
null
null
"""Stake Program Constants.""" from solana.publickey import PublicKey STAKE_PROGRAM_ID: PublicKey = PublicKey("Stake11111111111111111111111111111111111111") """Public key that identifies the Stake program.""" SYSVAR_STAKE_CONFIG_ID: PublicKey = PublicKey("StakeConfig11111111111111111111111111111111") """Public key t...
30.736842
92
0.789384
344bdfd8bb0a323b85e099ee0a1e40416c891086
1,774
py
Python
tests/chem/test_mol.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
219
2020-06-15T08:04:53.000Z
2022-03-31T09:02:47.000Z
tests/chem/test_mol.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
56
2020-08-14T14:50:42.000Z
2022-03-22T12:49:06.000Z
tests/chem/test_mol.py
ShantamShorewala/aizynthfinder
6b15d5846558b14c4ce3c353727d9d676af7f6fb
[ "MIT" ]
58
2020-06-15T13:36:42.000Z
2022-03-21T06:18:02.000Z
import pytest from rdkit import Chem from aizynthfinder.chem import MoleculeException, Molecule
19.494505
58
0.669109
344cd574f56ada084ecacd041bbefa24f527dd55
715
py
Python
agents/agent_loader.py
JCKing97/Agents4Asteroids
c25eb106b9963db97a6fd426f2a8b2f7b8dd073f
[ "MIT" ]
1
2020-06-24T16:07:38.000Z
2020-06-24T16:07:38.000Z
agents/agent_loader.py
JCKing97/Agents4Asteroids
c25eb106b9963db97a6fd426f2a8b2f7b8dd073f
[ "MIT" ]
9
2019-08-14T19:44:39.000Z
2020-05-03T13:01:57.000Z
agents/agent_loader.py
JCKing97/Agents4Asteroids
c25eb106b9963db97a6fd426f2a8b2f7b8dd073f
[ "MIT" ]
null
null
null
from typing import List, Type from game.agent import Agent import os from importlib import import_module import inspect def load_agents() -> List[Type[Agent]]: """ :return: all available agent types currently in the system. """ agents: List[Type[Agent]] = [] agent_dir = os.path.dirname(os.path.abs...
32.5
73
0.641958
344d4a396eb26c9eccedae0bb72c566a4fafb73b
1,806
py
Python
src/qa_data_augmentation_script/random_data_split.py
zxgx/Graph2Seq-for-KGQG
ce0f5d2c01a37830d8bacd1494c51faf4bd1ff61
[ "Apache-2.0" ]
24
2020-12-22T01:39:33.000Z
2022-03-08T15:54:00.000Z
src/qa_data_augmentation_script/random_data_split.py
zxgx/Graph2Seq-for-KGQG
ce0f5d2c01a37830d8bacd1494c51faf4bd1ff61
[ "Apache-2.0" ]
4
2020-12-25T23:41:48.000Z
2022-02-27T03:06:36.000Z
src/qa_data_augmentation_script/random_data_split.py
zxgx/Graph2Seq-for-KGQG
ce0f5d2c01a37830d8bacd1494c51faf4bd1ff61
[ "Apache-2.0" ]
11
2020-12-22T13:42:39.000Z
2022-02-23T08:10:17.000Z
import argparse import random import os import json if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-i', '--input', required=True, type=str, nargs='+', help='path to the input datasets') parser.add_argument('-out_dir', '--out_dir', required=True, type=str, help='path to...
31.684211
138
0.621262
344d956d488c516a29077183bd8d98d861f64296
6,322
py
Python
MultiRatMaze.py
MarcusRainbow/Maze
b1058161d7f55251b969e64bbe59b3bece3a310c
[ "MIT" ]
null
null
null
MultiRatMaze.py
MarcusRainbow/Maze
b1058161d7f55251b969e64bbe59b3bece3a310c
[ "MIT" ]
null
null
null
MultiRatMaze.py
MarcusRainbow/Maze
b1058161d7f55251b969e64bbe59b3bece3a310c
[ "MIT" ]
null
null
null
from typing import List, Set, Optional, Tuple from random import randrange, shuffle, random from RatInterface import Rat, MazeInfo from SimpleRats import AlwaysLeftRat, RandomRat from SimpleMaze import random_maze, render_graph, validate_edges from Localizer import Localizer, NonLocalLocalizer, OneDimensionalLocal...
41.320261
110
0.568175
344e186983740ead69b276e12886da372d386a96
2,187
py
Python
splinter/cmstest/resourcePlatform/order.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
splinter/cmstest/resourcePlatform/order.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
splinter/cmstest/resourcePlatform/order.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import init_env import time from splinter import Browser
27.3375
137
0.555098
344fd867b506c15ba847e2f164c3714a717e5d31
687
py
Python
day13/1.py
lvrcek/advent-of-code-2020
2f0acd80d0d8053539327282da29aca08bd7dfcf
[ "MIT" ]
2
2020-12-06T09:34:58.000Z
2020-12-07T08:12:46.000Z
day13/1.py
lvrcek/advent-of-code-2020
2f0acd80d0d8053539327282da29aca08bd7dfcf
[ "MIT" ]
null
null
null
day13/1.py
lvrcek/advent-of-code-2020
2f0acd80d0d8053539327282da29aca08bd7dfcf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Advent of Code 2020 Day 13, Part 1 """ if __name__ == '__main__': main()
18.567568
58
0.535662
344fe3a1bf94dc0bbf294fb4e913b4735993b476
1,318
py
Python
autorest/multiapi/models/config.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
autorest/multiapi/models/config.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
autorest/multiapi/models/config.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import jso...
54.916667
114
0.679059
345164971a2c93830e3358826acf86441dbdf9b6
1,294
py
Python
mail/models.py
drscream/kumquat
7bd3d84cc4d0fbdbefa46849210fa787176d6091
[ "MIT" ]
12
2015-12-10T03:13:28.000Z
2022-03-06T15:43:40.000Z
mail/models.py
drscream/kumquat
7bd3d84cc4d0fbdbefa46849210fa787176d6091
[ "MIT" ]
53
2020-10-09T06:38:09.000Z
2022-03-16T23:04:34.000Z
mail/models.py
drscream/kumquat
7bd3d84cc4d0fbdbefa46849210fa787176d6091
[ "MIT" ]
2
2017-02-17T10:13:02.000Z
2018-07-06T11:02:26.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _ from passlib.hash import sha512_crypt from kumquat.models import Domain default_length = 255
29.409091
162
0.729521
3452d60bd2ed06a752a9d27fd491621ef648c869
1,999
py
Python
src/nets.py
zpreisler/spectral
6c164e22f10a78d37a7b6e8e782d3263b54a7316
[ "MIT" ]
null
null
null
src/nets.py
zpreisler/spectral
6c164e22f10a78d37a7b6e8e782d3263b54a7316
[ "MIT" ]
null
null
null
src/nets.py
zpreisler/spectral
6c164e22f10a78d37a7b6e8e782d3263b54a7316
[ "MIT" ]
null
null
null
import torch from torch import nn,optim from torch.utils.data import Dataset,DataLoader from torch.optim import Adam from matplotlib.pyplot import show,figure,imshow,draw,ion,pause,subplots,subplots_adjust from numpy import log,array,asarray,save
28.557143
115
0.594797
34534850b62dcaf2706a524824e2fba8da6957d4
8,870
py
Python
RNN/data/gru_loadNtest.py
aroongta/Pedestrian_Trajectory_Prediction
de368ef502391bbc87100314f96a3ab1f6b9959a
[ "MIT" ]
24
2019-04-19T06:46:26.000Z
2022-03-10T06:54:29.000Z
RNN/data/gru_loadNtest.py
ironartisan/Pedestrian_Trajectory_Prediction
de368ef502391bbc87100314f96a3ab1f6b9959a
[ "MIT" ]
6
2020-05-09T07:39:57.000Z
2022-01-13T01:00:04.000Z
RNN/data/gru_loadNtest.py
ironartisan/Pedestrian_Trajectory_Prediction
de368ef502391bbc87100314f96a3ab1f6b9959a
[ "MIT" ]
14
2019-04-10T08:23:26.000Z
2021-03-20T11:49:08.000Z
#Script to load GRU model trained on all datasets and test # import relevant libraries import torch import torch.nn as nn import torch.optim as optim import matplotlib import numpy as np import trajectories import loader import argparse import gc import logging import os import sys import time from gru_prototype_v4_all...
44.79798
133
0.685795
34544ffb43d91db7459d5aeadd8a11adedfcdfee
207
py
Python
rdbtools3/__init__.py
popravich/rdbtools3
c2b097f58e7d3a3b12e6671aa413c263c1fb96cf
[ "MIT" ]
3
2016-01-12T23:14:47.000Z
2019-07-10T05:36:22.000Z
rdbtools3/__init__.py
popravich/rdbtools3
c2b097f58e7d3a3b12e6671aa413c263c1fb96cf
[ "MIT" ]
null
null
null
rdbtools3/__init__.py
popravich/rdbtools3
c2b097f58e7d3a3b12e6671aa413c263c1fb96cf
[ "MIT" ]
null
null
null
from .parser import parse_rdb_stream, RDBItem from .exceptions import FileFormatError, RDBValueError __version__ = '0.1.2' (RDBItem, parse_rdb_stream, FileFormatError, RDBValueError) # pragma: no cover
23
54
0.797101
34546968b54bbbe9114ab3e2de0a287af779ee89
680
py
Python
vis_imagine_static_voxels/resize_voxel.py
mihirp1998/EmbLang
169b0468ccda554896973bcc226afb3e762a70e7
[ "Apache-2.0" ]
3
2020-07-12T02:15:27.000Z
2021-07-18T06:00:49.000Z
vis_imagine_static_voxels/resize_voxel.py
mihirp1998/EmbLang
169b0468ccda554896973bcc226afb3e762a70e7
[ "Apache-2.0" ]
1
2021-07-18T06:00:10.000Z
2021-07-24T11:51:17.000Z
vis_imagine_static_voxels/resize_voxel.py
mihirp1998/EmbLang
169b0468ccda554896973bcc226afb3e762a70e7
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf # resized_along_depth = resize_by_axis(x,50,60,2, True) # resized_along_width = resize_by_axis(resized_along_depth,50,70,1,True)
35.789474
72
0.776471
3455f4a5fc9fcb3c76c852716944dda931b3c3f3
5,288
py
Python
PassInstrument/inference/SpeedupEvaluation/RunSpeedupEval.py
JaredCJR/ThesisTools
41af365ca85da3f73f72880488477ec699b05923
[ "Apache-2.0" ]
1
2018-10-14T13:49:36.000Z
2018-10-14T13:49:36.000Z
PassInstrument/inference/SpeedupEvaluation/RunSpeedupEval.py
JaredCJR/ThesisTools
41af365ca85da3f73f72880488477ec699b05923
[ "Apache-2.0" ]
null
null
null
PassInstrument/inference/SpeedupEvaluation/RunSpeedupEval.py
JaredCJR/ThesisTools
41af365ca85da3f73f72880488477ec699b05923
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os, sys, signal import multiprocessing import subprocess as sp import shutil import shlex import psutil import time import csv import json import pytz from datetime import datetime import Lib as lib sys.path.append('/home/jrchang/workspace/gym-OptClang/gym_OptClang/envs/') import RemoteWo...
35.72973
158
0.609871
34562b1de4dbc484e75da38e9909f47142dcc782
986
py
Python
pylith/problems/__init__.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
1
2021-01-20T17:18:28.000Z
2021-01-20T17:18:28.000Z
pylith/problems/__init__.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
pylith/problems/__init__.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://ge...
24.65
72
0.527383
3458c97c680205824135db67c32f6f0bb720e1b0
977
py
Python
examples/cp/misorientation.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
6
2020-05-06T17:04:29.000Z
2021-08-03T20:02:22.000Z
examples/cp/misorientation.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
66
2018-10-26T01:32:43.000Z
2022-02-01T03:02:18.000Z
examples/cp/misorientation.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
14
2018-11-28T17:07:24.000Z
2022-01-06T16:57:15.000Z
#!/usr/bin/env python3 import sys sys.path.append('../..') import numpy as np from neml.cp import crystallography from neml.math import rotations import matplotlib.pyplot as plt if __name__ == "__main__": N = 300 orientations = rotations.random_orientations(N) sgroup = crystallography.SymmetryGroup("432") ...
20.787234
65
0.684749
345b8b64e41fef1a1e9f95fd8a1d44084d6f85bb
155
py
Python
valid triangle.py
Tanuka-Mondal/Competi
b244ade867862b4e33e63dabd2cdd136340c0bf8
[ "MIT" ]
1
2021-09-08T05:36:48.000Z
2021-09-08T05:36:48.000Z
valid triangle.py
Tanuka-Mondal/Competi
b244ade867862b4e33e63dabd2cdd136340c0bf8
[ "MIT" ]
null
null
null
valid triangle.py
Tanuka-Mondal/Competi
b244ade867862b4e33e63dabd2cdd136340c0bf8
[ "MIT" ]
null
null
null
t = int(input()) while (t!=0): a,b,c = map(int,input().split()) if (a+b+c == 180): print('YES') else: print('NO') t-=1
17.222222
36
0.412903
345cff6b5dc8f245274d42d83f7cdc4417c7b6b5
1,961
py
Python
proper_forms/fields/email.py
jpsca/pforms
77c9da93e5224e79bb147aa873f28951e972bb21
[ "MIT" ]
2
2020-09-30T22:41:00.000Z
2020-12-04T16:47:17.000Z
proper_forms/fields/email.py
jpsca/hyperform
d5c450ad8684a853fed26f8c2606877151125a9e
[ "MIT" ]
2
2021-11-18T18:01:28.000Z
2021-11-18T18:03:29.000Z
proper_forms/fields/email.py
jpsca/hyperform
d5c450ad8684a853fed26f8c2606877151125a9e
[ "MIT" ]
null
null
null
from .text import Text from ..ftypes import type_email __all__ = ("Email", )
40.854167
87
0.701683
345e919fc4bc8d467c8097d3915cd62a71162fb0
244
py
Python
dm/preprocessing/step5.py
NeilKleistGao/Dejavu
57a8e078f488ec57e1bbf86160b7eafb140be35f
[ "MIT" ]
2
2021-04-16T09:04:00.000Z
2021-04-23T08:46:45.000Z
dm/preprocessing/step5.py
NeilKleistGao/Dejavu
57a8e078f488ec57e1bbf86160b7eafb140be35f
[ "MIT" ]
null
null
null
dm/preprocessing/step5.py
NeilKleistGao/Dejavu
57a8e078f488ec57e1bbf86160b7eafb140be35f
[ "MIT" ]
2
2021-04-23T08:51:34.000Z
2021-05-09T13:29:09.000Z
import numpy import pandas as pd # if __name__ == '__main__': df = pd.read_csv("../dataset/temp4.csv") df.replace(to_replace='-', value=0.5, inplace=True) print(df.head(3)) df.to_csv("../dataset/temp5.csv", index=False)
22.181818
55
0.651639
34601d4a3a2aca95af185ecc4403659540657447
1,546
py
Python
src/memoprop/__about__.py
lewisacidic/memoized-property
458fc73832a4207c05bb24101a1a3571cfebce79
[ "MIT" ]
1
2020-05-29T21:31:43.000Z
2020-05-29T21:31:43.000Z
src/memoprop/__about__.py
lewisacidic/memoized-property
458fc73832a4207c05bb24101a1a3571cfebce79
[ "MIT" ]
1
2019-10-17T16:32:26.000Z
2019-10-17T16:32:26.000Z
src/memoprop/__about__.py
lewisacidic/memoprop
458fc73832a4207c05bb24101a1a3571cfebce79
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2019 Rich Lewis # License: MIT license """Metadata for memoprop.""" # guard import # in setup.py we use run this with runpy so the import will fail try: from ._version import get_versions __version__ = get_versions()["version"] del get_version...
26.20339
69
0.694696
34619aa41c8c7863e143a2333870656f4b2f09c9
6,975
py
Python
cblaster/gui/main.py
bramvanwersch/cblaster
891c7ba364a7c5ad26f55bd7c1915ade5cc46aa9
[ "MIT" ]
null
null
null
cblaster/gui/main.py
bramvanwersch/cblaster
891c7ba364a7c5ad26f55bd7c1915ade5cc46aa9
[ "MIT" ]
null
null
null
cblaster/gui/main.py
bramvanwersch/cblaster
891c7ba364a7c5ad26f55bd7c1915ade5cc46aa9
[ "MIT" ]
null
null
null
"""A basic GUI for cblaster.""" import sys import builtins import PySimpleGUI as sg from cblaster import __version__ from cblaster import main, extract as cb_extract from cblaster.gui import search, makedb, citation, gne, extract sg.theme("Lightgrey1") def run_cblaster(values): """Handles conversion of PySi...
33.695652
94
0.555556
3461f75437c6e8764c0d89e33b3659778cc6f407
368
py
Python
MRTasks/parsingTasks/listS3Files.py
ArulselvanMadhavan/Artist_Recognition_from_Audio_Features
feeca8487773b2f1bac7f408fd11adcc3820b294
[ "Apache-2.0" ]
1
2016-04-19T14:17:12.000Z
2016-04-19T14:17:12.000Z
MRTasks/parsingTasks/listS3Files.py
ArulselvanMadhavan/Artist_Recognition_from_Audio_Features
feeca8487773b2f1bac7f408fd11adcc3820b294
[ "Apache-2.0" ]
null
null
null
MRTasks/parsingTasks/listS3Files.py
ArulselvanMadhavan/Artist_Recognition_from_Audio_Features
feeca8487773b2f1bac7f408fd11adcc3820b294
[ "Apache-2.0" ]
1
2016-09-16T15:08:00.000Z
2016-09-16T15:08:00.000Z
import sys __author__ = 'arul' from boto.s3.connection import S3Connection if __name__ == '__main__': access_key = sys.argv[1] access_secret = sys.argv[2] conn = S3Connection(access_key,access_secret) bucket = conn.get_bucket('cs6240_msd') for key in bucket.list(prefix='cs6240_msd/'): pr...
24.533333
49
0.682065
346219eff16b54d9f3ede1460d4a16bec732ce9e
170
py
Python
TestMain/cool.py
ppcrong/TestMain
38fa0d64439a7d02d2806be3b09043a4294912de
[ "Apache-2.0" ]
null
null
null
TestMain/cool.py
ppcrong/TestMain
38fa0d64439a7d02d2806be3b09043a4294912de
[ "Apache-2.0" ]
null
null
null
TestMain/cool.py
ppcrong/TestMain
38fa0d64439a7d02d2806be3b09043a4294912de
[ "Apache-2.0" ]
null
null
null
# cool.py print('__name__:', __name__) if __name__ == '__main__': print('Call it locally') cool_func()
14.166667
37
0.629412
3463bda8bf81306d7b5d5fb016561e09a511a66d
95
py
Python
superlists/apps.py
cidyoon/django-blog
9bbe90de935e694a5aafb19df1f4c0c87584418c
[ "MIT" ]
null
null
null
superlists/apps.py
cidyoon/django-blog
9bbe90de935e694a5aafb19df1f4c0c87584418c
[ "MIT" ]
null
null
null
superlists/apps.py
cidyoon/django-blog
9bbe90de935e694a5aafb19df1f4c0c87584418c
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.833333
34
0.768421
3464d9605dc84d67af5924093064dbe060947bff
936
py
Python
alembic/versions/0b7ccbfa8f7c_add_order_and_hide_from_menu_to_page_.py
matslindh/kimochi
5819ca57b467d65b0ac4eeb11622548a6a1e965a
[ "MIT" ]
null
null
null
alembic/versions/0b7ccbfa8f7c_add_order_and_hide_from_menu_to_page_.py
matslindh/kimochi
5819ca57b467d65b0ac4eeb11622548a6a1e965a
[ "MIT" ]
null
null
null
alembic/versions/0b7ccbfa8f7c_add_order_and_hide_from_menu_to_page_.py
matslindh/kimochi
5819ca57b467d65b0ac4eeb11622548a6a1e965a
[ "MIT" ]
null
null
null
"""Add order and hide_from_menu to Page model Revision ID: 0b7ccbfa8f7c Revises: 8f5b2066cbac Create Date: 2016-03-23 16:33:44.047433 """ # revision identifiers, used by Alembic. revision = '0b7ccbfa8f7c' down_revision = '8f5b2066cbac' branch_labels = None depends_on = None from alembic import op import sqlalchemy ...
26.742857
85
0.707265
34662329b3c89b9de5cd7e3249e18c3a5937c451
3,812
py
Python
Analytic/plots.py
benvchurch/project-eva
38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66
[ "Unlicense" ]
1
2017-07-27T19:02:16.000Z
2017-07-27T19:02:16.000Z
Analytic/plots.py
benvchurch/project-eva
38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66
[ "Unlicense" ]
null
null
null
Analytic/plots.py
benvchurch/project-eva
38e3e61ec1913fb2d94fbb8a5db53b90ec32ed66
[ "Unlicense" ]
null
null
null
from __future__ import division import numpy as np from scipy import special from numpy import log, exp, sin ,cos, pi, log10, sqrt from scipy.integrate import quad, dblquad, cumtrapz from matplotlib import pyplot as plt import time import CDM_SubHalo_Potential import FDM_SubHalo_Potential #integral precision p = 2 ...
29.550388
135
0.662382
34675a441a31155069ce27c1848586abca7d0df5
13,653
py
Python
operationGenerationTests.py
moritz155/GeneticPy
e6a1314efb18e3a17d6078043bb440abd2ad1925
[ "MIT" ]
11
2015-06-11T02:31:20.000Z
2021-10-04T05:05:03.000Z
operationGenerationTests.py
cosmina98/GeneticPy
970f16129c753fc67f2d68beb4c96b2c72e37a52
[ "MIT" ]
null
null
null
operationGenerationTests.py
cosmina98/GeneticPy
970f16129c753fc67f2d68beb4c96b2c72e37a52
[ "MIT" ]
7
2015-11-22T18:29:18.000Z
2021-11-29T11:07:10.000Z
import unittest import datetime import genetic import random def getUsedIndexes(candidate): used = {0: [0]} if candidate[0].isFunction(): for i in reversed(range(len(candidate))): element = candidate[i] iUsed = [i] if element.isFunction(): leftInde...
39.459538
120
0.592324
3468df68fd8fc6a0c52f0380581de6898df0a999
658
py
Python
src/schema/create_minio_bucket.py
mdpham/minio-loompy-graphene
11bad237bd10658a97dd2a28057c83ad47e432be
[ "BSD-3-Clause" ]
null
null
null
src/schema/create_minio_bucket.py
mdpham/minio-loompy-graphene
11bad237bd10658a97dd2a28057c83ad47e432be
[ "BSD-3-Clause" ]
9
2020-03-27T07:55:20.000Z
2022-02-18T23:47:56.000Z
src/schema/create_minio_bucket.py
mdpham/minio-loompy-graphene
11bad237bd10658a97dd2a28057c83ad47e432be
[ "BSD-3-Clause" ]
null
null
null
from graphene import Schema, Mutation, String, Field, ID, List from minio import Minio from minio.error import ResponseError from .minio_bucket import MinioBucket from minio_client.client import minio_client
31.333333
64
0.767477
346900f77d8ee086d65dafb8a1ff78831519c40d
1,188
py
Python
tests/unit/schema/test_links.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
null
null
null
tests/unit/schema/test_links.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
null
null
null
tests/unit/schema/test_links.py
eyadgaran/openapi-core
ff4a6c81eeda0e2274aa9dc03597779c141e5728
[ "BSD-3-Clause" ]
1
2022-01-19T21:23:56.000Z
2022-01-19T21:23:56.000Z
import mock import pytest from openapi_core.schema.links.models import Link from openapi_core.schema.servers.models import Server
26.4
65
0.564815
3469ba25c1cf2d5686363b9ab8181ddb2f05f798
1,022
py
Python
ex105.py
erikamaylim/Python-CursoemVideo
5a6809818c4c55a02ec52379d95f3d20c833df2e
[ "MIT" ]
null
null
null
ex105.py
erikamaylim/Python-CursoemVideo
5a6809818c4c55a02ec52379d95f3d20c833df2e
[ "MIT" ]
null
null
null
ex105.py
erikamaylim/Python-CursoemVideo
5a6809818c4c55a02ec52379d95f3d20c833df2e
[ "MIT" ]
null
null
null
"""Faa um programa que tenha uma funo notas() que pode receber vrias notas de alunos e vai retornar um dicionrio com as seguintes informaes: Quantidade de notas - A maior nota A menor nota A mdia da turma A situao (opcional)""" def notas(* num, s=False): """ -> Funo para coletar notas dos alunos e retorna...
26.894737
98
0.61546
346b05d408ff7992b28238f3b72a34e2e2a82c5a
645
py
Python
swigwin-3.0.12/Examples/test-suite/python/swigobject_runme.py
bostich83/atomic_swig
5438f676d690ffddb09d88bbc1b51e3b38fa8c6a
[ "MIT" ]
null
null
null
swigwin-3.0.12/Examples/test-suite/python/swigobject_runme.py
bostich83/atomic_swig
5438f676d690ffddb09d88bbc1b51e3b38fa8c6a
[ "MIT" ]
2
2020-03-24T18:19:22.000Z
2020-03-31T11:22:32.000Z
swigwin-3.0.12/Examples/test-suite/python/swigobject_runme.py
bostich83/atomic_swig
5438f676d690ffddb09d88bbc1b51e3b38fa8c6a
[ "MIT" ]
2
2019-11-01T01:28:09.000Z
2020-05-11T05:48:26.000Z
from swigobject import * a = A() a1 = a_ptr(a) a2 = a_ptr(a) if a1.this != a2.this: raise RuntimeError lthis = long(a.this) # match pointer value, but deal with leading zeros on 8/16 bit systems and # different C++ compilers interpretation of %p xstr1 = "%016X" % (lthis,) xstr1 = str.lstrip(xstr1, '0') xstr2...
17.916667
74
0.651163
346b88da15ac27f750c964f42e0fb2bd9d1b5698
205
py
Python
com/LimePencil/Q2164/Main.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
2
2021-07-17T13:05:42.000Z
2021-09-12T09:14:24.000Z
com/LimePencil/Q2164/Main.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
com/LimePencil/Q2164/Main.py
LimePencil/baekjoonProblems
61eeeeb875585d165d9e39ecdb3d905b4ba6aa87
[ "MIT" ]
null
null
null
import sys from collections import deque n = int(sys.stdin.readline()) deck = deque(list(range(1, n+1))) for i in range(n-1): deck.popleft() deck.append(deck.popleft()) print(str(deck.pop()))
20.5
33
0.663415
346d66976904f2a2e890a78b4c0d64f9e6578329
347
py
Python
contrib/mypy/examples/src/python/mypy_plugin/settings.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
contrib/mypy/examples/src/python/mypy_plugin/settings.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-01-21T16:34:02.000Z
2020-01-21T16:34:02.000Z
contrib/mypy/examples/src/python/mypy_plugin/settings.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from django.urls import URLPattern DEBUG: bool = True DEFAULT_FROM_EMAIL: str = 'webmaster@example.com' SECRET_KEY: str = 'not so secret' MY_SETTING: URLPattern = URLPattern(pattern='fo...
28.916667
73
0.769452
346d8c6aecb6d5c799c07698354cb687ab52ff19
216
py
Python
function/python/brightics/function/statistics/__init__.py
janrenz/studio
a0714ed8dcd9dcd8d024162104d3b4de89ac2b49
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/statistics/__init__.py
janrenz/studio
a0714ed8dcd9dcd8d024162104d3b4de89ac2b49
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/statistics/__init__.py
janrenz/studio
a0714ed8dcd9dcd8d024162104d3b4de89ac2b49
[ "Apache-2.0" ]
null
null
null
from .profile_table import profile_table from .correlation import correlation from .pairplot import pairplot from .anova import bartletts_test from .anova import oneway_anova from .anova import tukeys_range_test
36
41
0.842593
346dcec89ab4ed1144ede11615065491709f1045
1,637
py
Python
modules/hello-world/dags/hello_world.py
nalin-adhikari/apache-airflow
52b8dd241b9b631d6bad5137bd55c774f1d7beea
[ "MIT" ]
null
null
null
modules/hello-world/dags/hello_world.py
nalin-adhikari/apache-airflow
52b8dd241b9b631d6bad5137bd55c774f1d7beea
[ "MIT" ]
null
null
null
modules/hello-world/dags/hello_world.py
nalin-adhikari/apache-airflow
52b8dd241b9b631d6bad5137bd55c774f1d7beea
[ "MIT" ]
null
null
null
import json from datetime import timedelta, datetime from requests import get from airflow import DAG from airflow.models import Variable from airflow.operators.python_operator import PythonOperator # Config variables # dag_config = Variable.get("hello_world_variables", deserialize_json=True) default_args = { 'o...
23.056338
75
0.689676
346dfc38e5228510fbb6d8575a372cd8d9bac798
9,074
py
Python
src/thex/apps/utils/signal_utils.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/utils/signal_utils.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/utils/signal_utils.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
from pathlib import Path import dash_core_components as dcc import dash_bootstrap_components as dbc import dash_html_components as html import plotly import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots # -------------------- Graphing Functions -------------------- ...
25.925714
88
0.528543
346e40e8a2a72d7ea7828ba82b650ee8a97e793a
7,249
py
Python
tests/unit/test_ncit.py
cancervariants/disease-normalization
b4d64c9bf30d600fec4d23b890da669835d93c73
[ "MIT" ]
null
null
null
tests/unit/test_ncit.py
cancervariants/disease-normalization
b4d64c9bf30d600fec4d23b890da669835d93c73
[ "MIT" ]
39
2021-02-11T11:33:32.000Z
2022-03-23T13:53:31.000Z
tests/unit/test_ncit.py
cancervariants/disease-normalization
b4d64c9bf30d600fec4d23b890da669835d93c73
[ "MIT" ]
null
null
null
"""Test NCIt source.""" import pytest from disease.schemas import MatchType, SourceName from disease.query import QueryHandler def test_concept_id_match(ncit, neuroblastoma, nsclc, compare_records): """Test that concept ID search resolves to correct record""" response = ncit.search('ncit:C3270') assert...
37.365979
99
0.66423
346e60329f7119de9c6fd91260d085bb215a900f
7,084
py
Python
pytglib/api/types/message.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/message.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/message.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object
54.914729
417
0.683512
346fa28c58b006ee5c9a022eea52649d810fd3de
902
py
Python
trainer/migrations/0023_userpretest.py
tthelen/interpunct
83e2cbd67dcc94c131a3a2b155eefd710636a912
[ "MIT" ]
2
2016-10-21T21:52:08.000Z
2021-10-19T02:19:43.000Z
trainer/migrations/0023_userpretest.py
tthelen/interpunct
83e2cbd67dcc94c131a3a2b155eefd710636a912
[ "MIT" ]
null
null
null
trainer/migrations/0023_userpretest.py
tthelen/interpunct
83e2cbd67dcc94c131a3a2b155eefd710636a912
[ "MIT" ]
4
2016-10-24T19:17:48.000Z
2018-05-11T11:53:12.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-18 08:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
34.692308
141
0.640798
346fda67f8f453b3f930138da3f2c3b926fc2d88
2,352
py
Python
CsvToDynamo.py
cushind/csv-to-dynamodb
5a9cdedde4dfee121efe8efb9bcd61950f242c94
[ "Apache-2.0" ]
2
2018-04-13T21:03:38.000Z
2018-06-25T21:56:02.000Z
CsvToDynamo.py
cushind/csv-to-dynamodb
5a9cdedde4dfee121efe8efb9bcd61950f242c94
[ "Apache-2.0" ]
null
null
null
CsvToDynamo.py
cushind/csv-to-dynamodb
5a9cdedde4dfee121efe8efb9bcd61950f242c94
[ "Apache-2.0" ]
1
2018-07-18T10:21:31.000Z
2018-07-18T10:21:31.000Z
import boto3 import csv import json import argparse ''' You need to have aws configured with access tokens prior to running this script (use aws configure) ''' def batch_create(table, csv_file_name, column_names): ''' Can Handle many puts at one time. Boto3 gives an example of 50, even though max batch s...
30.545455
99
0.619898
3470757a316e0d017e10fe10eeda40a2177e7aab
5,636
py
Python
qcdb/molecule/parker.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
8
2019-03-28T11:54:59.000Z
2022-03-19T03:31:37.000Z
qcdb/molecule/parker.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
39
2018-10-31T23:02:18.000Z
2021-12-12T22:11:37.000Z
qcdb/molecule/parker.py
loriab/qccddb
d9e156ef8b313ac0633211fc6b841f84a3ddde24
[ "BSD-3-Clause" ]
9
2018-03-12T20:51:50.000Z
2022-02-28T15:18:34.000Z
import math import numpy as np import qcelemental as qcel BOND_FACTOR = 1.2 # fudge factor for bond length threshold _expected_bonds = { 'H': 1, 'C': 4, 'N': 3, 'O': 2, 'F': 1, 'P': 3, 'S': 2, } def xyz2mol(self): """Returns a string of Molecule formatted for mol2. Written by ...
32.022727
95
0.532825
34721682431358cf0bdf09cf841278f4336d58a5
4,050
py
Python
Projects/CS_VQE/UnitaryPartitioning_myriad_on_FULL_H_LCU.py
AlexisRalli/VQE-code
4112d2bba4c327360e95dfd7cb6120b2ce67bf29
[ "MIT" ]
1
2021-04-01T14:01:46.000Z
2021-04-01T14:01:46.000Z
Projects/CS_VQE/UnitaryPartitioning_myriad_on_FULL_H_LCU.py
AlexisRalli/VQE-code
4112d2bba4c327360e95dfd7cb6120b2ce67bf29
[ "MIT" ]
5
2019-11-13T16:23:54.000Z
2021-04-07T11:03:06.000Z
Projects/CS_VQE/UnitaryPartitioning_myriad_on_FULL_H_LCU.py
AlexisRalli/VQE-code
4112d2bba4c327360e95dfd7cb6120b2ce67bf29
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp import ast import os from quchem.Unitary_Partitioning.Graph import Clique_cover_Hamiltonian import quchem.Misc_functions.conversion_scripts as conv_scr from copy import deepcopy from quchem.Unitary_Partitioning.Unitary_partitioning_LCU_method import LCU_linalg_Energy from openf...
33.75
113
0.678765
3472c5f0edade05adeaae51cedd69cdc00629866
2,925
py
Python
notebooks/00-00-inspect-orig-files.py
will-henney/teresa-pn-ou5
5d127880c1da481f0a1fb3e23abce1d3bf9ccc1a
[ "MIT" ]
null
null
null
notebooks/00-00-inspect-orig-files.py
will-henney/teresa-pn-ou5
5d127880c1da481f0a1fb3e23abce1d3bf9ccc1a
[ "MIT" ]
null
null
null
notebooks/00-00-inspect-orig-files.py
will-henney/teresa-pn-ou5
5d127880c1da481f0a1fb3e23abce1d3bf9ccc1a
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.0 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # # PN Ou 5:...
25.884956
158
0.68547
3473928efd974d616527ce1198698da2f5b89c17
4,930
py
Python
common/create_public_vn.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
1
2017-06-13T04:42:34.000Z
2017-06-13T04:42:34.000Z
common/create_public_vn.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
null
null
null
common/create_public_vn.py
vkolli/contrail-test-perf
db04b8924a2c330baabe3059788b149d957a7d67
[ "Apache-2.0" ]
null
null
null
import project_test from common.contrail_test_init import ContrailTestInit from common.connections import ContrailConnections import os import fixtures from test import BaseTestCase import time from floating_ip import * from vn_test import * from control_node import * from common import isolated_creds from tcutils.util...
40.409836
97
0.585598
347441db8bc4affdf62a00833370a2e23025b1d1
996
py
Python
aiotdlib/api/functions/get_voice_chat_available_participants.py
jraylan/aiotdlib
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
[ "MIT" ]
null
null
null
aiotdlib/api/functions/get_voice_chat_available_participants.py
jraylan/aiotdlib
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
[ "MIT" ]
null
null
null
aiotdlib/api/functions/get_voice_chat_available_participants.py
jraylan/aiotdlib
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
[ "MIT" ]
null
null
null
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
35.571429
92
0.47992
34779ad96b37a7ece57e092fb2f969041bbfc0ed
27,098
py
Python
tests/test_tree.py
tgragnato/geneva
2fc5b2f2f4766278902cff25af50b753d1d26a76
[ "BSD-3-Clause" ]
1,182
2019-11-15T02:56:47.000Z
2022-03-30T16:09:04.000Z
tests/test_tree.py
Nekotekina/geneva
3eb6b7342f9afd7add1f4aba9e2aadf0b9a5f196
[ "BSD-3-Clause" ]
21
2019-11-15T15:08:02.000Z
2022-01-03T16:22:45.000Z
tests/test_tree.py
Nekotekina/geneva
3eb6b7342f9afd7add1f4aba9e2aadf0b9a5f196
[ "BSD-3-Clause" ]
102
2019-11-15T15:01:07.000Z
2022-03-30T13:52:47.000Z
import logging import os from scapy.all import IP, TCP import actions.tree import actions.drop import actions.tamper import actions.duplicate import actions.utils import layers.packet def test_init(): """ Tests initialization """ print(actions.action.Action.get_actions("out")) def test_count_leaves...
39.501458
315
0.665104
3478264c794a3f180ec86805c965604a1b3922e9
2,365
py
Python
l2address/formatter.py
EgorBlagov/l2address
d29970116184bd4bb78a58e789e07ed5009228b4
[ "MIT" ]
1
2021-08-02T07:13:29.000Z
2021-08-02T07:13:29.000Z
l2address/formatter.py
EgorBlagov/l2address
d29970116184bd4bb78a58e789e07ed5009228b4
[ "MIT" ]
null
null
null
l2address/formatter.py
EgorBlagov/l2address
d29970116184bd4bb78a58e789e07ed5009228b4
[ "MIT" ]
null
null
null
import re from abc import ABC, abstractmethod from .utils import parse_hex, per_join DEFAULT_FORMATTERS = [ ColonFormatter(), PeriodFormatter(2), PeriodFormatter(3), PeriodFormatter(4), HyphenFormatter(), CleanFormatter() ]
28.493976
119
0.662579
347843e7209d1e94b13bc470e5fc335542cf2f21
5,142
py
Python
pytests/ent_backup_restore/provider/s3.py
couchbaselabs/testrunner-bharath
96af90070da2140cc11c549db7403f5ea3b76d34
[ "Apache-2.0" ]
null
null
null
pytests/ent_backup_restore/provider/s3.py
couchbaselabs/testrunner-bharath
96af90070da2140cc11c549db7403f5ea3b76d34
[ "Apache-2.0" ]
null
null
null
pytests/ent_backup_restore/provider/s3.py
couchbaselabs/testrunner-bharath
96af90070da2140cc11c549db7403f5ea3b76d34
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import json import re import boto3 import botocore from . import provider provider.Provider.register(S3)
36.211268
190
0.606573
34792d446f26e4e27a5343d406f40c7fae30afe3
1,059
py
Python
pythonProject/05al137Random/rd.py
D-Wolter/PycharmProjects
c8d6144efa30261bff72a3e0414a0d80f6730f9b
[ "MIT" ]
null
null
null
pythonProject/05al137Random/rd.py
D-Wolter/PycharmProjects
c8d6144efa30261bff72a3e0414a0d80f6730f9b
[ "MIT" ]
null
null
null
pythonProject/05al137Random/rd.py
D-Wolter/PycharmProjects
c8d6144efa30261bff72a3e0414a0d80f6730f9b
[ "MIT" ]
null
null
null
import random import string # Gera um nmero inteiro entra A e B # inteiro = random.randint(10, 20) # Gera um nmero de ponto flutuante entra A e B # flutuante = random.uniform(10, 20) # Gera um nmero de ponto flutuante entre 0.0 e 1.0 flutuante = random.random() # Gerar um nmero aleatrio usando a funo range() # ...
28.621622
109
0.708215
347a6f99a4de31c46f4ac69d858282e197897fe5
1,651
py
Python
chris_backend/users/tests/test_serializers.py
PintoGideon/ChRIS_ultron_backEnd
3c094c90f45c64e279c6d78d9accc357679fb37b
[ "MIT" ]
null
null
null
chris_backend/users/tests/test_serializers.py
PintoGideon/ChRIS_ultron_backEnd
3c094c90f45c64e279c6d78d9accc357679fb37b
[ "MIT" ]
null
null
null
chris_backend/users/tests/test_serializers.py
PintoGideon/ChRIS_ultron_backEnd
3c094c90f45c64e279c6d78d9accc357679fb37b
[ "MIT" ]
null
null
null
import logging from django.test import TestCase from rest_framework import serializers from users.serializers import UserSerializer
32.372549
85
0.675348
347c3d0645e2c613d5b9e0808de4a8ec3f9718f3
11,036
py
Python
pegtree/optimizer.py
Caterpie-poke/pegtree
81c37a743d4bccc2eac05ebb10803224785f55c0
[ "MIT" ]
1
2022-03-05T13:33:55.000Z
2022-03-05T13:33:55.000Z
pegtree/optimizer.py
Caterpie-poke/pegtree
81c37a743d4bccc2eac05ebb10803224785f55c0
[ "MIT" ]
6
2020-10-06T23:57:10.000Z
2021-05-11T22:16:46.000Z
pegtree/optimizer.py
Caterpie-poke/pegtree
81c37a743d4bccc2eac05ebb10803224785f55c0
[ "MIT" ]
5
2020-02-18T12:00:32.000Z
2020-05-13T06:35:23.000Z
from .peg import * # # PRange Utilities # # Inlining # # # make Minimum Rules # # # Sorting Rules # ### # # Ore # # # Out of order execution # ### optimizer = Optimizer() # def default_optimizer(e): # return e
24.415929
87
0.545216
347c4640275f1ffebdd61eb9ff26c587f84bd59e
911
py
Python
lib/ipc/async_emitter.py
stevenman42/architus
86f0c065172e27ae02603d6ef4e7d4eedfb6dbe4
[ "MIT" ]
null
null
null
lib/ipc/async_emitter.py
stevenman42/architus
86f0c065172e27ae02603d6ef4e7d4eedfb6dbe4
[ "MIT" ]
null
null
null
lib/ipc/async_emitter.py
stevenman42/architus
86f0c065172e27ae02603d6ef4e7d4eedfb6dbe4
[ "MIT" ]
null
null
null
import json from aio_pika import Message, DeliveryMode, ExchangeType from lib.ipc.util import poll_for_async_connection
23.973684
63
0.644347
347c814616bfce0ed2381cbdbfdc2ba0cb647a74
72
py
Python
pys/classes/annotations.py
Xithrius/Examples
d29fe9510f1c62a807e09f9707d0b2f6de9ffeed
[ "MIT" ]
null
null
null
pys/classes/annotations.py
Xithrius/Examples
d29fe9510f1c62a807e09f9707d0b2f6de9ffeed
[ "MIT" ]
null
null
null
pys/classes/annotations.py
Xithrius/Examples
d29fe9510f1c62a807e09f9707d0b2f6de9ffeed
[ "MIT" ]
null
null
null
import typing as t
12
41
0.611111
347d4a00184ea7c2c1c24dd55efd4162c15dc9d8
7,727
py
Python
day_4/day_4_improvements/tests/test_user_edit.py
dmchu/Pytest_REST_API_with_Allure
a41fbbcc04304a89a99ece7b06148de668a7b696
[ "Apache-2.0" ]
null
null
null
day_4/day_4_improvements/tests/test_user_edit.py
dmchu/Pytest_REST_API_with_Allure
a41fbbcc04304a89a99ece7b06148de668a7b696
[ "Apache-2.0" ]
null
null
null
day_4/day_4_improvements/tests/test_user_edit.py
dmchu/Pytest_REST_API_with_Allure
a41fbbcc04304a89a99ece7b06148de668a7b696
[ "Apache-2.0" ]
null
null
null
import allure from day_4.day_4_improvements.lib.base_case import BaseCase from day_4.day_4_improvements.lib.assersions import Assertions as AS from day_4.day_4_improvements.lib.my_requests import MyRequests as MR from day_4.day_4_improvements.lib.helpers import Helpers as HP
38.635
115
0.64734
347d886b920493c8af185f7166a5e1089d5bdb0f
23
py
Python
test/example/__init__.py
fieldOfView/izzyPythonPlugin
deb0dca2a4294cd74aa18ab1228de10eceba1266
[ "MIT" ]
6
2019-11-06T00:37:43.000Z
2021-12-22T02:39:45.000Z
example/__init__.py
Submanifold/cmake-cpp-pybind11
f22893e87977de8c619d6033b7ca5bb240451f3d
[ "MIT" ]
null
null
null
example/__init__.py
Submanifold/cmake-cpp-pybind11
f22893e87977de8c619d6033b7ca5bb240451f3d
[ "MIT" ]
null
null
null
from .example import *
11.5
22
0.73913
347e054992d27cb2ec4c3396370171a573169533
64
py
Python
backend/models/__init__.py
Hori1234/gastech-project
dc89e546fce9b588fc8038cf63b7d82ad3eafff9
[ "MIT" ]
null
null
null
backend/models/__init__.py
Hori1234/gastech-project
dc89e546fce9b588fc8038cf63b7d82ad3eafff9
[ "MIT" ]
null
null
null
backend/models/__init__.py
Hori1234/gastech-project
dc89e546fce9b588fc8038cf63b7d82ad3eafff9
[ "MIT" ]
null
null
null
from .users import User __all__ = [ 'User']
9.142857
24
0.46875
347e6ea9930d9b92685144c3238b1acc36f5d915
6,005
py
Python
bandit_github_formatter/formatter.py
epsylabs/action-bandit
626214a0b7ee3fa22ac81b0d8d5f14da61b41345
[ "MIT" ]
8
2021-06-29T07:12:33.000Z
2022-02-15T22:10:07.000Z
bandit_github_formatter/formatter.py
epsylabs/action-bandit
626214a0b7ee3fa22ac81b0d8d5f14da61b41345
[ "MIT" ]
null
null
null
bandit_github_formatter/formatter.py
epsylabs/action-bandit
626214a0b7ee3fa22ac81b0d8d5f14da61b41345
[ "MIT" ]
1
2022-02-13T20:09:01.000Z
2022-02-13T20:09:01.000Z
r""" ============== GitHub Formatter ============== This formatter outputs the issues as plain text. :Example: .. code-block:: none >> Issue: [B301:blacklist_calls] Use of unsafe yaml load. Allows instantiation of arbitrary objects. Consider yaml.safe_load(). Severity: Medium Confidence: High ...
34.119318
117
0.602498
347e90ac805f9147fa4f7a2a02dbf307daa9c5ca
3,685
py
Python
usecase/usecase-cordova-android-tests/samples/SharedModeLibraryDownload4.x/res/test.py
JianfengXu/crosswalk-test-suite
6fb6ef9d89235743ee8b867fd2541c5bdf388786
[ "BSD-3-Clause" ]
null
null
null
usecase/usecase-cordova-android-tests/samples/SharedModeLibraryDownload4.x/res/test.py
JianfengXu/crosswalk-test-suite
6fb6ef9d89235743ee8b867fd2541c5bdf388786
[ "BSD-3-Clause" ]
null
null
null
usecase/usecase-cordova-android-tests/samples/SharedModeLibraryDownload4.x/res/test.py
JianfengXu/crosswalk-test-suite
6fb6ef9d89235743ee8b867fd2541c5bdf388786
[ "BSD-3-Clause" ]
null
null
null
import os import commands import sys import json from optparse import OptionParser global CROSSWALK_VERSION with open("../../tools/VERSION", "rt") as pkg_version_file: pkg_version_raw = pkg_version_file.read() pkg_version_file.close() pkg_version_json = json.loads(pkg_version_raw) CROSSWALK_VERSION = pk...
44.39759
226
0.699322
347ea510032b5f75cc03eb21b308b8c9b11d3a97
1,176
py
Python
examples/python/simple_triangulation_3.py
chrisidefix/cgal-bindings
ddd8551f1ded7354c82a9690c06fcbc6512b6604
[ "BSL-1.0" ]
33
2015-04-14T22:03:37.000Z
2022-01-23T00:01:23.000Z
examples/python/simple_triangulation_3.py
chrisidefix/cgal-bindings
ddd8551f1ded7354c82a9690c06fcbc6512b6604
[ "BSL-1.0" ]
4
2017-07-23T18:02:32.000Z
2020-02-17T18:31:37.000Z
examples/python/simple_triangulation_3.py
chrisidefix/cgal-bindings
ddd8551f1ded7354c82a9690c06fcbc6512b6604
[ "BSL-1.0" ]
6
2015-06-10T10:51:11.000Z
2019-04-16T10:24:53.000Z
from CGAL.CGAL_Kernel import Point_3 from CGAL.CGAL_Triangulation_3 import Delaunay_triangulation_3 from CGAL.CGAL_Triangulation_3 import Delaunay_triangulation_3_Cell_handle from CGAL.CGAL_Triangulation_3 import Delaunay_triangulation_3_Vertex_handle from CGAL.CGAL_Triangulation_3 import Ref_Locate_type_3 from CGAL.CG...
21.777778
76
0.754252
347f4781f31fad4fabc2967828da3263fd07f923
17,298
py
Python
lims/inventory/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
12
2017-03-01T10:39:36.000Z
2022-01-04T06:17:19.000Z
lims/inventory/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
29
2017-04-25T14:05:08.000Z
2021-06-21T14:41:53.000Z
lims/inventory/views.py
sqilz/LIMS-Backend
b64e1fa512f89e4492803d44c6b8c35e4d4724cc
[ "MIT" ]
4
2017-10-11T16:22:53.000Z
2021-02-23T15:45:21.000Z
import io import json from django.core.exceptions import ObjectDoesNotExist from pint import UnitRegistry import django_filters from rest_framework import viewsets from rest_framework.response import Response from rest_framework.decorators import detail_route, list_route from rest_framework import serializers from ...
41.482014
100
0.594693
34827671e1dfddc2f889fbb286b2c0765d7735fe
7,047
py
Python
python/xfr/models/vggface.py
rwe0214/xfr
a49d9e80a1bc45c25c72c394c60f6274599321aa
[ "MIT" ]
52
2020-08-04T11:33:09.000Z
2021-12-05T14:16:22.000Z
python/xfr/models/vggface.py
rwe0214/xfr
a49d9e80a1bc45c25c72c394c60f6274599321aa
[ "MIT" ]
10
2020-08-24T08:34:15.000Z
2021-12-05T06:59:50.000Z
python/xfr/models/vggface.py
rwe0214/xfr
a49d9e80a1bc45c25c72c394c60f6274599321aa
[ "MIT" ]
12
2020-08-05T03:11:56.000Z
2021-12-14T23:52:50.000Z
# Copyright 2019 Systems & Technology Research, LLC # Use of this software is governed by the license.txt file. import os import numpy as np import torch import torch.nn as nn import torchvision.transforms as transforms import torch.nn.functional as F from PIL import ImageFilter def prepare_vggface_image(img): ...
34.208738
109
0.616858
348349d381d9db8465fa237f65e4440d7cf40299
1,400
py
Python
easy/1356-Sort Integers by The Number of 1 Bits.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/1356-Sort Integers by The Number of 1 Bits.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/1356-Sort Integers by The Number of 1 Bits.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/sort-integers-by-the-number-of-1-bits/ Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representation and in case of two or more integers have the same number of 1's you have to sort them in ascending order....
26.923077
247
0.660714
ca9e9bd0ad838e0babbbf679e67b3ceb8ca12cb5
959
py
Python
server/plugins/machine_detail_ard_info/scripts/ard_info.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
2
2019-11-01T20:50:35.000Z
2021-01-13T22:02:55.000Z
server/plugins/machine_detail_ard_info/scripts/ard_info.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
server/plugins/machine_detail_ard_info/scripts/ard_info.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import sys sys.path.append("/usr/local/munki/munkilib") import FoundationPlist RESULTS_PATH = "/usr/local/sal/plugin_results.plist" if __name__ == "__main__": main()
21.795455
79
0.663191
ca9f36676f8900dd5fc1fa8ab6463b0c5873344a
12,476
py
Python
biquad_filter_original.py
ignaciodsimon/optimised_biquad_filter
0d85dc42033e767eeb55107e72dba98417377686
[ "MIT" ]
null
null
null
biquad_filter_original.py
ignaciodsimon/optimised_biquad_filter
0d85dc42033e767eeb55107e72dba98417377686
[ "MIT" ]
null
null
null
biquad_filter_original.py
ignaciodsimon/optimised_biquad_filter
0d85dc42033e767eeb55107e72dba98417377686
[ "MIT" ]
null
null
null
''' Standard implementation of a biquad filter Joe Simon 2018. ''' import math from enum import Enum def computeBiquadFilterResponse(filterCoefficients, normalizedFreqBins): if filterCoefficients is None: return if not len(filterCoefficients) == 6: return ...
37.920973
162
0.558913
ca9fc7fc056114c1fa1f918327e46761a7db8549
5,065
py
Python
util/training.py
NeuralVFX/facial-pose-estimation-pytorch-v2
20af370409e8508a4a5e1e78341f66c5c4f9c1c2
[ "MIT" ]
5
2021-02-03T21:55:55.000Z
2022-03-01T15:52:14.000Z
util/training.py
NeuralVFX/facial-pose-estimation-pytorch-v2
20af370409e8508a4a5e1e78341f66c5c4f9c1c2
[ "MIT" ]
null
null
null
util/training.py
NeuralVFX/facial-pose-estimation-pytorch-v2
20af370409e8508a4a5e1e78341f66c5c4f9c1c2
[ "MIT" ]
1
2021-12-08T02:48:08.000Z
2021-12-08T02:48:08.000Z
import math import numpy as np import torch ############################################################################ # Learning Rate ############################################################################ def set_lr_sched(epochs, iters, mult): """ Learning rate schedule, using cyclical learning rate ...
31.855346
99
0.569793
caa060579f980710bf47cd0784773c22fd517be1
10,754
py
Python
components/fatfs/test_fatfsgen/test_fatfsparse.py
fbucafusco/esp-idf
c2ccc383dae2a47c2c2dc8c7ad78175a3fd11361
[ "Apache-2.0" ]
null
null
null
components/fatfs/test_fatfsgen/test_fatfsparse.py
fbucafusco/esp-idf
c2ccc383dae2a47c2c2dc8c7ad78175a3fd11361
[ "Apache-2.0" ]
null
null
null
components/fatfs/test_fatfsgen/test_fatfsparse.py
fbucafusco/esp-idf
c2ccc383dae2a47c2c2dc8c7ad78175a3fd11361
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import os import shutil import sys import unittest from subprocess import STDOUT, run from test_utils import compare_folders, fill_sector, generate_local_folder_structure, generate_test_...
35.846667
105
0.521666
caa067b7ced84067ccfd44ea02b97cd1e99a10d1
7,121
py
Python
tests/test_tasks.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
null
null
null
tests/test_tasks.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
null
null
null
tests/test_tasks.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
1
2022-03-28T10:47:37.000Z
2022-03-28T10:47:37.000Z
# Copyright 2020 Bradbase import os, sys import unittest import configparser from dataclasses import asdict from requests_oauthlib import OAuth2Session from oauthlib.oauth2 import MobileApplicationClient, WebApplicationClient import httpretty import warnings from dacite import from_dict import json sys.path.insert(0...
35.078818
174
0.592052
caa0e695442da8dc639ed3c9061223b76d6ae4f6
579
py
Python
db_models/deckentry.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
1
2020-10-01T17:44:26.000Z
2020-10-01T17:44:26.000Z
db_models/deckentry.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
null
null
null
db_models/deckentry.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
1
2021-10-05T12:09:07.000Z
2021-10-05T12:09:07.000Z
from globals import db import db_models.game from db_models.card import Card
41.357143
76
0.713299
caa108c99289e504df2d4967b77c333b2d533a6d
1,482
py
Python
fisher_py/data/file_error.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
3
2021-11-03T20:55:45.000Z
2022-02-01T10:11:47.000Z
fisher_py/data/file_error.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
2
2022-01-28T02:04:21.000Z
2022-01-29T01:29:14.000Z
fisher_py/data/file_error.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
1
2022-01-26T23:30:37.000Z
2022-01-26T23:30:37.000Z
from fisher_py.net_wrapping import NetWrapperBase
32.217391
90
0.654521
caa1562b36eda4a5d00b900f7d291109468dbc07
1,839
py
Python
05-data_acquisition/scrap.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
05-data_acquisition/scrap.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
05-data_acquisition/scrap.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
import bs4 import requests import os str = input() input_str = str str = str.replace(" ", "&20") url = "https://www.snapdeal.com/search?keyword={}&santizedKeyword=&catId=&categoryId=0&suggested=false&vertical=&noOfResults=20&searchState=&clickSrc=go_header&lastKeyword=&prodCatId=&changeBackToAll=false&foundInAll=false...
42.767442
322
0.633496
caa39db7232070832f9bd3b29c7411a08b85d2e9
980
py
Python
slixmpp/__init__.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/__init__.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
slixmpp/__init__.py
marconfus/slixmpp
bcf186f42dc31d360e0a0af8a4b3aaf1e0b212aa
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2010 Nathanael C. Fritz This file is part of Slixmpp. See the file LICENSE for copying permission. """ import logging logging.getLogger(__name__).addHandler(logging.NullHandler()) import asyncio # Required for python < 3.7 to use the old ssl implemen...
33.793103
80
0.812245
caa57ab541795d55d1fd7fa6b28f28f0dd754bf4
761
py
Python
ois_api_client/v3_0/deserialization/deserialize_user_header.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v3_0/deserialization/deserialize_user_header.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v3_0/deserialization/deserialize_user_header.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from typing import Optional import xml.etree.ElementTree as ET from ...xml.XmlReader import XmlReader as XR from ..namespaces import COMMON from ..dto.UserHeader import UserHeader from .deserialize_crypto import deserialize_crypto
30.44
73
0.70565
caa5955124e72ef0bcafe3a20466c885857de706
5,172
py
Python
src/test.py
kevin3314/gcn_ppi
39b0e618bbb592f9cb8d37edf28deeb7c0987dad
[ "MIT" ]
null
null
null
src/test.py
kevin3314/gcn_ppi
39b0e618bbb592f9cb8d37edf28deeb7c0987dad
[ "MIT" ]
1
2021-12-08T02:47:10.000Z
2021-12-08T02:47:10.000Z
src/test.py
kevin3314/gcn_ppi
39b0e618bbb592f9cb8d37edf28deeb7c0987dad
[ "MIT" ]
null
null
null
from collections import defaultdict from pathlib import Path from typing import Dict, List, Optional import hydra import numpy as np import pandas as pd from omegaconf import DictConfig, OmegaConf from pytorch_lightning import ( Callback, LightningDataModule, LightningModule, Trainer, seed_everythi...
35.424658
119
0.67208
caa5f1ac1b06136391a9d7d4dbe4508ef117d016
1,234
py
Python
source_code/main.py
Sehannnnnnn/shortest-path
a815cbde365a58c1c4b3a0b60293f77dfc89f3df
[ "MIT" ]
null
null
null
source_code/main.py
Sehannnnnnn/shortest-path
a815cbde365a58c1c4b3a0b60293f77dfc89f3df
[ "MIT" ]
null
null
null
source_code/main.py
Sehannnnnnn/shortest-path
a815cbde365a58c1c4b3a0b60293f77dfc89f3df
[ "MIT" ]
null
null
null
from agent import Qnet from agent import ReplayBuffer from agent import train q = Qnet() q_target = Qnet() q_target.load_state_dict(q.state_dict()) memory = ReplayBuffer() print_interval = 20 score = 0.0 optimizer = optim.Adam(q.parameters(), lr=learning_rate) score_history= [] for n_epi in range(30...
31.641026
160
0.604538
caa6662e2795f3a211e91c2d833e2f7ae98a4ebc
9,094
py
Python
ide/tests/test_import_archive.py
Ramonrlb/cloudpebble
20b5408724aa810ce1626552d9f1062f1094fc3b
[ "MIT" ]
147
2015-01-11T04:33:10.000Z
2021-08-12T18:22:52.000Z
ide/tests/test_import_archive.py
Ramonrlb/cloudpebble
20b5408724aa810ce1626552d9f1062f1094fc3b
[ "MIT" ]
155
2015-01-02T12:54:30.000Z
2020-11-06T19:17:09.000Z
ide/tests/test_import_archive.py
gfunkmonk/cloudpebble-1
c5b63483ac26ae0d60ac7ef1bf9e803400188e91
[ "MIT" ]
105
2015-01-01T21:04:36.000Z
2021-01-22T22:10:38.000Z
""" These tests check basic operation of ide.tasks.archive.do_import_archive """ import mock from django.core.exceptions import ValidationError from ide.tasks.archive import do_import_archive, InvalidProjectArchiveException from ide.utils.cloudpebble_test import CloudpebbleTestCase, make_package, make_appinfo, build_...
40.238938
119
0.591819
caa7b5af1d7c721d26af5a7a4217743395012765
2,419
py
Python
src/features/build_features.py
weasysolutions/skin-lesion-dataset-cookiecutter
f3788b273f9c0caca21867f4846d6efd3683f646
[ "MIT" ]
null
null
null
src/features/build_features.py
weasysolutions/skin-lesion-dataset-cookiecutter
f3788b273f9c0caca21867f4846d6efd3683f646
[ "MIT" ]
null
null
null
src/features/build_features.py
weasysolutions/skin-lesion-dataset-cookiecutter
f3788b273f9c0caca21867f4846d6efd3683f646
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import os import logging import sys import pandas as pd import os, sys, inspect cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"images_in_features_subdirs"))) if cmd_subfolder not in sys.path: sys.path...
32.253333
155
0.667218
caaa9bfd17d71dc9c4b5c2733db7f41b398c87ca
5,897
py
Python
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/hsa/hlc/hlc.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/hsa/hlc/hlc.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1
2017-12-21T23:31:59.000Z
2017-12-29T16:56:05.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/hsa/hlc/hlc.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
# A temporary wrapper to connect to the HLC LLVM binaries. # Currently, connect to commandline interface. from __future__ import print_function, absolute_import import sys from subprocess import check_call import tempfile import os from collections import namedtuple from numba import config from .utils import adapt_ll...
30.713542
80
0.559267
caad98cebdae9619248fd033d10604a27d5863a1
5,851
py
Python
lensit/ffs_iterators/bfgs.py
Sebastian-Belkner/LensIt
3e746ceeaa53b2845af31cc8372cd897e34ad53f
[ "MIT" ]
null
null
null
lensit/ffs_iterators/bfgs.py
Sebastian-Belkner/LensIt
3e746ceeaa53b2845af31cc8372cd897e34ad53f
[ "MIT" ]
null
null
null
lensit/ffs_iterators/bfgs.py
Sebastian-Belkner/LensIt
3e746ceeaa53b2845af31cc8372cd897e34ad53f
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import os
38.24183
118
0.56093
caaf2c40188789d0575a2ef98deb50c6eded3c8b
464
py
Python
annotations/migrations/0015_organization_description.py
alexliyihao/auto-annotation-web
391bd2c4a8ea1d2d3aba92a13cd7c41dd77a609d
[ "MIT" ]
1
2021-11-17T15:34:33.000Z
2021-11-17T15:34:33.000Z
annotations/migrations/0015_organization_description.py
alexliyihao/auto-annotation-web
391bd2c4a8ea1d2d3aba92a13cd7c41dd77a609d
[ "MIT" ]
null
null
null
annotations/migrations/0015_organization_description.py
alexliyihao/auto-annotation-web
391bd2c4a8ea1d2d3aba92a13cd7c41dd77a609d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-11 02:06 from django.db import migrations, models
23.2
79
0.62069
caaf463e68f987c64b55b2231633fe5be3a6307b
5,536
py
Python
paper/figures/make_photometry_table.py
abostroem/asassn15oz
ade090096b61b155c86108d1945bb7b4522365b8
[ "BSD-3-Clause" ]
null
null
null
paper/figures/make_photometry_table.py
abostroem/asassn15oz
ade090096b61b155c86108d1945bb7b4522365b8
[ "BSD-3-Clause" ]
3
2019-02-24T23:24:33.000Z
2019-02-24T23:25:12.000Z
paper/figures/make_photometry_table.py
abostroem/asassn15oz
ade090096b61b155c86108d1945bb7b4522365b8
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Creates a table of all imaging observations in the database for paper: # * lc_obs.tex # In[1]: import numpy as np from astropy import table from astropy.table import Table from astropy.time import Time from utilities_az import supernova, connect_to_sndavis # In[2]: db, cursor = connec...
27.405941
130
0.604408
caaf9b2d174b67f74ceb1ce325fcdf36e83f2b9b
632
py
Python
flask_resources/parsers/__init__.py
inveniosoftware/flask-resources
f9d926a959f392b66811a10ee8faaa2f77e6d528
[ "MIT" ]
2
2021-09-04T22:36:26.000Z
2021-12-06T22:02:37.000Z
flask_resources/parsers/__init__.py
inveniosoftware/flask-resources
f9d926a959f392b66811a10ee8faaa2f77e6d528
[ "MIT" ]
62
2020-06-09T09:09:28.000Z
2021-03-31T16:32:51.000Z
flask_resources/parsers/__init__.py
inveniosoftware/flask-resources
f9d926a959f392b66811a10ee8faaa2f77e6d528
[ "MIT" ]
6
2020-04-28T08:23:55.000Z
2021-04-09T07:41:15.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020-2021 CERN. # Copyright (C) 2020-2021 Northwestern University. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Request parser for the body, headers, query string and ...
27.478261
76
0.740506
caaff8629778159017275b2997472982be0e80e4
3,253
py
Python
analyze_tagged_corpus.py
kevincobain2000/nltk-trainer
5c0b53ccecb7a5042d5af6c4325e134f7d83cb45
[ "Apache-2.0" ]
1
2021-10-08T11:40:09.000Z
2021-10-08T11:40:09.000Z
analyze_tagged_corpus.py
kevincobain2000/nltk-trainer
5c0b53ccecb7a5042d5af6c4325e134f7d83cb45
[ "Apache-2.0" ]
null
null
null
analyze_tagged_corpus.py
kevincobain2000/nltk-trainer
5c0b53ccecb7a5042d5af6c4325e134f7d83cb45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse import nltk.corpus from nltk.corpus.util import LazyCorpusLoader from nltk.probability import FreqDist from nltk.tag.simplify import simplify_wsj_tag from nltk_trainer import load_corpus_reader ######################################## ## command options & argument parsing ## #########...
32.53
89
0.694436
cab0e7355c94993a3d9aee2b860a711d2c4abfa3
5,562
py
Python
service/example_config.py
w1kke/example-service
4c845796ae314f18b886bd62dcf42f75a40601d0
[ "MIT" ]
null
null
null
service/example_config.py
w1kke/example-service
4c845796ae314f18b886bd62dcf42f75a40601d0
[ "MIT" ]
null
null
null
service/example_config.py
w1kke/example-service
4c845796ae314f18b886bd62dcf42f75a40601d0
[ "MIT" ]
null
null
null
# Copyright 2018 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 import logging import os import sys from squid_py import Config
38.895105
98
0.627652
cab12a2e4b4e5bc1f20b3d34222016965f6e7990
352
py
Python
02_Variables/Variable types/tests.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
02_Variables/Variable types/tests.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
02_Variables/Variable types/tests.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
from lessons.test_helper import run_common_tests, get_answer_placeholders, passed, failed if __name__ == '__main__': run_common_tests() test_type_used()
23.466667
89
0.696023
cab19f6521b5afec4f623e6c04e0f97d6d1dbb36
579
py
Python
rssexample.py
nhtnhan/CMPUT404-Web-Mining
ed9d847a1e3636b9d40c3a29e80aae44b97a0247
[ "MIT" ]
1
2016-04-01T19:18:16.000Z
2016-04-01T19:18:16.000Z
rssexample.py
nhtnhan/CMPUT404-Web-Mining
ed9d847a1e3636b9d40c3a29e80aae44b97a0247
[ "MIT" ]
null
null
null
rssexample.py
nhtnhan/CMPUT404-Web-Mining
ed9d847a1e3636b9d40c3a29e80aae44b97a0247
[ "MIT" ]
3
2015-02-14T18:11:50.000Z
2021-04-18T06:48:07.000Z
import feedparser import difflib import json cbc = feedparser.parse("http://rss.cbc.ca/lineup/topstories.xml") print(json.dumps(cbc)) print("\n\n################################################\n\n") cnn = feedparser.parse("http://rss.cnn.com/rss/cnn_topstories.rss") print(json.dumps(cnn)) print("\n\n##################...
38.6
67
0.582038
cab1bebb90bfc4565d2855b792d6d2d579ca6ab9
3,271
py
Python
dump_to_json.py
saqib-nadeem/sample_python_scripts
35054816b262a3860ab9db383ab5d9e11ac0ce87
[ "MIT" ]
null
null
null
dump_to_json.py
saqib-nadeem/sample_python_scripts
35054816b262a3860ab9db383ab5d9e11ac0ce87
[ "MIT" ]
null
null
null
dump_to_json.py
saqib-nadeem/sample_python_scripts
35054816b262a3860ab9db383ab5d9e11ac0ce87
[ "MIT" ]
null
null
null
""" Usage Example: cat imesh_sample.txt | python dump_to_json.py -o imesh.json -e imesh_hashes.json """ import sys import json import argparse import traceback from os.path import dirname, abspath project_folder = dirname(dirname(abspath('.'))) if project_folder not in sys.path: sys.path.append(project_folder) ...
30.858491
106
0.602874