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
8e34ebaa15e43dca37d0fd1c2a7556fa0314b835
1,185
py
Python
test/test_stack_with_max_value.py
kisliakovsky/structures
19969470a7e9b150b077082cc8ca0c2fc9be279e
[ "MIT" ]
null
null
null
test/test_stack_with_max_value.py
kisliakovsky/structures
19969470a7e9b150b077082cc8ca0c2fc9be279e
[ "MIT" ]
null
null
null
test/test_stack_with_max_value.py
kisliakovsky/structures
19969470a7e9b150b077082cc8ca0c2fc9be279e
[ "MIT" ]
null
null
null
from unittest import TestCase from src.stack import StackWithMaxValue
26.333333
52
0.598312
8e3551f6bd6564aaf9191610b3f1370f6459443d
974
py
Python
faceQuality/get_quality.py
awesome-archive/MaskInsightface
b5cad2b330aa2134a7e4aba28af88a6f0fb7905f
[ "Apache-2.0" ]
269
2019-08-20T09:39:44.000Z
2022-03-12T09:45:29.000Z
faceQuality/get_quality.py
jianqiangq/MaskInsightface
b5cad2b330aa2134a7e4aba28af88a6f0fb7905f
[ "Apache-2.0" ]
25
2019-08-09T03:58:03.000Z
2021-12-27T08:22:20.000Z
faceQuality/get_quality.py
jianqiangq/MaskInsightface
b5cad2b330aa2134a7e4aba28af88a6f0fb7905f
[ "Apache-2.0" ]
64
2019-08-22T08:39:27.000Z
2022-03-28T14:02:46.000Z
# -*- coding: utf-8 -*- from keras.models import load_model import numpy as np import os import cv2 from FaceQNet import load_Qnet_model, face_quality # Loading the pretrained model model = load_Qnet_model() IMG_PATH = '/home/sai/YANG/image/video/nanning/haha' dir = os.listdir(IMG_PATH) count = len(dir) print('count:...
31.419355
80
0.649897
8e35eae710a8b76331f1d686a7885d235eff3bd9
408
py
Python
shotify/imgrepo/migrations/0003_alter_image_image_src.py
moeamadou753/shopify-fall-2021
16d91fc6bdfbfc45bede5867dfdf3c9620bb03c7
[ "MIT" ]
null
null
null
shotify/imgrepo/migrations/0003_alter_image_image_src.py
moeamadou753/shopify-fall-2021
16d91fc6bdfbfc45bede5867dfdf3c9620bb03c7
[ "MIT" ]
null
null
null
shotify/imgrepo/migrations/0003_alter_image_image_src.py
moeamadou753/shopify-fall-2021
16d91fc6bdfbfc45bede5867dfdf3c9620bb03c7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-10 04:54 from django.db import migrations, models
21.473684
70
0.607843
8e374597f99698c564c2ac1ac181852d53c1b70c
962
py
Python
flask/harmonisation/street_pattern.py
Artelys/Safer-Roads
ba9eb4b2c0f02c40142caa612ed7998c7ee01155
[ "MIT" ]
null
null
null
flask/harmonisation/street_pattern.py
Artelys/Safer-Roads
ba9eb4b2c0f02c40142caa612ed7998c7ee01155
[ "MIT" ]
null
null
null
flask/harmonisation/street_pattern.py
Artelys/Safer-Roads
ba9eb4b2c0f02c40142caa612ed7998c7ee01155
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 31 11:53:09 2020 @author: aboutet """
27.485714
113
0.548857
8e384904539153730293d550a277564d6b2e9cc9
865
py
Python
shrike-examples/tests/test_pipelines.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
3
2021-07-27T16:28:51.000Z
2021-11-15T18:29:02.000Z
shrike-examples/tests/test_pipelines.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
null
null
null
shrike-examples/tests/test_pipelines.py
lynochka/azure-ml-problem-sets
e7e69de763444c5603e4455e35e69e917081a4cc
[ "MIT" ]
7
2021-08-09T15:04:03.000Z
2022-03-09T05:48:56.000Z
""" PyTest suite for testing all runnable pipelines. """ import sys from unittest.mock import patch # To-Do: import your pipeline class ### Pipeline validation tests (integration tests) def test_demo_subgraph_build_local(pipeline_config_path="pipelines/config"): """ Tests the subgraph demo graph by running the ...
34.6
143
0.684393
8e3a21a413a7266a07a6dd162f70fc95c0ea081b
597
py
Python
apps/home/migrations/0004_results.py
gwhong917/A_C_C
1cd75a2e439f86bcbf1e6d9e1ac454f7dd276540
[ "MIT" ]
null
null
null
apps/home/migrations/0004_results.py
gwhong917/A_C_C
1cd75a2e439f86bcbf1e6d9e1ac454f7dd276540
[ "MIT" ]
null
null
null
apps/home/migrations/0004_results.py
gwhong917/A_C_C
1cd75a2e439f86bcbf1e6d9e1ac454f7dd276540
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2022-02-28 16:55 from django.db import migrations, models
27.136364
114
0.58459
8e3a75b2271028360ac22ac73e19608d706d63fc
7,031
py
Python
notebooks/presentation/styling.py
flatironinstitute/binary_classification_metrics
5cceacfa815265849d84ea6eb4d6e084e35f3f07
[ "BSD-2-Clause" ]
1
2021-09-23T01:10:58.000Z
2021-09-23T01:10:58.000Z
notebooks/presentation/styling.py
flatironinstitute/binary_classification_metrics
5cceacfa815265849d84ea6eb4d6e084e35f3f07
[ "BSD-2-Clause" ]
null
null
null
notebooks/presentation/styling.py
flatironinstitute/binary_classification_metrics
5cceacfa815265849d84ea6eb4d6e084e35f3f07
[ "BSD-2-Clause" ]
1
2021-09-23T01:11:06.000Z
2021-09-23T01:11:06.000Z
style_string = """ <style> .container { width:100% !important; } .hit { border-style: dotted; border-width: 20px; border-color: #ddd; color: black; background-color: white; } .miss { border-style: solid; border-width: 20px; border-color: black; ...
22.827922
65
0.420993
8e3c0bc941eeabc934aad40a54e2b344f07060ad
2,570
py
Python
app/ui.py
jessicalee127/DineCision
6e74e9ca229f01d6bdf01bd158c48f165b0dc835
[ "MIT" ]
null
null
null
app/ui.py
jessicalee127/DineCision
6e74e9ca229f01d6bdf01bd158c48f165b0dc835
[ "MIT" ]
3
2018-06-21T14:28:25.000Z
2018-08-06T16:56:00.000Z
app/ui.py
jessicalee127/DineCision
6e74e9ca229f01d6bdf01bd158c48f165b0dc835
[ "MIT" ]
4
2018-06-21T02:30:07.000Z
2020-02-10T21:08:20.000Z
from flask import Flask, request, render_template, flash, redirect, url_for from wtforms import Form, TextField, TextAreaField, validators, StringField, SubmitField from wtforms.validators import DataRequired from app.DineCision import yelprequest from flask_wtf import FlaskForm import random import json import os API...
34.266667
302
0.697665
8e3cc8400178232463ef97c742304e359a41866c
827
py
Python
src/cleanMarkdown.py
xRuiAlves/minute-to-pdf
a46bef9cc76318c702f8d94da4ad6186bcdf0e3b
[ "MIT" ]
null
null
null
src/cleanMarkdown.py
xRuiAlves/minute-to-pdf
a46bef9cc76318c702f8d94da4ad6186bcdf0e3b
[ "MIT" ]
null
null
null
src/cleanMarkdown.py
xRuiAlves/minute-to-pdf
a46bef9cc76318c702f8d94da4ad6186bcdf0e3b
[ "MIT" ]
null
null
null
import re as regex
28.517241
95
0.648126
8e3d3e0f3e94be772703c6280e8e555431d316f2
7,548
py
Python
src/test/test_pytorch.py
cvoelcker/spn-pytorch-experiments
495d1fddf00f76fe28e926f7e558b26089e5428e
[ "MIT" ]
7
2019-03-26T15:20:57.000Z
2021-03-13T13:30:32.000Z
src/test/test_pytorch.py
cvoelcker/spn-pytorch-experiments
495d1fddf00f76fe28e926f7e558b26089e5428e
[ "MIT" ]
12
2020-01-28T22:35:58.000Z
2022-02-10T00:12:05.000Z
src/test/test_pytorch.py
cvoelcker/spn-pytorch-experiments
495d1fddf00f76fe28e926f7e558b26089e5428e
[ "MIT" ]
1
2019-08-07T10:03:15.000Z
2019-08-07T10:03:15.000Z
import unittest import numpy as np import torch from torch import optim from spn.structure.Base import Product, Sum from spn.structure.Base import assign_ids, rebuild_scopes_bottom_up from spn.structure.leaves.parametric.Parametric import Gaussian, Categorical from spn.gpu.TensorFlow import spn_to_tf_graph, optimize_...
35.772512
104
0.624006
8e3dee54c2da1945a5db9f782b225cb8c4a0b7da
599
py
Python
imagetagger/imagetagger/administration/forms.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
212
2017-07-06T23:01:44.000Z
2022-03-24T04:44:49.000Z
imagetagger/imagetagger/administration/forms.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
157
2017-07-24T10:03:41.000Z
2022-03-12T01:03:47.000Z
imagetagger/imagetagger/administration/forms.py
jbargu/imagetagger
216ac5e73902abadc1880321e285e68c55bdfd3d
[ "MIT" ]
54
2017-11-07T00:40:50.000Z
2022-02-26T14:22:13.000Z
from django import forms from imagetagger.annotations.models import AnnotationType
21.392857
57
0.547579
8e3e4c944fc3b4410a8579c18786cca183d9b56e
3,514
py
Python
fhir/resources/tests/test_terminologycapabilities.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/tests/test_terminologycapabilities.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/tests/test_terminologycapabilities.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/TerminologyCapabilities Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ import io import json import os import unittest import pytest from .. import terminologycapabilities from ..fhirdate imp...
40.860465
150
0.678714
8e3fa716520a8c4514b44001a704b29ff37a613f
1,332
py
Python
omstools/RNAseq/general/expression_table_tools.py
bioShaun/OM004script
d604b565ae220f2ec7bfba7a8ef44018e7a33c12
[ "MIT" ]
null
null
null
omstools/RNAseq/general/expression_table_tools.py
bioShaun/OM004script
d604b565ae220f2ec7bfba7a8ef44018e7a33c12
[ "MIT" ]
null
null
null
omstools/RNAseq/general/expression_table_tools.py
bioShaun/OM004script
d604b565ae220f2ec7bfba7a8ef44018e7a33c12
[ "MIT" ]
1
2018-05-06T03:14:39.000Z
2018-05-06T03:14:39.000Z
#! /usr/bin/env python import pandas as pd import click ''' gene expression matrix, with gene id in first column, gene expression level of each sample in othre columns. ''' if __name__ == '__main__': main(obj={})
28.956522
69
0.668919
8e3fe3467fcff024baa86632a7fa60adb3078c22
2,734
py
Python
app/main/service/wishlist_service.py
victortrinh/cabronis-be
c429767c7a43ba37cdb4850404a4651ea1f3eecf
[ "MIT" ]
null
null
null
app/main/service/wishlist_service.py
victortrinh/cabronis-be
c429767c7a43ba37cdb4850404a4651ea1f3eecf
[ "MIT" ]
null
null
null
app/main/service/wishlist_service.py
victortrinh/cabronis-be
c429767c7a43ba37cdb4850404a4651ea1f3eecf
[ "MIT" ]
1
2021-02-17T06:46:34.000Z
2021-02-17T06:46:34.000Z
from datetime import datetime from app.main import db from app.main.model.sellable import Sellable from app.main.model.user import User from app.main.model.wishlist import Wishlist
24.630631
98
0.626554
8e3ff6e34e448b2c57fce27cf62075dc5d84a9e6
998
py
Python
container/omnilint/checkers/yaml.py
lpenz/omnilint
b02be5ff95912d40cb80bd8d3b5cfb646e0c9f69
[ "MIT" ]
3
2020-06-07T19:06:14.000Z
2022-01-06T15:26:52.000Z
container/omnilint/checkers/yaml.py
lpenz/omnilint
b02be5ff95912d40cb80bd8d3b5cfb646e0c9f69
[ "MIT" ]
5
2020-01-02T14:10:40.000Z
2021-11-28T05:19:03.000Z
container/omnilint/checkers/yaml.py
lpenz/omnilint
b02be5ff95912d40cb80bd8d3b5cfb646e0c9f69
[ "MIT" ]
null
null
null
# Copyright (C) 2017 Leandro Lisboa Penz <lpenz@lpenz.org> # This file is subject to the terms and conditions defined in # file 'LICENSE', which is part of this source code package. '''yaml checker''' import yaml from omnilint.error import Error from omnilint.checkers import Checker def register(omnilint): '''...
26.263158
79
0.62024
8e407ed85ad9862ceadb000fd47a59627e319a69
1,694
py
Python
tests/test_scale.py
aaronfinke/fast_dp
23ceb72e79f9c45df1d97bf535477e9749582c93
[ "Apache-2.0" ]
null
null
null
tests/test_scale.py
aaronfinke/fast_dp
23ceb72e79f9c45df1d97bf535477e9749582c93
[ "Apache-2.0" ]
3
2019-06-11T17:18:30.000Z
2019-07-15T22:37:50.000Z
tests/test_scale.py
aaronfinke/fast_dp
23ceb72e79f9c45df1d97bf535477e9749582c93
[ "Apache-2.0" ]
5
2018-11-16T22:02:03.000Z
2020-08-10T15:23:45.000Z
#!/usr/local/crys-local/ccp4-7.0/bin/cctbx.python import unittest from scale import scale if __name__ == '__main__': unittest.main(verbosity=3)
32.576923
179
0.639906
8e419662f3f0d022764cde564f042fd6ac971aa6
330
py
Python
netcad_demo_meraki1/profiles/__init__.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
netcad_demo_meraki1/profiles/__init__.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
netcad_demo_meraki1/profiles/__init__.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
from netcad.device.l2_interfaces import InterfaceL2Access, InterfaceL2Trunk from netcad.device import PeerInterfaceId from netcad_demo_meraki1.vlans import vlan_native_1 from .physical import port_UTP_1G
27.5
75
0.827273
8e45edae7334754c6e435545a3fb44c9d485fdf2
1,596
py
Python
modules/SemanticWebImport/src/main/resources/fr/inria/edelweiss/examples/autolayout.py
cmatties/gephi-plugins
48b9e2eaba33e83ec2bd268b7528d9b66d31b7c2
[ "Apache-2.0" ]
7
2016-06-22T12:28:42.000Z
2022-01-03T05:13:06.000Z
modules/SemanticWebImport/src/main/resources/fr/inria/edelweiss/examples/autolayout.py
cmatties/gephi-plugins
48b9e2eaba33e83ec2bd268b7528d9b66d31b7c2
[ "Apache-2.0" ]
null
null
null
modules/SemanticWebImport/src/main/resources/fr/inria/edelweiss/examples/autolayout.py
cmatties/gephi-plugins
48b9e2eaba33e83ec2bd268b7528d9b66d31b7c2
[ "Apache-2.0" ]
2
2016-01-31T03:59:51.000Z
2016-02-24T14:55:06.000Z
import org.openide.util.Lookup as Lookup import org.gephi.ranking.api.RankingController import org.gephi.ranking.api.Ranking as Ranking import org.gephi.ranking.api.Transformer as Transformer import java.awt.Color as Color rankingController = Lookup.getDefault().lookup(org.gephi.ranking.api.RankingController) # Set ...
35.466667
115
0.828321
8e460f7605201aa0af71a6dc3c00714e7a93f4f8
5,495
py
Python
coastline/sqs/__init__.py
JuniorCru/coastline
c709f9ac8c26922e333ec0bf3738ba18a414aca6
[ "MIT" ]
1
2015-08-23T22:00:35.000Z
2015-08-23T22:00:35.000Z
coastline/sqs/__init__.py
JuniorCru/coastline
c709f9ac8c26922e333ec0bf3738ba18a414aca6
[ "MIT" ]
null
null
null
coastline/sqs/__init__.py
JuniorCru/coastline
c709f9ac8c26922e333ec0bf3738ba18a414aca6
[ "MIT" ]
null
null
null
from functools import lru_cache import boto.sqs from .. import di def get_boto_queue(self, boto_conn): if not self.is_state_complete: return None return boto_conn.get_queue(self.state['aws_name']) def update(self, boto_conn): boto_queue = self.get_boto_queue(boto_conn) ...
29.228723
82
0.590537
8e46835d4dab379dfaa85e0dd7f14a2858fee546
3,144
py
Python
tests/ast/parsers/test_uppaal_xml_model_parser.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
2
2020-09-09T15:42:23.000Z
2020-11-04T17:50:57.000Z
tests/ast/parsers/test_uppaal_xml_model_parser.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
tests/ast/parsers/test_uppaal_xml_model_parser.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
import os import pathlib import pprint import unittest from uppyyl_simulator.backend.ast.parsers.uppaal_xml_model_parser import ( uppaal_xml_to_dict, uppaal_dict_to_system, uppaal_system_to_dict, uppaal_dict_to_xml ) pp = pprint.PrettyPrinter(indent=4, compact=True) printExpectedResults = False printActualResults...
32.412371
89
0.675573
8e48b052744dd7bd27f923bdf71cbb9def01860f
1,204
py
Python
catalog_get_product.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
9
2019-03-05T02:50:48.000Z
2022-02-25T20:21:42.000Z
catalog_get_product.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
1
2019-05-21T02:04:27.000Z
2020-02-10T20:33:10.000Z
catalog_get_product.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
5
2017-06-16T00:00:13.000Z
2021-02-08T19:23:59.000Z
#----------------------------------------------------------------------------- # Get product from a catalog. # GET /v1/catalog/{catalog_name}/products/{id} #------------------------------------------------------------------------------ import os import json import requests from urlparse import urljoin from pprint im...
28
79
0.629568
8e490790c666ffe7e225dfa82629bb7c157d232e
1,630
py
Python
fvhexperiments/decoders/ruuvicounter.py
VekotinVerstas/DjangoHttpBroker-FVH-Experiments
512a7a6be74beb75473860ca34b9abf695820a32
[ "MIT" ]
null
null
null
fvhexperiments/decoders/ruuvicounter.py
VekotinVerstas/DjangoHttpBroker-FVH-Experiments
512a7a6be74beb75473860ca34b9abf695820a32
[ "MIT" ]
null
null
null
fvhexperiments/decoders/ruuvicounter.py
VekotinVerstas/DjangoHttpBroker-FVH-Experiments
512a7a6be74beb75473860ca34b9abf695820a32
[ "MIT" ]
null
null
null
""" Ruuvi Counter (LoRaWAN) decoder See: https://bitbucket.org/iotpetri/hki_kuva_iot/src/master/ESP32/LORA/ESP32_RuuviTagGW_Lora_v2/ """ import json import pytz from dateutil.parser import parse from broker.providers.decoder import DecoderProvider from broker.utils import create_dataline from fvhexperiments.parsers.r...
37.045455
96
0.72638
8e492fc64e2268e2528573b8069ecdad70baffa6
3,603
py
Python
src_flask/application.py
jphacks/ON_1801
4aa1ad18e570c1159ab15d1fe5d9bf9cdca65b67
[ "MIT" ]
null
null
null
src_flask/application.py
jphacks/ON_1801
4aa1ad18e570c1159ab15d1fe5d9bf9cdca65b67
[ "MIT" ]
1
2018-10-27T05:30:44.000Z
2018-10-27T05:30:44.000Z
src_flask/application.py
jphacks/ON_1801
4aa1ad18e570c1159ab15d1fe5d9bf9cdca65b67
[ "MIT" ]
null
null
null
import sqlite3 from flask import Flask, request, jsonify, g import logging import cek import os import peewee as pe import zaim from datetime import datetime, date,timedelta db = pe.SqliteDatabase('my_database.db') # application = Flask(__name__) logging.basicConfig() logger = logging.getLogger(__name__) logg...
27.090226
81
0.688315
8e4aecae4ed1ebe3ebb4f1f769b538623f84d7c0
926
py
Python
setup.py
riomyers/guld-ai-telegram
e0a0c55323b6ab411bddc333d763c1923ff881d4
[ "MIT" ]
4
2018-02-20T05:50:38.000Z
2022-02-02T18:40:14.000Z
setup.py
riomyers/guld-ai-telegram
e0a0c55323b6ab411bddc333d763c1923ff881d4
[ "MIT" ]
20
2018-03-01T22:49:16.000Z
2018-04-19T18:31:13.000Z
setup.py
riomyers/guld-ai-telegram
e0a0c55323b6ab411bddc333d763c1923ff881d4
[ "MIT" ]
4
2018-02-20T16:04:25.000Z
2018-08-05T07:09:06.000Z
from bot import __version__ from setuptools import setup, find_packages REQUIREMENTS = [line.strip() for line in open("requirements.txt").readlines()] setup(name='guldai-telegram-bot', version=__version__, description='Telegram interface for the guldai bot', author='isysd', author_email='publi...
34.296296
78
0.61879
8e4bf6aee8a7192603975091182590a4593906f9
4,160
py
Python
CalibMuon/DTCalibration/python/Workflow/DTDQMValidation.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
CalibMuon/DTCalibration/python/Workflow/DTDQMValidation.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
CalibMuon/DTCalibration/python/Workflow/DTDQMValidation.py
pasmuss/cmssw
566f40c323beef46134485a45ea53349f59ae534
[ "Apache-2.0" ]
null
null
null
from tools import loadCmsProcess,loadCrabCfg,loadCrabDefault,addCrabInputFile,writeCfg,prependPaths from addPoolDBESSource import addPoolDBESSource from CrabTask import * import os
45.217391
103
0.657692
8e4c9ea7ebf7260b89e8ec5cad611a055edea3b5
15,075
py
Python
src/uwds3_simulation/underworlds_simulation.py
uwds3/uwds3_simulation
61b8cc6e34bce88ec2da716f7ae77aae1b38bbd8
[ "MIT" ]
null
null
null
src/uwds3_simulation/underworlds_simulation.py
uwds3/uwds3_simulation
61b8cc6e34bce88ec2da716f7ae77aae1b38bbd8
[ "MIT" ]
null
null
null
src/uwds3_simulation/underworlds_simulation.py
uwds3/uwds3_simulation
61b8cc6e34bce88ec2da716f7ae77aae1b38bbd8
[ "MIT" ]
null
null
null
import rospy import pybullet as p import numpy as np from proprioception.joint_states_listener import JointStatesListener from estimation.perspective_estimator import PerspectiveEstimator import tf2_ros import message_filters from sensor_msgs.msg import Image from cv_bridge import CvBridge from tf2_ros import Buffer, T...
49.104235
160
0.598474
8e4caec47e3b45cf60343961b13fbd6d09ccd66d
7,131
py
Python
fabfile/testbeds/testbed_setup80.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
fabfile/testbeds/testbed_setup80.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
fabfile/testbeds/testbed_setup80.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
from fabric.api import env os_username = 'admin' os_password = 'contrail123' os_tenant_name = 'demo' host1 = 'root@10.84.21.1' host2 = 'root@10.84.21.2' host3 = 'root@10.84.21.3' host4 = 'root@10.84.21.4' host5 = 'root@10.84.21.5' host6 = 'root@10.84.21.6' host7 = 'root@10.84.21.7' host8 = 'root@10.84.21.8' h...
24.505155
92
0.618847
8e4d453ccef621b63ec589e898c1b250620f86ed
879
py
Python
docs/spoiler/simple.py
snehilvj/dmc-docs
f8e564dd93f005c8c2cdf84ad20f41c668041080
[ "MIT" ]
6
2022-01-28T17:12:58.000Z
2022-03-16T01:29:18.000Z
docs/spoiler/simple.py
snehilvj/dmc-demo
3ac16f017922f8cdb322c91c29ad3144fd0bb886
[ "MIT" ]
1
2022-01-07T21:21:07.000Z
2022-01-22T12:07:28.000Z
docs/spoiler/simple.py
snehilvj/dmc-demo
3ac16f017922f8cdb322c91c29ad3144fd0bb886
[ "MIT" ]
1
2022-02-05T18:00:36.000Z
2022-02-05T18:00:36.000Z
import dash_mantine_components as dmc component = dmc.Spoiler( showLabel="Show more", hideLabel="Hide", maxHeight=50, children=[ dmc.Text( """We Butter the Bread with Butter was founded in 2007 by Marcel Neumann, who was originally guitarist for Martin Kesici's band, an...
48.833333
118
0.688282
8e4e4c47e3e55c6c03e22f0df229a7bc75c3388a
7,995
py
Python
backend/tests/test_verify.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
14
2017-03-07T00:14:33.000Z
2022-02-09T00:59:22.000Z
backend/tests/test_verify.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
11
2016-11-22T13:14:55.000Z
2021-12-14T00:56:51.000Z
backend/tests/test_verify.py
uwplse/stng
ce12c2c079516df873382a5aa3c18c407833d130
[ "MIT" ]
6
2016-11-07T13:38:45.000Z
2021-04-04T12:13:31.000Z
import unittest from grammar import * from verify import * import assertion_grammar as ag ## print tree_to_str(tst_ast) #precon = WeakestPrecondition(tst_ast, q) #answer = precon.get_with_additional_conditions() ## print ag.tree_to_str(answer) #self.assertEqual("(I(i) && i < 3) -...
51.25
129
0.524578
8e4e5f7c32607d37a4cd3d64639b2c6b963ee419
14,739
py
Python
tests/test_credential.py
deepan10/python-jenkins
7166f872f50e8c246ee567ca56aeeceaa40e8c7a
[ "BSD-3-Clause" ]
2
2019-06-25T06:14:49.000Z
2019-06-25T06:14:50.000Z
tests/test_credential.py
deepan10/python-jenkins
7166f872f50e8c246ee567ca56aeeceaa40e8c7a
[ "BSD-3-Clause" ]
null
null
null
tests/test_credential.py
deepan10/python-jenkins
7166f872f50e8c246ee567ca56aeeceaa40e8c7a
[ "BSD-3-Clause" ]
1
2022-02-08T15:47:07.000Z
2022-02-08T15:47:07.000Z
import json from mock import patch import jenkins from tests.base import JenkinsTestBase
41.635593
92
0.646991
8e4fc2f2334bdc8ee44f92a4e232fa010a7a3615
759
py
Python
typeidea/comment/views.py
nishuidey/typeidea
b212b93a5a2aded2edd8af08c086bd56858be729
[ "MIT" ]
null
null
null
typeidea/comment/views.py
nishuidey/typeidea
b212b93a5a2aded2edd8af08c086bd56858be729
[ "MIT" ]
null
null
null
typeidea/comment/views.py
nishuidey/typeidea
b212b93a5a2aded2edd8af08c086bd56858be729
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.views.generic import TemplateView from .forms import CommentForm
28.111111
69
0.636364
8e50549eda276ba6f701706b0c14b0cac4667b79
1,295
py
Python
tests/test_pdf_images_component.py
cofiem/leaf-focus
fdab4f30b985ab2adc3a413390e028e9a9325bac
[ "MIT" ]
null
null
null
tests/test_pdf_images_component.py
cofiem/leaf-focus
fdab4f30b985ab2adc3a413390e028e9a9325bac
[ "MIT" ]
2
2022-02-09T23:46:31.000Z
2022-03-03T22:00:53.000Z
tests/test_pdf_images_component.py
cofiem/leaf-focus
fdab4f30b985ab2adc3a413390e028e9a9325bac
[ "MIT" ]
null
null
null
import logging import pytest from pathlib import Path from leaf_focus.pdf.images.component import Component from tests.base_test import BaseTest
34.078947
72
0.664865
8e51813cf90869e9e478904329040a48b9d0a1c3
269
py
Python
Virus Project/Key Logger/KeyLog/Keylogger/Keylogger.py
nickh671/CS216-Cyber-Security
6c372986831b7d1d1de799c2c6c29408466693d5
[ "MIT" ]
1
2020-01-30T03:25:31.000Z
2020-01-30T03:25:31.000Z
Virus Project/Key Logger/KeyLog/Keylogger/Keylogger.py
nickh671/CS216-Cyber-Security
6c372986831b7d1d1de799c2c6c29408466693d5
[ "MIT" ]
null
null
null
Virus Project/Key Logger/KeyLog/Keylogger/Keylogger.py
nickh671/CS216-Cyber-Security
6c372986831b7d1d1de799c2c6c29408466693d5
[ "MIT" ]
null
null
null
import pynput from pynput.keyboard import Key, Listener with Listener(on_press=on_press, on_release=on_release) as listener: listener.join()
19.214286
68
0.695167
8e521a86af2e701e515170c368cf868b45a8e355
10,946
py
Python
tenkit/lib/python/striped_smith_waterman/pyssw.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
239
2017-01-18T15:14:34.000Z
2022-03-09T10:44:08.000Z
tenkit/lib/python/striped_smith_waterman/pyssw.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
96
2017-01-13T15:03:29.000Z
2022-02-07T14:27:18.000Z
tenkit/lib/python/striped_smith_waterman/pyssw.py
qiangli/cellranger
046e24c3275cfbd4516a6ebc064594513a5c45b7
[ "MIT" ]
44
2017-03-17T20:31:08.000Z
2021-12-02T07:27:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @package pyssw @brief Python standalone program for ssw alignment using the C library Complete-Striped-Smith-Waterman-Library Biopython module is require for fastq/fastq parsing @copyright [The MIT licence](http://opensource.org/licenses/MIT) @author Adrien Leger ...
39.65942
128
0.62114
f3cb1609369d9e7f439881176389cd82daea5361
96
py
Python
juggling/analyse_profile.py
sioux-technologies/pyjuggling
e91d264e732060ea5f88f1806d6398206b5b91de
[ "BSD-3-Clause" ]
null
null
null
juggling/analyse_profile.py
sioux-technologies/pyjuggling
e91d264e732060ea5f88f1806d6398206b5b91de
[ "BSD-3-Clause" ]
null
null
null
juggling/analyse_profile.py
sioux-technologies/pyjuggling
e91d264e732060ea5f88f1806d6398206b5b91de
[ "BSD-3-Clause" ]
1
2021-02-26T10:47:15.000Z
2021-02-26T10:47:15.000Z
import pstats p = pstats.Stats('output.prof') p.sort_stats('cumulative').print_stats(15)
16
43
0.708333
f3cc995e55bc61f143ee1d25d6145d478ce825c4
975
py
Python
py2/ex20.py
iamovrhere/lpthw
6ad12dd14bbece75331b98fb20bcb37335727d52
[ "MIT" ]
null
null
null
py2/ex20.py
iamovrhere/lpthw
6ad12dd14bbece75331b98fb20bcb37335727d52
[ "MIT" ]
null
null
null
py2/ex20.py
iamovrhere/lpthw
6ad12dd14bbece75331b98fb20bcb37335727d52
[ "MIT" ]
null
null
null
from sys import argv script, input_file = argv current_file = open(input_file) print "First let's print the whole file: \n" print_all(current_file) print "What if we retry print all?" # Nothing. read() moves the seek. print_all(current_file) print "Now let's rewind?" rewind(current_file) print "Let's print three ...
20.3125
57
0.74359
f3cd242daceaf22c1da4707d844a7564b1c6d5c1
66
py
Python
test.py
insertinterestingnamehere/cython_overload_except
00d76ad8020fcb21948545de8161da65f7f4acd8
[ "BSD-2-Clause" ]
null
null
null
test.py
insertinterestingnamehere/cython_overload_except
00d76ad8020fcb21948545de8161da65f7f4acd8
[ "BSD-2-Clause" ]
null
null
null
test.py
insertinterestingnamehere/cython_overload_except
00d76ad8020fcb21948545de8161da65f7f4acd8
[ "BSD-2-Clause" ]
null
null
null
import pyadd as pa print "running test" pa.test() print "passed!"
13.2
20
0.727273
f3cf06856dd843c9bc2c06977c531049ba077738
210
py
Python
code_source/script_frame.py
zeddo123/voidgame
4d247af542bf646c073c9445f36456e5a18c72e9
[ "MIT" ]
7
2019-02-12T15:37:44.000Z
2020-04-19T01:19:06.000Z
code_source/script_frame.py
zeddo123/voidgame
4d247af542bf646c073c9445f36456e5a18c72e9
[ "MIT" ]
null
null
null
code_source/script_frame.py
zeddo123/voidgame
4d247af542bf646c073c9445f36456e5a18c72e9
[ "MIT" ]
3
2019-03-29T18:12:09.000Z
2019-05-05T22:21:57.000Z
import sys import os import re f = open(sys.argv[1]+"/frames.txt","w"); regex = re.compile(r"png$") for i in sorted(os.listdir(sys.argv[1])): if regex.search(i): f.write(sys.argv[1]+"/"+i+'\n') f.close()
16.153846
41
0.62381
f3d052880ba534595df1b643df855aa2c53ebfb3
1,003
py
Python
restaurants/models.py
32xnabin/DjangoRestHeroku
1a4ae428d8090729a6802cea1dd8c9074083a556
[ "Apache-2.0" ]
null
null
null
restaurants/models.py
32xnabin/DjangoRestHeroku
1a4ae428d8090729a6802cea1dd8c9074083a556
[ "Apache-2.0" ]
2
2020-06-05T20:36:05.000Z
2021-03-19T22:23:00.000Z
restaurants/models.py
32xnabin/DjangoRestHeroku
1a4ae428d8090729a6802cea1dd8c9074083a556
[ "Apache-2.0" ]
null
null
null
from django.db import models
43.608696
102
0.677966
f3d15f66918e713ec6c05ab5782facd60524b4a3
6,258
py
Python
image_labeller/admin/admin_utils.py
alan-turing-institute/ImageLabeller
ad9482d59cc4485cc4113896c221a18f6194daeb
[ "MIT" ]
null
null
null
image_labeller/admin/admin_utils.py
alan-turing-institute/ImageLabeller
ad9482d59cc4485cc4113896c221a18f6194daeb
[ "MIT" ]
6
2019-10-23T07:46:14.000Z
2021-03-12T15:35:36.000Z
image_labeller/admin/admin_utils.py
alan-turing-institute/ImageLabeller
ad9482d59cc4485cc4113896c221a18f6194daeb
[ "MIT" ]
1
2019-10-30T21:28:38.000Z
2019-10-30T21:28:38.000Z
""" Useful functions for the admin panel of ImageLabeller. In particular: * Download labels from database to json or csv * Upload images to the database, from json (catalogue of image locations) or zip archive NOTE: When uploading files, or an archive full of files, we will attempt to match the filename to a regex wi...
34.196721
88
0.65596
f3d1a295c7e7f0c6332bbe9bcc9bf044f8eae33b
98
py
Python
goals_search/apps.py
machakux/dgs
46de3cdaced5e4afef46fa46c7a3303d53df0da0
[ "Unlicense" ]
6
2017-11-06T02:50:31.000Z
2021-09-18T08:12:05.000Z
goals_search/apps.py
machakux/dgs
46de3cdaced5e4afef46fa46c7a3303d53df0da0
[ "Unlicense" ]
5
2017-07-08T07:58:07.000Z
2017-09-11T06:13:03.000Z
goals_search/apps.py
machakux/dgs
46de3cdaced5e4afef46fa46c7a3303d53df0da0
[ "Unlicense" ]
2
2017-09-15T20:49:41.000Z
2019-09-10T11:03:59.000Z
from django.apps import AppConfig
16.333333
35
0.77551
f3d1fefcea489e7f77de797d850a81d2bb3bced9
853
py
Python
gammapy/scripts/check.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
gammapy/scripts/check.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
gammapy/scripts/check.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Command line tool to run tests. This file is called `check` instead of `test` to prevent confusion for developers and the test runner from including it in test collection. """ from __future__ import (absolute_import, division, print_function, ...
29.413793
82
0.684642
f3d22d96146bb149a9d37d0000e6b97b6775fed2
742
py
Python
pythpy/state/core.py
johnstonematt/pythpy
e1459ceae3e7edd4e79bfd86ad5df43caa7b0317
[ "MIT" ]
1
2021-11-29T22:45:49.000Z
2021-11-29T22:45:49.000Z
pythpy/state/core.py
johnstonematt/pythpy
e1459ceae3e7edd4e79bfd86ad5df43caa7b0317
[ "MIT" ]
null
null
null
pythpy/state/core.py
johnstonematt/pythpy
e1459ceae3e7edd4e79bfd86ad5df43caa7b0317
[ "MIT" ]
1
2021-12-11T17:58:20.000Z
2021-12-11T17:58:20.000Z
import json from abc import ABC, abstractmethod from construct import Struct, Container
23.935484
61
0.66442
f3d37247bb7dddc6372c192ad9fcc8e024891e7f
1,323
py
Python
charms_hardening/host/checks/apt.py
ChrisMacNaughton/charms.hardening
0d98669d4be0a50c2027b0479217c288a61048dd
[ "Apache-2.0" ]
1
2016-05-27T14:49:14.000Z
2016-05-27T14:49:14.000Z
charms_hardening/host/checks/apt.py
ChrisMacNaughton/charms.hardening
0d98669d4be0a50c2027b0479217c288a61048dd
[ "Apache-2.0" ]
null
null
null
charms_hardening/host/checks/apt.py
ChrisMacNaughton/charms.hardening
0d98669d4be0a50c2027b0479217c288a61048dd
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Canonical Limited. # # This file is part of charms.hardening. # # charm-helpers is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 as # published by the Free Software Foundation. # # charm-helpers is distributed in the hope th...
33.075
74
0.717309
f3d38847c649b72fcc42d62c95606105c0f32cc1
820
py
Python
ExamPrep/06 Differentiation/shigRichardson.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
ExamPrep/06 Differentiation/shigRichardson.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
ExamPrep/06 Differentiation/shigRichardson.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
#This script takes a pair of inputs, one of a point and another of an interval width, then differentates f(x) at the selected point, using the given step size. to input f(x) and f'(x) simply replace " 'FUNC' " or " 'FUNCPRIME' " with the function. import numpy as np #User inputs below. x=input('Please pick an x value...
37.272727
247
0.687805
f3d5f5a50aca17a9a7df0b248cc19ab713ecec60
2,892
py
Python
Udacity/Intro_to_Data_Structures_and_Algorithms!/Ex1LinkedList.py
dhivadeekshi/Algorithms-Samples
cadd159d835ce64d51d786eafc25c40e35540353
[ "MIT" ]
null
null
null
Udacity/Intro_to_Data_Structures_and_Algorithms!/Ex1LinkedList.py
dhivadeekshi/Algorithms-Samples
cadd159d835ce64d51d786eafc25c40e35540353
[ "MIT" ]
null
null
null
Udacity/Intro_to_Data_Structures_and_Algorithms!/Ex1LinkedList.py
dhivadeekshi/Algorithms-Samples
cadd159d835ce64d51d786eafc25c40e35540353
[ "MIT" ]
null
null
null
"""The LinkedList code from before is provided below. Add three functions to the LinkedList. "get_position" returns the element at a certain position. The "insert" function will add an element to a particular spot in the list. "delete" will delete the first element with that particular value. Then, use "Test Run" and "...
26.054054
73
0.619295
f3d60f224a150630bfb9d310b93d5688af393e35
13
py
Python
todobackend/todo/domain/value_objects.py
zhangcheng/todobackend_python
4ad56c6874ff4460087236d03515a0a0611e95e4
[ "MIT" ]
null
null
null
todobackend/todo/domain/value_objects.py
zhangcheng/todobackend_python
4ad56c6874ff4460087236d03515a0a0611e95e4
[ "MIT" ]
null
null
null
todobackend/todo/domain/value_objects.py
zhangcheng/todobackend_python
4ad56c6874ff4460087236d03515a0a0611e95e4
[ "MIT" ]
null
null
null
TodoId = str
6.5
12
0.692308
f3d721d2677fd7cf2e8fd3efa23951b17ef439df
287
py
Python
server/client-server/app/models/detection.py
ioangatop/yolo
c65a72337369572bc07090f39123e2bf6ff5f4a3
[ "MIT" ]
1
2021-06-28T01:22:38.000Z
2021-06-28T01:22:38.000Z
server/client-server/app/models/detection.py
ioangatop/yolo
c65a72337369572bc07090f39123e2bf6ff5f4a3
[ "MIT" ]
null
null
null
server/client-server/app/models/detection.py
ioangatop/yolo
c65a72337369572bc07090f39123e2bf6ff5f4a3
[ "MIT" ]
null
null
null
from pydantic import BaseModel from typing import List
22.076923
43
0.665505
f3d776b683653780d2edf7f42d5cbd98542514af
737
py
Python
gtfsjpcli/commands/init/db/main.py
tadashi-aikawa/gtfsjp-cli
d96d7322e51fbc344707c9b2904167d0fe540b05
[ "MIT" ]
1
2019-05-17T07:29:04.000Z
2019-05-17T07:29:04.000Z
gtfsjpcli/commands/init/db/main.py
tadashi-aikawa/gtfsjp-cli
d96d7322e51fbc344707c9b2904167d0fe540b05
[ "MIT" ]
1
2019-05-22T03:51:51.000Z
2019-05-22T04:04:49.000Z
gtfsjpcli/commands/init/db/main.py
tadashi-aikawa/gtfs-cli
d96d7322e51fbc344707c9b2904167d0fe540b05
[ "MIT" ]
null
null
null
"""GTFS Usage: {cli} <gtfs_dir> [-d | --drop-duplicates] [<dst>] {cli} (-h | --help) Options: <gtfs_dir> GTFS -d --drop-duplicates <dst> DB [default: gtfs-jp.sqlite3] -h --help Show this screen. Examples: {cli} C:\...
24.566667
95
0.617368
f3d81c62dfee00539329c09881ab7f6d3e962ed6
683
py
Python
examples/show_vault.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
1
2021-03-29T22:09:47.000Z
2021-03-29T22:09:47.000Z
examples/show_vault.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
49
2021-03-29T20:13:28.000Z
2021-05-01T10:38:19.000Z
examples/show_vault.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Example script that shows the content of a vault file. """ import sys import os from pprint import pprint import easy_server def main(): """Main function""" if len(sys.argv) < 2: print("Usage: {} VAULTFILE".format(sys.argv[0])) sys.exit(2) vault_file = sys.argv...
18.972222
56
0.626647
f3d8515a3338d8385cf2bebf5ed4ad028409b12a
1,054
py
Python
conanfile.py
bincrafters/conan-clara
249560de1fa2a8b1ecc2d2b1e517a6d1ea0e37ed
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-clara
249560de1fa2a8b1ecc2d2b1e517a6d1ea0e37ed
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-clara
249560de1fa2a8b1ecc2d2b1e517a6d1ea0e37ed
[ "MIT" ]
null
null
null
from conans import ConanFile, tools import os
36.344828
90
0.666983
f3d90935ad96db208ba6844652d6da09c0e79866
15,086
py
Python
openamundsen/fileio/meteo.py
openamundsen/openamundsen
2ac09eb34b0c72c84c421a0dac08d114a05b7b1c
[ "MIT" ]
3
2021-05-28T06:46:36.000Z
2021-06-14T13:39:25.000Z
openamundsen/fileio/meteo.py
openamundsen/openamundsen
2ac09eb34b0c72c84c421a0dac08d114a05b7b1c
[ "MIT" ]
22
2021-04-28T12:31:58.000Z
2022-03-09T18:29:12.000Z
openamundsen/fileio/meteo.py
openamundsen/openamundsen
2ac09eb34b0c72c84c421a0dac08d114a05b7b1c
[ "MIT" ]
1
2021-06-01T12:48:54.000Z
2021-06-01T12:48:54.000Z
import loguru from openamundsen import constants, errors, forcing, util import pandas as pd from pathlib import Path import xarray as xr def read_meteo_data( meteo_format, meteo_data_dir, start_date, end_date, meteo_crs=None, grid_crs=None, bounds=None, exclude=None, include=None, ...
29.992048
100
0.614742
f3d9c66fba4bc89341f37fb0054f5f6e77ebc4f1
2,990
py
Python
shadowfiend/conductor/handlers/account_api.py
RogerYuQian/shadowfiend
beb99b523bd9941e9920e4f8305c9a1d9fc610e7
[ "Apache-2.0" ]
1
2019-03-07T04:34:43.000Z
2019-03-07T04:34:43.000Z
shadowfiend/conductor/handlers/account_api.py
RogerYuQian/shadowfiend
beb99b523bd9941e9920e4f8305c9a1d9fc610e7
[ "Apache-2.0" ]
null
null
null
shadowfiend/conductor/handlers/account_api.py
RogerYuQian/shadowfiend
beb99b523bd9941e9920e4f8305c9a1d9fc610e7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Objectif Libre # # 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 ...
38.333333
78
0.656856
f3ddbb51d0e3b5645163504b24732a5dab4f781a
2,553
py
Python
tests/test_others.py
EchoShoot/Sheen
5cafb846df8f5047d6083ef597271ec532916a97
[ "Apache-2.0" ]
9
2019-09-25T13:33:04.000Z
2021-06-12T12:54:00.000Z
tests/test_others.py
EchoShoot/Sheen
5cafb846df8f5047d6083ef597271ec532916a97
[ "Apache-2.0" ]
null
null
null
tests/test_others.py
EchoShoot/Sheen
5cafb846df8f5047d6083ef597271ec532916a97
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019-09-01 17:49 # @Author : EchoShoot # @Email : BiarFordlander@gmail.com # @URL : https://github.com/EchoShoot # @File : test_others.py # @Explain : from sheen import Str import pytest
37
117
0.623188
f3dfddfecad8e5071b3a7f8668fbd7ae3fcac37a
7,500
py
Python
encoded_client/submission.py
detrout/encoded_client
0cdd053ff5ef81f09e2310180cdc8808cff79151
[ "BSD-3-Clause" ]
null
null
null
encoded_client/submission.py
detrout/encoded_client
0cdd053ff5ef81f09e2310180cdc8808cff79151
[ "BSD-3-Clause" ]
1
2021-04-05T19:40:45.000Z
2021-04-05T19:40:45.000Z
encoded_client/submission.py
detrout/encoded_client
0cdd053ff5ef81f09e2310180cdc8808cff79151
[ "BSD-3-Clause" ]
null
null
null
"""Partially through ENCODE3 the DCC switched to needing to upload via AWS """ from argparse import ArgumentParser import logging import json import os import pandas import subprocess import time from .encoded import ENCODED, DCCValidator, HTTPError from .sheet import open_book, save_book logger = logging.getLogger(_...
34.246575
123
0.6088
f3e09324f5ccac99c7efa4c988bc34819327f80a
2,553
py
Python
authors/apps/authentication/backends.py
andela/Ah-backend-valkyrie
f0eb64c27e1fe37d5c81e4b9a8762dcf3c336a79
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/backends.py
andela/Ah-backend-valkyrie
f0eb64c27e1fe37d5c81e4b9a8762dcf3c336a79
[ "BSD-3-Clause" ]
46
2019-01-08T13:16:41.000Z
2021-04-30T20:47:08.000Z
authors/apps/authentication/backends.py
andela/Ah-backend-valkyrie
f0eb64c27e1fe37d5c81e4b9a8762dcf3c336a79
[ "BSD-3-Clause" ]
3
2019-01-07T08:21:59.000Z
2019-09-20T06:43:18.000Z
import jwt import datetime from django.conf import settings from rest_framework import authentication, exceptions, status from .models import User from .jwt_helper import JWTHelper """Configure JWT Here"""
31.134146
79
0.596553
f3e0aa81000596ee50717f51c1e9b46fa4fa1b38
12,154
py
Python
python/valDACsettings.py
fermi-lat/calibGenCAL
9b207d7ba56031f5ecd7aab544e68a6dedc7d776
[ "BSD-3-Clause" ]
null
null
null
python/valDACsettings.py
fermi-lat/calibGenCAL
9b207d7ba56031f5ecd7aab544e68a6dedc7d776
[ "BSD-3-Clause" ]
null
null
null
python/valDACsettings.py
fermi-lat/calibGenCAL
9b207d7ba56031f5ecd7aab544e68a6dedc7d776
[ "BSD-3-Clause" ]
null
null
null
""" Validate CAL DAC settings XML files. The command line is: valDACsettings [-V] [-r] [-R <root_file>] [-L <log_file>] FLE|FHE|LAC|ULD <MeV | margin> <dac_slopes_file> <dac_xml_file> where: -r = generate ROOT output with default name -R <root_file> = output validation diagnostics in ROOT...
29.286747
134
0.494734
f3e2e8fc6a29dc9413e40eaef01645c5fcc96e2a
1,572
py
Python
pyclustering/cluster/tests/rock_templates.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/cluster/tests/rock_templates.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/cluster/tests/rock_templates.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Test templates for ROCK clustering module. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ from pyclustering.cluster.rock import rock; from pyclustering.utils import read_sample; from random import random;
32.081633
176
0.637405
f3e48a916b122a6ca45fd2c40d206d6de78e2095
9,832
py
Python
perfvis/perfvis.py
serendipiddy/openflow-performance-visualizer
c5a8773d0f4fc45511aa1bc465c91fb8410b39ff
[ "Apache-2.0" ]
2
2015-10-11T02:40:22.000Z
2015-10-16T10:02:42.000Z
perfvis/perfvis.py
serendipiddy/openflow-performance-visualizer
c5a8773d0f4fc45511aa1bc465c91fb8410b39ff
[ "Apache-2.0" ]
null
null
null
perfvis/perfvis.py
serendipiddy/openflow-performance-visualizer
c5a8773d0f4fc45511aa1bc465c91fb8410b39ff
[ "Apache-2.0" ]
null
null
null
from ryu.app.wsgi import WSGIApplication from ryu.base import app_manager from ryu.lib import hub from ryu.lib.dpid import dpid_to_str from ryu.controller.handler import MAIN_DISPATCHER, DEAD_DISPATCHER, CONFIG_DISPATCHER from ryu.controller.handler import set_ev_cls from ryu.controller import ofp_event from ryu.lib.p...
39.805668
143
0.612897
f3e75e9725fd359ddc30a1cdb72972ed8321e927
10,638
py
Python
putput/validator.py
cicorias/putput
96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44
[ "MIT" ]
1
2019-01-17T07:45:43.000Z
2019-01-17T07:45:43.000Z
putput/validator.py
cicorias/putput
96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44
[ "MIT" ]
1
2019-01-17T07:47:04.000Z
2019-01-17T07:47:04.000Z
putput/validator.py
cicorias/putput
96bde3c2219070bfed1ca76d47a4fe7cd0bc4b44
[ "MIT" ]
null
null
null
import itertools import re from functools import reduce from typing import Any from typing import Iterable from typing import Mapping from typing import Sequence from typing import Set from typing import Tuple from typing import Union RANGE_REGEX = r'^\d+(\-\d+)?$' OPTIONAL_REGEX = r'^\(\|?\w+(\|\w+)*\)$' _ALL_VALID_R...
49.25
116
0.696748
f3e77238a78b377a23958305ca1c830e504cad8b
994
py
Python
src/search_algorithm/dfs.py
yasuo-00/path_finding_visualization
501999ba15576163de1d9e68412ed463d7ca6b1a
[ "MIT" ]
null
null
null
src/search_algorithm/dfs.py
yasuo-00/path_finding_visualization
501999ba15576163de1d9e68412ed463d7ca6b1a
[ "MIT" ]
null
null
null
src/search_algorithm/dfs.py
yasuo-00/path_finding_visualization
501999ba15576163de1d9e68412ed463d7ca6b1a
[ "MIT" ]
null
null
null
import painter import sys from utils import distance from collections import deque #returns last node (destination_node)
30.121212
62
0.644869
f3e8c6a09a0167f5ad073b4ff3952907b92cc7fc
164
py
Python
medzibrod/__init__.py
mnalevanko/medzibrod
446476c84dd2d2943c9b96113fdc1d830cfcbc28
[ "MIT" ]
null
null
null
medzibrod/__init__.py
mnalevanko/medzibrod
446476c84dd2d2943c9b96113fdc1d830cfcbc28
[ "MIT" ]
null
null
null
medzibrod/__init__.py
mnalevanko/medzibrod
446476c84dd2d2943c9b96113fdc1d830cfcbc28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for Medzibrod.""" __author__ = """Michal Nalevanko""" __email__ = 'michal.nalevanko@gmail.com' __version__ = '0.1.0'
20.5
40
0.658537
f3e92fc2debbd4ed8ba3dbb42a7b21159248f8b8
5,419
py
Python
fileapi/tests/test_functional.py
mlavin/fileapi
25e13399e227d14e7fd14ebeaadf535f1dc3218a
[ "BSD-2-Clause" ]
12
2015-01-20T21:08:45.000Z
2018-06-17T19:58:50.000Z
fileapi/tests/test_functional.py
mlavin/fileapi
25e13399e227d14e7fd14ebeaadf535f1dc3218a
[ "BSD-2-Clause" ]
null
null
null
fileapi/tests/test_functional.py
mlavin/fileapi
25e13399e227d14e7fd14ebeaadf535f1dc3218a
[ "BSD-2-Clause" ]
5
2015-01-20T21:51:14.000Z
2020-06-27T11:31:32.000Z
import os import shutil import tempfile from django.contrib.auth.models import User from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.core.files.storage import FileSystemStorage from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium...
38.985612
90
0.667466
f3e968f3456a25b7e77d15b06b8fbfe556e06197
18,702
py
Python
roomai/sevenking/SevenKingEnv.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
1
2018-03-02T00:49:31.000Z
2018-03-02T00:49:31.000Z
roomai/sevenking/SevenKingEnv.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
roomai/sevenking/SevenKingEnv.py
1696012928/RoomAI
37be09590489ab5f7c85083173e83ea31c40b76c
[ "MIT" ]
null
null
null
#!/bin/python import roomai.common from roomai.sevenking import SevenKingPublicState from roomai.sevenking import SevenKingPrivateState from roomai.sevenking import SevenKingPersonState from roomai.sevenking import SevenKingAction from roomai.sevenking import SevenKingPokerCard from roomai.sevenking import AllSevenKing...
48.703125
173
0.525773
f3ea9e97e4267f6c20d1f8c7a708807767dffded
5,404
py
Python
oops_fhir/r4/code_system/request_resource_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/request_resource_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/request_resource_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["RequestResourceType"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
25.018519
201
0.592524
f3eb45620afd529f4a91ac93735c98799806a7ca
2,247
py
Python
projetos/morse_code_converter.py
Guilherme-Cruz-Ferreira/My_repository
a1841cd2fb828d405bfd639a884d9fa79830743e
[ "MIT" ]
null
null
null
projetos/morse_code_converter.py
Guilherme-Cruz-Ferreira/My_repository
a1841cd2fb828d405bfd639a884d9fa79830743e
[ "MIT" ]
null
null
null
projetos/morse_code_converter.py
Guilherme-Cruz-Ferreira/My_repository
a1841cd2fb828d405bfd639a884d9fa79830743e
[ "MIT" ]
null
null
null
# conversor de cdigo morse # muita linha pra pouca coisa import string s2m = {'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.',\ 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J':'.---',\ 'L':'.-..', 'M':'--','N':'-.','O':'---','P':'.--.','Q':'--.-',\ 'R':'.-.','S':'...', 'T':'-','U':'..-','V':'...
35.666667
88
0.35781
f3eb74a47d94871103b2b8afc0263657a7055d83
1,783
py
Python
example_nodes/__init__.py
996268132/NodeGraphQt
a454b685c6b05313adab6d048c3b111c1f87fd49
[ "MIT" ]
582
2018-03-04T10:25:32.000Z
2022-03-31T06:41:17.000Z
example_nodes/__init__.py
996268132/NodeGraphQt
a454b685c6b05313adab6d048c3b111c1f87fd49
[ "MIT" ]
156
2018-03-03T21:41:36.000Z
2022-03-29T02:14:42.000Z
example_nodes/__init__.py
996268132/NodeGraphQt
a454b685c6b05313adab6d048c3b111c1f87fd49
[ "MIT" ]
160
2018-03-09T10:29:42.000Z
2022-03-31T06:41:23.000Z
#!/usr/bin/python import os import sys import ast VALID_NODE_TYPE = ['BaseNode', 'AutoNode'] def detectNodesFromText(filepath): """returns Node names from a python script""" froms = [] with open(filepath, "r") as source: tree = ast.parse(source.read()) for node in tree.body: if...
29.716667
86
0.527201
f3ed629eeed1d33dc6704fe20137e3edec573203
4,022
py
Python
reviewboard/avatars/templatetags/tests.py
bcskda/reviewboard
280069e31a306fae11aba1a616d52904c49c5299
[ "MIT" ]
1
2017-01-16T09:39:15.000Z
2017-01-16T09:39:15.000Z
reviewboard/avatars/templatetags/tests.py
bcskda/reviewboard
280069e31a306fae11aba1a616d52904c49c5299
[ "MIT" ]
null
null
null
reviewboard/avatars/templatetags/tests.py
bcskda/reviewboard
280069e31a306fae11aba1a616d52904c49c5299
[ "MIT" ]
1
2018-01-15T19:13:49.000Z
2018-01-15T19:13:49.000Z
from __future__ import unicode_literals from django.contrib.auth.models import AnonymousUser, User from django.http import HttpRequest from django.template import RequestContext, Template from djblets.avatars.services.gravatar import GravatarService from reviewboard.testing import TestCase from reviewboard.avatars im...
31.178295
79
0.577076
f3eefd5d4ed395a6d12c4469d2c4b17a402bd53a
6,947
py
Python
study/fft_scratch/fft_scratch.py
ooshyun/filterdesign
59dbea191b8cd44aa9f2d02d3787b5805d486ae2
[ "MIT" ]
1
2021-12-27T00:38:32.000Z
2021-12-27T00:38:32.000Z
study/fft_scratch/fft_scratch.py
ooshyun/FilterDesign
7162ccad8e1ae8aebca370da56be56603b9e8b24
[ "MIT" ]
null
null
null
study/fft_scratch/fft_scratch.py
ooshyun/FilterDesign
7162ccad8e1ae8aebca370da56be56603b9e8b24
[ "MIT" ]
null
null
null
"""FFT Scratch Reference. Kor, proof of formula, https://ghebook.blogspot.com/2020/09/dft-discrete-fourier-transform.html Eng, Cooley and Tukey, http://jakevdp.github.io/blog/2013/08/28/understanding-the-fft/ """ import time import numpy as np import matplotlib.pyplot as plt fro...
26.822394
98
0.57478
f3f141bdc04d2f72d58f01681d83051418752dbc
1,462
py
Python
DomJudge/practica4/GRIDGRAP.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
DomJudge/practica4/GRIDGRAP.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
DomJudge/practica4/GRIDGRAP.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
import sys gridGraph()
24.779661
86
0.406293
f3f17fff22e7f8ac7262c2cba00af5fc47ce1b09
2,306
py
Python
naive_bayesian_classifier.py
sharathbp/Machine-Learning-Lab
dbe526cbbe70c7efec80d75729df8a9c08ed36ae
[ "MIT" ]
null
null
null
naive_bayesian_classifier.py
sharathbp/Machine-Learning-Lab
dbe526cbbe70c7efec80d75729df8a9c08ed36ae
[ "MIT" ]
null
null
null
naive_bayesian_classifier.py
sharathbp/Machine-Learning-Lab
dbe526cbbe70c7efec80d75729df8a9c08ed36ae
[ "MIT" ]
null
null
null
import csv from sklearn.model_selection import train_test_split import math if __name__=='__main__': outlookEnum = {'Sunny': 1, 'Overcast': 2, 'Rain': 3} tempEnum = {'Hot': 1, 'Mild': 2, 'Cool': 3} humidityEnum = {'High': 1, 'Normal': 2} windEnum = {'Weak': 1, 'Strong': 2} targetEnum = {'Y...
38.433333
127
0.607979
f3f185d8f1280ced4beaa18ce2780444622da736
5,177
py
Python
openid.py
DaniilSezonov/AuthServerClient
a8612e7fd14ee8b8d9c61c00bf74158fdd0c406c
[ "MIT" ]
null
null
null
openid.py
DaniilSezonov/AuthServerClient
a8612e7fd14ee8b8d9c61c00bf74158fdd0c406c
[ "MIT" ]
1
2021-06-02T00:55:52.000Z
2021-06-02T00:55:52.000Z
openid.py
DaniilSezonov/AuthServerClient
a8612e7fd14ee8b8d9c61c00bf74158fdd0c406c
[ "MIT" ]
null
null
null
import jwt import requests from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicNumbers from oauth2 import Oauth2, ResponseObject, RemoteUserProfile, OAuthDiscoveryError def load_jwk_by_remote(self, kid: str): """ :param kid:...
37.244604
132
0.655206
f3f2d71c6db199cae4fc7bd1a0bd4a4dca8500c2
456
py
Python
AllToDec.py
jeppard/infotrainer
6ee7083cb7c32f920e34143e710a99bc083ac25d
[ "MIT" ]
null
null
null
AllToDec.py
jeppard/infotrainer
6ee7083cb7c32f920e34143e710a99bc083ac25d
[ "MIT" ]
25
2018-02-16T09:51:17.000Z
2018-10-07T17:07:25.000Z
AllToDec.py
jeppard/infotrainer
6ee7083cb7c32f920e34143e710a99bc083ac25d
[ "MIT" ]
30
2018-03-01T15:38:00.000Z
2018-03-20T08:52:56.000Z
if __name__ == '__main__': AllToDec_ui()
22.8
73
0.458333
f3f3fbb9039875f5da60be146ba7494d53159550
6,526
py
Python
tool/alignment/pyalign/AbstractArchitecture.py
ssrg-vt/mklinux-compiler
aac7ff0c7fc83d2fa788cbfe8f49e99fcc81ca84
[ "Linux-OpenIB" ]
null
null
null
tool/alignment/pyalign/AbstractArchitecture.py
ssrg-vt/mklinux-compiler
aac7ff0c7fc83d2fa788cbfe8f49e99fcc81ca84
[ "Linux-OpenIB" ]
null
null
null
tool/alignment/pyalign/AbstractArchitecture.py
ssrg-vt/mklinux-compiler
aac7ff0c7fc83d2fa788cbfe8f49e99fcc81ca84
[ "Linux-OpenIB" ]
null
null
null
""" We put everything common to each in this class which act as an abstract class. Basically, this contains evething that is done per-architecture, but is done relatively the same way for each architecture. """ import subprocess, sys, os, re import Globals, ReadElfParser, Symbol from Globals import er, warn
33.639175
78
0.669782
f3f59869dbd3d0611e294410610c6a65e9b24a6e
1,343
py
Python
frame_example.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
4
2021-09-28T12:52:01.000Z
2022-02-24T22:30:22.000Z
frame_example.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
frame_example.py
svortega/steelpy
bef35eb8ab8728fc29f57b7070b5f3bac0b0e840
[ "MIT" ]
null
null
null
from steelpy import Trave3D from steelpy import Units from steelpy import f2uModel f2umodel = f2uModel(component='test2', mesh_type="inmemory") # units = Units() # material = f2umodel.materials material[1] = 'elastic' material[1].Fy = 345.0 * units.MPa material[1].E = 205000.0 * units.MPa material[1].G = 77200.0 * uni...
22.016393
62
0.655249
f3f696fb5d353f40355ec08222eead1d79939673
1,202
py
Python
dvc_preprocessing/macros.py
pedrodamas0803/dvc_preprocessing
eeb307f94b96567d612b4db2c277561c4ec2296f
[ "MIT" ]
null
null
null
dvc_preprocessing/macros.py
pedrodamas0803/dvc_preprocessing
eeb307f94b96567d612b4db2c277561c4ec2296f
[ "MIT" ]
null
null
null
dvc_preprocessing/macros.py
pedrodamas0803/dvc_preprocessing
eeb307f94b96567d612b4db2c277561c4ec2296f
[ "MIT" ]
null
null
null
from dvc_preprocessing import plot, preprocessing, constants from skimage.filters import threshold_otsu import numpy as np def auto_processing(filename, dirpath='./', data_type=np.int16, init_slice=0, final_slice="last", outname="output", ret="True"): ''' TODO: add outpath ''' stack = preprocessing.r...
30.820513
128
0.693012
f3f8f3a15cc9b7db02979a9f612225621dc97f24
3,751
py
Python
nanopores/scripts/ahemIV.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
8
2016-09-07T01:59:31.000Z
2021-03-06T12:14:31.000Z
nanopores/scripts/ahemIV.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
null
null
null
nanopores/scripts/ahemIV.py
jhwnkim/nanopores
98b3dbb5d36464fbdc03f59d224d38e4255324ce
[ "MIT" ]
4
2017-12-06T17:43:01.000Z
2020-05-01T05:41:14.000Z
import math, nanopores, dolfin # @Benjamin, Gregor TODO: # -) check permittivity and surface charge of ahem # -) what biased voltage to use? # some default values for parameters ### geo params [nm] geo_name = "aHem" domscale = 1. l4 = 15. l3 = 15. R = 20. r0 = 5. z0 = 10. exit_i = 1 badexit = {"upperbulkb"} goodexit...
37.138614
155
0.662223
f3fa1d202e32443b3b545facf9178168ac86882f
70,293
py
Python
cardea/fhir/ExplanationOfBenefit.py
sarahmish/Cardea
85c4246c12178e6d1b9cc12eb39c264f3c20f3e9
[ "MIT" ]
69
2021-01-28T22:25:10.000Z
2022-03-15T00:23:33.000Z
cardea/fhir/ExplanationOfBenefit.py
sarahmish/Cardea
85c4246c12178e6d1b9cc12eb39c264f3c20f3e9
[ "MIT" ]
30
2018-08-29T12:45:23.000Z
2019-12-24T11:08:12.000Z
cardea/fhir/ExplanationOfBenefit.py
sarahmish/Cardea
85c4246c12178e6d1b9cc12eb39c264f3c20f3e9
[ "MIT" ]
14
2021-03-24T01:21:25.000Z
2022-03-12T11:53:40.000Z
from .fhirbase import fhirbase
35.287651
86
0.620176
f3fa6a941511952cb0e1788927776ad1e137d47b
1,374
py
Python
homageapp/models.py
Isaacg94/-Awwards
456571df31465f0c7f555d0b21d767c153289390
[ "MIT" ]
null
null
null
homageapp/models.py
Isaacg94/-Awwards
456571df31465f0c7f555d0b21d767c153289390
[ "MIT" ]
1
2020-06-06T00:14:00.000Z
2020-06-06T00:14:00.000Z
homageapp/models.py
Isaacg94/Awwards
530ba38b32db9f765d21691e0e0ee2e2b289f0a6
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from pyuploadcare.dj.models import ImageField from tinymce.models import HTMLField # Create your models here.
29.869565
88
0.709607
f3fb61d42144e8f1564d3ffdaddb9a6f341e00ba
1,352
py
Python
2020/1/main.py
Samplasion/advent-of-code
aa3dc30737bc972f992802ea5e50c62f95d7943b
[ "MIT" ]
null
null
null
2020/1/main.py
Samplasion/advent-of-code
aa3dc30737bc972f992802ea5e50c62f95d7943b
[ "MIT" ]
null
null
null
2020/1/main.py
Samplasion/advent-of-code
aa3dc30737bc972f992802ea5e50c62f95d7943b
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Samplasion <samplasion@gmail.com> # # This software is released under the MIT License. # https://opensource.org/licenses/MIT TARGET = 2020 if __name__ == '__main__': main()
28.166667
99
0.533284
f3fc3878013c76ce0d72ef7770e074772b56e099
9,459
py
Python
pysynphot/test/test_tokenizer.py
dobos/pysynphot
5d2e0b52ceda78890940ac9239c2d88e149e0bed
[ "BSD-3-Clause" ]
24
2015-01-04T23:38:21.000Z
2022-02-01T00:11:07.000Z
pysynphot/test/test_tokenizer.py
dobos/pysynphot
5d2e0b52ceda78890940ac9239c2d88e149e0bed
[ "BSD-3-Clause" ]
126
2015-01-29T14:50:37.000Z
2022-02-15T01:58:13.000Z
pysynphot/test/test_tokenizer.py
dobos/pysynphot
5d2e0b52ceda78890940ac9239c2d88e149e0bed
[ "BSD-3-Clause" ]
25
2015-02-09T12:12:02.000Z
2021-09-09T13:06:54.000Z
from __future__ import absolute_import, division, print_function import pytest from ..spparser import Scanner scanner = Scanner() # Test of a single instance of each token. Does not test them in # context, but at least it tests that each one is recognized. tokens = [ # bug: the original pysynphot could not reco...
27.417391
76
0.461571
f3fc567c2486dbafb4136233c84bd2177a53e21f
5,494
py
Python
launch/full_recording.launch.py
Valts-M/ros2_com
647bfb815595309ef469cbf81a1f7f1b9bb1fc3c
[ "Apache-2.0" ]
null
null
null
launch/full_recording.launch.py
Valts-M/ros2_com
647bfb815595309ef469cbf81a1f7f1b9bb1fc3c
[ "Apache-2.0" ]
null
null
null
launch/full_recording.launch.py
Valts-M/ros2_com
647bfb815595309ef469cbf81a1f7f1b9bb1fc3c
[ "Apache-2.0" ]
null
null
null
import launch from launch.substitutions import Command, LaunchConfiguration from launch_ros.actions import LifecycleNode from launch.actions import EmitEvent from launch.actions import RegisterEventHandler from launch_ros.events.lifecycle import ChangeState from launch_ros.events.lifecycle import matches_node_name from...
37.37415
130
0.631962
f3fc907269919ea58efdcc699ee2085da711639e
19,605
py
Python
scuole/stats/schemas/tapr/schema_v2.py
texastribune/scuole
8ab316ee50ef0d8e71b94b50dc889d10c6e83412
[ "MIT" ]
1
2019-03-12T04:30:02.000Z
2019-03-12T04:30:02.000Z
scuole/stats/schemas/tapr/schema_v2.py
texastribune/scuole
8ab316ee50ef0d8e71b94b50dc889d10c6e83412
[ "MIT" ]
616
2017-08-18T21:15:39.000Z
2022-03-25T11:17:10.000Z
scuole/stats/schemas/tapr/schema_v2.py
texastribune/scuole
8ab316ee50ef0d8e71b94b50dc889d10c6e83412
[ "MIT" ]
null
null
null
SCHEMA = { # staff-and-student-information "all_students_count": "{short_code}PETALLC", "african_american_count": "{short_code}PETBLAC", "african_american_percent": "{short_code}PETBLAP", "american_indian_count": "{short_code}PETINDC", "american_indian_percent": "{short_code}PETINDP", "asian...
61.265625
100
0.762153
f3fcb3b4766538eda91633d45001366832944c1d
2,088
py
Python
python/test/twotemplates_test.py
jasonrbriggs/proton
c883a28b049cd5d3cef8aa05ebfbd95ec438884c
[ "Apache-2.0" ]
3
2015-07-04T12:09:57.000Z
2020-03-04T00:09:39.000Z
python/test/twotemplates_test.py
jasonrbriggs/proton
c883a28b049cd5d3cef8aa05ebfbd95ec438884c
[ "Apache-2.0" ]
1
2015-05-07T09:10:45.000Z
2016-10-10T18:30:21.000Z
python/test/twotemplates_test.py
jasonrbriggs/proton
c883a28b049cd5d3cef8aa05ebfbd95ec438884c
[ "Apache-2.0" ]
null
null
null
# # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be use...
35.389831
77
0.626437
f3fed70efe76821b13f574f22185b0c8fc08daa7
41,061
py
Python
python/ccxt/tprexchange.py
ThePeoplesReserve/ccxt
17c4678a07abac4cb972d968be2b79402921bc6e
[ "MIT" ]
null
null
null
python/ccxt/tprexchange.py
ThePeoplesReserve/ccxt
17c4678a07abac4cb972d968be2b79402921bc6e
[ "MIT" ]
null
null
null
python/ccxt/tprexchange.py
ThePeoplesReserve/ccxt
17c4678a07abac4cb972d968be2b79402921bc6e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import BadRequest from ccxt.base.e...
35.18509
179
0.445021
6d00a1ee2070f7278d45c1eaacd76a2febdce71a
460
py
Python
nine/c5.py
xiaolinzi-xl/python_imooc
07bde890e3ab0ddef4467b0c77ef33614339a657
[ "Apache-2.0" ]
null
null
null
nine/c5.py
xiaolinzi-xl/python_imooc
07bde890e3ab0ddef4467b0c77ef33614339a657
[ "Apache-2.0" ]
null
null
null
nine/c5.py
xiaolinzi-xl/python_imooc
07bde890e3ab0ddef4467b0c77ef33614339a657
[ "Apache-2.0" ]
null
null
null
from c6 import People # StudentPeople student1 = Student('',"",19) print(student1.sum) print(Student.sum) print(student1.name) print(student1.age) People.do_homework("","xiaolinzi")
23
46
0.673913
6d035bf526db2284b9052bfbfd582b261e79e7a6
805
py
Python
portal/libs/social_auth_pipeline/__init__.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/libs/social_auth_pipeline/__init__.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/libs/social_auth_pipeline/__init__.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
from django.http import HttpResponseRedirect from thedaily.models import OAuthState from thedaily.views import get_or_create_user_profile
38.333333
105
0.674534
6d04887a6c4a8dcd21ba5289795629d443831991
919
py
Python
serverless/aws/resources/sqs.py
epsyhealth/serverless-builder
6a1f943b5cabc4c4748234b1623a9ced6464043a
[ "MIT" ]
3
2022-03-16T14:25:03.000Z
2022-03-24T15:04:55.000Z
serverless/aws/resources/sqs.py
epsyhealth/serverless-builder
6a1f943b5cabc4c4748234b1623a9ced6464043a
[ "MIT" ]
3
2022-01-24T20:11:15.000Z
2022-01-26T19:33:20.000Z
serverless/aws/resources/sqs.py
epsyhealth/serverless-builder
6a1f943b5cabc4c4748234b1623a9ced6464043a
[ "MIT" ]
1
2022-02-15T13:54:29.000Z
2022-02-15T13:54:29.000Z
from troposphere.sqs import Queue as SQSQueue from serverless.aws.features.encryption import Encryption from serverless.aws.resources import Resource from serverless.aws.resources.kms import EncryptableResource from serverless.service.types import Identifier
31.689655
86
0.702938
6d0625dd2e18c12063fa26852ff1ebfcbd46b4df
396
py
Python
losses/rmse.py
borhanMorphy/facial-keypoints-detection
d2a0fe077d04ae6f2701af107b8322566f27a432
[ "MIT" ]
null
null
null
losses/rmse.py
borhanMorphy/facial-keypoints-detection
d2a0fe077d04ae6f2701af107b8322566f27a432
[ "MIT" ]
null
null
null
losses/rmse.py
borhanMorphy/facial-keypoints-detection
d2a0fe077d04ae6f2701af107b8322566f27a432
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F
33
81
0.691919
6d07153e68c1d9372772f8f69478bb21aaaff009
163
py
Python
iati/__init__.py
mcarans/hdx-scraper-iati-viz
b252b3ab99ae45c788eebf260368790681607721
[ "MIT" ]
null
null
null
iati/__init__.py
mcarans/hdx-scraper-iati-viz
b252b3ab99ae45c788eebf260368790681607721
[ "MIT" ]
null
null
null
iati/__init__.py
mcarans/hdx-scraper-iati-viz
b252b3ab99ae45c788eebf260368790681607721
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from iati.covid_checks import CovidChecks from iati.ebola_checks import EbolaChecks checks = {'covid': CovidChecks, 'ebola': EbolaChecks}
27.166667
53
0.748466
6d07329e9ea1eb9741dbc8294a06425bd37de9b6
295
py
Python
33. Python Programs/FactorialOfNumbers.py
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
225
2021-10-01T03:09:01.000Z
2022-03-11T11:32:49.000Z
33. Python Programs/FactorialOfNumbers.py
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
252
2021-10-01T03:45:20.000Z
2021-12-07T18:32:46.000Z
33. Python Programs/FactorialOfNumbers.py
Ujjawalgupta42/Hacktoberfest2021-DSA
eccd9352055085973e3d6a1feb10dd193905584b
[ "MIT" ]
911
2021-10-01T02:55:19.000Z
2022-02-06T09:08:37.000Z
for i in range(int(input())): fact=1 a=int(input()) for j in range(1,a+1,1): fact=fact*j print(fact) num = int(input('Enter number')) print("Factorial of",num,"is", factorial(num))
19.666667
57
0.559322
6d075ac2628154f04da3d85c667770e6d9e9db4a
9,620
py
Python
Stocks.py
ya332/stock-advisor
108138415f8aa5ce2dee26ca43d5a55b744e26e2
[ "MIT" ]
19
2015-06-27T17:23:36.000Z
2019-06-30T03:09:34.000Z
Stocks.py
ya332/stock-advisor
108138415f8aa5ce2dee26ca43d5a55b744e26e2
[ "MIT" ]
null
null
null
Stocks.py
ya332/stock-advisor
108138415f8aa5ce2dee26ca43d5a55b744e26e2
[ "MIT" ]
1
2018-10-24T04:45:05.000Z
2018-10-24T04:45:05.000Z
__author__ = 'Robbie Barrat' # I need the datetime module for telling the current date when I compare todays stock values to 5 days ago and such. import datetime # Yahoo Finance V. 1.1.4 from yahoo_finance import Share # Arrow -- replaced the old date module import arrow # Checks to see if it is currently the weekend...
46.699029
159
0.666632
6d07afd933b91df3022e8e6f670b97146b4008f1
1,600
py
Python
old/Basics/exampleButtons.py
JCTLearning/Project-Runner
3c36e0153900195cfa1736854b981b4f928d6043
[ "MIT" ]
null
null
null
old/Basics/exampleButtons.py
JCTLearning/Project-Runner
3c36e0153900195cfa1736854b981b4f928d6043
[ "MIT" ]
null
null
null
old/Basics/exampleButtons.py
JCTLearning/Project-Runner
3c36e0153900195cfa1736854b981b4f928d6043
[ "MIT" ]
null
null
null
from tkinter import * isOpen = True x = True """This Script is the Basic logic for the GUI (It will obviously have custom buttons and not be default buttons. Just created this to refer to creating buttons. We aren't using Datalists. We'll be putting their inputs into a .json file so we can call it back and average the...
30.769231
79
0.58875
6d09293ff75f6a47c63abbde7ef20019d664ac9e
1,447
py
Python
users/migrations/0013_auto_20190516_1528.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
null
null
null
users/migrations/0013_auto_20190516_1528.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
10
2019-05-15T06:25:36.000Z
2022-02-10T08:46:38.000Z
users/migrations/0013_auto_20190516_1528.py
JianaXu/productivity
f7478ce2f154538185f071d58a0e4a2cc0b17ee8
[ "bzip2-1.0.6" ]
1
2019-05-21T03:01:48.000Z
2019-05-21T03:01:48.000Z
# Generated by Django 2.1.1 on 2019-05-16 07:28 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
28.372549
153
0.545957
6d09b4cbf68db2a5c0a79dee77c17a78a642c1fb
2,651
py
Python
alipay/aop/api/domain/AlipaySecurityProdIfaaDevicepubkeyQueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySecurityProdIfaaDevicepubkeyQueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipaySecurityProdIfaaDevicepubkeyQueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import *
30.825581
87
0.62731
6d0a8c6c53165402b71b01f9aaaff6d34dc096d3
2,136
py
Python
server/baseball/management/commands/populate_player_stats.py
louisliv/baseball
1148785a6f2c03ced6ebcfcd209e45b901da26a3
[ "MIT" ]
null
null
null
server/baseball/management/commands/populate_player_stats.py
louisliv/baseball
1148785a6f2c03ced6ebcfcd209e45b901da26a3
[ "MIT" ]
null
null
null
server/baseball/management/commands/populate_player_stats.py
louisliv/baseball
1148785a6f2c03ced6ebcfcd209e45b901da26a3
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand import numpy as np import pandas as pd from django.conf import settings from baseball.models import Player, PlayerStats import sys import requests import datetime HITTING_BASE_URL = 'http://lookup-service-prod.mlb.com/json/named.sport_hitting_tm.bam' PITCHING_BASE_...
41.882353
120
0.538858
6d0abc1979057205543e071fcc6933f213509abc
890
py
Python
modules/dbnd-airflow-monitor/src/airflow_monitor/shared/base_server_monitor_config.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow-monitor/src/airflow_monitor/shared/base_server_monitor_config.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow-monitor/src/airflow_monitor/shared/base_server_monitor_config.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
null
null
null
from typing import Optional from uuid import UUID import attr from airflow_monitor.shared.base_monitor_config import BaseMonitorConfig
25.428571
84
0.705618
6d0b73f8bc71a48da3f6614383d88a81f192db83
1,956
py
Python
130.py
whoophee/DCP
ea023dc7c01a13ee17f7e9445c7a70a092025254
[ "MIT" ]
2
2018-07-29T18:39:15.000Z
2020-09-02T16:28:36.000Z
130.py
whoophee/DCP
ea023dc7c01a13ee17f7e9445c7a70a092025254
[ "MIT" ]
null
null
null
130.py
whoophee/DCP
ea023dc7c01a13ee17f7e9445c7a70a092025254
[ "MIT" ]
null
null
null
# This problem was asked by Facebook. # Given an array of numbers representing the stock prices of a company in chronological # order and an integer k, return the maximum profit you can make from k buys and sells. # You must buy the stock before you can sell it, and you must sell the stock before you can buy it again...
39.918367
106
0.59407
6d0e3402ff457c5aeb32f0b8f311699ddd2eab3e
4,100
py
Python
tests/graphql/objects/object_with_field_parameters/tests.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
1
2021-02-24T22:14:59.000Z
2021-02-24T22:14:59.000Z
tests/graphql/objects/object_with_field_parameters/tests.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
null
null
null
tests/graphql/objects/object_with_field_parameters/tests.py
ladal1/simple_api
1b5d560476bccad9f68a7331d092dbdb68c48bf7
[ "MIT" ]
null
null
null
from .objects import schema from tests.graphql.graphql_test_utils import GraphQLTestCase, remove_ws
22.651934
71
0.360244
6d0e511693ef1b09e6078dbdc27264169f8e1e71
9,006
py
Python
digaws/digaws.py
dcarrillo/digaws
b1f48d5534e0ca93c17434bd615ce4222d6966ba
[ "Apache-2.0" ]
7
2020-12-30T17:35:13.000Z
2021-09-02T14:36:00.000Z
digaws/digaws.py
dcarrillo/digaws
b1f48d5534e0ca93c17434bd615ce4222d6966ba
[ "Apache-2.0" ]
null
null
null
digaws/digaws.py
dcarrillo/digaws
b1f48d5534e0ca93c17434bd615ce4222d6966ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import ipaddress import json import logging import sys from datetime import datetime from pathlib import Path from typing import Any, Dict, List from dateutil import tz import requests from requests.exceptions import RequestException from . import __description__ from . import...
32.749091
97
0.572729