hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
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
368k
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
4
247
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
4
247
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
1d65e18706f1c8de8606f5b1c87e5a658cb46b71
872
py
Python
exercises/matrix-no-numpy/0480-matrix-no-numpy-mul2.py
mahaamesha/fi3201-01-2021-2
80c8fd74ae99c19c5421987c15f6a50985c3b69d
[ "MIT" ]
null
null
null
exercises/matrix-no-numpy/0480-matrix-no-numpy-mul2.py
mahaamesha/fi3201-01-2021-2
80c8fd74ae99c19c5421987c15f6a50985c3b69d
[ "MIT" ]
null
null
null
exercises/matrix-no-numpy/0480-matrix-no-numpy-mul2.py
mahaamesha/fi3201-01-2021-2
80c8fd74ae99c19c5421987c15f6a50985c3b69d
[ "MIT" ]
null
null
null
# 0480-matrix-no-numpy-mul2.py # Multiply a matrix with a matrix # 20220216 Create this example. import matrix as mat # multiply a matrix with a matrix # define a list as two-dimension matrix m1 = [ [1, 1, 1], [1, 2, 1], ] m2 = [ [1, 1], [1, 2], [1, 1], ] m3 = mulmat2(m1, m2) # display ...
18.956522
53
0.540138
# 0480-matrix-no-numpy-mul2.py # Multiply a matrix with a matrix # 20220216 Create this example. import matrix as mat # multiply a matrix with a matrix def mulmat2(m1, m2): # assume column of 1st and row of 2nd are matched row = len(m1) # m1 (row x mid) mid = len(m1[0]) # m2 (mid x col) col =...
0
0
0
0
0
432
0
0
22
c32bc0aa73f4cc496b7277089923a9e0bfb3eaaf
3,122
py
Python
cluster/run.py
jfunston/chogori-platform
e329e892411eeb2142c8d4b603944244d3c559d4
[ "MIT" ]
null
null
null
cluster/run.py
jfunston/chogori-platform
e329e892411eeb2142c8d4b603944244d3c559d4
[ "MIT" ]
null
null
null
cluster/run.py
jfunston/chogori-platform
e329e892411eeb2142c8d4b603944244d3c559d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' MIT License Copyright (c) 2020 Futurewei Cloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
44.6
119
0.71909
#!/usr/bin/env python3 ''' MIT License Copyright (c) 2020 Futurewei Cloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
0
0
0
0
0
0
0
0
0
cd988cca68d439b9a17f793b879fa7a77f20d02a
544
py
Python
toy-evolve/advection_sine_minmod_lf_rk2.py
IanHawke/toy-evolve
a1490327dd19492e2c0bb0d9c6909abe8b167135
[ "MIT" ]
null
null
null
toy-evolve/advection_sine_minmod_lf_rk2.py
IanHawke/toy-evolve
a1490327dd19492e2c0bb0d9c6909abe8b167135
[ "MIT" ]
null
null
null
toy-evolve/advection_sine_minmod_lf_rk2.py
IanHawke/toy-evolve
a1490327dd19492e2c0bb0d9c6909abe8b167135
[ "MIT" ]
null
null
null
# Advection test evolution from models import advection from bcs import periodic from simulation import simulation from methods import minmod_lf from rk import rk2 from grid import grid Npoints = 20 Ngz = 2 interval = grid([-0.5, 0.5], Npoints, Ngz) model = advection.advection(v=1, initia...
28.631579
76
0.694853
# Advection test evolution from models import advection from bcs import periodic from simulation import simulation from methods import minmod_lf from rk import rk2 from grid import grid Npoints = 20 Ngz = 2 interval = grid([-0.5, 0.5], Npoints, Ngz) model = advection.advection(v=1, initia...
0
0
0
0
0
0
0
0
0
ebf355dc451b7f254a5306471df7eb03b476bbc6
651
py
Python
math_ops_linear algebra/tf_tensordot.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
7
2017-10-19T13:59:24.000Z
2019-11-26T03:40:08.000Z
math_ops_linear algebra/tf_tensordot.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
null
null
null
math_ops_linear algebra/tf_tensordot.py
Asurada2015/TFAPI_translation
1c8d9432b0b8a21c2bb5670b25456d095d0a1ecf
[ "Apache-2.0" ]
5
2018-08-22T02:57:03.000Z
2020-03-05T07:14:21.000Z
import tensorflow as tf """tf.tensordot(a, b, axes, name=None) numpy.tensordotaxis axes=1axes=[[1],[0]]""" a = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) b = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) z = tf.tensordot(a, b, axes=[[1], [1]]) # z1 = tf.tensordot(a, b, axes=[[1], [0]]) ...
28.304348
62
0.55914
import tensorflow as tf """tf.tensordot(a, b, axes, name=None) 功能:同numpy.tensordot,根据axis计算点乘。 输入:axes=1或axes=[[1],[0]],即为矩阵乘。""" a = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) b = tf.constant([1, 2, 3, 4], shape=[2, 2], dtype=tf.float64) z = tf.tensordot(a, b, axes=[[1], [1]]) # 第一个矩阵的行乘上第二个矩阵的行 z1 ...
219
0
0
0
0
0
0
0
0
af04ccd5613fc991ffd9f0612b1286cb60a1fb67
4,853
py
Python
examples/follow_suit/feature_extractor/edl_gen/generate_predictions.py
DanCunnington/FFNSL
fb81da074e95210b75869265d10b645ffde88549
[ "MIT" ]
null
null
null
examples/follow_suit/feature_extractor/edl_gen/generate_predictions.py
DanCunnington/FFNSL
fb81da074e95210b75869265d10b645ffde88549
[ "MIT" ]
null
null
null
examples/follow_suit/feature_extractor/edl_gen/generate_predictions.py
DanCunnington/FFNSL
fb81da074e95210b75869265d10b645ffde88549
[ "MIT" ]
null
null
null
import tensorflow as tf import sys import numpy as np import json import torch import pandas as pd from tensorflow.saved_model import tag_constants from os.path import dirname, realpath # Add root directory to path file_path = realpath(__file__) file_dir = dirname(file_path) parent_dir = dirname(file_dir) sys.path.app...
42.570175
114
0.59489
import tensorflow as tf import sys import numpy as np import json import torch import pandas as pd from tensorflow.saved_model import tag_constants from os.path import dirname, realpath # Add root directory to path file_path = realpath(__file__) file_dir = dirname(file_path) parent_dir = dirname(file_dir) sys.path.app...
0
0
0
325
0
0
0
0
23
e300fd872179c96d2e6a5a81b24d1e6c14c183a9
2,227
py
Python
plugins/maintenance/metadata.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
175
2015-01-19T10:09:57.000Z
2022-03-31T18:23:03.000Z
plugins/maintenance/metadata.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
31
2015-01-19T10:40:20.000Z
2017-11-02T17:40:45.000Z
plugins/maintenance/metadata.py
graphite-project/ceres
0804b6e15857aec461aec76b365bd94c40e30fae
[ "Apache-2.0" ]
49
2015-01-06T05:46:51.000Z
2021-05-13T03:12:06.000Z
try: from carbon.storage import loadStorageSchemas, loadAggregationSchemas SCHEMAS = loadStorageSchemas() AGGREGATION_SCHEMAS = loadAggregationSchemas() except ImportError: SCHEMAS = [] AGGREGATION_SCHEMAS = [] # Update metadata to match carbon schemas.
28.551282
92
0.709026
from itertools import izip try: from carbon.storage import loadStorageSchemas, loadAggregationSchemas SCHEMAS = loadStorageSchemas() AGGREGATION_SCHEMAS = loadAggregationSchemas() except ImportError: SCHEMAS = [] AGGREGATION_SCHEMAS = [] def determine_metadata(metric): metadata = dict(timeStep=None, rete...
0
0
0
0
0
1,887
0
5
67
f07666f43ab5eca82f395e078a80a4df700d2441
1,101
py
Python
tngs_results/models.py
rdemolgen/NGS-LIMS
9f10d264897c8b3da32520cd57bc47a592aa6131
[ "MIT" ]
null
null
null
tngs_results/models.py
rdemolgen/NGS-LIMS
9f10d264897c8b3da32520cd57bc47a592aa6131
[ "MIT" ]
null
null
null
tngs_results/models.py
rdemolgen/NGS-LIMS
9f10d264897c8b3da32520cd57bc47a592aa6131
[ "MIT" ]
null
null
null
# Create your models here. #class Al_batch_output(models.Models): #class Coverage_by_base(models.Model): # patient = models.ForeignKey(Patient, on_delete=models.CASCADE) # chromosome = models.CharField(max_length=2) # genomic_coordinate = models.CharField(max_length=30) # depth_of_coverage = models.CharF...
39.321429
93
0.739328
from django.db import models # Create your models here. class Sample_list(models.Model): sequencing_panel_version = models.CharField(max_length=100, blank=True) capture_number = models.CharField(max_length=100, blank=True) mody_number = models.CharField(max_length=100, blank=True) ex_number = models.Ch...
0
0
0
571
0
0
0
7
44
ba228815b4ba54f8ab37ab6654102f19eb9da246
293
py
Python
djangular/scrumboard/urls.py
abumukhlis/djangular
a506152187f2703db1fa98c98a8ddd5afdbe9a8a
[ "MIT" ]
null
null
null
djangular/scrumboard/urls.py
abumukhlis/djangular
a506152187f2703db1fa98c98a8ddd5afdbe9a8a
[ "MIT" ]
null
null
null
djangular/scrumboard/urls.py
abumukhlis/djangular
a506152187f2703db1fa98c98a8ddd5afdbe9a8a
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.views.generic import TemplateView from .api import ListApi, CardApi urlpatterns = [ url(r'^lists$', ListApi.as_view()), url(r'^cards$', CardApi.as_view()), url(r'^home', TemplateView.as_view(template_name="scrumboard/home.html")), ]
24.416667
78
0.713311
from django.conf.urls import url from django.views.generic import TemplateView from .api import ListApi, CardApi urlpatterns = [ url(r'^lists$', ListApi.as_view()), url(r'^cards$', CardApi.as_view()), url(r'^home', TemplateView.as_view(template_name="scrumboard/home.html")), ]
0
0
0
0
0
0
0
0
0
1b1712b7058692c9686ce8295db8b259edd19095
142
py
Python
equality/util/default_root.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
10
2021-07-04T15:14:12.000Z
2021-10-17T14:52:56.000Z
equality/util/default_root.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
11
2021-07-04T19:31:36.000Z
2022-01-11T02:46:23.000Z
equality/util/default_root.py
grayfallstown/equality-blockchain
019425b703f6b013e441481ac43389a80415f2f1
[ "Apache-2.0" ]
11
2021-07-04T21:49:17.000Z
2021-10-04T17:45:38.000Z
import os from pathlib import Path DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("EQUALITY_ROOT", "~/.equality/mainnet"))).resolve()
28.4
105
0.767606
import os from pathlib import Path DEFAULT_ROOT_PATH = Path(os.path.expanduser(os.getenv("EQUALITY_ROOT", "~/.equality/mainnet"))).resolve()
0
0
0
0
0
0
0
0
0
5f895f7e7d7b781823aafb786f119240b7436565
3,116
py
Python
Python_datetime_module.py
smalik-hub/Python_datetime_module
f42d4db8d7ed2f07bc32f4206f483d38ade4e23a
[ "MIT" ]
null
null
null
Python_datetime_module.py
smalik-hub/Python_datetime_module
f42d4db8d7ed2f07bc32f4206f483d38ade4e23a
[ "MIT" ]
null
null
null
Python_datetime_module.py
smalik-hub/Python_datetime_module
f42d4db8d7ed2f07bc32f4206f483d38ade4e23a
[ "MIT" ]
null
null
null
import datetime def days_in_month(year, month): """ Inputs: year - an integer between datetime.MINYEAR and datetime.MAXYEAR representing the year month - an integer between 1 and 12 representing the month Returns: The number of days in the input month. """ if month...
29.121495
74
0.630937
import datetime def days_in_month(year, month): """ Inputs: year - an integer between datetime.MINYEAR and datetime.MAXYEAR representing the year month - an integer between 1 and 12 representing the month Returns: The number of days in the input month. """ if month...
0
0
0
0
0
0
0
0
0
4b1c1c2bd38dd57c68ccab633122f46bc2570918
11,854
py
Python
analyze_metric_evaluation_results.py
webis-de/IJCAI-21
1f9fccb07d0d6d1b73da787a1bce499b641c3a5e
[ "MIT" ]
1
2022-03-26T22:30:30.000Z
2022-03-26T22:30:30.000Z
analyze_metric_evaluation_results.py
webis-de/IJCAI-21
1f9fccb07d0d6d1b73da787a1bce499b641c3a5e
[ "MIT" ]
1
2021-09-08T08:26:38.000Z
2021-09-08T08:26:38.000Z
analyze_metric_evaluation_results.py
webis-de/IJCAI-21
1f9fccb07d0d6d1b73da787a1bce499b641c3a5e
[ "MIT" ]
null
null
null
import argparse import logging import numpy as np from webias.constants import BIAS_METRIC_LIMITS, BIAS_METRIC_ZERO, LOGGING_CONFIG def calculate_mean_values(results_per_run: list) -> float: """Calculate the mean values of each dimension for the given lists of runs. Return a list of means. Arguments: ...
38.487013
100
0.667117
import argparse import json import logging import numpy as np from datetime import datetime from os import path from webias.constants import BIAS_METRIC_LIMITS, BIAS_METRIC_ZERO, LOGGING_CONFIG def calculate_mean_values(results_per_run: list) -> float: """Calculate the mean values of each dimension for the give...
0
0
0
0
0
1,442
0
-4
90
260e08f52c4a559ef75f86a101130dc3363e4001
465
py
Python
main.py
GrayXu/NCBI-SuppMat-Spider
bb225095d4fa00a0192c9f5d5b517e3ec155a758
[ "MIT" ]
null
null
null
main.py
GrayXu/NCBI-SuppMat-Spider
bb225095d4fa00a0192c9f5d5b517e3ec155a758
[ "MIT" ]
1
2021-06-12T04:26:46.000Z
2021-06-18T09:28:57.000Z
main.py
GrayXu/NCBI-SuppMat-Spider
bb225095d4fa00a0192c9f5d5b517e3ec155a758
[ "MIT" ]
null
null
null
from searcher import NCBI_searcher # this api_key is only for testing. So pls use your api_key from ur NCBI accounts, otherwise it will effect your speed api_key = '1cb4976dd163905feedacce5da0f10552309' keywords = "metabolomics" keywords_file = "propanoyl-CoA" searcher = NCBI_searcher(api_key=api_key, len_limit=0) ...
29.0625
118
0.806452
from searcher import NCBI_searcher # this api_key is only for testing. So pls use your api_key from ur NCBI accounts, otherwise it will effect your speed api_key = '1cb4976dd163905feedacce5da0f10552309' keywords = "metabolomics" keywords_file = "propanoyl-CoA" searcher = NCBI_searcher(api_key=api_key, len_limit=0) ...
0
0
0
0
0
0
0
0
0
5d9e84e34faf87ac083193ffe9a009e679d66385
40,212
py
Python
general/tasks_importer/sdk/swagger_client/api/users_api.py
CitizenScienceCenter/c3s_tools
36479905ffbeb2bdabbc2be145dfe4fe7258ef5d
[ "Apache-2.0" ]
null
null
null
general/tasks_importer/sdk/swagger_client/api/users_api.py
CitizenScienceCenter/c3s_tools
36479905ffbeb2bdabbc2be145dfe4fe7258ef5d
[ "Apache-2.0" ]
1
2022-03-22T22:11:21.000Z
2022-03-22T22:11:21.000Z
general/tasks_importer/sdk/swagger_client/api/users_api.py
CitizenScienceCenter/c3s_tools
36479905ffbeb2bdabbc2be145dfe4fe7258ef5d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ CCCS No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # python 2 and pyt...
36.556364
154
0.582985
# coding: utf-8 """ CCCS No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa:...
0
0
0
39,755
0
0
0
3
105
996bffea97a333db29faf95a43c538be6ca01063
1,167
py
Python
bin/generate-download-arrow.py
imagejan/fiji
e0c077afd0b121fc8e74955e7b5bda7175e111ed
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-14T06:26:16.000Z
2022-03-14T06:26:16.000Z
bin/generate-download-arrow.py
imagejan/fiji
e0c077afd0b121fc8e74955e7b5bda7175e111ed
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2016-09-24T16:47:43.000Z
2016-09-24T16:47:43.000Z
bin/generate-download-arrow.py
imagejan/fiji
e0c077afd0b121fc8e74955e7b5bda7175e111ed
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from ij import IJ from ij.gui import ShapeRoi from java.awt import Color, Polygon from java.awt.geom import PathIterator w = int(36) h = int(42) lineWidth = 2 arrowWidth = 16 image = IJ.createImage('Download arrow', 'rgb', w, h, 1) ip = image.getProcessor() ip.setLineWidth(lineWidth) ip.setColor(Color(0x65a4e3)) roi ...
29.175
56
0.723222
from ij import IJ from ij.gui import ShapeRoi from java.awt import Color, Polygon from java.awt.geom import PathIterator w = int(36) h = int(42) lineWidth = 2 arrowWidth = 16 image = IJ.createImage('Download arrow', 'rgb', w, h, 1) ip = image.getProcessor() ip.setLineWidth(lineWidth) ip.setColor(Color(0x65a4e3)) roi ...
0
0
0
0
0
0
0
0
0
12d2de0f1f8174b334d048e70abd7141b3e876ad
10,289
py
Python
tests/test_lnd.py
ln2max/noma
766536768b0f839cfb1bcaf2fbaa024381898a3f
[ "Apache-2.0" ]
6
2019-03-18T16:55:13.000Z
2021-07-14T23:49:15.000Z
tests/test_lnd.py
ln2max/noma
766536768b0f839cfb1bcaf2fbaa024381898a3f
[ "Apache-2.0" ]
75
2019-03-19T02:45:30.000Z
2019-12-28T04:11:33.000Z
tests/test_lnd.py
ln2max/noma
766536768b0f839cfb1bcaf2fbaa024381898a3f
[ "Apache-2.0" ]
2
2019-03-28T08:44:02.000Z
2019-07-17T20:26:47.000Z
"""Test LND functions""" import unittest if __name__ == "__main__": unittest.main()
37.010791
83
0.59549
"""Test LND functions""" import logging import random import json import unittest from unittest import mock from noma import lnd import noma.config as cfg class TestComplete(Exception): """Raise me to stop the test, we're done""" class Unhappy(Exception): """Something has gone wrong""" class LndCreateWall...
0
9,559
0
454
0
0
0
-18
201
4736efc5a7f23956e05fb23e36e0c4950f3c51db
815
py
Python
scouter/sns/publiclyExposedTopics.py
hmussana/Scouter
d0a6acd5756e0d9c13f4a2a193a77340fa0df28a
[ "MIT" ]
11
2018-12-21T11:45:45.000Z
2021-05-26T08:13:32.000Z
scouter/sns/publiclyExposedTopics.py
hmussana/Scouter
d0a6acd5756e0d9c13f4a2a193a77340fa0df28a
[ "MIT" ]
2
2019-10-11T07:50:33.000Z
2021-05-29T22:50:07.000Z
scouter/sns/publiclyExposedTopics.py
hmussana/Scouter
d0a6acd5756e0d9c13f4a2a193a77340fa0df28a
[ "MIT" ]
7
2019-04-12T06:45:31.000Z
2021-05-26T08:13:55.000Z
#!/usr/bin/python3 if __name__ == '__main__': main()
24.69697
66
0.733742
#!/usr/bin/python3 from jmespath import search as queryJson import boto3 import json def parseJson(query, jsonObj): return(queryJson(query, jsonObj)) def topicsList(clientApiCall): topics = clientApiCall.list_topics() topicsList = parseJson('Topics[*].TopicArn', topics) return(topicsList) def getTopicsAttrs(...
0
0
0
0
0
601
0
0
159
347bed225edd8991964acd25c8ce13fed93d87e7
4,475
py
Python
trove/tests/unittests/configuration/test_configuration_controller.py
denismakogon/trove
753f80d4c833efbd83eb184b10aba0d18babe34b
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/configuration/test_configuration_controller.py
denismakogon/trove
753f80d4c833efbd83eb184b10aba0d18babe34b
[ "Apache-2.0" ]
null
null
null
trove/tests/unittests/configuration/test_configuration_controller.py
denismakogon/trove
753f80d4c833efbd83eb184b10aba0d18babe34b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Rackspace # 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 app...
35.23622
78
0.599777
# Copyright 2014 Rackspace # 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 app...
0
0
0
3,646
0
0
0
66
135
81c7f112eb4726b9839c0de9698433750367c98d
4,710
py
Python
bed_vcf_match/read_vcf.py
troycomi/bed_vcf_match
66ca12b3d41cfa9bea060f1a97afae9095ee8db5
[ "MIT" ]
null
null
null
bed_vcf_match/read_vcf.py
troycomi/bed_vcf_match
66ca12b3d41cfa9bea060f1a97afae9095ee8db5
[ "MIT" ]
null
null
null
bed_vcf_match/read_vcf.py
troycomi/bed_vcf_match
66ca12b3d41cfa9bea060f1a97afae9095ee8db5
[ "MIT" ]
null
null
null
''' read_vcf Read a vcf file into pandas data frame ''' import pandas as pd from typing import TextIO, List import numpy as np def import_vcf(vcf_reader: TextIO, dataframe: pd.DataFrame = None, check_phasing: bool = False, individuals: List[str] = None) -> pd.DataFrame:...
33.169014
79
0.552866
''' read_vcf Read a vcf file into pandas data frame ''' import pandas as pd from typing import TextIO, List import numpy as np def import_vcf(vcf_reader: TextIO, dataframe: pd.DataFrame = None, check_phasing: bool = False, individuals: List[str] = None) -> pd.DataFrame:...
0
0
0
0
0
199
0
0
57
8ef1a24988dd589571d3796d3f6dd516e65ebe82
3,152
py
Python
helpers.py
its-development/django-api-wrapper
30627cbd14363d5abf806e7eddbceb653189d3c6
[ "MIT" ]
null
null
null
helpers.py
its-development/django-api-wrapper
30627cbd14363d5abf806e7eddbceb653189d3c6
[ "MIT" ]
2
2021-07-02T10:00:32.000Z
2022-02-06T17:47:56.000Z
helpers.py
its-development/django-api-wrapper
30627cbd14363d5abf806e7eddbceb653189d3c6
[ "MIT" ]
null
null
null
# TODO: Delete duplicate code
23.522388
108
0.580584
import binascii import functools import json import os from rest_framework import permissions from rest_framework import exceptions from api.exceptions import * from api.cryptor import ApiCrypto class ApiHelpers: @staticmethod def rgetattr(obj, attr, *args): def _getattr(obj, attr): ret...
0
2,658
0
-4
0
0
0
19
443
a4cdd1af856d3df5d9e3908e411c9966e40a2a98
1,563
py
Python
escalate/core/experiment_templates/wf1.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
11
2020-09-29T13:59:02.000Z
2022-03-23T04:57:52.000Z
escalate/core/experiment_templates/wf1.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
95
2019-11-18T20:10:49.000Z
2022-03-31T17:09:49.000Z
escalate/core/experiment_templates/wf1.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
2
2021-11-26T18:22:08.000Z
2022-03-31T11:57:10.000Z
#
50.419355
92
0.677543
from core.models.view_tables import Edocument from core.models.core_tables import TypeDef from core.utilities.wf1_utils import generate_robot_file, generate_robot_file_wf1 # def perovskite_demo(data, q1, experiment_copy_uuid, exp_name, exp_template): robotfile_blob = generate_robot_file(q1,data,'Symyx_96_well_0003...
0
0
0
0
0
1,343
0
106
111
a2400a9a19b6520a2473a735fb5534581c2c1f3d
8,106
py
Python
atomsci/ddm/utils/pubchem_utils.py
truatpasteurdotfr/AMPL
0295d56166632647b194e7221eab315bac74dfe0
[ "MIT" ]
1
2019-12-18T20:02:58.000Z
2019-12-18T20:02:58.000Z
atomsci/ddm/utils/pubchem_utils.py
kim79sookyung/AMPL
68dd7a8004272d22ef5d975c57e1e9149c820f8b
[ "MIT" ]
3
2022-01-13T03:51:49.000Z
2022-03-12T00:59:39.000Z
atomsci/ddm/utils/pubchem_utils.py
kim79sookyung/AMPL
68dd7a8004272d22ef5d975c57e1e9149c820f8b
[ "MIT" ]
null
null
null
import urllib.request as urlreq import io, json import pandas as pd # ****************************************************************************************************************************************** def download_smiles(myList,intv=1) : """Retrieve canonical SMILES strings for a list of input INCHIKEYS. ...
34.939655
235
0.535283
import urllib.request as urlreq import io,json import pandas as pd # ****************************************************************************************************************************************** def download_smiles(myList,intv=1) : """Retrieve canonical SMILES strings for a list of input INCHIKEYS. ...
0
0
0
0
0
0
0
-1
0
637349731dc5abe031e309e3d3391e433f291f81
7,785
py
Python
others/save_model_result.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
others/save_model_result.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
others/save_model_result.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
# main imports import sys, os # models imports # image processing imports # modules imports sys.path.insert(0, '') # trick to enable import of main folder module import custom_config as cfg # variables and parameters threshold_map_folder = cfg.threshold_map_folder threshold_map_file_prefix = cfg.threshol...
35.711009
131
0.721901
# main imports import numpy as np import pandas as pd import sys, os, argparse import subprocess import time import json # models imports from sklearn.utils import shuffle from sklearn.externals import joblib from sklearn.metrics import accuracy_score, f1_score, recall_score, roc_auc_score from sklearn.model_selectio...
0
0
0
0
0
6,673
0
166
309
f70e8a5e36b7b6fa9004e87414745e7ec78d75f6
96
py
Python
venv/lib/python3.8/site-packages/keyring/backends/SecretService.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/keyring/backends/SecretService.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/keyring/backends/SecretService.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/b7/df/1e/7980259571f5a43b5ac0c36215dfc4b1485986d14af13b40a821ae930f
96
96
0.895833
/home/runner/.cache/pip/pool/b7/df/1e/7980259571f5a43b5ac0c36215dfc4b1485986d14af13b40a821ae930f
0
0
0
0
0
0
0
0
0
e08073175d03b4f48203fa10fa8dd47aa503d0ff
1,201
py
Python
projecteuler/Question6.py
ashwinchidambaram/PythonCode
8599fa1210e9eefbb9f680712c2edabb7acd2157
[ "MIT" ]
null
null
null
projecteuler/Question6.py
ashwinchidambaram/PythonCode
8599fa1210e9eefbb9f680712c2edabb7acd2157
[ "MIT" ]
null
null
null
projecteuler/Question6.py
ashwinchidambaram/PythonCode
8599fa1210e9eefbb9f680712c2edabb7acd2157
[ "MIT" ]
null
null
null
# Ashwin Chidambaram ## # Task: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum ## ##########################################################...
28.595238
130
0.502914
# Ashwin Chidambaram ## # Task: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum ## ##########################################################...
0
0
0
0
0
0
0
0
0
ecbef9a6ed4d21337a001701bed1db3e21bb31d4
2,978
py
Python
Experiments/MAIN/m_evaluate_model.py
j-wilhelm/Automatic_description_generation
5f2eff0cbc42917e04d23abf231394e98d0db554
[ "FSFAP" ]
null
null
null
Experiments/MAIN/m_evaluate_model.py
j-wilhelm/Automatic_description_generation
5f2eff0cbc42917e04d23abf231394e98d0db554
[ "FSFAP" ]
null
null
null
Experiments/MAIN/m_evaluate_model.py
j-wilhelm/Automatic_description_generation
5f2eff0cbc42917e04d23abf231394e98d0db554
[ "FSFAP" ]
null
null
null
# These need to be at the top to allow for running on cluster import os import sys cwd = os.getcwd() sys.path.append(cwd) # Other imports import json import getopt from h_captionmodel import CaptionModel import time import tensorflow.keras.backend as K arguments = getopt.getopt(sys.argv[1:], shortopts=...
38.179487
121
0.658496
# These need to be at the top to allow for running on cluster import os import random import sys cwd = os.getcwd() sys.path.append(cwd) # Other imports import json import getopt from h_captionmodel import CaptionModel import pickle import time import tensorflow.keras.backend as K arguments = getopt.g...
0
0
0
0
0
0
0
-16
46
004f63b232f6de82e719f0bb174dfade3dd58281
2,613
py
Python
cowin_notifier.py
nirmannarang/cowin-slot-notifier
87e626973cecfd7829e748e8d3b5cf80610feb0e
[ "MIT" ]
null
null
null
cowin_notifier.py
nirmannarang/cowin-slot-notifier
87e626973cecfd7829e748e8d3b5cf80610feb0e
[ "MIT" ]
null
null
null
cowin_notifier.py
nirmannarang/cowin-slot-notifier
87e626973cecfd7829e748e8d3b5cf80610feb0e
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from datetime import date, datetime #Refresh Interval in seconds ref_interval = 5 d_today = date.today() age_limit = 18 __district_code = "363" dt = d_today.strftime("%d/%m/%Y") __date_today = str(dt).replace("/","-") time_now = datetime.now() if __name__ == '__main__': check_slot() wh...
35.310811
218
0.66437
#! /usr/bin/python3 import os import telegram_send import requests from datetime import date,datetime from time import time,ctime,sleep #Refresh Interval in seconds ref_interval = 5 d_today = date.today() age_limit = 18 __district_code = "363" dt = d_today.strftime("%d/%m/%Y") __date_today = str(dt).replace("/","...
0
0
0
0
0
2,043
0
-8
135
7d809051c608d71775c172088fd72765826b9a34
819
py
Python
more_autograding_examples/python_random_input_output/submissions/solution.py
elihschiff/Submitty
8b980997b6f1dfcd73eb4cf4cca43398e67f96dc
[ "BSD-3-Clause" ]
411
2016-06-14T20:52:25.000Z
2022-03-31T21:20:25.000Z
more_autograding_examples/python_random_input_output/submissions/solution.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
5,730
2016-05-23T21:04:32.000Z
2022-03-31T10:08:06.000Z
more_autograding_examples/python_random_input_output/submissions/solution.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
423
2016-09-22T21:11:30.000Z
2022-03-29T18:55:28.000Z
import sys print ("#icebucketchallenge vs #alsicebucketchallenge, percentage change") print_change(200,500,100,300) print_change(500,2000,300,1500) print_change(2000,12000,1500,13000) print_change(12000,24000,13000,25000) print_change(24000,65000,25000,105000) print_change(65000,70000,105000,85000) # read the last te...
26.419355
74
0.70696
import sys def percent_change(old,new): return int(100*(float(new)-old)/old) def print_change(old1, new1, old2, new2): p1 = percent_change(old1,new1) p2 = percent_change(old2,new2) print (p1, "vs", p2) print ("#icebucketchallenge vs #alsicebucketchallenge, percentage change") print_change(200,500,100...
0
0
0
0
0
163
0
0
46
c5a2237689eaa1a6a7770832e2664d34b8c27402
930
py
Python
setup.py
Alex-Linhares/gscholar
25388d57dacf5f1fe905321dbf9ec59362c1e92c
[ "MIT" ]
1
2019-06-25T16:55:33.000Z
2019-06-25T16:55:33.000Z
setup.py
Alex-Linhares/gscholar
25388d57dacf5f1fe905321dbf9ec59362c1e92c
[ "MIT" ]
null
null
null
setup.py
Alex-Linhares/gscholar
25388d57dacf5f1fe905321dbf9ec59362c1e92c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup import gscholar setup(name='gscholar', version=gscholar.__VERSION__, description='Python library to query Google Scholar.', long_description='This package provides a python package and CLI to query google scholar and get references in various form...
31
163
0.61828
#!/usr/bin/env python from setuptools import setup import gscholar setup(name='gscholar', version=gscholar.__VERSION__, description='Python library to query Google Scholar.', long_description='This package provides a python package and CLI to query google scholar and get references in various form...
0
0
0
0
0
0
0
0
0
79065e5eadad7bc0e642e51294c0672d7f8e4553
13,148
py
Python
gensim/gensim/corpora/hashdictionary.py
Abas-Khan/thesis
b733bd4382371203cc4992571890619a2e314047
[ "MIT" ]
null
null
null
gensim/gensim/corpora/hashdictionary.py
Abas-Khan/thesis
b733bd4382371203cc4992571890619a2e314047
[ "MIT" ]
null
null
null
gensim/gensim/corpora/hashdictionary.py
Abas-Khan/thesis
b733bd4382371203cc4992571890619a2e314047
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Homer Strong, Radim Rehurek # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """This module implements the "hashing trick" [1]_ -- a mapping between words and their integer ids using a fixed and static mapping. Notes -----...
37.673352
120
0.604198
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Homer Strong, Radim Rehurek # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """This module implements the "hashing trick" [1]_ -- a mapping between words and their integer ids using a fixed and static mapping. Notes -----...
28
80
0
11,689
0
0
0
2
112
0928532889196818149862e59a74c27dd46f1441
8,365
py
Python
Labs_Python/lab6_the_basics/albright_lab6c.py
King-Nivek/Scripting_Class
80e8fd0a5fcb1fddebd41d5bda416208cdd564e0
[ "RSA-MD" ]
null
null
null
Labs_Python/lab6_the_basics/albright_lab6c.py
King-Nivek/Scripting_Class
80e8fd0a5fcb1fddebd41d5bda416208cdd564e0
[ "RSA-MD" ]
null
null
null
Labs_Python/lab6_the_basics/albright_lab6c.py
King-Nivek/Scripting_Class
80e8fd0a5fcb1fddebd41d5bda416208cdd564e0
[ "RSA-MD" ]
null
null
null
#!/usr/bin/python #'''''''10''''''''20''''''''30''''''''40''''''''50''''''''60''''''''70''''''''80 '''_____________________________________________________________________________ ' ' Created By: Kevin M. Albright ' Creation Date: 03.24.2014 ' ' Modified By: Kevin M. Albright ' Last Modified: 03.30.2014 ' ...
32.049808
80
0.613628
#!/usr/bin/python #'''''''10''''''''20''''''''30''''''''40''''''''50''''''''60''''''''70''''''''80 '''_____________________________________________________________________________ ' ' Created By: Kevin M. Albright ' Creation Date: 03.24.2014 ' ' Modified By: Kevin M. Albright ' Last Modified: 03.30.2014 ' ...
0
0
0
0
0
3,097
0
0
220
468c0c8c4c5d08e8bce7f0e65e1ea5486f733075
4,720
py
Python
src/modules/produce_summary.py
jannesgg/fake-news-detection
6d898ca1b9aef98825d2c6f0bf2c65ab023aca74
[ "MIT" ]
null
null
null
src/modules/produce_summary.py
jannesgg/fake-news-detection
6d898ca1b9aef98825d2c6f0bf2c65ab023aca74
[ "MIT" ]
null
null
null
src/modules/produce_summary.py
jannesgg/fake-news-detection
6d898ca1b9aef98825d2c6f0bf2c65ab023aca74
[ "MIT" ]
null
null
null
from nltk.tokenize import sent_tokenize from nltk.corpus import stopwords from sklearn.metrics.pairwise import cosine_similarity import en_coref_lg import networkx as nx import pandas as pd import numpy as np nlp = en_coref_lg.load() # paths # embedding_path = "../../data/embeddings/" # article summarizer # def g...
27.764706
86
0.587076
from nltk.tokenize import sent_tokenize from nltk.corpus import stopwords from sklearn.metrics.pairwise import cosine_similarity import en_coref_lg import networkx as nx import pandas as pd import numpy as np nlp = en_coref_lg.load() # paths # embedding_path = "../../data/embeddings/" # article summarizer # def g...
0
0
0
0
0
96
0
0
26
1bcf57c3832199ff88668abc4e195417ac28330b
5,270
py
Python
koda/edge/network.py
federico-terzi/koda
9a179bbce6f013fbbbf7cf4862facaaed7f487ce
[ "MIT" ]
8
2020-01-16T11:16:20.000Z
2020-07-15T12:45:51.000Z
koda/edge/network.py
federico-terzi/koda
9a179bbce6f013fbbbf7cf4862facaaed7f487ce
[ "MIT" ]
null
null
null
koda/edge/network.py
federico-terzi/koda
9a179bbce6f013fbbbf7cf4862facaaed7f487ce
[ "MIT" ]
1
2020-02-18T07:30:46.000Z
2020-02-18T07:30:46.000Z
# Size of the edge mask matrix TARGET_IMAGE_SIZE = 256
51.666667
136
0.650285
import cv2 import keras import numpy as np from keras.models import * from keras.layers import * from keras.optimizers import * from .base import EdgeDetector # Size of the edge mask matrix TARGET_IMAGE_SIZE = 256 class UNetEdgeDetector(EdgeDetector): """ EdgeDetector implementation which uses the UNet deep ...
0
0
0
5,021
0
0
0
5
178
f4a63b1bed458fdc17c2176e8f50420f8e9e7bac
528
py
Python
cds_ils/migrator/series/__init__.py
kpsherva/cds-ils
8eeeb6e03784756ed24895c8d030682f9d733e8a
[ "MIT" ]
6
2020-09-18T00:13:38.000Z
2021-11-14T17:12:19.000Z
cds_ils/migrator/series/__init__.py
kpsherva/cds-ils
8eeeb6e03784756ed24895c8d030682f9d733e8a
[ "MIT" ]
321
2020-08-28T15:42:25.000Z
2022-03-14T15:11:50.000Z
cds_ils/migrator/series/__init__.py
kpsherva/cds-ils
8eeeb6e03784756ed24895c8d030682f9d733e8a
[ "MIT" ]
8
2019-07-10T07:02:08.000Z
2020-08-10T14:07:25.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # CDS-ILS is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """CDS-ILS migrator module.""" from cds_dojson.overdo import OverdoBase serial_marc21 = OverdoBase(entry_point_models="cd...
29.333333
78
0.767045
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # CDS-ILS is free software; you can redistribute it and/or modify it under # the terms of the MIT License; see LICENSE file for more details. """CDS-ILS migrator module.""" from cds_dojson.overdo import OverdoBase serial_marc21 = OverdoBase(entry_point_models="cd...
0
0
0
0
0
0
0
0
0
47840db448f0bdb400c56476b1de52d29ca4ebfe
2,710
py
Python
papahana_flask_server_demo/papahana/controllers/instrument_controller.py
KeckObservatory/papahana_backend
4259e236d9ec672e0b36482cc9f81426c468f941
[ "BSD-3-Clause" ]
null
null
null
papahana_flask_server_demo/papahana/controllers/instrument_controller.py
KeckObservatory/papahana_backend
4259e236d9ec672e0b36482cc9f81426c468f941
[ "BSD-3-Clause" ]
null
null
null
papahana_flask_server_demo/papahana/controllers/instrument_controller.py
KeckObservatory/papahana_backend
4259e236d9ec672e0b36482cc9f81426c468f941
[ "BSD-3-Clause" ]
null
null
null
import connexion from papahana.models.instrument_enum import InstrumentEnum from papahana.controllers import controller_helper as utils def instrument_packages(instrument): """instrument_packages Retrieves the the available instrument packages for an instrument. :param instrument: instrument used to m...
31.882353
82
0.734317
import connexion import six from papahana.models.instrument_enum import InstrumentEnum from papahana.models.instrument_package import InstrumentPackage from papahana import util from papahana.controllers import controller_helper as utils def instrument_packages(instrument): """instrument_packages Retrieves...
0
0
0
0
0
211
0
36
89
42e4b898e84c33fec197ea5476852ef49b6329d4
15,992
py
Python
dvmvs/fusionnet/model.py
hashi0203/deep-video-mvs
b3943a9249d522dca3e6cd603e427f611cc7bad5
[ "MIT" ]
1
2022-01-10T07:51:41.000Z
2022-01-10T07:51:41.000Z
dvmvs/fusionnet/model.py
MorchelPeng/deep-video-mvs
fa14288f149c5af7b2a49092f729f5c4f44517ba
[ "MIT" ]
null
null
null
dvmvs/fusionnet/model.py
MorchelPeng/deep-video-mvs
fa14288f149c5af7b2a49092f729f5c4f44517ba
[ "MIT" ]
null
null
null
fpn_output_channels = 32 hyper_channels = 32
47.313609
127
0.55978
from collections import OrderedDict import torch from torchvision import models from torchvision.ops import FeaturePyramidNetwork from dvmvs.config import Config from dvmvs.convlstm import MVSLayernormConvLSTMCell from dvmvs.layers import conv_layer, depth_layer_3x3 fpn_output_channels = 32 hyper_channels = 32 cla...
0
0
0
15,437
0
0
0
113
386
71b3e231730fc9bb2e954c9f746b2fd3d339d508
8,650
py
Python
fabfile.py
rajusjohn/jenkinstest
6c8f3733cc7df98f72373b6cf1985fa4383d9c78
[ "MIT" ]
null
null
null
fabfile.py
rajusjohn/jenkinstest
6c8f3733cc7df98f72373b6cf1985fa4383d9c78
[ "MIT" ]
null
null
null
fabfile.py
rajusjohn/jenkinstest
6c8f3733cc7df98f72373b6cf1985fa4383d9c78
[ "MIT" ]
null
null
null
#!/usr/bin/python from fabric.operations import run from fabric.api import env import sys # Usage for VXML -> fab domain_vxml -H <hostname> # Usage for VCS -> fab domain_vcs -H <hostname> env.user = 'root' # Take the host name argument and split it to get the data center. host=sys.argv[3] dc=host.split('.') # VXML use ...
42.401961
119
0.656532
#!/usr/bin/python from fabric.operations import local as lrun, run from fabric.api import env,cd,run,settings,task from fabric.colors import cyan,red import sys # Usage for VXML -> fab domain_vxml -H <hostname> # Usage for VCS -> fab domain_vcs -H <hostname> env.user = 'root' # Take the host name argument and split it ...
0
0
0
0
0
7,448
0
49
296
f6da5428789043e08eb9f1ce35cedf0b3fe38998
362
py
Python
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
see_that = Condition
24.133333
98
0.729282
from .question import Question from .matcher import Matcher class Condition: def __init__(self, question: Question, expected: Matcher): self.question = question self.expected = expected def check_as(self, actor): assert self.expected.matches(self.question.answered_by(actor)), self.exp...
0
0
0
255
0
0
0
16
67
2ff2609b5b28fb9e8b8e1b895ad7a240ffa90447
53
py
Python
dictionaria/scripts/__init__.py
LimorNaaman/dictionaria
9f8a5139af99eb4ae1af9ed0b340120c486cf112
[ "Apache-2.0" ]
5
2017-07-23T15:04:01.000Z
2018-08-10T01:27:08.000Z
dictionaria/scripts/__init__.py
LimorNaaman/dictionaria
9f8a5139af99eb4ae1af9ed0b340120c486cf112
[ "Apache-2.0" ]
72
2015-09-14T07:54:54.000Z
2021-03-15T10:29:26.000Z
dictionaria/scripts/__init__.py
LimorNaaman/dictionaria
9f8a5139af99eb4ae1af9ed0b340120c486cf112
[ "Apache-2.0" ]
4
2015-12-06T22:00:35.000Z
2018-05-04T12:16:53.000Z
#
26.5
51
0.849057
# from clld.web.util.helpers import rendered_sentence
0
0
0
0
0
0
0
30
22
f45fc4dc6db53b674b8272a626b89695026d1c52
954
py
Python
alacarte/templatetags/alacarte.py
cerealcable/django-alacarte
4ad6fa013365fbcc1034db2eca8f6cab441d14fb
[ "MIT" ]
null
null
null
alacarte/templatetags/alacarte.py
cerealcable/django-alacarte
4ad6fa013365fbcc1034db2eca8f6cab441d14fb
[ "MIT" ]
null
null
null
alacarte/templatetags/alacarte.py
cerealcable/django-alacarte
4ad6fa013365fbcc1034db2eca8f6cab441d14fb
[ "MIT" ]
1
2022-01-13T17:03:29.000Z
2022-01-13T17:03:29.000Z
from __future__ import absolute_import from django import template register = template.Library()
23.85
62
0.6174
from __future__ import absolute_import from django import template from django.template.loader import render_to_string from alacarte import get_menus register = template.Library() class AlacarteNode(template.Node): def __init__(self, menus): self.menus = menus def render(self, context): # ...
0
343
0
380
0
0
0
39
91
76e6d8f7eb0b6e46f9d198f1329e17add45745a3
1,917
py
Python
pytorch_lightning/callbacks/__init__.py
KyleGoyette/pytorch-lightning
d6470bf1937e51e037a7f94a55ad76898e5ae103
[ "Apache-2.0" ]
1
2021-12-30T11:23:50.000Z
2021-12-30T11:23:50.000Z
pytorch_lightning/callbacks/__init__.py
KyleGoyette/pytorch-lightning
d6470bf1937e51e037a7f94a55ad76898e5ae103
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/callbacks/__init__.py
KyleGoyette/pytorch-lightning
d6470bf1937e51e037a7f94a55ad76898e5ae103
[ "Apache-2.0" ]
1
2021-09-16T15:14:11.000Z
2021-09-16T15:14:11.000Z
# Copyright The PyTorch Lightning team. # # 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 i...
42.6
101
0.818466
# Copyright The PyTorch Lightning team. # # 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 i...
0
0
0
0
0
0
0
0
0
c2db7bfbb9ca5b86636cef28f2ea8f7cd57984a9
1,106
py
Python
tests/test_delete.py
niallmcc/treehaus
069a8f478856e5d55b22b96d83be8f13e0853cd7
[ "Apache-2.0" ]
null
null
null
tests/test_delete.py
niallmcc/treehaus
069a8f478856e5d55b22b96d83be8f13e0853cd7
[ "Apache-2.0" ]
null
null
null
tests/test_delete.py
niallmcc/treehaus
069a8f478856e5d55b22b96d83be8f13e0853cd7
[ "Apache-2.0" ]
null
null
null
# Copyright 2017,2021 Niall McCarroll # # 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 w...
28.358974
74
0.661844
# Copyright 2017,2021 Niall McCarroll # # 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 w...
0
0
0
378
0
0
0
17
47
7a4d2cd6c0b3ae103067e0b40bf96c705c45d0b2
3,388
py
Python
cloudreg/scripts/download_data.py
neurodata/ndmc
52f057c50d517862bd8b51ebfcc3aac887067df9
[ "Apache-2.0" ]
5
2020-10-31T13:00:05.000Z
2021-09-21T14:01:53.000Z
cloudreg/scripts/download_data.py
neurodata/ndmc
52f057c50d517862bd8b51ebfcc3aac887067df9
[ "Apache-2.0" ]
4
2020-07-25T01:44:31.000Z
2022-02-15T20:26:42.000Z
cloudreg/scripts/download_data.py
neurodata/ndmc
52f057c50d517862bd8b51ebfcc3aac887067df9
[ "Apache-2.0" ]
5
2020-07-10T19:11:25.000Z
2022-02-25T17:36:58.000Z
from .util import imgResample from cloudvolume import CloudVolume from argparse import ArgumentParser import numpy as np import SimpleITK as sitk import tifffile as tf def get_mip_at_res(vol, resolution): """Find the mip that is at least a given resolution Args: vol (cloudvolume.CloudVoluem): CloudVo...
35.663158
131
0.682999
from .util import imgResample from cloudvolume import CloudVolume from argparse import ArgumentParser import numpy as np import SimpleITK as sitk import tifffile as tf def get_mip_at_res(vol, resolution): """Find the mip that is at least a given resolution Args: vol (cloudvolume.CloudVoluem): CloudVo...
0
0
0
0
0
0
0
0
0
1d192e6e82a63df4d24d3a3f075a9322969a6755
12,156
py
Python
custom_components/powerpetdoor/switch.py
corporategoth/ha-powepetdoor
ac75964e94496eb8ef9fcd4f73e06bf33307c46a
[ "MIT" ]
2
2022-02-28T23:00:06.000Z
2022-03-04T04:35:25.000Z
custom_components/powerpetdoor/switch.py
corporategoth/ha-powepetdoor
ac75964e94496eb8ef9fcd4f73e06bf33307c46a
[ "MIT" ]
2
2022-03-01T04:40:29.000Z
2022-03-03T00:47:20.000Z
custom_components/powerpetdoor/switch.py
corporategoth/ha-powepetdoor
ac75964e94496eb8ef9fcd4f73e06bf33307c46a
[ "MIT" ]
1
2022-03-01T04:38:02.000Z
2022-03-01T04:38:02.000Z
from __future__ import annotations import voluptuous as vol import homeassistant.helpers.config_validation as cv from .const import (CONF_HOLD, CMD_GET_SENSORS, CMD_GET_POWER, CMD_GET_AUTO, CMD_ENABLE_INSIDE, CMD_DISABLE_INSIDE, CMD_ENABLE_OUTSIDE, CMD_DISABLE_OUTSIDE, CMD_POWER_ON, CMD_POWER_OFF, CMD_ENABLE_AUTO, CM...
33.766667
216
0.637463
from __future__ import annotations import voluptuous as vol from datetime import datetime, timezone, timedelta from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity import Entity, ToggleEntity from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.h...
0
2,200
4,136
2,663
0
0
0
975
335
28f339c687b5b781f8f63a347bbc17154837a033
35,720
py
Python
Scripts/simulation/interactions/base/basic.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/interactions/base/basic.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/interactions/base/basic.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\base\basic.py # Compiled at: 2020-10-17 21:48:10 # Size of source mod 2**32: 42277 byte...
79.732143
1,955
0.725056
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\base\basic.py # Compiled at: 2020-10-17 21:48:10 # Size of source mod 2**32: 42277 byte...
0
2,560
0
23,788
0
0
0
4,811
2,153
9f4c94237701a9eb5d1fbcf5affa2c58ebc18f2d
23,112
py
Python
geopandas_view/test_view.py
martinfleis/geopandas-view
5c516f81f570740f4d39e0df371e3327eb5bbd38
[ "BSD-3-Clause" ]
26
2021-02-05T23:35:17.000Z
2021-12-16T15:45:20.000Z
geopandas_view/test_view.py
martinfleis/geopandas-view
5c516f81f570740f4d39e0df371e3327eb5bbd38
[ "BSD-3-Clause" ]
45
2021-02-05T21:45:30.000Z
2021-09-23T20:22:25.000Z
geopandas_view/test_view.py
martinfleis/geopandas-view
5c516f81f570740f4d39e0df371e3327eb5bbd38
[ "BSD-3-Clause" ]
4
2021-02-07T05:31:51.000Z
2021-12-31T11:53:25.000Z
import folium import geopandas as gpd import matplotlib.cm as cm import matplotlib.colors as colors import numpy as np import pandas as pd import pytest from geopandas_view import view nybb = gpd.read_file(gpd.datasets.get_path("nybb")) world = gpd.read_file(gpd.datasets.get_path("naturalearth_lowres")) cities = gpd....
31.232432
114
0.624308
import folium import geopandas as gpd import matplotlib.cm as cm import matplotlib.colors as colors from branca.colormap import StepColormap import contextily import numpy as np import pandas as pd import pytest from geopandas_view import view nybb = gpd.read_file(gpd.datasets.get_path("nybb")) world = gpd.read_file(...
0
0
0
0
0
10,128
0
15
343
d78cadee72dd8f376e35077358eabe5b33cd5e80
7,307
py
Python
plugins/theme/__init__.py
labscript-suite-temp-archive/blacs-fork--rbchip-blacs--forked-from--labscript_suite-blacs
2f023c6564dee46b555922e949d4bee81de8ca58
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plugins/theme/__init__.py
labscript-suite-temp-archive/blacs-fork--rbchip-blacs--forked-from--labscript_suite-blacs
2f023c6564dee46b555922e949d4bee81de8ca58
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plugins/theme/__init__.py
labscript-suite-temp-archive/blacs-fork--rbchip-blacs--forked-from--labscript_suite-blacs
2f023c6564dee46b555922e949d4bee81de8ca58
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
##################################################################### # # # /plugins/theme/__init__.py # # # # Copyright 2013, Monash University ...
33.828704
133
0.562748
##################################################################### # # # /plugins/theme/__init__.py # # # # Copyright 2013, Monash University ...
0
0
0
3,520
0
35
0
4
156
dd5c1094c4eb664e3b19d4cf12493ffb79b7cb63
153
py
Python
L2J_DataPack/data/scripts/cron/example.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
L2J_DataPack/data/scripts/cron/example.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
38
2018-02-06T17:11:29.000Z
2018-06-05T20:47:59.000Z
L2J_DataPack/data/scripts/cron/example.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
############################################## ### Author: Layane (andrashe@gmail.com) ############################################## print "Hi world!"
25.5
46
0.261438
############################################## ### Author: Layane (andrashe@gmail.com) ############################################## print "Hi world!"
0
0
0
0
0
0
0
0
0
0a46051c737e3d90fb1f15fd58c2913ac7baf8b9
5,854
py
Python
Machine-Learning-in-Production/Reference/04-Pipeline-Example/06-Monitor.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
14
2021-09-21T19:48:02.000Z
2022-03-09T19:22:39.000Z
Machine-Learning-in-Production/Solutions/Reference/04-Pipeline-Example/06-Monitor.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
null
null
null
Machine-Learning-in-Production/Solutions/Reference/04-Pipeline-Example/06-Monitor.py
databricks-academy/ml-in-production
1fd6713e18cfc36357f3a98d75fedc8ffbf9eedc
[ "CC0-1.0" ]
5
2021-08-22T12:12:49.000Z
2022-02-28T15:47:43.000Z
# Databricks notebook source # MAGIC %md ### Drift Monitor # MAGIC # MAGIC This notebook is called by Orchestrate to determine if drift has occured over time. # MAGIC # MAGIC It takes in two time periods of data and determines if significant change has occurred in addition to a target directory to write the drift. #...
34.435294
148
0.659891
# Databricks notebook source # MAGIC %md ### Drift Monitor # MAGIC # MAGIC This notebook is called by Orchestrate to determine if drift has occured over time. # MAGIC # MAGIC It takes in two time periods of data and determines if significant change has occurred in addition to a target directory to write the drift. #...
0
0
0
3,288
0
0
0
-3
112
c1048d3ad16471ad70fdb1594424304b1bbb73bd
4,707
py
Python
yolov3_deepsort_eval.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
1
2021-02-28T15:22:43.000Z
2021-02-28T15:22:43.000Z
yolov3_deepsort_eval.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
yolov3_deepsort_eval.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
import motmetrics as mm mm.lap.default_solver = 'lap' if __name__ == '__main__': #INFO: #Bu .py dosyas videolar MOT16 kriterlerine gre deerlendiriyor. #nce yolov3_deepsort.py arlp ilgili video iin outputlar retiliyor. (results.avi ve results.txt) #daha sonra results.txt ve gt.txt kyaslanarak...
38.900826
237
0.645634
import os import os.path as osp import logging import argparse from pathlib import Path from utils.log import get_logger from yolov3_deepsort import VideoTracker from utils.parser import get_config import motmetrics as mm mm.lap.default_solver = 'lap' from utils.evaluation import Evaluator def mkdir_if...
122
0
0
0
0
2,976
0
39
284
f0062d1d878a0456f0b09fbf0b61001987923901
2,717
py
Python
demo/DeepLog_demo_without_sequence.py
ZouJinying/XAI_loglizer
df3e9d91502c10b8c8d8871617b405cc0671308b
[ "MIT" ]
1
2021-03-02T13:22:21.000Z
2021-03-02T13:22:21.000Z
demo/DeepLog_demo_without_sequence.py
ZouJinying/XAI_loglizer
df3e9d91502c10b8c8d8871617b405cc0671308b
[ "MIT" ]
null
null
null
demo/DeepLog_demo_without_sequence.py
ZouJinying/XAI_loglizer
df3e9d91502c10b8c8d8871617b405cc0671308b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import matplotlib as plt sys.path.append('../') from loglizer import dataloader from loglizer.models import DeepLog from loglizer.preprocessing import Vectorizer, Iterator from loglizer import x_ai batch_size = 32 hidden_size = 32 num_directions = 2 topk = 5 ...
35.285714
219
0.715863
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import matplotlib as plt import numpy as np sys.path.append('../') from loglizer import dataloader from loglizer.models import DeepLog from loglizer.preprocessing import Vectorizer, Iterator from loglizer import x_ai batch_size = 32 hidden_size = 32 num_dire...
0
0
0
0
0
0
0
-2
22
ae026536079a1af23bcb2ed7eb926e67dd7b310d
6,664
py
Python
python-package/test/geo_data/request_assertion.py
IKrukov-HORIS/lets-plot
b772e4abcc4c715ef3c3a2e3db55abd4044f863f
[ "MIT" ]
768
2019-11-28T14:09:46.000Z
2022-03-30T18:19:28.000Z
python-package/test/geo_data/request_assertion.py
IKrukov-HORIS/lets-plot
b772e4abcc4c715ef3c3a2e3db55abd4044f863f
[ "MIT" ]
240
2019-12-04T20:15:03.000Z
2022-03-30T17:12:23.000Z
python-package/test/geo_data/request_assertion.py
IKrukov-HORIS/lets-plot
b772e4abcc4c715ef3c3a2e3db55abd4044f863f
[ "MIT" ]
43
2019-12-05T13:45:32.000Z
2022-03-31T21:27:00.000Z
# Copyright (c) 2020. JetBrains s.r.o. # Use of this source code is governed by the MIT license that can be found in the LICENSE file. from typing import TypeVar T = TypeVar('T')
33.32
114
0.651861
# Copyright (c) 2020. JetBrains s.r.o. # Use of this source code is governed by the MIT license that can be found in the LICENSE file. from typing import TypeVar, Generic, Optional, List, Union from lets_plot.geo_data.gis.geometry import GeoRect, GeoPoint from lets_plot.geo_data.geocodes import _ensure_is_list from...
0
0
0
5,887
0
0
0
263
321
4d9998af6792157108804c5a24cc052ed3bda6aa
5,591
py
Python
tests/pheweb/load/field_formatter_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
tests/pheweb/load/field_formatter_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
tests/pheweb/load/field_formatter_test.py
stellakeppo/pheweb
10ea317dbe9419fa77f99e6b735fa9a3290ccd5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test formatters. Unit tests for column formatters. """ import uuid import pytest from pheweb.load.field_formatter import (str_formatter, chromosome_formatter, position_formatter, parameterized_sequence_formatter, p_value_formatter, m_log_from_p_value_formatter, se_beta_formatter, m_log_f...
26.49763
78
0.654802
# -*- coding: utf-8 -*- """ Test formatters. Unit tests for column formatters. """ import uuid from unittest.mock import patch import pytest from pheweb.load.field_formatter import ( str_formatter, chromosome_formatter, position_formatter, parameterized_sequence_formatter, p_value_formatter, ...
0
554
0
0
0
0
0
49
45
08148b61d13428ed094312f5c601345ddf268700
462,798
py
Python
src/mip_functions.py
arisp99/MIPTools
072e5e4312e8f44294abc1a1fcc2b347e0b09567
[ "MIT" ]
3
2019-10-16T01:13:26.000Z
2021-04-26T13:47:12.000Z
src/mip_functions.py
arisp99/MIPTools
072e5e4312e8f44294abc1a1fcc2b347e0b09567
[ "MIT" ]
24
2021-09-30T19:11:29.000Z
2022-03-23T21:22:11.000Z
src/mip_functions.py
arisp99/MIPTools
072e5e4312e8f44294abc1a1fcc2b347e0b09567
[ "MIT" ]
4
2021-09-30T16:12:28.000Z
2022-02-21T15:27:28.000Z
# -*- coding: utf-8 -*- import subprocess import json import os import io from multiprocessing import Pool import multiprocessing from operator import itemgetter import random import string import pickle import copy import numpy as np import matplotlib.pyplot as plt from matplotlib import colors import pysam import pan...
45.690394
121
0.546048
# -*- coding: utf-8 -*- import subprocess import json import os import io from multiprocessing import Pool import multiprocessing import multiprocessing.pool from operator import itemgetter import random import string import pickle import copy import numpy as np import matplotlib.pyplot as plt from matplotlib import co...
0
66
0
505
0
90,054
0
4
1,479
dbf2d2f45452381528bab4caca8f1f35c2e55cf4
13,733
py
Python
config/custom_components/hacs/ws_api_handlers.py
aureliosaraiva/Home-AssistantConfig
14b278c9d306fead2eb8eeae5008d6b69bad97a2
[ "MIT" ]
1
2020-01-28T00:25:15.000Z
2020-01-28T00:25:15.000Z
config/custom_components/hacs/ws_api_handlers.py
aureliosaraiva/Home-AssistantConfig
14b278c9d306fead2eb8eeae5008d6b69bad97a2
[ "MIT" ]
null
null
null
config/custom_components/hacs/ws_api_handlers.py
aureliosaraiva/Home-AssistantConfig
14b278c9d306fead2eb8eeae5008d6b69bad97a2
[ "MIT" ]
null
null
null
"""WebSocket API for HACS.""" # pylint: disable=unused-argument
36.139474
84
0.634384
"""WebSocket API for HACS.""" # pylint: disable=unused-argument import sys import os import voluptuous as vol from aiogithubapi import AIOGitHubException from homeassistant.components import websocket_api import homeassistant.helpers.config_validation as cv from .hacsbase.exceptions import HacsException from .store imp...
0
12,348
642
0
0
0
0
218
451
c1c606b270a8b5313eedbebba29e9748c268f6b0
503
py
Python
mlfinlab/portfolio_optimization/__init__.py
jihobak/mlfinlab
c504532729b44f6623255b2fcf105c2627cedec8
[ "BSD-3-Clause" ]
8
2020-04-19T08:09:34.000Z
2022-03-30T20:49:40.000Z
mlfinlab/portfolio_optimization/__init__.py
jihobak/mlfinlab
c504532729b44f6623255b2fcf105c2627cedec8
[ "BSD-3-Clause" ]
1
2019-07-24T17:52:30.000Z
2019-07-24T17:52:30.000Z
mlfinlab/portfolio_optimization/__init__.py
nisarahamedk/mlfinlab
c504532729b44f6623255b2fcf105c2627cedec8
[ "BSD-3-Clause" ]
8
2020-08-09T02:25:04.000Z
2022-03-20T15:08:11.000Z
""" Classes derived from Portfolio Optimisation module """
45.727273
86
0.898608
""" Classes derived from Portfolio Optimisation module """ from mlfinlab.portfolio_optimization.cla import CLA from mlfinlab.portfolio_optimization.hrp import HierarchicalRiskParity from mlfinlab.portfolio_optimization.mean_variance import MeanVarianceOptimisation from mlfinlab.portfolio_optimization.hcaa import Hiera...
0
0
0
0
0
0
0
311
133
b79fd0ab4740928394e4deca7b8f6a3cdc483886
6,672
py
Python
simsi_transfer/transfer.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
null
null
null
simsi_transfer/transfer.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
null
null
null
simsi_transfer/transfer.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
1
2022-03-23T11:06:40.000Z
2022-03-23T11:06:40.000Z
import re import logging import pandas as pd import numpy as np logger = logging.getLogger(__name__) PHOSPHO_REGEX = re.compile(r'([STY])\(Phospho \(STY\)\)') def transfer(summary_df, mask=False): """ Main function for transfers by clustering. Transfers identifications for merged dataframe and adds a colu...
43.324675
115
0.715677
import re import logging import pandas as pd import numpy as np from .merging_functions import merge_with_msmsscanstxt, merge_with_msmstxt, merge_with_summarytxt logger = logging.getLogger(__name__) PHOSPHO_REGEX = re.compile(r'([STY])\(Phospho \(STY\)\)') def transfer(summary_df, mask=False): """ Main f...
0
0
0
0
0
1,427
0
76
92
ad9a8181cc4c30e2dd92208d6a6466d7ae6d20cf
3,073
py
Python
mapie/aggregation_functions.py
RudrakshTuwani/MAPIE
11940aed9c8eb85943513b26677d684cafda363c
[ "BSD-3-Clause" ]
null
null
null
mapie/aggregation_functions.py
RudrakshTuwani/MAPIE
11940aed9c8eb85943513b26677d684cafda363c
[ "BSD-3-Clause" ]
null
null
null
mapie/aggregation_functions.py
RudrakshTuwani/MAPIE
11940aed9c8eb85943513b26677d684cafda363c
[ "BSD-3-Clause" ]
null
null
null
from typing import Callable, Optional import numpy as np from ._typing import NDArray def phi1D( x: NDArray, B: NDArray, fun: Callable[[NDArray], NDArray], ) -> NDArray: """ The function phi1D is called by phi2D. It aims at applying a function ``fun`` after multiplying each row of B by x...
25.608333
77
0.550927
from typing import Callable, Optional import numpy as np from ._typing import NDArray def phi1D( x: NDArray, B: NDArray, fun: Callable[[NDArray], NDArray], ) -> NDArray: """ The function phi1D is called by phi2D. It aims at applying a function ``fun`` after multiplying each row of B by x...
0
0
0
0
0
0
0
0
0
b0eb3d0e55f26131aadaca08815c70eab932bc17
626
py
Python
model/contactdetail.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/contactdetail.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/contactdetail.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/ContactDetail) on 2020-02-03. # 2020, SMART Health IT.
27.217391
110
0.734824
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/ContactDetail) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .contactpoint import ContactPoint...
0
253
0
0
0
0
0
54
134
e058d953531963092cfa3826cc6c3e620e4fd0b8
3,177
py
Python
mars/tensor/random/random_sample.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/random/random_sample.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
mars/tensor/random/random_sample.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding 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-...
35.696629
91
0.663834
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding 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-...
0
0
0
503
0
0
0
45
45
2e3046976626823b98618dfbcee4dfcfe90e65b7
326
py
Python
iniciante/python/1009-salario-com-bonus.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/1009-salario-com-bonus.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
iniciante/python/1009-salario-com-bonus.py
tfn10/beecrowd
1ebf19ca9a253eb326160f03145d20be33064969
[ "MIT" ]
null
null
null
nome_vendendor = input() sal_fixo = float(input()) vendas_total = float(input()) salario(nome_vendendor, sal_fixo, vendas_total)
27.166667
51
0.745399
def salario(vendedor, salario_fixo, total_vendas): comissao_ganha = total_vendas * 0.15 salario_total = comissao_ganha + salario_fixo return print(f'TOTAL = R$ {salario_total:.2f}') nome_vendendor = input() sal_fixo = float(input()) vendas_total = float(input()) salario(nome_vendendor, sal_fixo, vendas_t...
0
0
0
0
0
172
0
0
22
a53630b55627d96a385997c6637803404f341ca1
218
py
Python
examples/fresh_desktop_folder.py
EGAdams/wexpect
788a32689c632c71435c84e12f1c2de0c3b11f2c
[ "MIT" ]
null
null
null
examples/fresh_desktop_folder.py
EGAdams/wexpect
788a32689c632c71435c84e12f1c2de0c3b11f2c
[ "MIT" ]
null
null
null
examples/fresh_desktop_folder.py
EGAdams/wexpect
788a32689c632c71435c84e12f1c2de0c3b11f2c
[ "MIT" ]
null
null
null
''' ''' from ProjectFactory import ProjectFactory import wexpect wexpect.TIMEOUT # Start cmd as child process child = wexpect.spawn('cmd.exe') project_factory = ProjectFactory( child ) project_factory.build_project()
19.818182
41
0.788991
''' ''' from ProjectFactory import ProjectFactory import wexpect wexpect.TIMEOUT # Start cmd as child process child = wexpect.spawn('cmd.exe') project_factory = ProjectFactory( child ) project_factory.build_project()
0
0
0
0
0
0
0
0
0
9800f9f7b553fafeecd154df416931cc5e1810cf
1,417
py
Python
rupo/files/test_reader.py
dagrigorev/rupo
3b1bb5873f3d0f8ef4fe662221d5f7a3573909cc
[ "Apache-2.0" ]
171
2017-06-06T17:01:32.000Z
2022-02-03T10:32:54.000Z
rupo/files/test_reader.py
GraphGrailAi/rupo
8e2fbcdb3e948dd5e8f007d471171c730be3ad3d
[ "Apache-2.0" ]
12
2017-03-20T18:09:54.000Z
2021-07-28T17:39:38.000Z
rupo/files/test_reader.py
GraphGrailAi/rupo
8e2fbcdb3e948dd5e8f007d471171c730be3ad3d
[ "Apache-2.0" ]
33
2017-03-29T13:27:56.000Z
2022-02-21T18:36:38.000Z
# -*- coding: utf-8 -*- # : # : .
39.361111
99
0.731828
# -*- coding: utf-8 -*- # Автор: Гусев Илья # Описание: Тесты считывателя разметок. import unittest from rupo.files.reader import Reader, FileType from rupo.stress.predictor import CombinedStressPredictor from rupo.main.markup import Markup, Line, Word from rupo.settings import MARKUP_XML_EXAMPLE, TEXT_XML_EXAMPLE, M...
92
73
0
981
0
0
0
143
135
6b67346426a648b1e1e354f5be90817e4a9b671d
3,476
py
Python
quietnet.py
hellcoderz/quietnet
6a8e4e0c55cb21f83dddcabda4939852edef7ce9
[ "MIT" ]
1
2016-08-16T16:25:10.000Z
2016-08-16T16:25:10.000Z
quietnet.py
hellcoderz/quietnet
6a8e4e0c55cb21f83dddcabda4939852edef7ce9
[ "MIT" ]
null
null
null
quietnet.py
hellcoderz/quietnet
6a8e4e0c55cb21f83dddcabda4939852edef7ce9
[ "MIT" ]
null
null
null
# split something into chunks
30.491228
123
0.640967
import numpy as np import struct import math # split something into chunks def chunks(l, n): for i in xrange(0, len(l), n): yield l[i:i+n] def unpack(buffer): return unpack_buffer(list(chunks(buffer, 2))) def unpack_buffer(buffer): return [struct.unpack('h', frame)[0] for frame in buffer] def pa...
0
0
0
0
54
2,887
0
-21
525
026e22c3b3045fe1dd293068fb8607ccb8dc9017
2,126
py
Python
utilization/directory_utils.py
omidmirzajani/CodART
eb56455ad81d7c6afc07fc35fae867ae49c035e0
[ "MIT" ]
null
null
null
utilization/directory_utils.py
omidmirzajani/CodART
eb56455ad81d7c6afc07fc35fae867ae49c035e0
[ "MIT" ]
null
null
null
utilization/directory_utils.py
omidmirzajani/CodART
eb56455ad81d7c6afc07fc35fae867ae49c035e0
[ "MIT" ]
null
null
null
""" Utilities related to project directory. """ import os import subprocess def git_restore(project_dir): """ This function executes "git restore ." on the given project directory. :param project_dir: A string and Absolute path of the project's directory. :return: None """ assert os.path.isdi...
35.433333
118
0.695202
""" Utilities related to project directory. """ import os import subprocess def git_restore(project_dir): """ This function executes "git restore ." on the given project directory. :param project_dir: A string and Absolute path of the project's directory. :return: None """ assert os.path.isdi...
0
0
0
0
0
0
0
0
0
e833a17f2245ace79cc20f1ceac8118c4d9b72bf
616
py
Python
tests/more-tests/version/test_old_version.py
vishalbelsare/pysd
54fa0f137a882c2b0967ee0afb0e9080e3c12d48
[ "MIT" ]
null
null
null
tests/more-tests/version/test_old_version.py
vishalbelsare/pysd
54fa0f137a882c2b0967ee0afb0e9080e3c12d48
[ "MIT" ]
null
null
null
tests/more-tests/version/test_old_version.py
vishalbelsare/pysd
54fa0f137a882c2b0967ee0afb0e9080e3c12d48
[ "MIT" ]
null
null
null
__pysd_version__ = "1.5.0" _namespace = {} _dependencies = {} __data = {'scope': None, 'time': lambda: 0} _control_vars = { "initial_time": lambda: 0, "final_time": lambda: 20, "time_step": lambda: 1, "saveper": lambda: time_step() }
15.794872
43
0.62987
__pysd_version__ = "1.5.0" _namespace = {} _dependencies = {} __data = {'scope': None, 'time': lambda: 0} _control_vars = { "initial_time": lambda: 0, "final_time": lambda: 20, "time_step": lambda: 1, "saveper": lambda: time_step() } def _init_outer_references(data): for key in data: __...
0
0
0
0
0
219
0
0
138
55f65d8efe3919c68a7f6904d76785a75c3c0075
2,290
py
Python
rioxarray/_options.py
raybellwaves/rioxarray
c5203665aa1a7e76e4729df9a80568f999db01dc
[ "ECL-2.0", "Apache-2.0" ]
1
2022-02-16T10:54:09.000Z
2022-02-16T10:54:09.000Z
rioxarray/_options.py
raybellwaves/rioxarray
c5203665aa1a7e76e4729df9a80568f999db01dc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
rioxarray/_options.py
raybellwaves/rioxarray
c5203665aa1a7e76e4729df9a80568f999db01dc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" This file contains global options for rioxarray Credits: This file was adopted from: https://github.com/pydata/xarray # noqa Source file: https://github.com/pydata/xarray/blob/2ab0666c1fcc493b1e0ebc7db14500c427f8804e/xarray/core/options.py # noqa """ from typing import Any EXPORT_GRID_MAPPING = "export_grid_map...
27.590361
122
0.637991
""" This file contains global options for rioxarray Credits: This file was adopted from: https://github.com/pydata/xarray # noqa Source file: https://github.com/pydata/xarray/blob/2ab0666c1fcc493b1e0ebc7db14500c427f8804e/xarray/core/options.py # noqa """ from typing import Any EXPORT_GRID_MAPPING = "export_grid_map...
0
0
0
1,535
0
0
0
0
23
be15dd1a24e9856864f2f4d0cbea298be145f61e
2,234
py
Python
gen_set_cover.py
RaulMurillo/OPT_UCM
08817e00c1f56b73f5cfa639f1710e368bc0e427
[ "MIT" ]
null
null
null
gen_set_cover.py
RaulMurillo/OPT_UCM
08817e00c1f56b73f5cfa639f1710e368bc0e427
[ "MIT" ]
null
null
null
gen_set_cover.py
RaulMurillo/OPT_UCM
08817e00c1f56b73f5cfa639f1710e368bc0e427
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import csv import random from pathlib import Path Path("data").mkdir(parents=True, exist_ok=True) def gen_sets(N_sets, N_elems, max_cost=10, sep=' ', filename='set_cover'): """Function that generates a file of integer tuples for using as input for set cover problems. ...
31.914286
108
0.634736
#!/usr/bin/env python # coding: utf-8 import csv import random from pathlib import Path Path("data").mkdir(parents=True, exist_ok=True) def gen_elems(N_elems): # There is no posibility any set contains all elements n = random.randint(1, (N_elems-1)//10) # 1 <= n <= (N_elems-1)/10 # uniform distribution ra...
0
0
0
0
0
308
0
0
23
e7510a92572bee86efd5085b398abce67512570b
1,043
py
Python
get_wayback_machine/get.py
patjenk/get-wayback-machine
1bc9cf2eb2d8d8fea9c6e032a268d8f55816c114
[ "MIT" ]
null
null
null
get_wayback_machine/get.py
patjenk/get-wayback-machine
1bc9cf2eb2d8d8fea9c6e032a268d8f55816c114
[ "MIT" ]
null
null
null
get_wayback_machine/get.py
patjenk/get-wayback-machine
1bc9cf2eb2d8d8fea9c6e032a268d8f55816c114
[ "MIT" ]
null
null
null
from datetime import datetime import requests def check_availability(url_str, datetime_fetched=None): """ Use the web api to see if a page is available. https://archive.org/help/wayback_api.php """ wayback_url = "http://archive.org/wayback/available" params = { 'url': url_str.split('?...
34.766667
112
0.674017
from datetime import datetime import requests def check_availability(url_str, datetime_fetched=None): """ Use the web api to see if a page is available. https://archive.org/help/wayback_api.php """ wayback_url = "http://archive.org/wayback/available" params = { 'url': url_str.split('?...
0
0
0
0
0
0
0
0
0
9350ee2def40d0e7fc2a051814b966e05eb93f62
2,975
py
Python
minlp-tokenizer/minlptokenizer/lexicon.py
aseaday/MiNLP
7d0c578bbe6c8af5c1c3ca14b59df49e88c239b4
[ "Apache-2.0" ]
1
2020-11-18T01:54:21.000Z
2020-11-18T01:54:21.000Z
minlp-tokenizer/minlptokenizer/lexicon.py
210000ling/MiNLP
cc9e668a40f8804262d3733e4365608c2e79df3d
[ "Apache-2.0" ]
null
null
null
minlp-tokenizer/minlptokenizer/lexicon.py
210000ling/MiNLP
cc9e668a40f8804262d3733e4365608c2e79df3d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The MiNLP Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
33.055556
87
0.619832
# Copyright 2020 The MiNLP Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
204
0
0
2,197
0
0
0
8
68
52232e037219d76a9b436254eb7e8b9015168c35
1,004
py
Python
leetcode/Bit Manipulation/338. Counting Bits.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
23
2019-08-02T12:02:47.000Z
2022-03-09T15:24:16.000Z
leetcode/Bit Manipulation/338. Counting Bits.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
null
null
null
leetcode/Bit Manipulation/338. Counting Bits.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
21
2019-12-22T04:47:32.000Z
2021-09-12T14:29:35.000Z
""" Given a non negative integer number num. For every numbers i in the range 0 i num calculate the number of 1's in their binary representation and return them as an array. Example 1: Input: 2 Output: [0,1,1] Example 2: Input: 5 Output: [0,1,1,2,1,2] Follow up: It is very easy to come up with a solution with run...
26.421053
173
0.634462
""" Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array. Example 1: Input: 2 Output: [0,1,1] Example 2: Input: 5 Output: [0,1,1,2,1,2] Follow up: It is very easy to come up with a solution with r...
12
0
0
291
0
0
0
0
22
62b5885175ed39f170b97178fa537d53c162a926
1,126
py
Python
00_Original/33_Datenspeicherung/Datenbanken/sqlite_adapter_und_konverter.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/33_Datenspeicherung/Datenbanken/sqlite_adapter_und_konverter.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
00_Original/33_Datenspeicherung/Datenbanken/sqlite_adapter_und_konverter.py
felixdittrich92/Python3_book
cd0e2b55aa72c51927d347b70199fb9ed928e06f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sqlite3 # Adapter und Konverter registrieren sqlite3.register_adapter(Kreis, kreisadapter) sqlite3.register_converter("KREIS", kreiskonverter) # Hier wird eine Beispieldatenbank im Arbeitsspeicher mit # einer einspaltigen Tabelle fr Kreise definiert connection = s...
28.15
64
0.705151
#!/usr/bin/env python # -*- coding: utf-8 -*- import sqlite3 class Kreis: def __init__(self, mx, my, r): self.Mx = mx self.My = my self.R = r def kreisadapter(k): return "{};{};{}".format(k.Mx, k.My, k.R) def kreiskonverter(bytestring): mx, my, r = bytestring.split(b";") retu...
2
0
0
87
0
143
0
0
69
b2352a092fa15e959a77ca2b3d1668d80811f28c
3,616
py
Python
tmac/preprocessing.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/preprocessing.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
tmac/preprocessing.py
Nondairy-Creamer/tmac
d688b58f13f398f83ea0bdad139e69b74398c1be
[ "MIT" ]
null
null
null
import numpy as np from scipy import interpolate, optimize import torch def interpolate_over_nans(input_mat, t=None): """ Function to interpolate over NaN values along the first dimension of a matrix Args: input_mat: numpy array, [time, neurons] t: optional time vector, only useful if input_m...
36.897959
119
0.675055
import numpy as np from scipy import interpolate, optimize import torch def interpolate_over_nans(input_mat, t=None): """ Function to interpolate over NaN values along the first dimension of a matrix Args: input_mat: numpy array, [time, neurons] t: optional time vector, only useful if input_m...
0
0
0
0
0
412
0
0
81
cbb3595ad2824d65a823fa3b8d905af52ff8c5c5
22,401
py
Python
src/condor_tests/ornithology/handles.py
tpdownes/htcondor
5fe77864d03fb2ea087c656f77fd533c568860e9
[ "Apache-2.0" ]
1
2021-11-23T04:17:11.000Z
2021-11-23T04:17:11.000Z
src/condor_tests/ornithology/handles.py
tpdownes/htcondor
5fe77864d03fb2ea087c656f77fd533c568860e9
[ "Apache-2.0" ]
null
null
null
src/condor_tests/ornithology/handles.py
tpdownes/htcondor
5fe77864d03fb2ea087c656f77fd533c568860e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
33.889561
107
0.61774
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
0
1,857
0
18,711
0
0
0
16
293
cb95272044605c9f125f6f5b1545505429b13459
3,841
py
Python
pyorient/constants.py
brucetony/pyorient
d106350dc49b17605beb33e2f29f3ad11c637b88
[ "Apache-2.0" ]
142
2015-01-12T06:34:59.000Z
2022-01-19T10:34:30.000Z
pyorient/constants.py
wangjingzhou10/pyorient
d106350dc49b17605beb33e2f29f3ad11c637b88
[ "Apache-2.0" ]
40
2015-05-01T07:24:07.000Z
2021-08-30T10:08:37.000Z
pyorient/constants.py
wangjingzhou10/pyorient
d106350dc49b17605beb33e2f29f3ad11c637b88
[ "Apache-2.0" ]
53
2015-02-02T18:50:30.000Z
2021-09-18T12:52:31.000Z
__author__ = 'mogui <mogui83@gmail.com>' # # Driver Constants # NAME = "OrientDB Python binary client (pyorient)" VERSION = "1.5.6" SUPPORTED_PROTOCOL = 36 # # Binary Types # # Types Constants BOOLEAN = 1 # Single byte: 1 = true, 0 = false BYTE = 2 SHORT = 3 INT = 4 LONG = 5 BYTES = 6 # Used for binary data. STRING...
25.104575
80
0.736267
__author__ = 'mogui <mogui83@gmail.com>' # # Driver Constants # NAME = "OrientDB Python binary client (pyorient)" VERSION = "1.5.6" SUPPORTED_PROTOCOL = 36 # # Binary Types # # Types Constants BOOLEAN = 1 # Single byte: 1 = true, 0 = false BYTE = 2 SHORT = 3 INT = 4 LONG = 5 BYTES = 6 # Used for binary data. STRING...
0
0
0
0
0
0
0
0
0
8b55a668303fafac7b42ab383bf5b377d5dcf77a
281
py
Python
oosy.py
rockerBOO/oosy
699413b847b456bf306ff67b700ed4ee356b2606
[ "MIT" ]
null
null
null
oosy.py
rockerBOO/oosy
699413b847b456bf306ff67b700ed4ee356b2606
[ "MIT" ]
null
null
null
oosy.py
rockerBOO/oosy
699413b847b456bf306ff67b700ed4ee356b2606
[ "MIT" ]
null
null
null
import tornado.ioloop import tornado.web import modules.Index application = tornado.web.Application([ (r"/", modules.Index.Index), (r"/hotdogs", modules.Index.Index), ]) if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start()
21.615385
44
0.708185
import tornado.ioloop import tornado.web import modules.Index application = tornado.web.Application([ (r"/", modules.Index.Index), (r"/hotdogs", modules.Index.Index), ]) if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start()
0
0
0
0
0
0
0
0
0
cfa15e5491c2b3569e9381d51a8719bce5e60c22
2,793
py
Python
src/build_csv.py
jakebobu/world-bank
625ce08cff7f406de3a9c91c64ca7793ca78e351
[ "MIT" ]
null
null
null
src/build_csv.py
jakebobu/world-bank
625ce08cff7f406de3a9c91c64ca7793ca78e351
[ "MIT" ]
null
null
null
src/build_csv.py
jakebobu/world-bank
625ce08cff7f406de3a9c91c64ca7793ca78e351
[ "MIT" ]
null
null
null
import pandas as pd def select_restack(name, save=False): ''' This functon retrieves the data sheets, then it reorients them such that the features are the columns and the data frame is doube indexed by country_name and year ('level_1') Parameters ---------- name: string, name of csv in da...
33.650602
90
0.600072
import pandas as pd import numpy as np def select_restack(name, save=False): ''' This functon retrieves the data sheets, then it reorients them such that the features are the columns and the data frame is doube indexed by country_name and year ('level_1') Parameters ---------- name: string...
0
0
0
0
0
0
0
-3
22
cfd0f8a1ec679bee3187481f158966acff1a18a4
599
py
Python
src/data/1006.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1006.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/1006.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
from collections import deque n, Q = map(int, input().split()) graph = [[] for i in range(n)] for i in range(n - 1): a, b = map(int, input().split()) graph[a - 1].append(b - 1) graph[b - 1].append(a - 1) dist = [-1] * n dist[0] = 0 q = deque() q.append(0) while q: v = q.popleft() for i in set(gr...
18.71875
39
0.477462
from collections import deque n, Q = map(int, input().split()) graph = [[] for i in range(n)] for i in range(n - 1): a, b = map(int, input().split()) graph[a - 1].append(b - 1) graph[b - 1].append(a - 1) dist = [-1] * n dist[0] = 0 q = deque() q.append(0) while q: v = q.popleft() for i in set(gr...
0
0
0
0
0
0
0
0
0
e6423ca129b5d4c27ea8f7aa25668e9975f7476f
4,150
py
Python
nafc/api/print_table_result.py
kimdoanh89/fastcli
d63ebeb6290a83f42dc424b56c0db5841361b6e2
[ "MIT" ]
33
2020-10-02T07:11:00.000Z
2022-01-17T16:58:41.000Z
nafc/api/print_table_result.py
kimdoanh89/fastcli
d63ebeb6290a83f42dc424b56c0db5841361b6e2
[ "MIT" ]
null
null
null
nafc/api/print_table_result.py
kimdoanh89/fastcli
d63ebeb6290a83f42dc424b56c0db5841361b6e2
[ "MIT" ]
10
2020-10-02T07:11:03.000Z
2021-12-21T08:58:02.000Z
"""nornir_scrapli.functions.print_structured_result""" import logging import threading from scrapli.response import Response from nornir.core.task import AggregatedResult, MultiResult, Result from nornir_scrapli.result import ScrapliResult from rich.console import Console from rich.table import Table LOCK = threadin...
38.073394
84
0.595181
"""nornir_scrapli.functions.print_structured_result""" import logging import threading from scrapli.response import Response from nornir.core.task import AggregatedResult, MultiResult, Result from nornir_scrapli.result import ScrapliResult from rich.console import Console from rich.table import Table LOCK = threadin...
0
0
0
0
0
0
0
0
0
b02f75224b5ffa8883b359c2301600b050fd483c
1,234
py
Python
src/cms_extensions/middleware.py
quiquegarcia/2020-website
02dd1e42ddaab5712e4faa7bcc2c5f80c68d0e8d
[ "MIT" ]
null
null
null
src/cms_extensions/middleware.py
quiquegarcia/2020-website
02dd1e42ddaab5712e4faa7bcc2c5f80c68d0e8d
[ "MIT" ]
null
null
null
src/cms_extensions/middleware.py
quiquegarcia/2020-website
02dd1e42ddaab5712e4faa7bcc2c5f80c68d0e8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
36.294118
90
0.703404
# -*- coding: utf-8 -*- import datetime from django.utils import translation from django.conf import settings from cms.utils.compat.dj import MiddlewareMixin class LanguageCookieMiddleware(MiddlewareMixin): def process_request(self, request): language = translation.get_language() request_langua...
0
0
0
1,050
0
0
0
46
113
8ef246ed6e0e662e5f01e1569b0adfa9a9c13e7c
1,336
py
Python
sandbox/test_motor.py
pravinas/et-maslab-2016
d666e126881130658130df5ba97831d9a1869b9e
[ "MIT" ]
null
null
null
sandbox/test_motor.py
pravinas/et-maslab-2016
d666e126881130658130df5ba97831d9a1869b9e
[ "MIT" ]
null
null
null
sandbox/test_motor.py
pravinas/et-maslab-2016
d666e126881130658130df5ba97831d9a1869b9e
[ "MIT" ]
null
null
null
# Cycles a motor back and forth between -255 and 255 PWM every ~5 seconds if __name__ == "__main__": sketch = MotorWrite(1, -0.00001, 100) sketch.run()
32.585366
73
0.552395
from tamproxy import SyncedSketch, Timer from tamproxy.devices import Motor # Cycles a motor back and forth between -255 and 255 PWM every ~5 seconds class MotorWrite(SyncedSketch): def setup(self): self.motor1 = Motor(self.tamp, 2, 3) self.motor1.write(1,0) self.motor2 = Motor(self.tamp,...
0
0
0
1,075
0
0
0
32
67
07591906f56e3f99881109abea3cae023b6b95b2
5,293
py
Python
pred_model/sourceCode/collect_data.py
1ofsomepeople/flask-learn
80a0fe8b8d191972e418664c46533bd6f535d8b0
[ "MIT" ]
null
null
null
pred_model/sourceCode/collect_data.py
1ofsomepeople/flask-learn
80a0fe8b8d191972e418664c46533bd6f535d8b0
[ "MIT" ]
null
null
null
pred_model/sourceCode/collect_data.py
1ofsomepeople/flask-learn
80a0fe8b8d191972e418664c46533bd6f535d8b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time : 2020/9/13 @Author : Shen Fang """ import os import argparse if __name__ == '__main__': # map_image = read_image("level_14.png") # patch = map_image[900:2000, 900:] # plt.imshow(patch) # plt.show() parser = argparse.ArgumentParser(description="Process ...
28.154255
106
0.567731
# -*- coding: utf-8 -*- """ @Time : 2020/9/13 @Author : Shen Fang """ import os import datetime import os.path as osp import numpy as np import matplotlib.pyplot as plt import argparse def color2value(rgb): def rgb2hsv(rgb): r, g, b = rgb[0], rgb[1], rgb[2] m_x = max(r, g, b) m_n = min(...
12
0
0
1,846
0
1,974
0
1
249
145150c5d625747eb960aea0c09f96409f71a83f
93
py
Python
app/user/__init__.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
6
2019-11-07T09:32:43.000Z
2021-09-02T22:37:14.000Z
app/user/__init__.py
pnsn/squacapi
e330a925aff38937656983841e495ba3824c11e1
[ "MIT" ]
196
2019-10-04T17:03:36.000Z
2022-03-31T17:54:59.000Z
app/user/__init__.py
pnsn/squac_api
7b1741cd32dbc32972f75ac53958468fdf7d04ee
[ "MIT" ]
null
null
null
# to load signals receiver called in App.ready() default_app_config = 'user.apps.UserConfig'
31
48
0.784946
# to load signals receiver called in App.ready() default_app_config = 'user.apps.UserConfig'
0
0
0
0
0
0
0
0
0
7fe2b99601e48255660da3c6ebc5581946dcaf68
489
py
Python
staeon_node/wallet/urls.py
priestc/staeon-node
8455e8caf30af2c27dd034b62191e13459255f92
[ "MIT" ]
null
null
null
staeon_node/wallet/urls.py
priestc/staeon-node
8455e8caf30af2c27dd034b62191e13459255f92
[ "MIT" ]
null
null
null
staeon_node/wallet/urls.py
priestc/staeon-node
8455e8caf30af2c27dd034b62191e13459255f92
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import (serv_wallet, accept_remote_registration, register_new_wallet_user, login, update_settings) urlpatterns = [ url(r'registration/remote', accept_remote_registration), url(r'registration', register_new_wallet_user, name='register_new_wallet_user'), url(r'^log...
37.615385
84
0.746421
from django.conf.urls import url, include from .views import ( serv_wallet, accept_remote_registration, register_new_wallet_user, login, update_settings ) urlpatterns = [ url(r'registration/remote', accept_remote_registration), url(r'registration', register_new_wallet_user, name='register_new_wallet_use...
0
0
0
0
0
0
0
19
0
421b2eb82fe334d0e7ef9bf4321c1cb35308271a
172
py
Python
codecademy/io/write_number.py
haozai309/hello_python
deaa0621f549ff786bc36ccee48430d1d130690b
[ "Apache-2.0" ]
null
null
null
codecademy/io/write_number.py
haozai309/hello_python
deaa0621f549ff786bc36ccee48430d1d130690b
[ "Apache-2.0" ]
null
null
null
codecademy/io/write_number.py
haozai309/hello_python
deaa0621f549ff786bc36ccee48430d1d130690b
[ "Apache-2.0" ]
null
null
null
my_list = [i**2 for i in range(1,11)] my_file = open("output.txt", "r+") # Add your code below! for item in my_list: my_file.write(str(item) + "\n") my_file.close()
17.2
37
0.627907
my_list = [i**2 for i in range(1,11)] my_file = open("output.txt", "r+") # Add your code below! for item in my_list: my_file.write(str(item) + "\n") my_file.close()
0
0
0
0
0
0
0
0
0
7d50a83148362efcf1ac09a97b60d3c9bba40b9b
4,068
py
Python
src/config.py
owenwater/alfred-ime
b6a8f91718f777f98020e8f9c11f4a38f31cc4ae
[ "MIT" ]
6
2017-02-07T14:47:03.000Z
2022-03-03T14:54:09.000Z
src/config.py
owenwater/alfred-ime
b6a8f91718f777f98020e8f9c11f4a38f31cc4ae
[ "MIT" ]
1
2020-08-20T14:38:16.000Z
2020-08-20T14:38:16.000Z
src/config.py
owenwater/alfred-ime
b6a8f91718f777f98020e8f9c11f4a38f31cc4ae
[ "MIT" ]
2
2015-02-13T14:33:31.000Z
2019-05-03T10:11:11.000Z
#!/usr/bin/python import sys LOG = None if __name__=="__main__": config = Config(' '.join(sys.argv[1:])) config.execute() #setter = ConfigSetter(' '.join(sys.argv[1:])) #setter.execute()
30.133333
88
0.559489
#!/usr/bin/python import sys from workflow.workflow import Settings from workflow import Workflow from const import Const LOG = None class ITCConfig(object): ITC_CONFIG_FILE_NAME = "config/itc.config" def __init__(self): self.langs = Settings(ITCConfig.ITC_CONFIG_FILE_NAME) class ConfigSetter(objec...
0
0
0
3,698
0
0
0
27
136
e5d661a1d881b217a3d3092788f4bc6474c314d7
1,003
py
Python
moment/admin.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
moment/admin.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
moment/admin.py
PPER/Webgame
7ee8e9b980b80bf107bf8549e62ff036f1e36822
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from django.contrib import admin from .models import Story_File_Status, Wonder_Archive_People, Wonder_Archive_GT, Chat_Log, Store_Card, Shopping_Cart, Shopping_Product, Daily_Story_File_Status, Basic_Setting, Current_Archive, Store_Card_Own """ class...
40.12
198
0.820538
from django.contrib import admin # Register your models here. from django.contrib import admin from .models import Story_File_Status,Wonder_Archive_People,Wonder_Archive_GT,Chat_Log,Store_Card,Shopping_Cart,Shopping_Product,Daily_Story_File_Status,Basic_Setting,Current_Archive,Store_Card_Own """ class Wonder_Ar...
0
0
0
0
0
0
0
-10
0
c216cd79233d2aca25f1d9377bba5f6c617b8d6e
1,391
py
Python
fairypptx/parts/_markdown/toml_config.py
Sillte/fairypptx
926d277e7692bcf1dd0d365e9c0e26e8d495bafb
[ "MIT" ]
null
null
null
fairypptx/parts/_markdown/toml_config.py
Sillte/fairypptx
926d277e7692bcf1dd0d365e9c0e26e8d495bafb
[ "MIT" ]
null
null
null
fairypptx/parts/_markdown/toml_config.py
Sillte/fairypptx
926d277e7692bcf1dd0d365e9c0e26e8d495bafb
[ "MIT" ]
null
null
null
"""Handles conversion of `markdown` Here, `toml` is used to communicate `attributes` as for `markdown`. Main purpose is to describe `style` of the documentation. * `toml`'s data is returned as Python primitive types. Speficiation ------------- If the firstline of the document starts with ```, and it is a v...
17.833333
81
0.608914
"""Handles conversion of `markdown` Here, `toml` is used to communicate `attributes` as for `markdown`. Main purpose is to describe `style` of the documentation. * `toml`'s data is returned as Python primitive types. Speficiation ------------- If the firstline of the document starts with ```, and it is a v...
0
0
0
0
0
0
0
-5
22
96ad24d7c709d834a136681e62ae551149d71e6d
705
py
Python
download_cifar10.py
jbcdnr/deit-collaborative-attention
07905829be28eac1277cbc0255796feeab589bfc
[ "Apache-2.0" ]
null
null
null
download_cifar10.py
jbcdnr/deit-collaborative-attention
07905829be28eac1277cbc0255796feeab589bfc
[ "Apache-2.0" ]
null
null
null
download_cifar10.py
jbcdnr/deit-collaborative-attention
07905829be28eac1277cbc0255796feeab589bfc
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__": main()
30.652174
82
0.642553
import torchvision from pathlib import Path import tqdm def main(): tmp = Path("tmp") target_dir = Path("cifar10") dataset_train = torchvision.datasets.CIFAR10("tmp", train=True, download=True) dataset_test = torchvision.datasets.CIFAR10("tmp", train=True, download=True) for split, dataset in [("...
0
0
0
0
0
585
0
-10
89
1897ef755d64dbd4e47a18963dc4a0e4be065a94
218
py
Python
todo/todo_app/todo_list/models.py
code-with-kotaro/simple-todo-app
c6aecd53ec0f40bdf5290d526bf0f0d834035d3a
[ "bzip2-1.0.6" ]
null
null
null
todo/todo_app/todo_list/models.py
code-with-kotaro/simple-todo-app
c6aecd53ec0f40bdf5290d526bf0f0d834035d3a
[ "bzip2-1.0.6" ]
11
2020-06-05T20:37:58.000Z
2022-03-12T00:12:19.000Z
todo/todo_app/todo_list/models.py
code-with-kotaro/simple-todo-app
c6aecd53ec0f40bdf5290d526bf0f0d834035d3a
[ "bzip2-1.0.6" ]
null
null
null
# Create your models here.
21.8
43
0.711009
from django.db import models # Create your models here. class Todo(models.Model): current_date = models.DateTimeField() text = models.CharField(max_length=200) def __str__(self): return self.text
0
0
0
139
0
0
0
7
44
d712c6f63efe5a77144e4fae4adc0cd488c453a6
6,716
py
Python
utils/variables_helper.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
6
2019-08-05T08:54:46.000Z
2021-06-29T08:36:58.000Z
utils/variables_helper.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
null
null
null
utils/variables_helper.py
ChenCongGit/Chinese-aster
3e4ad7e1cc36ad071e4e5dd1017d7d415d686d8d
[ "MIT" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.162304
101
0.720518
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
105
0
0
0
0
0
0
0
0
64d6b1957907cdd59163cb86511344b4d245870b
15,895
py
Python
normalizing_flows_typed/flows.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
normalizing_flows_typed/flows.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
normalizing_flows_typed/flows.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
""" Code by Tony Duan was forked from https://github.com/tonyduan/normalizing-flows MIT License Copyright (c) 2019 Tony Duan, 2019 Peter Zagubisalo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
36.87935
113
0.574269
""" Code by Tony Duan was forked from https://github.com/tonyduan/normalizing-flows MIT License Copyright (c) 2019 Tony Duan, 2019 Peter Zagubisalo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
92
0
0
13,509
0
227
0
0
276
30bac15ded2a9c0549c4de1e45471f33bb64f382
646
py
Python
FaceTrackingDrone/FaceTracking.py
udayagopi587/ArealRobotics_AutonomousDrone
6bc10ee167076086abb3b2eef311ae43f457f21d
[ "MIT" ]
1
2022-03-12T00:47:24.000Z
2022-03-12T00:47:24.000Z
FaceTrackingDrone/FaceTracking.py
udayagopi587/ArealRobotics_AutonomousDrone
6bc10ee167076086abb3b2eef311ae43f457f21d
[ "MIT" ]
null
null
null
FaceTrackingDrone/FaceTracking.py
udayagopi587/ArealRobotics_AutonomousDrone
6bc10ee167076086abb3b2eef311ae43f457f21d
[ "MIT" ]
1
2022-03-14T23:42:57.000Z
2022-03-14T23:42:57.000Z
import cv2 w,h = 360,240 pid = [0.4,0.4,0] pError = 0 startCounter = 0 # for no Flight 1 - for flight 0 myDrone = initializeTello() while True: ## Flight if startCounter == 0: myDrone.takeoff() startCounter = 1 ## Step 1 img = telloGetFrame(myDrone,w,h) ...
22.275862
83
0.552632
from utlis import * import cv2 w,h = 360,240 pid = [0.4,0.4,0] pError = 0 startCounter = 0 # for no Flight 1 - for flight 0 myDrone = initializeTello() while True: ## Flight if startCounter == 0: myDrone.takeoff() startCounter = 1 ## Step 1 img = telloGe...
0
0
0
0
0
0
0
-2
23
0d07139dd67d3ad3edbe7e562d4a3ae793c8505f
26
py
Python
rasa_core/version.py
gkniesel/rasa_core
00b2d1e05304d07945a3d973e4832f446ed2a921
[ "Apache-2.0" ]
1
2021-04-08T13:04:52.000Z
2021-04-08T13:04:52.000Z
rasa_core/version.py
gkniesel/rasa_core
00b2d1e05304d07945a3d973e4832f446ed2a921
[ "Apache-2.0" ]
1
2019-02-11T16:58:11.000Z
2019-02-11T17:07:55.000Z
rasa_core/version.py
gkniesel/rasa_core
00b2d1e05304d07945a3d973e4832f446ed2a921
[ "Apache-2.0" ]
6
2018-09-19T20:53:13.000Z
2018-10-24T14:37:12.000Z
__version__ = '0.14.0a1'
8.666667
24
0.653846
__version__ = '0.14.0a1'
0
0
0
0
0
0
0
0
0
b5ead709001eee90be095a5f7991799d205823d7
3,304
py
Python
start-a-project/init_project.py
MacHu-GWU/elementary_math-project
3a7512e3ca8283c64ec0e2bbe91de35be0fd064d
[ "MIT" ]
27
2016-05-31T20:24:24.000Z
2021-01-13T07:06:54.000Z
start-a-project/init_project.py
liushilive/elementary_math-project
3a7512e3ca8283c64ec0e2bbe91de35be0fd064d
[ "MIT" ]
1
2018-05-18T16:10:11.000Z
2018-05-18T16:10:11.000Z
start-a-project/init_project.py
liushilive/elementary_math-project
3a7512e3ca8283c64ec0e2bbe91de35be0fd064d
[ "MIT" ]
18
2016-09-02T09:56:46.000Z
2019-05-08T02:41:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script can generate automate scripts for open source python project. Scroll to ``if __name__ == "__main__":`` for more info. """ from __future__ import print_function import sys import datetime from os import walk, mkdir from os.path import join, abspath, dirnam...
30.036364
78
0.588983
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script can generate automate scripts for open source python project. Scroll to ``if __name__ == "__main__":`` for more info. """ from __future__ import print_function import sys import datetime from os import walk, mkdir from os.path import join, abspath, dirnam...
0
0
0
0
0
0
0
0
0
d67da868abc3acbc317563d0ad5604d0e509242d
16,252
py
Python
AppServer/google/appengine/tools/endpointscfg.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/tools/endpointscfg.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/tools/endpointscfg.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.195991
80
0.707421
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
0
0
0
1,121
0
248
0
0
46
d120a7d2e974648bc373d39aae3f0c7148d88918
2,419
py
Python
sdks/bkpaas-auth/bkpaas_auth/core/user_info.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
1
2022-03-03T02:23:00.000Z
2022-03-03T02:23:00.000Z
sdks/bkpaas-auth/bkpaas_auth/core/user_info.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
null
null
null
sdks/bkpaas-auth/bkpaas_auth/core/user_info.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import TYPE_CHECKING if TYPE_CHECKING:
28.458824
93
0.622571
# -*- coding: utf-8 -*- from typing import TYPE_CHECKING from bkpaas_auth.core.constants import ProviderType from bkpaas_auth.core.encoder import user_id_encoder if TYPE_CHECKING: from bkpaas_auth.models import User # noqa class UserInfo: """Base class for Userinfo""" provider_type: ProviderType ...
111
0
0
2,080
0
0
0
75
148
2316407c1c0d30daad86d030951951936f69eb17
5,736
py
Python
II rok/II semestr/SI/Pracownia 1/Zadanie 3/poker.py
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
II rok/II semestr/SI/Pracownia 1/Zadanie 3/poker.py
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
II rok/II semestr/SI/Pracownia 1/Zadanie 3/poker.py
antonitomaszewski/Studia
ff2fa59e25cf3f5c86b59de9994b80a502ec1e7b
[ "MIT" ]
null
null
null
from functools import reduce flip = lambda f : lambda x, y : f(y, x) foldr = lambda f, z, xs : reduce(flip(f), reversed(xs), z) foldl = lambda f, z, xs : reduce(f, xs, z) removeDuplicates = lambda xs : list(set([tuple(x) for x in xs])) # kier - heart # karo - diamond # trefl - club # pik - spade # as = Ace # krl - King...
33.156069
139
0.572176
from functools import reduce import random flip = lambda f : lambda x, y : f(y, x) foldr = lambda f, z, xs : reduce(flip(f), reversed(xs), z) foldl = lambda f, z, xs : reduce(f, xs, z) removeDuplicates = lambda xs : list(set([tuple(x) for x in xs])) # kier - heart # karo - diamond # trefl - club # pik - spade # as = Ac...
14
0
0
0
0
4,526
0
-8
181
b11151ccf386a13e5fcf36ff3ac652d4180ee326
1,843
py
Python
scripts/server.py
locaweb/leela-docs
6c810ff3fcb6e44e0971affdfdb2b4e0425be1ba
[ "Apache-2.0" ]
2
2015-11-29T21:47:57.000Z
2019-06-05T22:40:02.000Z
scripts/server.py
locaweb/leela-docs
6c810ff3fcb6e44e0971affdfdb2b4e0425be1ba
[ "Apache-2.0" ]
null
null
null
scripts/server.py
locaweb/leela-docs
6c810ff3fcb6e44e0971affdfdb2b4e0425be1ba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys; _stdout = sys.stdout; _stderr = sys.stderr; import bottle import os.path import threading bottle.debug(True) srcroot = os.path.join(os.path.dirname(__file__), "..") sphinxbuild = os.environ.get("SPHINXBUILD", "sphinx-build") devnull = open(os.devnull, "w") t = threading.T...
26.710145
126
0.632664
# -*- coding: utf-8 -*- import sys; _stdout = sys.stdout; _stderr = sys.stderr; import re import time import bottle import os.path import hashlib import threading import subprocess bottle.debug(True) srcroot = os.path.join(os.path.dirname(__file__), "..") sphinxbuild = os.environ.get("SPHINXBUILD", "sphinx-build...
0
367
0
0
0
831
0
-33
180
8e77d3a34983b66634cfa17bab18ac48a71aa529
2,659
py
Python
scripts/field/direction_foxvillage.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/field/direction_foxvillage.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/field/direction_foxvillage.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
LUMPS = 3002001 SALLY = 3002002 SNIFFS = 3002003 TWITCH = 3002004 SILVER = 3002005 COMPASS = 3002006 TIMBER = 3002007 BROOK = 3002008 PATIENCE = 3002009 TUMBLEWEED = 3002105 sm.lockInGameUI(True) sm.forcedInput(0) sm.spawnNpc(LUMPS, 300, 89) sm.showNpcSpecialActionByTemplateId(LUMPS, "summon") sm.spawnNpc(SALLY, -17...
31.654762
287
0.773975
LUMPS = 3002001 SALLY = 3002002 SNIFFS = 3002003 TWITCH = 3002004 SILVER = 3002005 COMPASS = 3002006 TIMBER = 3002007 BROOK = 3002008 PATIENCE = 3002009 TUMBLEWEED = 3002105 sm.lockInGameUI(True) sm.forcedInput(0) sm.spawnNpc(LUMPS, 300, 89) sm.showNpcSpecialActionByTemplateId(LUMPS, "summon") sm.spawnNpc(SALLY, -17...
0
0
0
0
0
0
0
0
0
317036df9ace965c05d8242958399dfea0845e67
19,447
py
Python
torent/comunicator.py
JulianWww/torent
e07290ed398796c93b34d31ea62e4be6c2ddb5af
[ "MIT" ]
null
null
null
torent/comunicator.py
JulianWww/torent
e07290ed398796c93b34d31ea62e4be6c2ddb5af
[ "MIT" ]
null
null
null
torent/comunicator.py
JulianWww/torent
e07290ed398796c93b34d31ea62e4be6c2ddb5af
[ "MIT" ]
null
null
null
"""python variable scharer the class implementation of a variable scharer for python """ NoneType = type(None) "the type of None" def decriptUUIDname(uuid): """converts a uuid gerated by the system to converts a uuid gerated by the system to ip and port @param uuid: the uuid to decript ...
43.79955
377
0.622718
"""python variable scharer the class implementation of a variable scharer for python """ import socket, threading, time from jpe_types.paralel import LockableThread, threadInharitanceFilter from jpe_types.conversions.intager import baseN from torent.client import client import logging NoneType = type(None...
0
0
0
18,613
0
0
0
87
142