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
812528562760727190e13a89643039e9938a674f
632
py
Python
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
1
2022-02-08T11:12:12.000Z
2022-02-08T11:12:12.000Z
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
1
2022-02-08T11:26:24.000Z
2022-02-08T11:26:24.000Z
tests/either_catch_test.py
funnel-io/python-on-rails
cccd2284c7dab32a37d573042531a54454164f6a
[ "MIT" ]
null
null
null
from python_on_rails.either import as_either, Failure, Success @as_either(TypeError) def add_one(x): return x + 1 @as_either() def times_five(x): return x * 5 def test_success_executes_bindings(): result = Success(1).bind(add_one).bind(times_five) assert isinstance(result, Success) assert resu...
25.28
93
0.726266
0
0
0
0
102
0.161392
0
0
65
0.102848
812594dced1920626bd6e5484a03e5c3aa5dda9e
1,943
py
Python
ServerSide/models.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
ServerSide/models.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
ServerSide/models.py
Coullence/DRF_Percels-Couriers_API_V.0.0.2
906786115861b316f8ecf023c8af82f2dacff68e
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. # Station class Stations(models.Model): stationName = models.CharField(max_length=100) stationLocation = models.CharField(max_length=100) stationStaffId = models.CharField(max_length=100) date = models.DateTimeField(auto_now_add=True) d...
32.932203
66
0.716933
1,833
0.943387
0
0
0
0
0
0
63
0.032424
81265c7215ed57cef680d0ec0a27f1c4d35a191a
5,340
bzl
Python
tao_compiler/mlir/disc/tests/glob_op_test.bzl
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
328
2021-12-20T03:29:35.000Z
2022-03-31T14:27:23.000Z
tao_compiler/mlir/disc/tests/glob_op_test.bzl
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
82
2021-12-20T09:15:16.000Z
2022-03-31T09:33:48.000Z
tao_compiler/mlir/disc/tests/glob_op_test.bzl
JamesTheZ/BladeDISC
e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34
[ "Apache-2.0" ]
66
2021-12-21T17:28:27.000Z
2022-03-29T12:08:34.000Z
# Test definitions for Lit, the LLVM test runner. # # This is reusing the LLVM Lit test runner in the interim until the new build # rules are upstreamed. # TODO(b/136126535): remove this custom rule. """Lit runner globbing test """ load("//tensorflow:tensorflow.bzl", "filegroup") load("@bazel_skylib//lib:paths.bzl", "...
35.364238
94
0.639888
0
0
0
0
0
0
0
0
3,422
0.640824
812723d2076c258aebc37a64fed06e3f495c2735
2,181
py
Python
build-scripts/PackageCheckHelpers.py
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
4
2016-01-18T20:49:23.000Z
2020-03-04T22:23:57.000Z
build-scripts/PackageCheckHelpers.py
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
2
2019-09-23T21:04:25.000Z
2020-01-31T18:10:17.000Z
build-scripts/PackageCheckHelpers.py
yulicrunchy/JALoP
a474b464d4916fe559cf1df97c855232e5ec24ab
[ "Apache-2.0" ]
2
2021-04-01T20:53:12.000Z
2021-04-01T21:10:53.000Z
""" These are functions to add to the configure context. """ def __checkCanLink(context, source, source_type, message_libname, real_libs=[]): """ Check that source can be successfully compiled and linked against real_libs. Keyword arguments: source -- source to try to compile source_type -- type of source file, ...
22.484536
80
0.710683
0
0
0
0
0
0
0
0
1,297
0.594681
81290326c9beb0af3fd98f2bdd52b65974d13cd3
12,950
py
Python
src/transformers/modeling_tf_pytorch_utils.py
ari-holtzman/transformers
8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4
[ "Apache-2.0" ]
5,129
2019-09-30T11:21:03.000Z
2022-03-31T22:35:12.000Z
src/transformers/modeling_tf_pytorch_utils.py
ari-holtzman/transformers
8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4
[ "Apache-2.0" ]
604
2019-10-05T00:39:46.000Z
2022-03-31T11:12:07.000Z
src/transformers/modeling_tf_pytorch_utils.py
ari-holtzman/transformers
8725c545e8feeecdcee0ad92ca1d80cee8f0c6e4
[ "Apache-2.0" ]
1,034
2019-09-30T15:01:32.000Z
2022-03-31T06:14:50.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
39.242424
155
0.680386
0
0
0
0
0
0
0
0
4,941
0.381544
81292f7ed0f85cfcaaa5e1e9abfd5ae7b048469d
4,906
py
Python
hail/python/test/hail/helpers.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
null
null
null
hail/python/test/hail/helpers.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
3
2017-06-16T18:10:45.000Z
2017-07-21T17:44:13.000Z
hail/python/test/hail/helpers.py
mitochon/hail
25e5e5b8da1d978468d2cee393426ade46484a87
[ "MIT" ]
2
2018-01-30T00:50:52.000Z
2018-03-22T20:04:01.000Z
import os from timeit import default_timer as timer import unittest import pytest from decorator import decorator from hail.utils.java import Env import hail as hl from hail.backend.local_backend import LocalBackend _initialized = False def startTestHailContext(): global _initialized if not _initialized: ...
28.858824
92
0.637994
0
0
0
0
656
0.133714
0
0
435
0.088667
812941051eea955290efb0cfdb0e29b4664e5ad1
2,728
py
Python
src/entity_linker/models/figer_model/labeling_model.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
10
2020-06-14T15:46:53.000Z
2021-04-29T15:02:23.000Z
src/entity_linker/models/figer_model/labeling_model.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
3
2021-08-25T16:16:45.000Z
2022-02-10T04:29:10.000Z
src/entity_linker/models/figer_model/labeling_model.py
mjstrobl/WEXEA
0af0be1cdb93fc00cd81f885aa15ef8d6579b304
[ "Apache-2.0" ]
1
2021-02-17T17:44:06.000Z
2021-02-17T17:44:06.000Z
""" Modifications copyright (C) 2020 Michael Strobl """ import time import tensorflow as tf import numpy as np from entity_linker.models.base import Model class LabelingModel(Model): """Unsupervised Clustering using Discrete-State VAE""" def __init__(self, batch_size, num_labels, context_encoded_dim, ...
40.716418
92
0.615836
2,569
0.941716
0
0
0
0
0
0
316
0.115836
8129c2d37ff5ea88cc0452e98c6e15446ea19cc4
329
py
Python
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
2
2020-03-25T14:41:53.000Z
2021-04-08T05:38:02.000Z
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
null
null
null
python/molecular_diameter.py
wutobias/collection
fdac4ce5bb99c31115efdbed7db3316eea4b2826
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import parmed as pmd import numpy as np from scipy.spatial import distance if len(sys.argv) < 2: print "Usage: molecular_diameter.py <mymolecule.mol2>" exit(1) mol = pmd.load_file(sys.argv[1]) crds = mol.coordinates dist = distance.cdist(crds, crds, 'euclidean') print np.max(dist...
19.352941
55
0.735562
0
0
0
0
0
0
0
0
80
0.243161
812a80140e19ea007dd9ab25b6b57d63cc6eb659
2,425
py
Python
examples/text_classification/yelp_reviews_polarity/train.py
liorshk/simpletransformers
226cf4d11edf5157c1beafcc44aaa78f65ccc985
[ "Apache-2.0" ]
3,151
2019-10-05T11:14:44.000Z
2022-03-31T17:02:54.000Z
examples/text_classification/yelp_reviews_polarity/train.py
liorshk/simpletransformers
226cf4d11edf5157c1beafcc44aaa78f65ccc985
[ "Apache-2.0" ]
1,165
2019-10-05T14:48:55.000Z
2022-03-31T11:12:58.000Z
examples/text_classification/yelp_reviews_polarity/train.py
liorshk/simpletransformers
226cf4d11edf5157c1beafcc44aaa78f65ccc985
[ "Apache-2.0" ]
739
2019-10-06T15:11:54.000Z
2022-03-28T11:07:36.000Z
import sys import pandas as pd from simpletransformers.classification import ClassificationModel prefix = "data/" train_df = pd.read_csv(prefix + "train.csv", header=None) train_df.head() eval_df = pd.read_csv(prefix + "test.csv", header=None) eval_df.head() train_df[0] = (train_df[0] == 2).astype(int) eval_df[0]...
25.260417
80
0.68701
0
0
0
0
0
0
0
0
1,107
0.456495
812b4e30304f24bb277705592e38799b83099f91
1,049
py
Python
LoadGraph.py
mahdi-zafarmand/SNA
a7188a2ceb63355183e470648f6ae4fa90a22faa
[ "MIT" ]
null
null
null
LoadGraph.py
mahdi-zafarmand/SNA
a7188a2ceb63355183e470648f6ae4fa90a22faa
[ "MIT" ]
null
null
null
LoadGraph.py
mahdi-zafarmand/SNA
a7188a2ceb63355183e470648f6ae4fa90a22faa
[ "MIT" ]
1
2020-10-28T01:52:36.000Z
2020-10-28T01:52:36.000Z
import networkx as nx import os.path def load_graph(path, weighted=False, delimiter='\t', self_loop=False): graph = nx.Graph() if not os.path.isfile(path): print("Error: file " + path + " not found!") exit(-1) with open(path) as file: for line in file.readlines(): w = 1.0 line = line.split(delimiter) ...
20.98
70
0.625357
0
0
0
0
0
0
0
0
62
0.059104
812bc4e483e6787a26d9b7a22c0e31832c78af55
5,853
py
Python
mayan/apps/document_signatures/models.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_signatures/models.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_signatures/models.py
wan1869/dushuhu
934dd178e67140cffc6b9203e793fdf8bbc73a54
[ "Apache-2.0" ]
1
2021-04-30T09:44:14.000Z
2021-04-30T09:44:14.000Z
import logging import uuid from django.db import models from django.urls import reverse from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from model_utils.managers import InheritanceManager from mayan.apps.django_gpg.exceptions import VerificationError from mayan.ap...
34.02907
79
0.651973
5,115
0.873911
0
0
170
0.029045
0
0
1,145
0.195626
812c3f30e6e3ff5facc02e59cfdcff8d05e984ea
2,226
py
Python
scripts/sync_reports_config.py
ramezrawas/galaxy-1
c03748dd49c060a68d07bce56eae33e0ba154414
[ "CC-BY-3.0" ]
6
2018-11-03T22:43:35.000Z
2022-02-15T17:51:33.000Z
scripts/sync_reports_config.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
7
2016-12-07T22:19:37.000Z
2019-01-30T15:04:26.000Z
scripts/sync_reports_config.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
10
2017-04-10T21:40:22.000Z
2022-02-21T16:50:10.000Z
from ConfigParser import ConfigParser from sys import argv REPLACE_PROPERTIES = ["file_path", "database_connection", "new_file_path"] MAIN_SECTION = "app:main" def sync(): # Add or replace the relevant properites from galaxy.ini # into reports.ini reports_config_file = "config/reports.ini" if len(arg...
35.903226
88
0.700359
0
0
0
0
0
0
0
0
431
0.193621
812c923f7680b63727b8c0d8a0b724feb7e64f73
1,448
py
Python
src/gausskernel/dbmind/xtuner/test/test_ssh.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/gausskernel/dbmind/xtuner/test/test_ssh.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/gausskernel/dbmind/xtuner/test/test_ssh.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE IS PROVIDED ON AN "AS IS...
33.674419
108
0.631215
0
0
0
0
0
0
0
0
955
0.65953
812e0d88c6e6c1e7a35a42781edb6b394196778c
3,838
py
Python
models/utils.py
wyshi/Unsupervised-Structure-Learning
19b49320b46e5f7d990ab9e5b3054b331b86e59d
[ "Apache-2.0" ]
34
2019-06-25T06:21:03.000Z
2022-01-24T06:57:40.000Z
models/utils.py
wyshi/Unsupervised-Structure-Learning
19b49320b46e5f7d990ab9e5b3054b331b86e59d
[ "Apache-2.0" ]
3
2019-07-19T02:33:03.000Z
2021-11-03T09:06:25.000Z
models/utils.py
wyshi/Unsupervised-Structure-Learning
19b49320b46e5f7d990ab9e5b3054b331b86e59d
[ "Apache-2.0" ]
4
2019-06-25T06:46:12.000Z
2021-01-13T06:57:06.000Z
# Original work Copyright (C) 2017 Tiancheng Zhao, Carnegie Mellon University # Modified work Copyright 2018 Weiyan Shi. import tensorflow as tf import numpy as np from nltk.translate.bleu_score import sentence_bleu from nltk.translate.bleu_score import SmoothingFunction def get_bleu_stats(ref, hyps): scores = [...
38
132
0.680823
0
0
0
0
0
0
0
0
789
0.205576
812eae9e0a007577935e4a756403808aa1018593
4,927
py
Python
gluoncv/data/transforms/block.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
5,447
2018-04-25T18:02:51.000Z
2022-03-31T00:59:49.000Z
gluoncv/data/transforms/block.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,566
2018-04-25T21:14:04.000Z
2022-03-31T06:42:42.000Z
gluoncv/data/transforms/block.py
Kh4L/gluon-cv
849411ed56632cd854850b07142087d599f97dcb
[ "Apache-2.0" ]
1,345
2018-04-25T18:44:13.000Z
2022-03-30T19:32:53.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.496296
99
0.628983
3,869
0.785265
0
0
0
0
0
0
2,684
0.544753
812fdf7c80ff79f192233383d15152b1c334cad3
3,631
py
Python
explore.py
lribiere/explore-mit-bih-arrhythmia-db
44eb2601ed437cb9766ae9cfd3c3553bf108d4f1
[ "MIT" ]
3
2020-02-26T20:01:11.000Z
2020-06-24T17:44:11.000Z
explore.py
lribiere/explore-mit-bih-arrhythmia-db
44eb2601ed437cb9766ae9cfd3c3553bf108d4f1
[ "MIT" ]
2
2020-07-01T09:38:58.000Z
2020-07-01T09:40:02.000Z
explore.py
lribiere/explore-mit-bih-arrhythmia-db
44eb2601ed437cb9766ae9cfd3c3553bf108d4f1
[ "MIT" ]
null
null
null
import plotly.graph_objects as go import streamlit as st import pandas as pd from utils import * import glob import wfdb import os ANNOTATIONS_COL_NAME = 'annotations' ''' # MIT-BIH Arrhythmia DB Exploration ''' record_ids = [os.path.basename(file)[:-4] for file in glob.glob('data/*.dat')] if len(record_ids) == 0: ...
44.82716
79
0.619664
0
0
0
0
0
0
0
0
1,118
0.307904
81328ef0347d3a6ae301699943a67ef4f0701935
2,345
py
Python
release/stubs.min/System/__init___parts/CharEnumerator.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/CharEnumerator.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/__init___parts/CharEnumerator.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
class CharEnumerator(object): """ Supports iterating over a System.String object and reading its individual characters. This class cannot be inherited. """ def ZZZ(self): """hardcoded/mock instance of the class""" return CharEnumerator() instance=ZZZ() """hardcoded/returns an instance of the class""" de...
35
215
0.692964
2,339
0.997441
0
0
0
0
0
0
1,705
0.727079
8133672c14b4b385a9d7555f731ee05a987d9f73
143
py
Python
src/home_automation_hub/config.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
null
null
null
src/home_automation_hub/config.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
null
null
null
src/home_automation_hub/config.py
levidavis/py-home
3cc30e19d506824de9816ad9dbcfba4338a7dfa8
[ "MIT" ]
null
null
null
from .config_store import ConfigStore config = ConfigStore() config.set_mqtt_broker("mqtt", 1883) config.set_redis_config("redis", 6379, 0)
17.875
41
0.776224
0
0
0
0
0
0
0
0
13
0.090909
81338229b9f75f52ae6ffcf7ef860588b32f5b97
3,915
py
Python
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import socket as csocket from struct import pack,unpack from website.contrib.communication.models import * def enum(**enums): return type('Enum', (), enums) class Socket: Dommaine = enum(IP=csocket.AF_INET,LOCAL=csocket.AF_UNIX) Type = enum(TCP=csocket.SOCK_STREAM, UDP=csocket.SOCK...
29.659091
110
0.527458
3,125
0.798212
0
0
0
0
0
0
1,038
0.265134
81353ee4f1a632a7e8022d2ce8c431b95559fb7b
12,262
py
Python
traitarm/reconstruction/visualize_recon.py
hzi-bifo/Model-T
197b52f6fe9b73e0411dbfc66f6d2a43081f5697
[ "Apache-2.0" ]
1
2021-04-07T16:10:55.000Z
2021-04-07T16:10:55.000Z
traitarm/reconstruction/visualize_recon.py
hzi-bifo/Model-T
197b52f6fe9b73e0411dbfc66f6d2a43081f5697
[ "Apache-2.0" ]
null
null
null
traitarm/reconstruction/visualize_recon.py
hzi-bifo/Model-T
197b52f6fe9b73e0411dbfc66f6d2a43081f5697
[ "Apache-2.0" ]
null
null
null
import pandas as pd import ete2 from ete2 import faces, Tree, AttrFace, TreeStyle import pylab from matplotlib.colors import hex2color, rgb2hex, hsv_to_rgb, rgb_to_hsv kelly_colors_hex = [ 0xFFB300, # Vivid Yellow 0x803E75, # Strong Purple 0xFF6800, # Vivid Orange 0xA6BDD7, # Very Light Blue 0xC100...
52.178723
485
0.621921
0
0
0
0
0
0
0
0
3,461
0.282254
81367db3d2084fd41d74cdefdf3b14a53b5730ea
46,827
py
Python
scripts/misc/operator_condition_number_scipy.py
volpatto/firedrake_scripts
ba9c935bb0c9a6bbc6de69f476e42ad0ea8bb1c6
[ "MIT" ]
5
2019-01-19T14:18:51.000Z
2022-02-10T14:22:12.000Z
scripts/misc/operator_condition_number_scipy.py
volpatto/firedrake_scripts
ba9c935bb0c9a6bbc6de69f476e42ad0ea8bb1c6
[ "MIT" ]
null
null
null
scripts/misc/operator_condition_number_scipy.py
volpatto/firedrake_scripts
ba9c935bb0c9a6bbc6de69f476e42ad0ea8bb1c6
[ "MIT" ]
1
2021-06-14T07:32:26.000Z
2021-06-14T07:32:26.000Z
import attr from firedrake import * import numpy as np import matplotlib.pyplot as plt import matplotlib from scipy.linalg import svd from scipy.sparse.linalg import svds from scipy.sparse import csr_matrix from slepc4py import SLEPc import pandas as pd from tqdm import tqdm import os matplotlib.use('Agg') @attr.s c...
30.807237
114
0.617528
276
0.005894
0
0
284
0.006065
0
0
11,495
0.245478
81368cbcf7560067152788c0a732e279491b5a68
7,884
py
Python
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File :_time_domain_features.py @Time :2021/04/16 20:02:55 @Author :wlgls @Version :1.0 ''' import numpy as np def statistics(data, combined=True): """Statistical features, include Power, Mean, Std, 1st differece, Normalized 1st difference, 2nd difference, Nor...
29.977186
291
0.597793
0
0
0
0
0
0
0
0
4,824
0.611562
8137ad04173c8650a7a1905ad7cd6c799cdbd81c
39
py
Python
pymutual/__init__.py
kimballh/pymutual
7d7f588099eee7bdd669d613756509c6ab44a911
[ "MIT" ]
null
null
null
pymutual/__init__.py
kimballh/pymutual
7d7f588099eee7bdd669d613756509c6ab44a911
[ "MIT" ]
null
null
null
pymutual/__init__.py
kimballh/pymutual
7d7f588099eee7bdd669d613756509c6ab44a911
[ "MIT" ]
null
null
null
from .session import Session, MutualAPI
39
39
0.846154
0
0
0
0
0
0
0
0
0
0
81388e81430c58269d1e2c8e97af2f8dbcc4ac2d
936
py
Python
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
forms.py
Joshua-Barawa/pitches-IP
41d9d0d2fbecab50e82a4ee64a036952b8d785e1
[ "PostgreSQL", "Unlicense" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import InputRequired, Email, ValidationError from models import User class RegistrationForm(FlaskForm): email = StringField('Your Email Address', validators=[InputRequired(), Email()]) username ...
40.695652
84
0.746795
745
0.79594
0
0
0
0
0
0
134
0.143162
81399676f0bd08a3b07c20a3a444ab0c8669d9d3
1,064
py
Python
plugins/barracuda_waf/komand_barracuda_waf/actions/create_security_policy/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/barracuda_waf/komand_barracuda_waf/actions/create_security_policy/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/barracuda_waf/komand_barracuda_waf/actions/create_security_policy/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Creates a security policy with the default values" class Input: NAME = "name" class Output: ID = "id" class CreateSecurityPolicyInput(komand.Input): schema = json.loads(""" { "type": "o...
17.16129
80
0.566729
975
0.916353
0
0
0
0
0
0
620
0.582707
813a4523ca5ed1d20d9dca5c73420720f380885a
1,090
py
Python
examples/dhc/rule_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
2
2019-05-22T08:24:38.000Z
2020-12-04T13:36:30.000Z
examples/dhc/rule_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
null
null
null
examples/dhc/rule_example.py
fruttasecca/hay_checker
2bbf4e8e90e0abc590dd74080fb6e4f445056354
[ "MIT" ]
3
2018-09-15T13:40:40.000Z
2021-06-29T23:31:18.000Z
#!/usr/bin/python3 from pyspark.sql import SparkSession from haychecker.dhc.metrics import rule spark = SparkSession.builder.appName("rule_example").getOrCreate() df = spark.read.format("csv").option("header", "true").load("examples/resources/employees.csv") df.show() condition1 = {"column": "salary", "operator": ...
31.142857
95
0.678899
0
0
0
0
0
0
0
0
436
0.4
813a8ce209fa6c27b191963bd6e67321e4277566
10,579
py
Python
secure_message/common/utilities.py
uk-gov-mirror/ONSdigital.ras-secure-message
741eed651eea47dd1a13c7c93b1b1796584cdf2b
[ "MIT" ]
null
null
null
secure_message/common/utilities.py
uk-gov-mirror/ONSdigital.ras-secure-message
741eed651eea47dd1a13c7c93b1b1796584cdf2b
[ "MIT" ]
null
null
null
secure_message/common/utilities.py
uk-gov-mirror/ONSdigital.ras-secure-message
741eed651eea47dd1a13c7c93b1b1796584cdf2b
[ "MIT" ]
null
null
null
import collections import logging import urllib.parse from structlog import wrap_logger from secure_message.constants import MESSAGE_BY_ID_ENDPOINT, MESSAGE_LIST_ENDPOINT, MESSAGE_QUERY_LIMIT from secure_message.services.service_toggles import party, internal_user_service logger = wrap_logger(logging.getLogger(__nam...
43.714876
154
0.680121
0
0
0
0
0
0
0
0
4,636
0.438227
813b149e48d21390532f6bf57e32e5f1ed05f482
8,353
py
Python
notegame/games/nonogram/core/renderer.py
notechats/notegame
3d9538b98cb6b0b240956b1271e028b22458fc54
[ "Apache-2.0" ]
null
null
null
notegame/games/nonogram/core/renderer.py
notechats/notegame
3d9538b98cb6b0b240956b1271e028b22458fc54
[ "Apache-2.0" ]
null
null
null
notegame/games/nonogram/core/renderer.py
notechats/notegame
3d9538b98cb6b0b240956b1271e028b22458fc54
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines various renderers for the game of nonogram """ from abc import ABC from sys import stdout from notetool.tool.log import logger from six import integer_types, itervalues, text_type from ..utils.iter import max_safe, pad from ..utils.other import two_powers from .common import BOX, ...
27.386885
81
0.587932
7,670
0.918233
0
0
758
0.090746
0
0
1,893
0.226625
813bbe394d73b1fd28585f58879386377ceda809
9,047
py
Python
sympy/printing/lambdarepr.py
Carreau/sympy
168de33bb177936fa9517702b2c5a777b3989672
[ "BSD-3-Clause" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
sympy/printing/lambdarepr.py
Carreau/sympy
168de33bb177936fa9517702b2c5a777b3989672
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/lambdarepr.py
Carreau/sympy
168de33bb177936fa9517702b2c5a777b3989672
[ "BSD-3-Clause" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
from __future__ import print_function, division from .str import StrPrinter from sympy.utilities import default_sort_key class LambdaPrinter(StrPrinter): """ This printer converts expressions into strings that can be used by lambdify. """ def _print_MatrixBase(self, expr): return "%s(%s)...
34.139623
92
0.559191
8,638
0.954792
0
0
0
0
0
0
2,941
0.32508
813c2d5f4577a87860a81df5e212cf9b2d380367
1,690
py
Python
python/fill_na_v2.py
fredmell/CS229Project
b214127485ddc587b9fe3be253937ba8378f9db7
[ "MIT" ]
null
null
null
python/fill_na_v2.py
fredmell/CS229Project
b214127485ddc587b9fe3be253937ba8378f9db7
[ "MIT" ]
null
null
null
python/fill_na_v2.py
fredmell/CS229Project
b214127485ddc587b9fe3be253937ba8378f9db7
[ "MIT" ]
1
2020-06-01T00:36:06.000Z
2020-06-01T00:36:06.000Z
""" Fill na with most common of the whole column """ import numpy as np import pandas as pd import time import matplotlib.pyplot as plt from datetime import datetime import re from collections import Counter from statistics import median from tqdm import tqdm def find_most_common_value(element_list): for elemen...
23.472222
85
0.611243
0
0
0
0
0
0
0
0
186
0.110059
813cbfb2b0206a03eec11ec90ba51dbd9b92d6bd
3,071
py
Python
GUI Applications/calc.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
GUI Applications/calc.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
GUI Applications/calc.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
from tkinter import Tk from tkinter import Entry from tkinter import Button from tkinter import StringVar t=Tk() t.title("Tarun Jaiswal") t.geometry("425x300") t.resizable(0,0) t.configure(background="black")#back ground color a=StringVar() def show(c): a.set(a.get()+c) def equal(): x=a.get() a.set(eva...
33.021505
94
0.699772
0
0
0
0
0
0
0
0
518
0.168675
813cfc21850f486d6ac29f7b86826c89d492a555
41,687
py
Python
core/models.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
10
2020-04-30T12:04:35.000Z
2021-07-21T12:48:55.000Z
core/models.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
1,461
2020-01-23T18:20:26.000Z
2022-03-31T08:05:56.000Z
core/models.py
uktrade/great-cms
f13fa335ddcb925bc33a5fa096fe73ef7bdd351a
[ "MIT" ]
3
2020-04-07T20:11:36.000Z
2020-10-16T16:22:59.000Z
import hashlib import mimetypes from urllib.parse import unquote from django.conf import settings from django.core.exceptions import ValidationError from django.db import models from django.http import HttpResponseRedirect from django.template.loader import render_to_string from django.urls import reverse from django....
32.491816
120
0.614052
36,538
0.876484
0
0
12,500
0.299854
0
0
11,442
0.274474
813ec18cfeb4f9f63d67da715da440d160d1cd07
9,860
py
Python
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/transforms/transforms.py
dumpmemory/Research
30fd70ff331b3d9aeede0b71e7a691ed6c2b87b3
[ "Apache-2.0" ]
null
null
null
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/transforms/transforms.py
dumpmemory/Research
30fd70ff331b3d9aeede0b71e7a691ed6c2b87b3
[ "Apache-2.0" ]
null
null
null
CV/Effective Transformer-based Solution for RSNA Intracranial Hemorrhage Detection/easymia/transforms/transforms.py
dumpmemory/Research
30fd70ff331b3d9aeede0b71e7a691ed6c2b87b3
[ "Apache-2.0" ]
null
null
null
# -*-coding utf-8 -*- ########################################################################## # # Copyright (c) 2022 Baidu.com, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of th...
34.840989
136
0.596349
8,619
0.873252
0
0
8,823
0.893921
0
0
5,743
0.581864
813efba40d450227c03f83890923f36f0af07beb
1,370
py
Python
tests/ui/terms/test_views.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
6
2019-09-02T00:01:50.000Z
2021-11-04T08:23:40.000Z
tests/ui/terms/test_views.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
72
2019-09-04T18:52:35.000Z
2020-07-21T19:58:15.000Z
tests/ui/terms/test_views.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of menRva. # Copyright (C) 2018-present NU,FSM,GHSL. # # menRva is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Test terms views.py""" from cd2h_repo_project.modules.terms.views import ...
28.541667
77
0.642336
0
0
0
0
0
0
0
0
505
0.368613
813f340b009c015cf7a900f2f532f4b131c3414d
1,766
py
Python
main.py
alamin3637k/Searcher
bb948b373d1bd1261930a47c37fa9210a98e9ef3
[ "MIT" ]
1
2021-12-13T06:30:54.000Z
2021-12-13T06:30:54.000Z
main.py
alamin3637k/Searcher
bb948b373d1bd1261930a47c37fa9210a98e9ef3
[ "MIT" ]
null
null
null
main.py
alamin3637k/Searcher
bb948b373d1bd1261930a47c37fa9210a98e9ef3
[ "MIT" ]
null
null
null
import webbrowser import wikipedia import requests def yt_search(search: str): webbrowser.open_new_tab(f"https://www.youtube.com/results?search_query={search}") def google_search(search: str): webbrowser.open_new_tab(f"https://www.google.com/search?q={search}") def bing_search(search: str): webbrowser.op...
30.448276
85
0.701586
0
0
0
0
0
0
0
0
588
0.332956
813ffa71bdba0211d608c2b11546d97e7ed15b73
9,307
py
Python
hw1.py
ptsurko/coursera_crypt
ec952800c441a9b07ac427045851285fee8c6543
[ "MIT" ]
null
null
null
hw1.py
ptsurko/coursera_crypt
ec952800c441a9b07ac427045851285fee8c6543
[ "MIT" ]
null
null
null
hw1.py
ptsurko/coursera_crypt
ec952800c441a9b07ac427045851285fee8c6543
[ "MIT" ]
null
null
null
import string from timeit import itertools s1 = '315c4eeaa8b5f8aaf9174145bf43e1784b8fa00dc71d885a804e5ee9fa40b16349c146fb778cdf2d3aff021dfff5b403b510d0d0455468aeb98622b137dae857553ccd8883a7bc37520e06e515d22c954eba5025b8cc57ee59418ce7dc6bc41556bdb36bbca3e8774301fbcaa3b83b220809560987815f65286764703de0f3d524400a19b15961...
44.745192
379
0.659933
0
0
469
0.050392
0
0
0
0
3,631
0.390136
81411abc782bf9b1f6f3f22e5119bf12fc73f345
5,777
py
Python
moe/bandit/ucb/ucb_interface.py
dstoeckel/MOE
5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c
[ "Apache-2.0" ]
966
2015-01-10T05:27:30.000Z
2022-03-26T21:04:36.000Z
moe/bandit/ucb/ucb_interface.py
dstoeckel/MOE
5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c
[ "Apache-2.0" ]
46
2015-01-16T22:33:08.000Z
2019-09-04T16:33:27.000Z
moe/bandit/ucb/ucb_interface.py
dstoeckel/MOE
5b5a6a2c6c3cf47320126f7f5894e2a83e347f5c
[ "Apache-2.0" ]
143
2015-01-07T03:57:19.000Z
2022-02-28T01:10:45.000Z
# -*- coding: utf-8 -*- """Classes (Python) to compute the Bandit UCB (Upper Confidence Bound) arm allocation and choosing the arm to pull next. See :mod:`moe.bandit.bandit_interface` for further details on bandit. """ import copy from abc import abstractmethod from moe.bandit.bandit_interface import BanditInterfac...
41.561151
171
0.701229
5,348
0.92574
0
0
1,356
0.234724
0
0
4,048
0.70071
8141278e8aec7ffc16f0909af9f0862c9b9fc0df
296
py
Python
Hedge/Shell.py
RonaldoAPSD/Hedge
2a1550ea38a0384f39ed3541c8a91f9ca57f5a64
[ "Apache-2.0" ]
2
2020-08-16T01:42:32.000Z
2020-08-28T21:10:03.000Z
Hedge/Shell.py
RonaldoAPSD/Hedge
2a1550ea38a0384f39ed3541c8a91f9ca57f5a64
[ "Apache-2.0" ]
null
null
null
Hedge/Shell.py
RonaldoAPSD/Hedge
2a1550ea38a0384f39ed3541c8a91f9ca57f5a64
[ "Apache-2.0" ]
null
null
null
import Hedge while True: text = input('Hedge > ') if text.strip() == "": continue result, error = Hedge.run('<stdin>', text) if (error): print(error.asString()) elif result: if len(result.elements) == 1: print(repr(result.elements[0])) else: print(repr(result))
19.733333
44
0.60473
0
0
0
0
0
0
0
0
21
0.070946
81433f45286c6ca7869898f63194549b86792d2f
14,420
py
Python
yt/frontends/enzo/io.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
1
2021-05-20T13:03:57.000Z
2021-05-20T13:03:57.000Z
yt/frontends/enzo/io.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
31
2017-04-19T21:07:18.000Z
2017-04-20T01:08:43.000Z
yt/frontends/enzo/io.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
1
2021-04-21T07:01:51.000Z
2021-04-21T07:01:51.000Z
import numpy as np from yt.geometry.selection_routines import GridSelector from yt.utilities.io_handler import BaseIOHandler from yt.utilities.logger import ytLogger as mylog from yt.utilities.on_demand_imports import _h5py as h5py _convert_mass = ("particle_mass", "mass") _particle_position_names = {} class IOHan...
38.867925
85
0.499792
14,098
0.97767
5,781
0.400902
67
0.004646
0
0
2,104
0.145908
81434230700195b62a622200418ac9737e7bcf37
1,275
py
Python
cidr_enum.py
arisada/cidr_enum
1908f20ac15a83738fc1ff74ff17a7280bec769f
[ "BSD-2-Clause" ]
null
null
null
cidr_enum.py
arisada/cidr_enum
1908f20ac15a83738fc1ff74ff17a7280bec769f
[ "BSD-2-Clause" ]
null
null
null
cidr_enum.py
arisada/cidr_enum
1908f20ac15a83738fc1ff74ff17a7280bec769f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ cidr_enum.py is a very simple tool to help enumerate IP ranges when being used with other tools """ import argparse import netaddr def enum_ranges(ranges, do_sort): cidrs=[] for r in ranges: try: cidrs.append(netaddr.IPNetwork(r)) except Exception as e: print("Error:", e) re...
25
95
0.677647
0
0
0
0
0
0
0
0
395
0.309804
81434e0f75802811d789efae93fbec2c949725b8
7,469
py
Python
configs/k400-fixmatch-tg-alignment-videos-ptv-simclr/8gpu/r3d_r18_8x8x1_45e_k400_rgb_offlinetg_1percent_align0123_1clip_no_contrast_precisebn_ptv.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
configs/k400-fixmatch-tg-alignment-videos-ptv-simclr/8gpu/r3d_r18_8x8x1_45e_k400_rgb_offlinetg_1percent_align0123_1clip_no_contrast_precisebn_ptv.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
configs/k400-fixmatch-tg-alignment-videos-ptv-simclr/8gpu/r3d_r18_8x8x1_45e_k400_rgb_offlinetg_1percent_align0123_1clip_no_contrast_precisebn_ptv.py
lambert-x/video_semisup
8ff44343bb34485f8ad08d50ca4d8de22e122c1d
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='Semi_AppSup_TempSup_SimCLR_Crossclip_PTV_Recognizer3D', backbone=dict( type='ResNet3d', depth=18, pretrained=None, pretrained2d=False, norm_eval=False, conv_cfg=dict(type='Conv3d'), norm_cfg=dict(type='SyncBN', requires...
33.95
126
0.664078
0
0
0
0
0
0
0
0
1,972
0.264025
8143df98ebce82100584c4d53ea2d04b4dccafa6
3,351
py
Python
experiments/rpi/gertboard/dtoa.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
experiments/rpi/gertboard/dtoa.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
1
2021-03-20T05:17:03.000Z
2021-03-20T05:17:03.000Z
experiments/rpi/gertboard/dtoa.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 # Python 2.7 version by Alex Eames of http://RasPi.TV # functionally equivalent to the Gertboard dtoa test by Gert Jan van Loo & Myra VanInwegen # Use at your own risk - I'm pretty sure the code is harmless, but check it yourself. # This will not work unless you have installed py-spidev as in the ...
45.90411
110
0.664279
0
0
0
0
0
0
0
0
2,110
0.629663
d48ba98f343e96c0da8c5db735d6d98bd7a3e3d3
5,370
py
Python
modules/statusbar.py
themilkman/GitGutter
355b4480e7e1507fe1f9ae1ad9eca9649400a76c
[ "MIT" ]
null
null
null
modules/statusbar.py
themilkman/GitGutter
355b4480e7e1507fe1f9ae1ad9eca9649400a76c
[ "MIT" ]
null
null
null
modules/statusbar.py
themilkman/GitGutter
355b4480e7e1507fe1f9ae1ad9eca9649400a76c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sublime from . import blame from . import templates class SimpleStatusBarTemplate(object): """A simple template class with the same interface as jinja2's one.""" # a list of variables used by this template variables = frozenset([ 'repo', 'branch', 'compare', 'inser...
33.354037
78
0.570577
5,284
0.983253
0
0
1,488
0.276889
0
0
2,865
0.533122
d48c84bf13aa3330a9778d95947b20e6d95dfadf
194
py
Python
polls/tests.py
bunya017/Django-Polls-App
7b71ac9d1ffb66518e1d0345bc0f11ee5907c1be
[ "MIT" ]
null
null
null
polls/tests.py
bunya017/Django-Polls-App
7b71ac9d1ffb66518e1d0345bc0f11ee5907c1be
[ "MIT" ]
4
2020-06-05T18:14:33.000Z
2022-01-13T00:45:05.000Z
polls/tests.py
bunya017/Django-Polls-App
7b71ac9d1ffb66518e1d0345bc0f11ee5907c1be
[ "MIT" ]
1
2018-05-23T11:36:36.000Z
2018-05-23T11:36:36.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.test import TestCase class RandomTestCase(TestCase): def test_one_plus_one1(self): self.assertEqual(1+1, 2)
14.923077
39
0.742268
91
0.469072
0
0
0
0
0
0
23
0.118557
d48e8d3a34a96d0df0efeeb8e07e14864978dc32
1,115
py
Python
test.py
LeonHodgesAustin/video_stream_processor
8014705edc37599716eb1320d46c99136fe3e262
[ "BSD-3-Clause" ]
null
null
null
test.py
LeonHodgesAustin/video_stream_processor
8014705edc37599716eb1320d46c99136fe3e262
[ "BSD-3-Clause" ]
null
null
null
test.py
LeonHodgesAustin/video_stream_processor
8014705edc37599716eb1320d46c99136fe3e262
[ "BSD-3-Clause" ]
null
null
null
# import logging # import hercules.lib.util.hercules_logging as l # from hercules.lib.util import sso as sso import opencv2 as cv2 import urllib import numpy as np # log = l.setup_logging(__name__) def main(args=None): # username, passowrd = sso.get_login_credentials("WATCHER") # Open a sample video available...
27.875
102
0.6287
0
0
0
0
0
0
0
0
609
0.546188
d48ee17b3f638f1522292d248a4e2094be89792e
1,244
py
Python
ribbon/exceptions.py
cloutiertyler/RibbonGraph
000864dd0ee33da4ed44af2f4bd1f1a83d5a1ba4
[ "MIT" ]
2
2017-09-20T17:49:09.000Z
2017-09-20T17:55:43.000Z
ribbon/exceptions.py
cloutiertyler/RibbonGraph
000864dd0ee33da4ed44af2f4bd1f1a83d5a1ba4
[ "MIT" ]
null
null
null
ribbon/exceptions.py
cloutiertyler/RibbonGraph
000864dd0ee33da4ed44af2f4bd1f1a83d5a1ba4
[ "MIT" ]
null
null
null
from rest_framework.exceptions import APIException from rest_framework import status class GraphAPIError(APIException): """Base class for exceptions in this module.""" pass class NodeNotFoundError(GraphAPIError): status_code = status.HTTP_404_NOT_FOUND def __init__(self, id): self.id = id ...
28.272727
103
0.762058
1,137
0.913987
0
0
0
0
0
0
197
0.15836
d48f61239e116e08f567623063b6adca1886ef91
3,792
py
Python
kobe-trading-bot/app.py
LeonardoM011/kobe-trading-bot
83a84ee0fb8dab3d9ae174be91e96de6d5f2d823
[ "MIT" ]
null
null
null
kobe-trading-bot/app.py
LeonardoM011/kobe-trading-bot
83a84ee0fb8dab3d9ae174be91e96de6d5f2d823
[ "MIT" ]
null
null
null
kobe-trading-bot/app.py
LeonardoM011/kobe-trading-bot
83a84ee0fb8dab3d9ae174be91e96de6d5f2d823
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Crypto trading bot using binance api # Author: LeonardoM011<[email protected]> # Created on 2021-02-05 21:56 # Set constants here: DELTA_TIME = 300 # How long can we check for setting up new trade (in seconds) # ---------------------- # Imports: import os import sys...
36.461538
219
0.620781
0
0
0
0
0
0
0
0
1,784
0.470464
d4910ca755a73b263041c7cd3c681f6108d61901
13,061
py
Python
imported_files/plotting_edh01.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
imported_files/plotting_edh01.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
imported_files/plotting_edh01.py
SoumyaShreeram/Locating_AGN_in_DM_halos
1cfbee69b2c000faee4ecb199d65c3235afbed42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Plotting.py for notebook 01_Exploring_DM_Halos This python file contains all the functions used for plotting graphs and maps in the 1st notebook (.ipynb) of the repository: 01. Exploring parameters in DM halos and sub-halos Script written by: Soumya Shreeram Project supervised by Johan Com...
41.996785
193
0.674298
0
0
0
0
0
0
0
0
5,117
0.391777
d49130f40117c9ae1a6661a583616d08186beb75
2,239
py
Python
asv_bench/benchmarks/omnisci/io.py
Rubtsowa/modin
6550939753c76e896ef2bfd65bb9468d6ad161d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
asv_bench/benchmarks/omnisci/io.py
Rubtsowa/modin
6550939753c76e896ef2bfd65bb9468d6ad161d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
asv_bench/benchmarks/omnisci/io.py
Rubtsowa/modin
6550939753c76e896ef2bfd65bb9468d6ad161d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
33.924242
87
0.663243
1,140
0.509156
0
0
0
0
0
0
1,000
0.446628
d4913a27e63bc4d452b162e06717cf43b3cf28c7
7,730
py
Python
benchmarks/rotation/rotated_cifar.py
ypeng22/ProgLearn
671ff6a03c156bab3eedbd9e112705eeabd59da7
[ "MIT" ]
1
2021-02-02T03:18:46.000Z
2021-02-02T03:18:46.000Z
benchmarks/rotation/rotated_cifar.py
ypeng22/ProgLearn
671ff6a03c156bab3eedbd9e112705eeabd59da7
[ "MIT" ]
null
null
null
benchmarks/rotation/rotated_cifar.py
ypeng22/ProgLearn
671ff6a03c156bab3eedbd9e112705eeabd59da7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import random import pickle from skimage.transform import rotate from scipy import ndimage from skimage.util import img_as_ubyte from joblib import Parallel, delayed from sklearn.ensemble.forest import _generate_unsampled_indices from sklearn.ensemble.forest import _generate_sample_indic...
40.684211
139
0.625356
0
0
0
0
0
0
0
0
411
0.053169
d4925b374376cf8c3d1b5d0d5ddbaf90cc28fafd
3,763
py
Python
sklearn_pandas/transformers/monitor.py
toddbenanzer/sklearn_pandas
36e24c55ef4829aa261963201c346869097d4931
[ "MIT" ]
null
null
null
sklearn_pandas/transformers/monitor.py
toddbenanzer/sklearn_pandas
36e24c55ef4829aa261963201c346869097d4931
[ "MIT" ]
null
null
null
sklearn_pandas/transformers/monitor.py
toddbenanzer/sklearn_pandas
36e24c55ef4829aa261963201c346869097d4931
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin, clone from sklearn_pandas.util import validate_dataframe class MonitorMixin(object): def print_message(self, message): if self.logfile: with open(self.logfile, "a") as fout: fout.w...
38.010101
140
0.543981
3,599
0.956418
0
0
0
0
0
0
482
0.128089
d4928bbc94c4225d834897ba151f5d1146c73aa7
10,842
py
Python
Packs/ProofpointThreatResponse/Integrations/ProofpointThreatResponse/ProofpointThreatResponse_test.py
cbrake1/content
5b031129f98935c492056675eeee0fefcacbd87b
[ "MIT" ]
1
2020-11-25T00:42:27.000Z
2020-11-25T00:42:27.000Z
Packs/ProofpointThreatResponse/Integrations/ProofpointThreatResponse/ProofpointThreatResponse_test.py
cbrake1/content
5b031129f98935c492056675eeee0fefcacbd87b
[ "MIT" ]
22
2022-03-23T10:39:16.000Z
2022-03-31T11:31:37.000Z
Packs/ProofpointThreatResponse/Integrations/ProofpointThreatResponse/ProofpointThreatResponse_test.py
cbrake1/content
5b031129f98935c492056675eeee0fefcacbd87b
[ "MIT" ]
null
null
null
import pytest from CommonServerPython import * from ProofpointThreatResponse import create_incident_field_context, get_emails_context, pass_sources_list_filter, \ pass_abuse_disposition_filter, filter_incidents, prepare_ingest_alert_request_body, \ get_incidents_batch_by_time_request, get_new_incidents, get_tim...
32.558559
128
0.603394
0
0
0
0
1,283
0.118336
0
0
5,027
0.46366
d492fd9d00437e877a4501964cd431bb0546c438
3,522
py
Python
macholib/macho_methname.py
l1haoyuan/macholib
48c59841e2ca5aa308eab67f72faed384a2c0723
[ "MIT" ]
null
null
null
macholib/macho_methname.py
l1haoyuan/macholib
48c59841e2ca5aa308eab67f72faed384a2c0723
[ "MIT" ]
null
null
null
macholib/macho_methname.py
l1haoyuan/macholib
48c59841e2ca5aa308eab67f72faed384a2c0723
[ "MIT" ]
null
null
null
import sys import os import json from enum import Enum from .mach_o import LC_SYMTAB from macholib import MachO from macholib import mach_o from shutil import copy2 from shutil import SameFileError class ReplaceType(Enum): objc_methname = 1 symbol_table = 2 def replace_in_bytes(method_bytes, name_dict, type...
30.102564
111
0.635434
67
0.019023
0
0
0
0
0
0
402
0.11414
d493c88653dfc14a4b19dd601e82fe9c227bb1db
123
py
Python
archive/data-processing/archive/features/sd1.py
FloFincke/affective-chat
241c2b555541968f7e5e70b022fdb71102aed510
[ "MIT" ]
null
null
null
archive/data-processing/archive/features/sd1.py
FloFincke/affective-chat
241c2b555541968f7e5e70b022fdb71102aed510
[ "MIT" ]
10
2020-01-28T22:17:46.000Z
2022-02-09T23:30:57.000Z
archive/data-processing/archive/features/sd1.py
FloFincke/affective-chat
241c2b555541968f7e5e70b022fdb71102aed510
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math import numpy as np def sd1(rr): sdnn = np.std(rr) return math.sqrt(0.5 * sdnn * sdnn)
15.375
36
0.674797
0
0
0
0
0
0
0
0
21
0.170732
d493cf85a9cb37a46e9d38eab9f5e238cbe228b0
1,515
py
Python
forms/snippets/delete_watch.py
soheilv/python-samples
4443431261dbcd88408dcc89d5702eeb1ac18ffd
[ "Apache-2.0" ]
255
2020-10-16T16:27:54.000Z
2022-03-31T14:26:29.000Z
forms/snippets/delete_watch.py
soheilv/python-samples
4443431261dbcd88408dcc89d5702eeb1ac18ffd
[ "Apache-2.0" ]
58
2020-10-16T14:24:27.000Z
2022-03-19T13:27:27.000Z
forms/snippets/delete_watch.py
soheilv/python-samples
4443431261dbcd88408dcc89d5702eeb1ac18ffd
[ "Apache-2.0" ]
316
2020-10-16T17:06:00.000Z
2022-03-30T19:18:31.000Z
# Copyright 2021 Google LLC # # 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, ...
36.95122
118
0.770297
0
0
0
0
0
0
0
0
908
0.59934
d49496c9213106a0918889d0e3a6aa3992ff1641
1,829
py
Python
data_structures/disjoint_set/disjoint_set.py
egagraha/python-algorithm
07a6a745b4ebddc93ab7c10b205c75b2427ac1fb
[ "MIT" ]
null
null
null
data_structures/disjoint_set/disjoint_set.py
egagraha/python-algorithm
07a6a745b4ebddc93ab7c10b205c75b2427ac1fb
[ "MIT" ]
null
null
null
data_structures/disjoint_set/disjoint_set.py
egagraha/python-algorithm
07a6a745b4ebddc93ab7c10b205c75b2427ac1fb
[ "MIT" ]
null
null
null
""" Disjoint set. Reference: https://en.wikipedia.org/wiki/Disjoint-set_data_structure """ class Node: def __init__(self, data: int) -> None: self.data = data self.rank: int self.parent: Node def make_set(x: Node) -> None: """ Make x as a set. """ # rank is the di...
21.517647
73
0.556042
128
0.069984
0
0
0
0
0
0
509
0.278294
d494b4ecc12674b178766fec7fe530877b75b17d
1,391
py
Python
cw_EPR.py
tkeller12/spin_physics
271f3081bc8ca87b159ed3e3494dbd0ffdea8fa5
[ "MIT" ]
null
null
null
cw_EPR.py
tkeller12/spin_physics
271f3081bc8ca87b159ed3e3494dbd0ffdea8fa5
[ "MIT" ]
null
null
null
cw_EPR.py
tkeller12/spin_physics
271f3081bc8ca87b159ed3e3494dbd0ffdea8fa5
[ "MIT" ]
null
null
null
# Timothy Keller # S = 1/2, I = 1/2 # Spin 1/2 electron coupled to spin 1/2 nuclei import numpy as np from scipy.linalg import expm from matplotlib.pylab import * from matplotlib import cm sigma_x = 0.5*np.r_[[[0, 1],[1, 0]]] sigma_y = 0.5*np.r_[[[0,-1j],[1j, 0]]] sigma_z = 0.5*np.r_[[[1, 0],[0, -1]]] Identity = np.e...
21.075758
113
0.62473
0
0
0
0
0
0
0
0
358
0.257369
d494b73023a37a848160341332c0ded7a2a24518
1,787
py
Python
V2RaycSpider0825/MiddleKey/VMes_IO.py
TOMJERRY23333/V2RayCloudSpider
0647db8c7b67e4393d1f65dadc08d7e16c1dc324
[ "MIT" ]
1
2020-09-16T12:59:32.000Z
2020-09-16T12:59:32.000Z
V2RaycSpider0825/MiddleKey/VMes_IO.py
TOMJERRY23333/V2RayCloudSpider
0647db8c7b67e4393d1f65dadc08d7e16c1dc324
[ "MIT" ]
null
null
null
V2RaycSpider0825/MiddleKey/VMes_IO.py
TOMJERRY23333/V2RayCloudSpider
0647db8c7b67e4393d1f65dadc08d7e16c1dc324
[ "MIT" ]
null
null
null
from spiderNest.preIntro import * path_ = os.path.dirname(os.path.dirname(__file__)) + '/dataBase/log_information.csv' def save_login_info(VMess, class_): """ VMess入库 class_: ssr or v2ray """ now = str(datetime.now()).split('.')[0] with open(path_, 'a', encoding='utf-8', newline='') as f: ...
28.365079
84
0.525462
0
0
0
0
0
0
0
0
400
0.214247
d494cc4fdc66704176b1bdb14e2b8bf08f6d120c
29,585
py
Python
paddlespeech/s2t/frontend/audio.py
AK391/PaddleSpeech
8cdbe3a6c0fe447e54cfbcfd82139d2869f5fc49
[ "Apache-2.0" ]
null
null
null
paddlespeech/s2t/frontend/audio.py
AK391/PaddleSpeech
8cdbe3a6c0fe447e54cfbcfd82139d2869f5fc49
[ "Apache-2.0" ]
null
null
null
paddlespeech/s2t/frontend/audio.py
AK391/PaddleSpeech
8cdbe3a6c0fe447e54cfbcfd82139d2869f5fc49
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
41.204735
84
0.598378
28,658
0.968667
0
0
8,449
0.285584
0
0
16,252
0.549332
d49613fe0b2e81e10d722fc25f0c3fd9aa1b0a51
4,119
py
Python
tornado_debugger/debug.py
bhch/tornado-debugger
4adeead7a45506eda34fc8d1e91dd32acc8cfe4e
[ "BSD-3-Clause" ]
1
2022-03-21T11:52:30.000Z
2022-03-21T11:52:30.000Z
tornado_debugger/debug.py
bhch/tornado-debugger
4adeead7a45506eda34fc8d1e91dd32acc8cfe4e
[ "BSD-3-Clause" ]
null
null
null
tornado_debugger/debug.py
bhch/tornado-debugger
4adeead7a45506eda34fc8d1e91dd32acc8cfe4e
[ "BSD-3-Clause" ]
null
null
null
import os.path import re import sys import traceback from pprint import pformat import tornado from tornado import template SENSITIVE_SETTINGS_RE = re.compile( 'api|key|pass|salt|secret|signature|token', flags=re.IGNORECASE ) class ExceptionReporter: def __init__(self, exc_info, handler): self....
31.442748
77
0.571255
3,710
0.900704
0
0
0
0
0
0
489
0.118718
d496568fcdd0e4278b5c17076444af1d96c25b39
2,426
py
Python
base/pylib/seq_iter.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
1
2017-12-10T00:05:54.000Z
2017-12-10T00:05:54.000Z
base/pylib/seq_iter.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
null
null
null
base/pylib/seq_iter.py
jpolitz/lambda-py-paper
746ef63fc1123714b4adaf78119028afbea7bd76
[ "Apache-2.0" ]
null
null
null
class SeqIter: def __init__(self,l): self.l = l self.i = 0 self.stop = False def __len__(self): return len(self.l) def __list__(self): l = [] while True: try: l.append(self.__next__()) except StopIteration: ...
22.462963
58
0.490107
1,597
0.658285
0
0
0
0
0
0
135
0.055647
d496c50445b160bee65444aedffd5152e26bcfa5
1,542
py
Python
caseworker/open_general_licences/enums.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
caseworker/open_general_licences/enums.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
caseworker/open_general_licences/enums.py
code-review-doctor/lite-frontend-1
cb3b885bb389ea33ef003c916bea7b03a36d86bb
[ "MIT" ]
null
null
null
from lite_content.lite_internal_frontend.open_general_licences import ( OGEL_DESCRIPTION, OGTCL_DESCRIPTION, OGTL_DESCRIPTION, ) from lite_forms.components import Option class OpenGeneralExportLicences: class OpenGeneralLicence: def __init__(self, id, name, description, acronym): s...
29.09434
117
0.647211
1,357
0.880026
0
0
489
0.317121
0
0
262
0.169909
d496c9cfdd316aad01a20acdae3c9c7e998fb11f
887
py
Python
Matrix/Python/rotatematrix.py
pratika1505/DSA-Path-And-Important-Questions
a86a0774f0abf5151c852afd2bbf67a5368125c8
[ "MIT" ]
26
2021-08-04T17:03:26.000Z
2022-03-08T08:43:44.000Z
Matrix/Python/rotatematrix.py
pratika1505/DSA-Path-And-Important-Questions
a86a0774f0abf5151c852afd2bbf67a5368125c8
[ "MIT" ]
25
2021-08-04T16:58:33.000Z
2021-11-01T05:26:19.000Z
Matrix/Python/rotatematrix.py
pratika1505/DSA-Path-And-Important-Questions
a86a0774f0abf5151c852afd2bbf67a5368125c8
[ "MIT" ]
16
2021-08-14T20:15:24.000Z
2022-02-23T11:04:06.000Z
# -*- coding: utf-8 -*- """RotateMatrix.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1LX-dZFuQCyBXDNVosTp0MHaZZxoc5T4I """ #Function to rotate matrix by 90 degree def rotate(mat): # `N × N` matrix N = len(mat) # Transpose the m...
19.282609
77
0.500564
0
0
0
0
0
0
0
0
333
0.375
d49731577779af0d944350934f9656734de31c66
319
py
Python
sort.py
EYH0602/FP_Workshop
866b180b411c1ef439e1a2d039c6d6333e91cd39
[ "MIT" ]
1
2021-10-21T02:15:03.000Z
2021-10-21T02:15:03.000Z
sort.py
EYH0602/FP_Workshop
866b180b411c1ef439e1a2d039c6d6333e91cd39
[ "MIT" ]
null
null
null
sort.py
EYH0602/FP_Workshop
866b180b411c1ef439e1a2d039c6d6333e91cd39
[ "MIT" ]
null
null
null
def quicksort(xs): if len(xs) == 0: return [] pivot = xs[0] xs = xs[1:] left = [x for x in xs if x <= pivot] right = [x for x in xs if x > pivot] res = quicksort(left) res.append(pivot) res += quicksort(right) return res xs = [1, 3, 2, 4, 5, 2] sorted_xs = quicksort(xs)
17.722222
40
0.526646
0
0
0
0
0
0
0
0
0
0
d49737aed7a2d03e7911f282302b8766a0010d5f
9,372
py
Python
bddtests/steps/bdd_test_util.py
TarantulaTechnology/fabric5
6da971177ab7d74f1e1cfa6f7fc73e75768e5686
[ "Apache-2.0" ]
4
2018-01-02T04:26:16.000Z
2018-10-25T08:51:06.000Z
bddtests/steps/bdd_test_util.py
TarantulaTechnology/fabric5
6da971177ab7d74f1e1cfa6f7fc73e75768e5686
[ "Apache-2.0" ]
null
null
null
bddtests/steps/bdd_test_util.py
TarantulaTechnology/fabric5
6da971177ab7d74f1e1cfa6f7fc73e75768e5686
[ "Apache-2.0" ]
9
2016-11-17T07:40:04.000Z
2020-03-16T16:11:39.000Z
# Copyright IBM Corp. 2016 All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.747826
189
0.714789
426
0.045455
0
0
0
0
0
0
3,200
0.341443
d4973b8aa4822ac46365e7bcf3331ae6bf592f03
13,868
py
Python
1.0.0/hp/dict.py
cefect/SOFDA0
62c5566d0f388a5fd76a070ceb5ee3e38b0d7463
[ "MIT" ]
null
null
null
1.0.0/hp/dict.py
cefect/SOFDA0
62c5566d0f388a5fd76a070ceb5ee3e38b0d7463
[ "MIT" ]
null
null
null
1.0.0/hp/dict.py
cefect/SOFDA0
62c5566d0f388a5fd76a070ceb5ee3e38b0d7463
[ "MIT" ]
null
null
null
''' Created on Mar 6, 2018 @author: cef hp functions for workign with dictionaries ''' import logging, os, sys, math, copy, inspect from collections import OrderedDict from weakref import WeakValueDictionary as wdict import numpy as np import hp.basic mod_logger = logging.getLogger(__name__) #...
36.687831
113
0.391477
2,439
0.175873
0
0
0
0
0
0
7,388
0.532737
d49b6df009b775a63c890cb5c9656357e0580e52
3,532
py
Python
Core/pre.py
Cyber-Dioxide/CyberPhish
bc2e39d8612ef657d481cdd40d676983f7bf190c
[ "Apache-2.0" ]
9
2021-12-28T08:17:41.000Z
2022-03-20T17:49:21.000Z
Core/pre.py
Cyber-Dioxide/CyberPhish
bc2e39d8612ef657d481cdd40d676983f7bf190c
[ "Apache-2.0" ]
null
null
null
Core/pre.py
Cyber-Dioxide/CyberPhish
bc2e39d8612ef657d481cdd40d676983f7bf190c
[ "Apache-2.0" ]
1
2021-12-27T08:13:50.000Z
2021-12-27T08:13:50.000Z
import os import random try: from colorama import Fore, Style except ModuleNotFoundError: os.system("pip install colorama") from urllib.request import urlopen from Core.helper.color import green, white, blue, red, start, alert Version = "2.2" yellow = ("\033[1;33;40m") def connected(host='http://duckduckgo.com'):...
49.746479
144
0.473386
0
0
0
0
0
0
0
0
2,016
0.475921
d49bc7fba6d65f4ec2d4a29ecf9e4f75e3ad24d1
10,163
py
Python
automatoes/authorize.py
candango/automatoes
fbfd01cfaa2c36e23a7251e333ef3fa86ef4bff9
[ "Apache-2.0" ]
13
2019-10-08T14:57:19.000Z
2022-01-12T10:01:30.000Z
automatoes/authorize.py
piraz/automatoes
fc6a20c317a8ac863bfb054c9541e310e0431e5f
[ "Apache-2.0" ]
125
2019-10-08T15:04:17.000Z
2022-03-29T19:27:12.000Z
automatoes/authorize.py
candango/automatoes
fbfd01cfaa2c36e23a7251e333ef3fa86ef4bff9
[ "Apache-2.0" ]
8
2019-10-14T15:18:57.000Z
2021-04-21T10:41:08.000Z
#!/usr/bin/env python # # Copyright 2019-2020 Flavio Garcia # Copyright 2016-2017 Veeti Paananen under MIT License # # 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...
39.239382
79
0.546394
0
0
0
0
0
0
0
0
2,991
0.294303
d49c1e0bb83e7c39fdece7542b9e2c9d25d03288
5,832
py
Python
rllib/agents/dqn/simple_q_torch_policy.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
3
2020-12-12T05:10:44.000Z
2021-04-12T21:52:47.000Z
rllib/agents/dqn/simple_q_torch_policy.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
227
2021-10-01T08:00:01.000Z
2021-12-28T16:47:26.000Z
rllib/agents/dqn/simple_q_torch_policy.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
1
2020-12-02T06:26:20.000Z
2020-12-02T06:26:20.000Z
"""PyTorch policy class used for Simple Q-Learning""" import logging from typing import Dict, Tuple import gym import ray from ray.rllib.agents.dqn.simple_q_tf_policy import ( build_q_models, compute_q_values, get_distribution_inputs_and_class) from ray.rllib.models.modelv2 import ModelV2 from ray.rllib.models.to...
35.779141
79
0.710905
898
0.153978
0
0
300
0.05144
0
0
1,822
0.312414
d49d0bb7116e3f907afff13646fa7b6a2ac9aa13
66,873
py
Python
viphoneme/T2IPA.py
NoahDrisort/ViSV2TTS
bea6fa1f85527c824c85986d8b7bfa3e3efd120a
[ "MIT" ]
1
2021-09-23T15:46:14.000Z
2021-09-23T15:46:14.000Z
viphoneme/T2IPA.py
v-nhandt21/ViSV2TTS
bea6fa1f85527c824c85986d8b7bfa3e3efd120a
[ "MIT" ]
null
null
null
viphoneme/T2IPA.py
v-nhandt21/ViSV2TTS
bea6fa1f85527c824c85986d8b7bfa3e3efd120a
[ "MIT" ]
null
null
null
#Grapheme Rime_tone=[ "a","ă","â","e","ê","i","o","ô","ơ","u","ư","y","iê","oa","oă","oe","oo","uâ","uê","uô","uơ","uy","ươ","uyê","yê", #blank "á","ắ","ấ","é","ế","í","ó","ố","ớ","ú","ứ","ý","iế","óa","oắ","óe","oó","uấ","uế","uố","ướ","úy","ướ","uyế","yế", #grave ...
56.243061
821
0.384759
0
0
0
0
0
0
0
0
39,744
0.543798
d49d9d1e84095417ae691e1ba67e4e09f88e34fb
505
py
Python
taskengine/sessions.py
retmas-dv/deftcore
23052549e8948bbedfb958a96683b84b46820b09
[ "Apache-2.0" ]
null
null
null
taskengine/sessions.py
retmas-dv/deftcore
23052549e8948bbedfb958a96683b84b46820b09
[ "Apache-2.0" ]
9
2019-05-24T08:10:59.000Z
2020-07-23T13:20:35.000Z
taskengine/sessions.py
retmas-dv/deftcore
23052549e8948bbedfb958a96683b84b46820b09
[ "Apache-2.0" ]
null
null
null
__author__ = 'Dmitry Golubkov' from django.contrib.sessions.base_session import AbstractBaseSession from django.contrib.sessions.backends.db import SessionStore as DBStore class CustomSession(AbstractBaseSession): @classmethod def get_session_store_class(cls): return SessionStore class Meta: ...
24.047619
71
0.742574
326
0.645545
0
0
149
0.29505
0
0
59
0.116832
d49e9592c8658910d6180947346f6788ba5fdb29
498
py
Python
tests/assignments/test_assign7.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
tests/assignments/test_assign7.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
1
2018-03-08T19:46:08.000Z
2018-03-08T20:00:47.000Z
tests/assignments/test_assign7.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
import unittest #write the import for function for assignment7 sum_list_values from src.assignments.assignment7 import sum_list_values class Test_Assign7(unittest.TestCase): def sample_test(self): self.assertEqual(1,1) #create a test for the sum_list_values function with list elements: # bill 23 ...
29.294118
71
0.736948
332
0.666667
0
0
0
0
0
0
180
0.361446
d49ef05ecf83504c528cca6ff6237271a4f54a56
4,957
py
Python
setec/__init__.py
kgriffs/setec
c6701ffd757cdfe1cfb9c3919b0fd3aa02396f54
[ "Apache-2.0" ]
null
null
null
setec/__init__.py
kgriffs/setec
c6701ffd757cdfe1cfb9c3919b0fd3aa02396f54
[ "Apache-2.0" ]
null
null
null
setec/__init__.py
kgriffs/setec
c6701ffd757cdfe1cfb9c3919b0fd3aa02396f54
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 by Kurt Griffiths # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
29.158824
86
0.656042
4,195
0.845596
0
0
571
0.115098
0
0
2,584
0.520863
d49f62cf4c67498959f387338aa3e5ee4e7a2d59
382
py
Python
blender/arm/logicnode/native/LN_detect_mobile_browser.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/native/LN_detect_mobile_browser.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/native/LN_detect_mobile_browser.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class DetectMobileBrowserNode(ArmLogicTreeNode): """Determines the mobile browser or not (works only for web browsers).""" bl_idname = 'LNDetectMobileBrowserNode' bl_label = 'Detect Mobile Browser' arm_version = 1 def init(self, context): super(DetectMobileBrowserNode, sel...
34.727273
74
0.777487
343
0.897906
0
0
0
0
0
0
147
0.384817
d4a074467479872c4d6bb6745cf590f7c740594e
29,959
py
Python
corehq/apps/dump_reload/tests/test_sql_dump_load.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/dump_reload/tests/test_sql_dump_load.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/dump_reload/tests/test_sql_dump_load.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
import inspect import json import uuid from collections import Counter from datetime import datetime from io import StringIO import mock from django.contrib.admin.utils import NestedObjects from django.db import transaction, IntegrityError from django.db.models.signals import post_delete, post_save from django.test im...
38.310742
124
0.647118
27,033
0.902333
0
0
6,880
0.229647
0
0
2,394
0.079909
d4a08e8d4977972540a2be8547db892cc6d2f3ab
4,561
py
Python
tests/keras/test_activations.py
the-moliver/keras
4fa7e5d454dd4f3f33f1d756a2a8659f2e789141
[ "MIT" ]
150
2017-01-15T15:32:23.000Z
2021-11-23T15:07:55.000Z
tests/keras/test_activations.py
wdw110/keras
4fa7e5d454dd4f3f33f1d756a2a8659f2e789141
[ "MIT" ]
40
2017-01-15T15:41:05.000Z
2020-11-16T13:15:50.000Z
tests/keras/test_activations.py
wdw110/keras
4fa7e5d454dd4f3f33f1d756a2a8659f2e789141
[ "MIT" ]
38
2017-01-15T22:04:06.000Z
2019-11-01T22:35:35.000Z
import pytest import numpy as np from numpy.testing import assert_allclose from keras import backend as K from keras import activations def get_standard_values(): ''' These are just a set of floats used for testing the activation functions, and are useful in multiple tests. ''' return np.array([[...
26.062857
79
0.635825
0
0
0
0
0
0
0
0
959
0.210261
d4a0dbe903b46f2ac15b321d70b46c5431fada6b
4,932
py
Python
scripts/H5toXMF.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
scripts/H5toXMF.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
scripts/H5toXMF.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
#import numpy #import os #from xml.etree.ElementTree import * import tables #from Xdmf import * def H5toXMF(basename,size,start,finaltime,stride): # Open XMF files for step in range(start,finaltime+1,stride): XMFfile = open(basename+"."+str(step)+".xmf","w") XMFfile.write(r"""<?xml version="1.0...
42.153846
172
0.491484
0
0
0
0
0
0
0
0
1,978
0.401054
d4a110091d70cdb8869da346b91adb821033a70e
102,577
py
Python
pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CISCO-TRUSTSEC-POLICY-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-TRUSTSEC-POLICY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-TRUSTSEC-POLICY-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:14:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3....
166.79187
10,104
0.796192
0
0
0
0
0
0
0
0
41,396
0.40356
d4a19a6793c7b81c31ff51744f9dee445aa534f8
1,685
py
Python
tests/test_cli/test_generate/test_generate.py
lrahmani/agents-aea
9bd1d51530fc21bf41b5adea031cda19a94b048b
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_generate/test_generate.py
lrahmani/agents-aea
9bd1d51530fc21bf41b5adea031cda19a94b048b
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_generate/test_generate.py
lrahmani/agents-aea
9bd1d51530fc21bf41b5adea031cda19a94b048b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
37.444444
80
0.665282
346
0.205341
0
0
590
0.350148
0
0
1,111
0.659347
d4a21ef2eb21f79e91184165f8bb407caaf1dcb1
17,126
py
Python
sphinx/ext/napoleon/__init__.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
3
2019-06-11T09:42:08.000Z
2020-03-10T15:57:09.000Z
sphinx/ext/napoleon/__init__.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
12
2019-01-09T15:43:57.000Z
2020-01-21T10:46:30.000Z
sphinx/ext/napoleon/__init__.py
PeerHerholz/smobsc
db34d2bb96b80579bd4a3f4c198a6b524c5a134a
[ "BSD-2-Clause" ]
10
2019-02-04T11:49:35.000Z
2020-03-21T13:32:20.000Z
""" sphinx.ext.napoleon ~~~~~~~~~~~~~~~~~~~ Support for NumPy and Google style docstrings. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from sphinx import __display_version__ as __version__ from sphinx.application import Sphinx from ...
36.515991
88
0.608782
9,082
0.530305
0
0
0
0
0
0
12,988
0.758379
d4a24c39597d568e3ab31f3730cb741839a01aff
2,390
py
Python
plugins/similarity/rdkit/tanimoto/lbvs-entry.py
skodapetr/viset
87863ed6cde63392b2d503ceda53bb2cea367d69
[ "MIT" ]
1
2018-12-28T19:36:04.000Z
2018-12-28T19:36:04.000Z
plugins/similarity/rdkit/tanimoto/lbvs-entry.py
skodapetr/viset
87863ed6cde63392b2d503ceda53bb2cea367d69
[ "MIT" ]
14
2017-11-15T17:45:58.000Z
2018-12-10T17:52:23.000Z
plugins/similarity/rdkit/tanimoto/lbvs-entry.py
skodapetr/viset
87863ed6cde63392b2d503ceda53bb2cea367d69
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from rdkit import DataStructs import plugin_api __license__ = "X11" class LbvsEntry(plugin_api.PluginInterface): """ Compute Tanimoto similarity. """ def __init__(self): self.stream = None self.counter = 0 self.first_...
29.506173
77
0.599582
2,259
0.945188
0
0
643
0.269038
0
0
276
0.115481
d4a3f90c44e54f8024d6bee8196a0b29bb2aed61
2,849
py
Python
mall_spider/spiders/actions/proxy_service.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
12
2019-06-06T12:23:08.000Z
2021-06-15T17:50:07.000Z
mall_spider/spiders/actions/proxy_service.py
524243642/mall_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
3
2021-03-31T19:02:47.000Z
2022-02-11T03:43:15.000Z
mall_spider/spiders/actions/proxy_service.py
524243642/taobao_spider
9cdaed1c7a67fc1f35ee2af2e18313cedf3b1e5e
[ "Unlicense" ]
5
2019-09-17T03:55:56.000Z
2020-12-18T03:34:03.000Z
# coding: utf-8 import time from config.config_loader import global_config from mall_spider.spiders.actions.context import Context from mall_spider.spiders.actions.direct_proxy_action import DirectProxyAction __proxy_service = None class ProxyService(object): proxies_set = set() proxies_list = ['https://' +...
33.127907
208
0.601264
2,462
0.864163
0
0
0
0
0
0
383
0.134433
d4a46b8215ad96def234df7df255d9ac5c89bb08
965
py
Python
app/weather_tests.py
joedanz/flask-weather
fe35aa359da6f5d7f942d97837403e153b5c5ede
[ "Apache-2.0" ]
1
2017-08-25T18:55:11.000Z
2017-08-25T18:55:11.000Z
app/weather_tests.py
joedanz/flask-weather
fe35aa359da6f5d7f942d97837403e153b5c5ede
[ "Apache-2.0" ]
null
null
null
app/weather_tests.py
joedanz/flask-weather
fe35aa359da6f5d7f942d97837403e153b5c5ede
[ "Apache-2.0" ]
null
null
null
import os import weather import datetime import unittest import tempfile class WeatherTestCase(unittest.TestCase): def setUp(self): self.db_fd, weather.app.config['DATABASE'] = tempfile.mkstemp() weather.app.config['TESTING'] = True self.app = weather.app.test_client() weather.init...
26.805556
71
0.631088
842
0.872539
0
0
0
0
0
0
201
0.20829
d4a58432909af220904a476edcdbf9bcba8bc8c1
984
py
Python
modules/sensors/Activator.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
5
2018-11-27T15:15:00.000Z
2022-02-10T21:44:13.000Z
modules/sensors/Activator.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
2
2018-10-20T15:48:40.000Z
2018-11-20T05:11:33.000Z
modules/sensors/Activator.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
1
2020-02-07T12:44:47.000Z
2020-02-07T12:44:47.000Z
import asyncio class Activator: def __init__(self, name, packet_stream=None): self.ps = None self.name = name self.future = None self.data = 0 self.state = '' if packet_stream: self.set_packet_stream(packet_stream) @_core.module_cmd def wait_activator(self): pass @_core.module_cmd def check...
24
66
0.705285
968
0.98374
0
0
236
0.239837
0
0
149
0.151423
d4a5dfe986967f5b7fa8e3f7e5dcaa1ed0f98f18
7,779
py
Python
examples/retrieval/evaluation/sparse/evaluate_deepct.py
ArthurCamara/beir
2739990b719f2d4814d88473cf9965d92d4f4c18
[ "Apache-2.0" ]
24
2022-03-20T18:48:52.000Z
2022-03-31T08:28:42.000Z
examples/retrieval/evaluation/sparse/evaluate_deepct.py
ArthurCamara/beir
2739990b719f2d4814d88473cf9965d92d4f4c18
[ "Apache-2.0" ]
9
2022-03-19T14:50:30.000Z
2022-03-30T17:31:18.000Z
examples/retrieval/evaluation/sparse/evaluate_deepct.py
ArthurCamara/beir
2739990b719f2d4814d88473cf9965d92d4f4c18
[ "Apache-2.0" ]
3
2022-03-25T15:45:14.000Z
2022-03-25T17:51:23.000Z
""" This example shows how to evaluate DeepCT (using Anserini) in BEIR. For more details on DeepCT, refer here: https://arxiv.org/abs/1910.10687 The original DeepCT repository is not modularised and only works with Tensorflow 1.x (1.15). We modified the DeepCT repository to work with Tensorflow latest (2.x). We do not...
56.781022
189
0.655354
0
0
0
0
0
0
0
0
4,363
0.560869
d4a684609779826c5d7b8e2a668f0007ffd391fe
3,018
py
Python
Examples/Space Truss - Nodal Load.py
AmirHosseinNamadchi/PyNite
8cc1fe3262e1efe029c6860394d2436601272e33
[ "MIT" ]
2
2022-02-26T23:11:19.000Z
2022-02-26T23:11:21.000Z
Examples/Space Truss - Nodal Load.py
AmirHosseinNamadchi/PyNite
8cc1fe3262e1efe029c6860394d2436601272e33
[ "MIT" ]
null
null
null
Examples/Space Truss - Nodal Load.py
AmirHosseinNamadchi/PyNite
8cc1fe3262e1efe029c6860394d2436601272e33
[ "MIT" ]
2
2020-08-27T15:36:42.000Z
2020-10-02T00:29:22.000Z
# Engineering Mechanics: Statics, 4th Edition # Bedford and Fowler # Problem 6.64 # Units for this model are meters and kilonewtons # Import 'FEModel3D' and 'Visualization' from 'PyNite' from PyNite import FEModel3D from PyNite import Visualization # Create a new model truss = FEModel3D() # Define the nodes truss.Ad...
44.382353
142
0.674619
0
0
0
0
0
0
0
0
1,297
0.429755
d4a6c416bd8a2d26fc2585b919cf37090ef128d8
322
py
Python
Using Yagmail to make sending emails easier.py
CodeMaster7000/Sending-Emails-in-Python
2ec44f6520a6b98508c8adf372a191f2577fbf98
[ "MIT" ]
1
2021-12-23T15:42:01.000Z
2021-12-23T15:42:01.000Z
Using Yagmail to make sending emails easier.py
CodeMaster7000/Sending-Emails-in-Python
2ec44f6520a6b98508c8adf372a191f2577fbf98
[ "MIT" ]
null
null
null
Using Yagmail to make sending emails easier.py
CodeMaster7000/Sending-Emails-in-Python
2ec44f6520a6b98508c8adf372a191f2577fbf98
[ "MIT" ]
null
null
null
import yagmail receiver = "[email protected]" #Receiver's gmail address body = "Hello there from Yagmail" filename = "document.pdf" yag = yagmail.SMTP("[email protected]")#Your gmail address yag.send( to=receiver, subject="Yagmail test (attachment included", contents=body, attachments=filename, )...
23
54
0.689441
0
0
0
0
0
0
0
0
151
0.468944
d4a6cec9904df1ff0e2230e88f7f8978eeccd5f8
5,064
py
Python
pycad/py_src/transformations.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
pycad/py_src/transformations.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
pycad/py_src/transformations.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
29.788235
124
0.610585
3,461
0.683452
0
0
0
0
0
0
2,225
0.439376
d4a6efea0d126676c34a41838cc4fe1e41395646
1,116
py
Python
example/complex_scalar_star_solver.py
ThomasHelfer/BosonStar
5442a6e6171122a3ba1d6b079e6483ab72aa7338
[ "MIT" ]
2
2021-04-07T13:20:11.000Z
2021-04-07T17:11:25.000Z
example/complex_scalar_star_solver.py
ThomasHelfer/BosonStar
5442a6e6171122a3ba1d6b079e6483ab72aa7338
[ "MIT" ]
1
2021-06-14T15:40:25.000Z
2021-06-14T15:40:25.000Z
example/complex_scalar_star_solver.py
ThomasHelfer/BosonStar
5442a6e6171122a3ba1d6b079e6483ab72aa7338
[ "MIT" ]
null
null
null
from bosonstar.ComplexBosonStar import Complex_Boson_Star # ===================== # All imporntnat definitions # ===================== # Physics defintions phi0 = 0.40 # centeral phi D = 5.0 # Dimension (total not only spacial) Lambda = -0.2 # Cosmological constant # Solver definitions Rst...
24.26087
78
0.580645
0
0
0
0
0
0
0
0
537
0.481183
d4a71c335f605cc7723cb3705f2699bfe1e1693b
796
py
Python
setup.py
ouyhlan/fastNLP
cac13311e28c1e8e3c866d50656173650eb5c7a1
[ "Apache-2.0" ]
2,693
2018-03-08T03:09:20.000Z
2022-03-30T07:38:42.000Z
setup.py
ouyhlan/fastNLP
cac13311e28c1e8e3c866d50656173650eb5c7a1
[ "Apache-2.0" ]
291
2018-07-21T07:43:17.000Z
2022-03-07T13:06:58.000Z
setup.py
ouyhlan/fastNLP
cac13311e28c1e8e3c866d50656173650eb5c7a1
[ "Apache-2.0" ]
514
2018-03-09T06:54:25.000Z
2022-03-26T20:11:44.000Z
#!/usr/bin/env python # coding=utf-8 from setuptools import setup, find_packages with open('README.md', encoding='utf-8') as f: readme = f.read() with open('LICENSE', encoding='utf-8') as f: license = f.read() with open('requirements.txt', encoding='utf-8') as f: reqs = f.read() pkgs = [p for p in find_...
26.533333
90
0.675879
0
0
0
0
0
0
0
0
289
0.363065
d4a7c3329ad1568f426144783b7f79e1a58585b3
855
py
Python
clients/client/python/ory_client/__init__.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/__init__.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/__init__.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.187 Contact: [email protected] ...
29.482759
194
0.803509
0
0
0
0
0
0
0
0
443
0.518129
d4a7d95a9f223064052da15a9a7a9eecfe46cfa7
3,810
py
Python
atmosphere/custom_activity/base_class.py
ambiata/atmosphere-python-sdk
48880a8553000cdea59d63b0fba49e1f0f482784
[ "MIT" ]
null
null
null
atmosphere/custom_activity/base_class.py
ambiata/atmosphere-python-sdk
48880a8553000cdea59d63b0fba49e1f0f482784
[ "MIT" ]
9
2021-02-21T21:53:03.000Z
2021-11-05T06:06:55.000Z
atmosphere/custom_activity/base_class.py
ambiata/atmosphere-python-sdk
48880a8553000cdea59d63b0fba49e1f0f482784
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Tuple from requests import Response from .pydantic_models import (AppliedExclusionConditionsResponse, BiasAttributeConfigListResponse, ComputeRewardResponse, DefaultPredictionResponse, ...
36.634615
87
0.684777
3,364
0.88294
0
0
1,461
0.383465
0
0
1,540
0.404199
d4a7f2382cdb35d8940e5dd478b2dac3b5b10bd0
752
py
Python
Module1/file3.py
modulo16/PfNE
9706afc42c44dcfd1490e5ac074156f41e5515a8
[ "Unlicense" ]
null
null
null
Module1/file3.py
modulo16/PfNE
9706afc42c44dcfd1490e5ac074156f41e5515a8
[ "Unlicense" ]
null
null
null
Module1/file3.py
modulo16/PfNE
9706afc42c44dcfd1490e5ac074156f41e5515a8
[ "Unlicense" ]
null
null
null
from __future__ import print_function, unicode_literals #Ensures Unicode is used for all strings. my_str = 'whatever' #Shows the String type, which should be unicode type(my_str) #declare string: ip_addr = '192.168.1.1' #check it with boolean:(True) ip_addr == '192.168.1.1' #(false) ip_addr == '10.1.1.1' #is this su...
18.8
76
0.731383
0
0
0
0
0
0
0
0
506
0.672872
d4acef5631789f4b877955db52847e8e212a8725
10,411
py
Python
pp_io_plugins/pp_kbddriver_plus.py
arcticmatter/pipresents-beep
e5945f929b47249f19b0cb3433a138e874b592db
[ "CNRI-Python", "CECILL-B" ]
null
null
null
pp_io_plugins/pp_kbddriver_plus.py
arcticmatter/pipresents-beep
e5945f929b47249f19b0cb3433a138e874b592db
[ "CNRI-Python", "CECILL-B" ]
null
null
null
pp_io_plugins/pp_kbddriver_plus.py
arcticmatter/pipresents-beep
e5945f929b47249f19b0cb3433a138e874b592db
[ "CNRI-Python", "CECILL-B" ]
null
null
null
#enhanced keyboard driver import copy import os import configparser from pp_displaymanager import DisplayManager class pp_kbddriver_plus(object): # control list items NAME=0 # symbolic name for input and output DIRECTION = 1 # in/out MATCH = 2 # for input the charac...
41.979839
134
0.589761
9,722
0.93382
0
0
0
0
0
0
3,606
0.346364
d4ade5ab9af89265fbd2d849b58156e138f3d82c
452
py
Python
grocery/migrations/0003_alter_item_comments.py
akshay-kapase/shopping
7bf3bac4a78d07bca9a9f9d44d85e11bb826a366
[ "MIT" ]
null
null
null
grocery/migrations/0003_alter_item_comments.py
akshay-kapase/shopping
7bf3bac4a78d07bca9a9f9d44d85e11bb826a366
[ "MIT" ]
null
null
null
grocery/migrations/0003_alter_item_comments.py
akshay-kapase/shopping
7bf3bac4a78d07bca9a9f9d44d85e11bb826a366
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-03 15:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('grocery', '0002_alter_item_comments'), ] operations = [ migrations.AlterField( model_name='item', name='comments', ...
22.6
79
0.606195
359
0.794248
0
0
0
0
0
0
104
0.230088
d4ae07ad4070643d0ba3b0f74c8b5ba6215fad3c
2,770
py
Python
projects/objects/buildings/protos/textures/colored_textures/textures_generator.py
yjf18340/webots
60d441c362031ab8fde120cc0cd97bdb1a31a3d5
[ "Apache-2.0" ]
1
2019-11-13T08:12:02.000Z
2019-11-13T08:12:02.000Z
projects/objects/buildings/protos/textures/colored_textures/textures_generator.py
chinakwy/webots
7c35a359848bafe81fe0229ac2ed587528f4c73e
[ "Apache-2.0" ]
null
null
null
projects/objects/buildings/protos/textures/colored_textures/textures_generator.py
chinakwy/webots
7c35a359848bafe81fe0229ac2ed587528f4c73e
[ "Apache-2.0" ]
1
2020-09-25T02:01:45.000Z
2020-09-25T02:01:45.000Z
#!/usr/bin/env python # Copyright 1996-2019 Cyberbotics Ltd. # # 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 applica...
35.063291
110
0.605415
0
0
0
0
0
0
0
0
1,247
0.450181
d4af2a44bf54fabe00a0ec0f2c572fb0bf043633
92
py
Python
tutorial/test_env.py
viz4biz/PyDataNYC2015
066154ea9f1837c355e6108a28b85889f3020da3
[ "Apache-2.0" ]
11
2015-11-11T13:57:21.000Z
2019-08-14T15:53:43.000Z
tutorial/test_env.py
viz4biz/PyDataNYC2015
066154ea9f1837c355e6108a28b85889f3020da3
[ "Apache-2.0" ]
null
null
null
tutorial/test_env.py
viz4biz/PyDataNYC2015
066154ea9f1837c355e6108a28b85889f3020da3
[ "Apache-2.0" ]
6
2015-11-11T13:57:25.000Z
2018-09-12T07:53:03.000Z
""" test local env """ import os for k, v in os.environ.iteritems(): print k, '=', v
9.2
35
0.565217
0
0
0
0
0
0
0
0
25
0.271739
d4b0acbd3ae55e6638c516e22ca4f69932aebab2
27,844
py
Python
project2/marriage.py
filipefborba/MarriageNSFG
d550301fbb9d80ddabf391a6168d2c8636113ed9
[ "MIT" ]
null
null
null
project2/marriage.py
filipefborba/MarriageNSFG
d550301fbb9d80ddabf391a6168d2c8636113ed9
[ "MIT" ]
null
null
null
project2/marriage.py
filipefborba/MarriageNSFG
d550301fbb9d80ddabf391a6168d2c8636113ed9
[ "MIT" ]
null
null
null
"""This file contains code for use with "Think Stats", by Allen B. Downey, available from greenteapress.com Copyright 2014 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division import bisect import numpy as np import pandas as pd import scipy.sta...
29.064718
79
0.599196
0
0
0
0
0
0
0
0
9,958
0.357635
d4b13f250b052bca7bffe7a5880d063d7c169a7e
3,955
py
Python
xfel/merging/application/reflection_table_utils.py
ErwinP/cctbx_project
58f9fb5ed38c7391510e892f0ca9520467b692c1
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/merging/application/reflection_table_utils.py
ErwinP/cctbx_project
58f9fb5ed38c7391510e892f0ca9520467b692c1
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/merging/application/reflection_table_utils.py
ErwinP/cctbx_project
58f9fb5ed38c7391510e892f0ca9520467b692c1
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function from six.moves import range from dials.array_family import flex import math class reflection_table_utils(object): @staticmethod def get_next_hkl_reflection_table(reflections): '''Generate asu hkl slices from an asu hkl-sorted reflection table'''...
40.357143
147
0.683439
3,812
0.963843
521
0.131732
3,751
0.94842
0
0
1,175
0.297092
d4b1cf0c1cabef461b1902ca1dbcbf5165c73bc9
45,496
py
Python
rpython/memory/test/test_transformed_gc.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
1
2019-11-25T10:52:01.000Z
2019-11-25T10:52:01.000Z
rpython/memory/test/test_transformed_gc.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
null
null
null
rpython/memory/test/test_transformed_gc.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
null
null
null
import py import inspect from rpython.rlib.objectmodel import compute_hash, compute_identity_hash from rpython.translator.c import gc from rpython.annotator import model as annmodel from rpython.rtyper.llannotation import SomePtr from rpython.rtyper.lltypesystem import lltype, llmemory, rffi, llgroup from rpython.memo...
31.904628
93
0.512638
43,828
0.963337
0
0
654
0.014375
0
0
4,859
0.106801