hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
3d2ce2c966a31e97ee5b7a66b2aeabb6f1778574
35
py
Python
arcpyext/mapping/_cim/__init__.py
PeterReyne/arcpyext
9307115da8f0b6a30e2ca741fb6a7d09e54fd0f3
[ "BSD-3-Clause" ]
11
2015-05-01T04:08:30.000Z
2019-09-21T05:00:58.000Z
arcpyext/mapping/_cim/__init__.py
PeterReyne/arcpyext
9307115da8f0b6a30e2ca741fb6a7d09e54fd0f3
[ "BSD-3-Clause" ]
14
2015-06-23T02:46:44.000Z
2019-10-11T00:46:11.000Z
arcpyext/mapping/_cim/__init__.py
PeterReyne/arcpyext
9307115da8f0b6a30e2ca741fb6a7d09e54fd0f3
[ "BSD-3-Clause" ]
9
2015-02-27T05:25:42.000Z
2020-01-19T05:43:14.000Z
from .pro_project import ProProject
35
35
0.885714
0
0
0
0
0
0
0
0
0
0
3d2d9019566fcc96f253a9e2a983330775a08ac2
3,474
py
Python
o3/operators/filter_logs_to_percentage_operator.py
carlba/o3
999ff1b06ef9c7a5bf220a3e840c4a42dc81956a
[ "Unlicense" ]
null
null
null
o3/operators/filter_logs_to_percentage_operator.py
carlba/o3
999ff1b06ef9c7a5bf220a3e840c4a42dc81956a
[ "Unlicense" ]
1
2019-01-27T11:04:56.000Z
2019-01-27T11:04:56.000Z
o3/operators/filter_logs_to_percentage_operator.py
carlba/o3
999ff1b06ef9c7a5bf220a3e840c4a42dc81956a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """Custom operator for filtering out a percentage of input log files.""" import os import glob from airflow.exceptions import AirflowException, AirflowSkipException from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults from o3.utils import filter_to_perce...
39.033708
80
0.61399
3,145
0.905296
0
0
1,119
0.322107
0
0
1,062
0.305699
3d2f723ddb0882b15b4375b0ad2b7ffa05e4cedb
17,541
py
Python
alibExp.py
wicknec/WalArt
b23488b4e421699155976d5e726d1c7a906c3243
[ "MIT" ]
2
2016-02-02T11:33:27.000Z
2020-07-28T13:28:25.000Z
alibExp.py
wicknec/WalArt
b23488b4e421699155976d5e726d1c7a906c3243
[ "MIT" ]
null
null
null
alibExp.py
wicknec/WalArt
b23488b4e421699155976d5e726d1c7a906c3243
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ alibExp ======================= Qt4 interface for alib explorer To browse alib in a more user-friendly way than simple text Item.data(1,-1) stores its data, i.e. a str or another alib """ # NOTE: the actual command documentation is collected from docstrings of the # commands and is appen...
35.580122
104
0.595462
15,048
0.857876
0
0
0
0
0
0
3,466
0.197594
3d2f8979ac8231da6f04ccba44cc761dc5cb64c8
2,445
py
Python
test/test_batch.py
ASemakov/ob-pipelines
ea475cd2c34ae2eccbf59563fe7caea06266c450
[ "Apache-2.0" ]
11
2017-01-22T22:08:45.000Z
2020-03-10T20:17:14.000Z
test/test_batch.py
BeKitzur/ob-pipelines
8ee4ebd5803d72d0babce25b13399c9cdd0f686e
[ "Apache-2.0" ]
null
null
null
test/test_batch.py
BeKitzur/ob-pipelines
8ee4ebd5803d72d0babce25b13399c9cdd0f686e
[ "Apache-2.0" ]
6
2017-01-23T01:24:33.000Z
2018-07-18T13:30:06.000Z
""" Integration test for the Luigi wrapper of AWS Batch Requires: - boto3 package - Amazon AWS credentials discoverable by boto3 (e.g., by using ``aws configure`` from awscli_) - An enabled AWS Batch job queue configured to run on a compute environment. Written and maintained by Jake Feala (@jfeala) for Outlier Bio ...
25.46875
91
0.67771
1,582
0.647035
0
0
200
0.0818
0
0
743
0.303885
3d30c11f1ede17efd698bce52b1da5e9569d559a
456
py
Python
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/tests/conftest.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/tests/conftest.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
4
2020-09-26T01:30:01.000Z
2022-02-10T02:20:35.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/tests/conftest.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
7
2020-03-04T22:23:51.000Z
2021-07-13T14:05:46.000Z
import pytest from markov.tests import test_constant @pytest.fixture def aws_region(): return test_constant.AWS_REGION @pytest.fixture def model_metadata_s3_key(): return test_constant.MODEL_METADATA_S3_KEY @pytest.fixture def reward_function_s3_source(): return test_constant.REWARD_FUNCTION_S3_SOURCE @...
19.826087
50
0.809211
0
0
0
0
393
0.861842
0
0
0
0
3d319597951dce7996b3f7f4aeae76d89320c801
2,716
py
Python
ROS/my_initials.py
Vishwajeetiitb/Autumn-of-Automation
bd8c78662734f867b6aa6fd9179a12913387a01c
[ "MIT" ]
null
null
null
ROS/my_initials.py
Vishwajeetiitb/Autumn-of-Automation
bd8c78662734f867b6aa6fd9179a12913387a01c
[ "MIT" ]
null
null
null
ROS/my_initials.py
Vishwajeetiitb/Autumn-of-Automation
bd8c78662734f867b6aa6fd9179a12913387a01c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist import math import os from turtlesim.msg import Pose import time os.system("rosrun") def callback(msg): global current_angle current_angle = msg.theta # print(msg) def move(): # Starts a new node rospy.init_node('robot_cleaner'...
28
82
0.645066
0
0
0
0
0
0
0
0
248
0.091311
3d321cb4dea8943fb087339fe2547eeaba4b5805
2,144
py
Python
Assignment-04/Question-03/mpi_ping_pong.py
gnu-user/mcsc-6030-assignments
42825cdbc4532d9da6ebdba549b65fb1e36456a0
[ "MIT" ]
null
null
null
Assignment-04/Question-03/mpi_ping_pong.py
gnu-user/mcsc-6030-assignments
42825cdbc4532d9da6ebdba549b65fb1e36456a0
[ "MIT" ]
null
null
null
Assignment-04/Question-03/mpi_ping_pong.py
gnu-user/mcsc-6030-assignments
42825cdbc4532d9da6ebdba549b65fb1e36456a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 ############################################################################### # # Assignment 4, Question 3 solution for MPI ping-pong timings to calcualate # alpha and beta, implemented in Python using MPI. # # Copyright (C) 2015, Jonathan Gillett (100437638) # All rights reserved. # ##########...
32
79
0.567631
0
0
0
0
0
0
0
0
933
0.435168
3d33211ca1584c7787f1e93ba17778c1a7d518eb
2,286
py
Python
app/monitoring/logging_config.py
robmarkcole/python-fastapi-aws-lambda-container
56a676f4c0bccce10fd2533daba3ace0201a1bb3
[ "Apache-2.0" ]
15
2020-12-29T23:14:33.000Z
2022-03-24T03:56:34.000Z
app/monitoring/logging_config.py
robmarkcole/python-fastapi-aws-lambda-container
56a676f4c0bccce10fd2533daba3ace0201a1bb3
[ "Apache-2.0" ]
3
2021-09-11T00:41:55.000Z
2022-03-24T05:51:17.000Z
app/monitoring/logging_config.py
robmarkcole/python-fastapi-aws-lambda-container
56a676f4c0bccce10fd2533daba3ace0201a1bb3
[ "Apache-2.0" ]
5
2021-09-10T23:53:41.000Z
2022-03-25T11:31:24.000Z
import os import uuid import logging import json from json import JSONEncoder from pythonjsonlogger import jsonlogger from datetime import datetime from logging.config import dictConfig # Custom JSON encoder which enforce standard ISO 8601 format, UUID format class ModelJsonEncoder(JSONEncoder): def default(self,...
30.078947
94
0.587927
1,210
0.529309
0
0
0
0
0
0
591
0.25853
3d332e20398ab4a054c4523a1136617bf5854f9a
1,459
py
Python
FPAIT/lib/logger/utils.py
D-X-Y/MSPLD-2018
71a6a75830ac84c7a861e63367ad3ace991fae77
[ "MIT" ]
63
2018-07-12T10:36:25.000Z
2019-04-26T11:30:09.000Z
FPAIT/lib/logger/utils.py
D-X-Y/MSPLD-2018
71a6a75830ac84c7a861e63367ad3ace991fae77
[ "MIT" ]
null
null
null
FPAIT/lib/logger/utils.py
D-X-Y/MSPLD-2018
71a6a75830ac84c7a861e63367ad3ace991fae77
[ "MIT" ]
8
2018-07-14T02:47:12.000Z
2019-06-03T07:39:13.000Z
import time, sys import numpy as np def time_for_file(): ISOTIMEFORMAT='%d-%h-at-%H-%M-%S' return '{}'.format(time.strftime( ISOTIMEFORMAT, time.gmtime(time.time()) )) def time_string(): ISOTIMEFORMAT='%Y-%m-%d %X' string = '[{}]'.format(time.strftime( ISOTIMEFORMAT, time.gmtime(time.time()) )) return strin...
28.057692
112
0.666895
481
0.329678
0
0
0
0
0
0
186
0.127485
3d34dd340fc3d7607de14667552ba62b48a6ce54
1,888
py
Python
hoomd/hpmc/test-py/test_ghost_layer.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
hoomd/hpmc/test-py/test_ghost_layer.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
hoomd/hpmc/test-py/test_ghost_layer.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from __future__ import division from hoomd import * from hoomd import hpmc import math import unittest context.initialize() class test_ghost_layer(unittest.TestCase): def test_implicit(self): # setup the MC integration system = init.read_snapshot(data.make_sna...
33.714286
121
0.613877
1,650
0.873941
0
0
0
0
0
0
216
0.114407
3d34e6acbf5b6084146e881a817272a730156e45
525
py
Python
performanceplatform/collector/ga/plugins/load_plugin.py
alphagov/performanceplatform-collector
de68ab4aa500c31e436e050fa1268fa928c522a5
[ "MIT" ]
3
2015-05-01T14:57:28.000Z
2016-04-08T12:53:59.000Z
performanceplatform/collector/ga/plugins/load_plugin.py
alphagov/performanceplatform-collector
de68ab4aa500c31e436e050fa1268fa928c522a5
[ "MIT" ]
15
2015-02-11T11:43:02.000Z
2021-03-24T10:54:35.000Z
performanceplatform/collector/ga/plugins/load_plugin.py
alphagov/performanceplatform-collector
de68ab4aa500c31e436e050fa1268fa928c522a5
[ "MIT" ]
7
2015-05-04T16:56:02.000Z
2021-04-10T19:42:35.000Z
""" load_plugin.py -------------- Responsible for taking plugin strings and returning plugin callables. """ # For the linter import __builtin__ import performanceplatform.collector.ga.plugins def load_plugins(plugin_names): return [load_plugin(plugin_name) for plugin_name in plugin_names] def load_plugin(pl...
21
79
0.744762
0
0
0
0
0
0
0
0
169
0.321905
3d36068bd29dc63f314be2d8a4d427fb6770b25d
26,243
py
Python
src/Python/Visualization/FrogReconstruction.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
81
2020-08-10T01:44:30.000Z
2022-03-23T06:46:36.000Z
src/Python/Visualization/FrogReconstruction.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
2
2020-09-12T17:33:52.000Z
2021-04-15T17:33:09.000Z
src/Python/Visualization/FrogReconstruction.py
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
27
2020-08-17T07:09:30.000Z
2022-02-15T03:44:58.000Z
#!/usr/bin/env python import collections from pathlib import Path # noinspection PyUnresolvedReferences import vtkmodules.vtkInteractionStyle # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingOpenGL2 from vtkmodules.vtkCommonColor import vtkNamedColors from vtkmodules.vtkCommonCore import vtkLookupT...
31.093602
121
0.622185
4,791
0.182556
0
0
177
0.006744
0
0
6,854
0.261164
3d3611984ad47f38b9bcaf5c70b8693991e55438
3,202
py
Python
mfr/extensions/tabular/libs/stdlib_tools.py
yacchin1205/RDM-modular-file-renderer
5bd18175a681d21e7be7fe0238132335a1cd8ded
[ "Apache-2.0" ]
36
2015-08-31T20:24:22.000Z
2021-12-17T17:02:44.000Z
mfr/extensions/tabular/libs/stdlib_tools.py
yacchin1205/RDM-modular-file-renderer
5bd18175a681d21e7be7fe0238132335a1cd8ded
[ "Apache-2.0" ]
190
2015-01-02T06:22:01.000Z
2022-01-19T11:27:03.000Z
mfr/extensions/tabular/libs/stdlib_tools.py
yacchin1205/RDM-modular-file-renderer
5bd18175a681d21e7be7fe0238132335a1cd8ded
[ "Apache-2.0" ]
47
2015-01-27T15:45:22.000Z
2021-01-27T22:43:03.000Z
import re import csv from mfr.extensions.tabular.exceptions import EmptyTableError, TabularRendererError from mfr.extensions.tabular import utilities def csv_stdlib(fp): """Read and convert a csv file to JSON format using the python standard library :param fp: File pointer object :return: tuple of table ...
33.705263
98
0.605559
0
0
0
0
0
0
0
0
1,221
0.381324
3d36845f210b13d26d7504e09092d4846041c87f
4,191
py
Python
code/master_web/app/template_support.py
glenn-edgar/lacima_ranch_cloud
0827bdd497295c931cf1a06e97880009773e77be
[ "MIT" ]
null
null
null
code/master_web/app/template_support.py
glenn-edgar/lacima_ranch_cloud
0827bdd497295c931cf1a06e97880009773e77be
[ "MIT" ]
null
null
null
code/master_web/app/template_support.py
glenn-edgar/lacima_ranch_cloud
0827bdd497295c931cf1a06e97880009773e77be
[ "MIT" ]
null
null
null
# # # This is Support for Drawing Bullet Charts # # # # # # # ''' This is the return json value to the javascript front end { "canvasName":"canvas1","featuredColor":"Green", "featuredMeasure":14.5, "qualScale1":14.5, "qualScale1Color":"Black","titleText":"Step 1" }, ...
37.756757
124
0.504653
3,394
0.809831
0
0
0
0
0
0
1,226
0.292532
3d372653470996da64ee3dcad6250a21dbd2e6ea
52
py
Python
zucchini/graders/exceptions.py
dbecker1/zucchini
47eb9a40b47bb1b131dcfd0073596ccf8816562c
[ "Apache-2.0" ]
3
2018-03-27T18:09:54.000Z
2021-04-08T03:03:55.000Z
zucchini/graders/exceptions.py
dbecker1/zucchini
47eb9a40b47bb1b131dcfd0073596ccf8816562c
[ "Apache-2.0" ]
337
2017-12-17T13:22:26.000Z
2022-03-28T02:05:09.000Z
zucchini/graders/exceptions.py
dbecker1/zucchini
47eb9a40b47bb1b131dcfd0073596ccf8816562c
[ "Apache-2.0" ]
7
2018-01-10T18:46:26.000Z
2020-10-17T17:47:07.000Z
class InvalidGraderConfigError(Exception): pass
17.333333
42
0.807692
51
0.980769
0
0
0
0
0
0
0
0
3d373999e9b389d4982c3184efb41a30e1a5425d
1,108
py
Python
datapack/data/scripts/custom/8871_gve/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
datapack/data/scripts/custom/8871_gve/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
datapack/data/scripts/custom/8871_gve/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
# Author ProGramMoS, Scoria Dev # Version 0.2b import sys from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance from com.l2jfrozen.util.database import L2DatabaseFactory from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen...
25.767442
77
0.731949
531
0.479242
0
0
0
0
0
0
136
0.122744
3d37fed769b12cfb4e9da6c616fc01c8b6b51490
3,740
py
Python
src/hypergol/base_data.py
hypergol/hypergol
0beee71c8f72d517ef376030baff9c840a2f7eeb
[ "MIT" ]
49
2020-07-09T10:22:25.000Z
2022-02-21T16:55:34.000Z
src/hypergol/base_data.py
hypergol/hypergol
0beee71c8f72d517ef376030baff9c840a2f7eeb
[ "MIT" ]
16
2020-08-18T17:06:05.000Z
2022-02-19T16:30:04.000Z
src/hypergol/base_data.py
hypergol/hypergol
0beee71c8f72d517ef376030baff9c840a2f7eeb
[ "MIT" ]
3
2020-07-16T08:42:09.000Z
2021-03-06T15:09:13.000Z
import json import base64 import pickle from hypergol.repr import Repr class NoIdException(Exception): pass class BaseData(Repr): """ Base class for all domain objects. Extends the Repr convenience base class that provides printing facilities. Provides to_data and from_data serialisation inte...
37.029703
217
0.625936
3,662
0.979144
0
0
515
0.137701
0
0
1,739
0.464973
3d392bdfd33f424fff8045fe8d11d2926903d55e
829
py
Python
examples/spark-function.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-02-17T08:12:33.000Z
2021-02-17T08:12:33.000Z
examples/spark-function.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2020-12-31T14:36:29.000Z
2020-12-31T14:36:29.000Z
examples/spark-function.py
Hedingber/mlrun
e2269718fcc7caa7e1aa379ac28495830b45f9da
[ "Apache-2.0" ]
1
2021-08-30T21:43:38.000Z
2021-08-30T21:43:38.000Z
# Pyspark example called by mlrun_spark_k8s.ipynb from pyspark.sql import SparkSession from mlrun import get_or_create_ctx # Acquire MLRun context mlctx = get_or_create_ctx("spark-function") # Get MLRun parameters mlctx.logger.info("!@!@!@!@!@ Getting env variables") READ_OPTIONS = mlctx.get_param("data_sources") ...
26.741935
85
0.772014
0
0
0
0
0
0
0
0
348
0.419783
3d39a4a34099b547fd394be7429e0efce238f402
3,654
py
Python
scripts/create_dataset.py
maxrousseau/dl-anesthesia
e5de2ecfc9d9e954f3ee36eedb13332589dfc27e
[ "MIT" ]
null
null
null
scripts/create_dataset.py
maxrousseau/dl-anesthesia
e5de2ecfc9d9e954f3ee36eedb13332589dfc27e
[ "MIT" ]
null
null
null
scripts/create_dataset.py
maxrousseau/dl-anesthesia
e5de2ecfc9d9e954f3ee36eedb13332589dfc27e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os, glob import datetime import xmltodict as xd import numpy as np import pandas as pd import h5py import matplotlib import matplotlib.pyplot as plt from sklearn import preprocessing # lets make a little data set for fun... mh_dir = os.path.abspath('./db/mh_data/') mh_cases = glob.glob(os...
24.36
84
0.570881
39
0.010673
0
0
0
0
0
0
1,170
0.320197
3d39d78b8b90f5a0e60b1cd9c3435a778082fd09
636
py
Python
ossdbtoolsservice/admin/contracts/__init__.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
ossdbtoolsservice/admin/contracts/__init__.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
ossdbtoolsservice/admin/contracts/__init__.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
53
103
0.575472
0
0
0
0
0
0
0
0
434
0.68239
3d3a5919d0773f6fa55679eeb76000e332ce88f7
38,534
py
Python
whacc/image_tools.py
hireslab/whacc
e0ccfe4ee784609cacd4cf62a17192687a5dff51
[ "MIT" ]
1
2021-05-27T00:34:46.000Z
2021-05-27T00:34:46.000Z
whacc/image_tools.py
hireslab/whacc
e0ccfe4ee784609cacd4cf62a17192687a5dff51
[ "MIT" ]
null
null
null
whacc/image_tools.py
hireslab/whacc
e0ccfe4ee784609cacd4cf62a17192687a5dff51
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt import numpy as np import h5py import copy import time import os from whacc import utils def isnotebook(): try: c = str(get_ipython().__class__) shell = get_ipython().__class__.__name__ if 'colab' in c: ...
40.223382
173
0.602896
11,626
0.301708
0
0
0
0
0
0
16,060
0.416775
3d3c48e30dea59b0f2566984a39668435562eafb
10,007
py
Python
tests/texts/declerations.py
Intsights/flake8-intsights
b3785a3be855e05090641696e0648486107dba72
[ "MIT" ]
12
2020-02-18T17:47:57.000Z
2021-07-13T10:23:40.000Z
tests/texts/declerations.py
Intsights/flake8-intsights
b3785a3be855e05090641696e0648486107dba72
[ "MIT" ]
7
2020-02-25T12:14:11.000Z
2020-12-01T08:14:58.000Z
tests/texts/declerations.py
Intsights/flake8-intsights
b3785a3be855e05090641696e0648486107dba72
[ "MIT" ]
1
2020-07-01T15:49:28.000Z
2020-07-01T15:49:28.000Z
declerations_test_text_001 = ''' list1 = [ 1, ] ''' declerations_test_text_002 = ''' list1 = [ 1, 2, ] ''' declerations_test_text_003 = ''' tuple1 = ( 1, ) ''' declerations_test_text_004 = ''' tuple1 = ( 1, 2, ) ''' declerations_test_text_005 = ''' set1 = { 1, } ''' declerations_test_text_00...
13.098168
47
0.540122
0
0
0
0
0
0
0
0
6,737
0.673229
3d3d066b8c43e8060d3eeba6ff779ba80c45bf11
1,437
py
Python
data/preprocess_original.py
Nstats/pytorch_senti_analysis_ch
bb01cc508c37638670b26259a6ee35c4e857f2b6
[ "Apache-2.0" ]
1
2019-09-29T02:26:14.000Z
2019-09-29T02:26:14.000Z
data/preprocess_original.py
Nstats/pytorch_senti_analysis_ch
bb01cc508c37638670b26259a6ee35c4e857f2b6
[ "Apache-2.0" ]
1
2021-06-02T00:24:55.000Z
2021-06-02T00:24:55.000Z
data/preprocess_original.py
Nstats/pytorch_senti_analysis_ch
bb01cc508c37638670b26259a6ee35c4e857f2b6
[ "Apache-2.0" ]
null
null
null
import pandas as pd import os import random train_df = pd.read_csv("./data/Train_DataSet.csv") train_label_df = pd.read_csv("./data/Train_DataSet_Label.csv") test_df = pd.read_csv("./data/Test_DataSet.csv") train_df = train_df.merge(train_label_df, on='id', how='left') train_df['label'] = train_df['label'].fillna(-1) ...
33.418605
75
0.636047
0
0
0
0
0
0
0
0
370
0.256055
3d3d56ea2024a56958685b39631e50240545177c
304
py
Python
tools/load_save.py
zs-liu/Pytorch-AS
4e41f96522cce7a35f6625bdbe3863c0b74ee0ca
[ "MIT" ]
null
null
null
tools/load_save.py
zs-liu/Pytorch-AS
4e41f96522cce7a35f6625bdbe3863c0b74ee0ca
[ "MIT" ]
null
null
null
tools/load_save.py
zs-liu/Pytorch-AS
4e41f96522cce7a35f6625bdbe3863c0b74ee0ca
[ "MIT" ]
null
null
null
import torch def save_checkpoint(save_dir, model, optimizer): torch.save({'model_state_dict': model.state_dict(), 'optimizer_state_dict': optimizer.state_dict()}, save_dir) return True def load_checkpoint(load_dir): checkpoint = torch.load(load_dir) return checkpoint
23.384615
74
0.713816
0
0
0
0
0
0
0
0
40
0.131579
3d3ee67b67a8537dbe3c66ff4a5cb8e8c72ee707
706
py
Python
support/send_broadcast_message.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
support/send_broadcast_message.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
support/send_broadcast_message.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from xlrd import open_workbook from scheduler.smsclient import SMSClient filename = "/Users/twer/Downloads/SchoolsSMSGhana.xlsx" workbook = open_workbook(filename) organization_number = "1902" area_code = "233" sheets_ = workbook.sheets()[0] sms_client = SMSClient() print 'Start' for row_num in range(1, sheets_.nrow...
32.090909
92
0.756374
0
0
0
0
0
0
0
0
120
0.169972
3d41aeb36fe4c0327c92ba2fb851e5ac557d9a0b
960
py
Python
typhon/oem/error.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
typhon/oem/error.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
typhon/oem/error.py
jmollard/typhon
68d5ae999c340b60aa69e095b336d438632ad55c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Functions to estimate the different sources of retrieval error. """ from typhon.oem import common __all__ = [ 'smoothing_error', 'retrieval_noise', ] def smoothing_error(x, x_a, A): """Return the smoothing error through the averaging kernel. Parameters: x (ndarra...
23.414634
67
0.644792
0
0
0
0
0
0
0
0
730
0.760417
3d41b25f4537cebd266bfc51daa90f8c3d503433
16,155
py
Python
nicos/core/spm.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos/core/spm.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos/core/spm.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
32.50503
79
0.532281
13,618
0.842959
0
0
80
0.004952
0
0
3,413
0.211266
3d42299242b673c35a88a568c3b956825f9d2deb
514
py
Python
2_Regression/ARX_Regression/empirical_id.py
abe-mart/arduino
1bbd88b6bcc3bb9092c259a071c8f3237c391c6a
[ "Apache-2.0" ]
1
2020-06-23T16:28:34.000Z
2020-06-23T16:28:34.000Z
2_Regression/ARX_Regression/empirical_id.py
abe-mart/arduino
1bbd88b6bcc3bb9092c259a071c8f3237c391c6a
[ "Apache-2.0" ]
null
null
null
2_Regression/ARX_Regression/empirical_id.py
abe-mart/arduino
1bbd88b6bcc3bb9092c259a071c8f3237c391c6a
[ "Apache-2.0" ]
1
2020-07-22T17:43:30.000Z
2020-07-22T17:43:30.000Z
import numpy as np import apm_id as arx ###################################################### # Configuration ###################################################### # number of terms ny = 2 # output coefficients nu = 1 # input coefficients # number of inputs ni = 1 # number of outputs no = 1 # load data ...
25.7
55
0.470817
0
0
0
0
0
0
0
0
368
0.715953
3d42e0a9f4a4977092186d96df6c6ef12958272d
75,635
py
Python
setup.py
Alexhuszagh/toolchains
6428c889dd0def79ddf8498f9af7a9d3ddc0423e
[ "Unlicense" ]
22
2021-06-16T08:33:22.000Z
2022-01-31T05:17:54.000Z
setup.py
Alexhuszagh/toolchains
6428c889dd0def79ddf8498f9af7a9d3ddc0423e
[ "Unlicense" ]
1
2022-03-21T16:09:20.000Z
2022-03-21T16:09:20.000Z
setup.py
Alexhuszagh/xcross
6428c889dd0def79ddf8498f9af7a9d3ddc0423e
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python ''' setup ===== This is a relatively complicated setup script, since it does a few things to simplify version control and configuration files. There's a simple script that overrides the `build_py` command to ensure there's proper version control set for the librar...
33.96273
97
0.598202
58,096
0.76811
0
0
5,340
0.070602
0
0
26,063
0.344589
3d4379916a421e4f16400672da640d246b4981ac
27,082
py
Python
src/sgfsdriver/plugins/ftp/ftp_client.py
syndicate-storage/syndicate-fs-driver-plugins
8e455d6bb4838c2313bb6cd72ed5fa6bbbc871d2
[ "Apache-2.0" ]
null
null
null
src/sgfsdriver/plugins/ftp/ftp_client.py
syndicate-storage/syndicate-fs-driver-plugins
8e455d6bb4838c2313bb6cd72ed5fa6bbbc871d2
[ "Apache-2.0" ]
3
2016-11-18T21:31:00.000Z
2017-08-16T15:35:52.000Z
src/sgfsdriver/plugins/ftp/ftp_client.py
syndicate-storage/syndicate-fs-driver-plugins
8e455d6bb4838c2313bb6cd72ed5fa6bbbc871d2
[ "Apache-2.0" ]
2
2016-03-31T18:55:58.000Z
2017-08-02T19:57:12.000Z
#!/usr/bin/env python """ Copyright 2016 The Trustees of University of Arizona 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 Unl...
30.259218
196
0.535633
25,595
0.945093
0
0
0
0
0
0
3,960
0.146223
3d440ce993f7a5cda0551a5a0f0c5294985fb68c
2,338
py
Python
py/ops/ops/mob/keys.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
py/ops/ops/mob/keys.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
py/ops/ops/mob/keys.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
__all__ = [ 'keys', ] from pathlib import Path import logging from garage import apps from garage import scripts LOG = logging.getLogger(__name__) HOST_KEYS = [ ('dsa', 1024), ('ecdsa', 521), ('ed25519', None), ('rsa', 4096), ] # ECDSA requires less bits than RSA at same level of strength an...
23.38
74
0.630881
0
0
0
0
1,773
0.75834
0
0
628
0.268606
3d4433d949aa6f4076c88076dfa660972581d142
28,882
py
Python
reconcile/test/test_saasherder.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_saasherder.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_saasherder.py
bhushanthakur93/qontract-reconcile
fd8eea9f92d353224113955d08e3592864e37df8
[ "Apache-2.0" ]
null
null
null
from typing import Any from unittest import TestCase from unittest.mock import patch, MagicMock import yaml from github import GithubException from reconcile.utils.openshift_resource import ResourceInventory from reconcile.utils.saasherder import SaasHerder from reconcile.utils.jjb_client import JJB from reconcile.ut...
33.544715
88
0.522263
28,462
0.985458
0
0
437
0.015131
0
0
6,322
0.218891
3d452a7b2a000511d4c3041100856759bae15e44
8,235
py
Python
configs/example/garnet_synth_traffic.py
georgia-tech-synergy-lab/gem5_astra
41695878a2b60c5a28fa104465558cd1acb8a695
[ "BSD-3-Clause" ]
5
2020-11-15T12:27:28.000Z
2021-09-20T03:50:54.000Z
configs/example/garnet_synth_traffic.py
georgia-tech-synergy-lab/gem5_astra
41695878a2b60c5a28fa104465558cd1acb8a695
[ "BSD-3-Clause" ]
null
null
null
configs/example/garnet_synth_traffic.py
georgia-tech-synergy-lab/gem5_astra
41695878a2b60c5a28fa104465558cd1acb8a695
[ "BSD-3-Clause" ]
2
2020-10-27T01:15:41.000Z
2020-11-16T02:30:32.000Z
# Copyright (c) 2016 Georgia Institute of Technology # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditi...
37.262443
79
0.664602
0
0
0
0
0
0
0
0
3,748
0.455131
3d45fc30ab899b62ab8e13a78f05b881621256c2
9,329
py
Python
tests/unit/service/test_messaging.py
davetobin/ignition
eb183dca3fb2041d3f6249467a3265e7eb1d8905
[ "Apache-2.0" ]
1
2019-09-02T15:23:08.000Z
2019-09-02T15:23:08.000Z
tests/unit/service/test_messaging.py
davetobin/ignition
eb183dca3fb2041d3f6249467a3265e7eb1d8905
[ "Apache-2.0" ]
62
2019-09-16T14:51:32.000Z
2020-07-08T13:28:50.000Z
tests/unit/service/test_messaging.py
accanto-systems/ignition
87087b81dfa7f8f69525f4dd9c74db715e336eca
[ "Apache-2.0" ]
4
2021-08-17T14:38:54.000Z
2022-02-09T14:33:57.000Z
import unittest import time import copy from unittest.mock import patch, MagicMock, call from ignition.service.messaging import PostalService, KafkaDeliveryService, KafkaInboxService, Envelope, Message, MessagingProperties from kafka import KafkaProducer class TestPostalService(unittest.TestCase): def setUp(self...
51.541436
209
0.731054
9,066
0.971808
3,574
0.383106
6,161
0.660414
0
0
1,228
0.131633
3d470989d588fa1b7b09836531c89bcfed89beee
1,011
py
Python
app/core/management/commands/wait_for_db.py
denis240997/recipe-app-api
c03c079b8df9d2b527c6d32a7c213be2b1478c6b
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
denis240997/recipe-app-api
c03c079b8df9d2b527c6d32a7c213be2b1478c6b
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
denis240997/recipe-app-api
c03c079b8df9d2b527c6d32a7c213be2b1478c6b
[ "MIT" ]
null
null
null
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand # This is bullshit! Problem was not solved! # The first connection is successful, but after that postgres closes the connection and # reconnects. At the moment, this script h...
38.884615
98
0.680514
633
0.626113
0
0
0
0
0
0
449
0.444115
3d4788f3f357f54449458d8a9feead4ef160065f
835
py
Python
clusters/actions.py
bhaugen/localecon
ee3134f701e6a786767cf7eeb165ee03f077e9da
[ "MIT" ]
10
2015-02-14T14:22:31.000Z
2022-02-22T17:40:34.000Z
clusters/actions.py
bhaugen/localecon
ee3134f701e6a786767cf7eeb165ee03f077e9da
[ "MIT" ]
3
2017-02-01T16:44:04.000Z
2018-04-02T13:48:03.000Z
clusters/actions.py
bhaugen/localecon
ee3134f701e6a786767cf7eeb165ee03f077e9da
[ "MIT" ]
null
null
null
import csv from django.core.exceptions import PermissionDenied from django.http import HttpResponse def export_as_csv(modeladmin, request, queryset): """ Generic csv export admin action. """ if not request.user.is_staff: raise PermissionDenied opts = modeladmin.model._meta response = Ht...
37.954545
101
0.720958
0
0
0
0
0
0
0
0
211
0.252695
3d479358107ba6396633f05381cdd46111709044
37,605
py
Python
rbac/common/protobuf/task_transaction_pb2.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2019-04-14T20:16:59.000Z
2019-04-14T20:16:59.000Z
rbac/common/protobuf/task_transaction_pb2.py
crazyrex/sawtooth-next-directory
210b581c8c92c307fab2f6d2b9a55526b56b790a
[ "Apache-2.0" ]
null
null
null
rbac/common/protobuf/task_transaction_pb2.py
crazyrex/sawtooth-next-directory
210b581c8c92c307fab2f6d2b9a55526b56b790a
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: task_transaction.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection ...
41.506623
2,776
0.737216
0
0
0
0
0
0
0
0
8,303
0.220795
3d487f498a05799cec579339e7396f36837a8077
14,560
py
Python
courses/machine_learning/asl/open_project/ASL_youtube8m_models/video_using_datasets/trainer/model.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
2
2022-01-06T11:52:57.000Z
2022-01-09T01:53:56.000Z
courses/machine_learning/asl/open_project/ASL_youtube8m_models/video_using_datasets/trainer/model.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
courses/machine_learning/asl/open_project/ASL_youtube8m_models/video_using_datasets/trainer/model.py
Glairly/introduction_to_tensorflow
aa0a44d9c428a6eb86d1f79d73f54c0861b6358d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
54.943396
196
0.682212
0
0
0
0
0
0
0
0
6,742
0.463049
3d48f55b2e9c4409d2a293fd05fd3f37f16ba6df
22,394
py
Python
allennlp/tests/semparse/worlds/wikitables_world_test.py
kyleclo/allennlp
0205c26f3db7ef44d7ee70fa9ebdf5a7f6b43baf
[ "Apache-2.0" ]
24
2019-09-16T00:10:54.000Z
2021-09-08T19:31:51.000Z
allennlp/tests/semparse/worlds/wikitables_world_test.py
TalSchuster/allennlp-MultiLang
dbb28b939652491d2f633326edccca2cd0e528c8
[ "Apache-2.0" ]
2
2019-01-12T00:19:06.000Z
2019-02-27T05:29:31.000Z
allennlp/tests/semparse/worlds/wikitables_world_test.py
TalSchuster/allennlp-MultiLang
dbb28b939652491d2f633326edccca2cd0e528c8
[ "Apache-2.0" ]
10
2019-12-06T11:32:37.000Z
2022-01-06T15:39:09.000Z
# pylint: disable=no-self-use,invalid-name from typing import List import pytest from allennlp.common.testing import AllenNlpTestCase from allennlp.data.tokenizers import Token from allennlp.semparse import ParsingError from allennlp.semparse.contexts import TableQuestionKnowledgeGraph from allennlp.semparse.worlds i...
51.958237
111
0.466732
21,743
0.97093
0
0
1,330
0.059391
0
0
8,117
0.362463
3d4903f05506c73039c6cca6466ba4b87575d105
395
py
Python
FishCDailyQuestion/ex001-010/Python3_008/008_05.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
FishCDailyQuestion/ex001-010/Python3_008/008_05.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
FishCDailyQuestion/ex001-010/Python3_008/008_05.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/evn python3 # coding:utf-8 from math import sqrt def is_prime_num(num): for i in range(2, int(sqrt(num))+1): if num % i == 0: return False # 非素数,返回 False return True # 是素数,返回 True count = 0 for i in range(100, 201): if is_prime_num(i): print(i, end=' ') c...
20.789474
63
0.582278
0
0
0
0
0
0
0
0
132
0.315036
3d490f3f5ae32168776078a1279b5239c7a6960d
4,324
py
Python
models/015_bolasso.py
cmougan/Novartis2021
72a6f088929a5a4546760f4a453ec4a77faf5856
[ "MIT" ]
null
null
null
models/015_bolasso.py
cmougan/Novartis2021
72a6f088929a5a4546760f4a453ec4a77faf5856
[ "MIT" ]
null
null
null
models/015_bolasso.py
cmougan/Novartis2021
72a6f088929a5a4546760f4a453ec4a77faf5856
[ "MIT" ]
null
null
null
# %% Imports from numpy.lib import select import pandas as pd import sys import numpy as np import random from functools import partial from sklearn.pipeline import Pipeline from sklearn.impute import SimpleImputer from sktools import IsEmptyExtractor from lightgbm import LGBMRegressor from category_encoders import T...
32.268657
124
0.679695
0
0
0
0
0
0
0
0
953
0.220398
3d49492a4f368cab1e5d3dbd044945f99690e2f6
40,274
py
Python
docx.py
highcat/python-docx
05627c6330970f91771174c9e5d849ce28703b3e
[ "MIT" ]
null
null
null
docx.py
highcat/python-docx
05627c6330970f91771174c9e5d849ce28703b3e
[ "MIT" ]
null
null
null
docx.py
highcat/python-docx
05627c6330970f91771174c9e5d849ce28703b3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Open and modify Microsoft Word 2007 docx files (called 'OpenXML' and 'Office OpenXML' by Microsoft) Part of Python's docx module - http://github.com/mikemaccana/python-docx See LICENSE for licensing information. ''' from copy import deepcopy import logging from lxml i...
43.305376
242
0.590133
0
0
0
0
0
0
0
0
18,062
0.448478
3d49f7eaf598f54df886dcfb77904d84e8c9f173
108
py
Python
nylas/util/__init__.py
nylas/nylas-production-python
a0979cd104a43f80750b2361aa580516b8dbfcfc
[ "Apache-2.0", "MIT" ]
19
2015-11-20T12:38:34.000Z
2022-01-13T15:40:25.000Z
nylas/api/__init__.py
nylas/nylas-production-python
a0979cd104a43f80750b2361aa580516b8dbfcfc
[ "Apache-2.0", "MIT" ]
null
null
null
nylas/api/__init__.py
nylas/nylas-production-python
a0979cd104a43f80750b2361aa580516b8dbfcfc
[ "Apache-2.0", "MIT" ]
10
2016-03-12T00:38:54.000Z
2018-12-13T05:58:13.000Z
from pkgutil import extend_path # Allow out-of-tree submodules. __path__ = extend_path(__path__, __name__)
21.6
42
0.805556
0
0
0
0
0
0
0
0
31
0.287037
3d4abb2320ad6d11a7ab8694b9e07545a91044dd
885
py
Python
project/migrations/0002_auto_20180801_1907.py
mcdale/django-material
3bd5725cc4a4b6f2fb1439333e9033d0cd2b6a9c
[ "MIT" ]
null
null
null
project/migrations/0002_auto_20180801_1907.py
mcdale/django-material
3bd5725cc4a4b6f2fb1439333e9033d0cd2b6a9c
[ "MIT" ]
2
2020-07-21T12:52:29.000Z
2021-06-17T20:23:36.000Z
project/migrations/0002_auto_20180801_1907.py
mcdale/django-material
3bd5725cc4a4b6f2fb1439333e9033d0cd2b6a9c
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-08-01 19:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('project', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='knowledgearea',...
30.517241
121
0.628249
759
0.857627
0
0
0
0
0
0
275
0.310734
3d4dc9ef0428e142bdd3d4e674dd5dce9410a4ab
8,925
py
Python
src/core/src/tortuga/objects/softwareProfile.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/core/src/tortuga/objects/softwareProfile.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/core/src/tortuga/objects/softwareProfile.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # 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...
27.631579
77
0.607731
7,608
0.852437
0
0
2,773
0.3107
0
0
2,239
0.250868
3d4e4b8f64fdbc0b44c87b38d3ece2354dc7dd2f
579
py
Python
src/utils/workspace.py
sidcmsft/ResponsibleAI
a8c691574690a8316e054c21ec9e6d0e0ca4e494
[ "MIT" ]
2
2020-09-03T16:13:56.000Z
2021-02-18T15:58:41.000Z
src/utils/workspace.py
sidcmsft/ResponsibleAI
a8c691574690a8316e054c21ec9e6d0e0ca4e494
[ "MIT" ]
null
null
null
src/utils/workspace.py
sidcmsft/ResponsibleAI
a8c691574690a8316e054c21ec9e6d0e0ca4e494
[ "MIT" ]
4
2020-09-03T16:14:19.000Z
2021-05-05T05:59:59.000Z
import sys from azureml.core import Workspace from azureml.core.authentication import ServicePrincipalAuthentication def get_workspace( workspace_name: str, resource_group: str, subscription_id: str): try: aml_workspace = Workspace.get( name=workspace_name, ...
26.318182
70
0.680484
0
0
0
0
0
0
0
0
37
0.063903
3d4f711206b2fd9dbd8a3177d589e3c33373c8b1
822
py
Python
tools/test_tmp.py
Z-XQ/mmdetection
9f3756889969c0c21e6d84e0d993f302e7f07460
[ "Apache-2.0" ]
null
null
null
tools/test_tmp.py
Z-XQ/mmdetection
9f3756889969c0c21e6d84e0d993f302e7f07460
[ "Apache-2.0" ]
null
null
null
tools/test_tmp.py
Z-XQ/mmdetection
9f3756889969c0c21e6d84e0d993f302e7f07460
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/9/28 下午9:49 # @Author : zxq # @File : test_tmp.py # @Software: PyCharm import mmcv import torch from mmdet.datasets import build_dataset from mmdet.models import build_detector from mmdet.apis import train_detector, inference_detector, show_result_pyplot from tools.train_t...
27.4
77
0.770073
0
0
0
0
0
0
0
0
248
0.300242
3d4fb10a65167e4ffb44c4897ed5483e2f0d23c0
2,439
py
Python
users/models.py
Mansi3546/CareerCradle
e040e763b1058aef937deb9eac4e1f9b2421ae25
[ "MIT" ]
null
null
null
users/models.py
Mansi3546/CareerCradle
e040e763b1058aef937deb9eac4e1f9b2421ae25
[ "MIT" ]
1
2021-04-14T12:24:41.000Z
2021-04-18T07:33:11.000Z
users/models.py
Mansi3546/CareerCradle
e040e763b1058aef937deb9eac4e1f9b2421ae25
[ "MIT" ]
3
2021-04-06T13:54:44.000Z
2021-05-03T17:28:59.000Z
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin from django.db import models from django.utils import timezone from django.db.models import BooleanField class UserManager(BaseUserManager): def _create_user(self, email, password, usertype, is_staff, is_superuser, **ext...
33.410959
94
0.660107
2,235
0.916359
0
0
0
0
0
0
199
0.081591
3d4fe154eecbbf658beca88c248a4a382f051e30
2,656
py
Python
scripts/dump_ubd.py
sbreuers/BiternionNets-ROS
954d6a2fbd97a01231f3411b366f3a3cccae5cf9
[ "MIT" ]
1
2018-08-29T07:11:22.000Z
2018-08-29T07:11:22.000Z
scripts/dump_ubd.py
sbreuers/BiternionNets-ROS
954d6a2fbd97a01231f3411b366f3a3cccae5cf9
[ "MIT" ]
null
null
null
scripts/dump_ubd.py
sbreuers/BiternionNets-ROS
954d6a2fbd97a01231f3411b366f3a3cccae5cf9
[ "MIT" ]
1
2018-10-20T12:09:58.000Z
2018-10-20T12:09:58.000Z
#!/usr/bin/env python # encoding: utf-8 from os.path import abspath, expanduser, join as pjoin import os from sys import stderr import cv2 import rospy from cv_bridge import CvBridge import message_filters from sensor_msgs.msg import Image as ROSImage # Distinguish between STRANDS and SPENCER. try: from rwth_per...
34.947368
120
0.651355
1,778
0.669428
0
0
0
0
0
0
645
0.242846
3d5041bc56fbfaccca116aec98a24987eddba5f7
2,046
py
Python
site_scons/site_tools/findPkgPath.py
fermi-lat/SConsFiles
54124ec1031142b4fee76b12fdcfe839845e9fda
[ "BSD-3-Clause" ]
null
null
null
site_scons/site_tools/findPkgPath.py
fermi-lat/SConsFiles
54124ec1031142b4fee76b12fdcfe839845e9fda
[ "BSD-3-Clause" ]
null
null
null
site_scons/site_tools/findPkgPath.py
fermi-lat/SConsFiles
54124ec1031142b4fee76b12fdcfe839845e9fda
[ "BSD-3-Clause" ]
null
null
null
import os,platform,os.path # Usual case: find where package is; add to env include path # If 'subdir' argument, instead set construction env variable # to point to it def generate(env, **kw): pkgName = kw.get('package', '') if pkgName == '': print 'findPkgPath called with no arg' return No...
40.117647
75
0.544966
0
0
0
0
0
0
0
0
796
0.389052
3d506074ec9756c4fb5eb16d2309de5778a6c989
1,380
py
Python
examples/model_zoo/test_binaries.py
Embracing/unrealcv
19305da8554c3a0e683a5e27a1e487cc2cf42776
[ "MIT" ]
1,617
2016-09-10T04:41:33.000Z
2022-03-31T20:03:28.000Z
examples/model_zoo/test_binaries.py
Embracing/unrealcv
19305da8554c3a0e683a5e27a1e487cc2cf42776
[ "MIT" ]
199
2016-09-13T09:40:59.000Z
2022-03-16T02:37:23.000Z
examples/model_zoo/test_binaries.py
Embracing/unrealcv
19305da8554c3a0e683a5e27a1e487cc2cf42776
[ "MIT" ]
431
2016-09-10T03:20:35.000Z
2022-03-19T13:44:21.000Z
import subprocess, os win_binary_path = 'UE4Binaries/{project_name}/WindowsNoEditor/{project_name}.exe' linux_binary_path = './UE4Binaries/{project_name}/LinuxNoEditor/{project_name}/Binaries/Linux/{project_name}' mac_binary_path = './UE4Binaries/{project_name}/MacNoEditor/{project_name}.app' project_names = [ 'R...
41.818182
109
0.698551
0
0
0
0
0
0
0
0
513
0.371739
3d50aca1b7a9e65ec91502519f8c8985d2d96649
4,629
py
Python
pyslam/feature_tracker_configs.py
velvetThunder25/Feature-based-Monocular-Visual-Odometry
e6b108e8ce71ec0ec535932e2fc1023fc6fcaf92
[ "MIT" ]
7
2022-01-12T22:46:06.000Z
2022-03-16T13:57:52.000Z
pyslam/feature_tracker_configs.py
velvetThunder25/Feature-based-Monocular-Visual-Odometry
e6b108e8ce71ec0ec535932e2fc1023fc6fcaf92
[ "MIT" ]
null
null
null
pyslam/feature_tracker_configs.py
velvetThunder25/Feature-based-Monocular-Visual-Odometry
e6b108e8ce71ec0ec535932e2fc1023fc6fcaf92
[ "MIT" ]
1
2022-01-12T22:52:29.000Z
2022-01-12T22:52:29.000Z
""" * This file is part of PYSLAM * * Copyright (C) 2016-present Luigi Freda <luigi dot freda at gmail dot com> * * PYSLAM is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or ...
44.509615
159
0.579175
3,163
0.683301
0
0
0
0
0
0
1,705
0.36833
3d524c3bd35810437426c4644ee0f769511b58ea
152
py
Python
bindings/python/examples/05b_get_output.py
GoldenPedro/iota.rs
71464f96b8e29d9fbed34a6ff77e757a112fedd4
[ "Apache-2.0" ]
256
2017-06-27T02:37:21.000Z
2022-03-28T07:51:48.000Z
bindings/python/examples/05b_get_output.py
GoldenPedro/iota.rs
71464f96b8e29d9fbed34a6ff77e757a112fedd4
[ "Apache-2.0" ]
379
2017-06-25T05:49:14.000Z
2022-03-29T18:57:11.000Z
bindings/python/examples/05b_get_output.py
GoldenPedro/iota.rs
71464f96b8e29d9fbed34a6ff77e757a112fedd4
[ "Apache-2.0" ]
113
2017-06-25T14:07:05.000Z
2022-03-30T09:10:12.000Z
import iota_client client = iota_client.Client() print( client.get_output("a22cba0667c922cbb1f8bdcaf970b2a881ccd6e88e2fcce50374de2aac7c37720000") )
25.333333
93
0.848684
0
0
0
0
0
0
0
0
70
0.460526
3d5394f2af4816cbcec8e499c06b15d66ed6fb8e
920
py
Python
simple_ml/__init__.py
Yangruipis/simple_ml
09657f6b017b973a5201aa611774d6ac8f0fc0a2
[ "MIT" ]
25
2018-04-17T04:38:51.000Z
2021-10-09T04:07:53.000Z
simple_ml/__init__.py
Yangruipis/simple_ml
09657f6b017b973a5201aa611774d6ac8f0fc0a2
[ "MIT" ]
null
null
null
simple_ml/__init__.py
Yangruipis/simple_ml
09657f6b017b973a5201aa611774d6ac8f0fc0a2
[ "MIT" ]
5
2018-04-17T05:27:00.000Z
2020-12-01T02:55:15.000Z
# -*- coding:utf-8 -*- """ ================================== Simple Machine Learning 一个简单的机器学习算法实现 ================================== """ from simple_ml.bayes import * from simple_ml.classify_data import * from simple_ml.auto import * from simple_ml.classify_data import * from simple_ml.ensemble import * from simp...
20
38
0.644565
0
0
0
0
0
0
0
0
358
0.378436
3d53c39285c2bdec8b3434c91e5427cdb7617eb5
5,470
py
Python
Modelos/Game.py
joaofanti/TrabRedesIIFinal
3cae5db7ef88e20d9426043e926260ccedc79d10
[ "MIT" ]
1
2017-07-05T01:24:20.000Z
2017-07-05T01:24:20.000Z
Modelos/Game.py
joaofanti/TrabRedesIIFinal
3cae5db7ef88e20d9426043e926260ccedc79d10
[ "MIT" ]
null
null
null
Modelos/Game.py
joaofanti/TrabRedesIIFinal
3cae5db7ef88e20d9426043e926260ccedc79d10
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, "Modelos/Mapa") from Map import * from Item import Item """ Define a classe que manipula a logica do jogo. """ class Game: """ Define um jogador do jogo. """ class Player: """ Cria uma nova instancia de jogador """ def __init__(self, name, addr, map): self.Name = name ...
28.051282
101
0.67404
5,325
0.973492
0
0
0
0
0
0
1,430
0.261426
3d550a112ff51ab3601284d3bb247c868ab1d733
2,062
py
Python
test/sample_data/get_observation_histogram_week.py
eduramirezh/pyinaturalist
e5da7ced7fae31f27310868bdb2d349bdff8e0d4
[ "MIT" ]
47
2019-07-23T08:18:02.000Z
2022-03-17T16:32:17.000Z
test/sample_data/get_observation_histogram_week.py
eduramirezh/pyinaturalist
e5da7ced7fae31f27310868bdb2d349bdff8e0d4
[ "MIT" ]
219
2019-08-22T14:45:20.000Z
2022-03-30T02:39:35.000Z
test/sample_data/get_observation_histogram_week.py
eduramirezh/pyinaturalist
e5da7ced7fae31f27310868bdb2d349bdff8e0d4
[ "MIT" ]
9
2020-02-28T04:29:13.000Z
2022-02-23T03:02:32.000Z
from datetime import datetime { datetime(2019, 12, 30, 0, 0): 35, datetime(2020, 1, 6, 0, 0): 27, datetime(2020, 1, 13, 0, 0): 39, datetime(2020, 1, 20, 0, 0): 120, datetime(2020, 1, 27, 0, 0): 73, datetime(2020, 2, 3, 0, 0): 48, datetime(2020, 2, 10, 0, 0): 35, datetime(2020, 2, 17, 0,...
35.551724
39
0.532978
0
0
0
0
0
0
0
0
0
0
3d553fd4a5642d493db1017f36467ff8b535228c
65
py
Python
wave_1d_fwi_tf/__init__.py
ar4/wave_1d_fwi_tf
0a543149dc3bd5ca6ec0e5bfe34add4796e0b879
[ "MIT" ]
2
2017-08-07T13:35:50.000Z
2019-02-28T08:26:49.000Z
wave_1d_fwi_tf/__init__.py
ar4/wave_1d_fwi_tf
0a543149dc3bd5ca6ec0e5bfe34add4796e0b879
[ "MIT" ]
null
null
null
wave_1d_fwi_tf/__init__.py
ar4/wave_1d_fwi_tf
0a543149dc3bd5ca6ec0e5bfe34add4796e0b879
[ "MIT" ]
5
2018-06-26T20:43:44.000Z
2021-12-11T20:00:03.000Z
"""1D FWI implemented using TensorFlow """ __version__ = '0.0.1'
16.25
38
0.692308
0
0
0
0
0
0
0
0
49
0.753846
3d555476cff1bc071aa2e2a1ea0c596baf77825f
1,586
py
Python
scripts/space_heating_demand/ecofys_space_heating_demand.py
quintel/etmoses
e1e682d0ef68928e5a015c44d916ec151917b1ff
[ "MIT" ]
16
2015-09-22T11:33:52.000Z
2019-09-09T13:37:14.000Z
scripts/space_heating_demand/ecofys_space_heating_demand.py
quintel/etmoses
e1e682d0ef68928e5a015c44d916ec151917b1ff
[ "MIT" ]
1,445
2015-05-20T22:42:50.000Z
2022-02-26T19:16:02.000Z
scripts/space_heating_demand/ecofys_space_heating_demand.py
quintel/etloader
e1e682d0ef68928e5a015c44d916ec151917b1ff
[ "MIT" ]
3
2015-11-03T10:41:26.000Z
2017-02-11T07:39:52.000Z
import numpy as np from numpy import genfromtxt import matplotlib.pyplot as plt import os time_steps = 8760 file_name = "../input_data/Ecofys_ECN_heating_profiles.csv" data = zip(*genfromtxt(file_name, delimiter=',')) names = ["tussenwoning_laag", "tussenwoning_midden", "tussenwoning_hoog", "hoekwoning_laa...
26.433333
109
0.645019
0
0
0
0
0
0
0
0
587
0.370113
3d55a052fc466e9d762d5638ce7970aab1dc7f8b
1,362
py
Python
parsers/lyrics_az.py
taynaron/lyrics2mp3
339f4dfd94c88896278a7be4143ea586ada8194f
[ "MIT" ]
null
null
null
parsers/lyrics_az.py
taynaron/lyrics2mp3
339f4dfd94c88896278a7be4143ea586ada8194f
[ "MIT" ]
null
null
null
parsers/lyrics_az.py
taynaron/lyrics2mp3
339f4dfd94c88896278a7be4143ea586ada8194f
[ "MIT" ]
null
null
null
from .lyrics import Lyrics class LyricsAZ(Lyrics): def __init__(self, **kwargs): super().__init__("azlyrics", **kwargs) def parse_single_song(self, href): soup = self.parse_html(href) parsed_lyrics = ( soup.find("div", class_="col-xs-12 col-lg-8 text-center") ....
31.674419
69
0.592511
1,332
0.977974
0
0
0
0
0
0
201
0.147577
3d56210042ea856581699506b54c8a673f17ffaa
1,414
py
Python
senorge/listfiles.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
senorge/listfiles.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
senorge/listfiles.py
kojitominaga/scratch
5eaf4de30c89ff1e855a6be493105d1201f07f74
[ "FSFAP" ]
null
null
null
import os d = '/Volumes/Seagate Expansion Drive/SeNorge' vars = ['bn', 'eva', 'frd', 'gwt', 'is', 'os', 'q', 'rr', 'sd', 'smd', 'swe', 'tm'] # Massebalanse isbre (mm/døgn) gwb_bn_2014_06_15.asc # Fordampning (mm/døgn) gwb_eva_2014_06_15.asc # Frostdyp (mm/døgn) gwb_frd_2014_06_15.asc # Grunnvannsmagasin (mm) ...
33.666667
81
0.642857
0
0
0
0
0
0
0
0
767
0.538246
3d56d13a865c0fd22d417834c65ef6529f433ba4
104
py
Python
Python/jump-to-python/Exponential.py
leeheefull/blog-source
5f8370de5b0f62801fffc9e5f0f0bcb98dc2e6d1
[ "MIT" ]
null
null
null
Python/jump-to-python/Exponential.py
leeheefull/blog-source
5f8370de5b0f62801fffc9e5f0f0bcb98dc2e6d1
[ "MIT" ]
null
null
null
Python/jump-to-python/Exponential.py
leeheefull/blog-source
5f8370de5b0f62801fffc9e5f0f0bcb98dc2e6d1
[ "MIT" ]
null
null
null
# 지수부 표현 a = 1e9 print(a) # 1000000000.0 a = 7.525e2 print(a) # 752.5 a = 3954e-3 print(a) # 3.954
10.4
24
0.576923
0
0
0
0
0
0
0
0
46
0.403509
3d56d5d2a7208245fa6af52b9cc12f9423e31653
11,289
py
Python
src/lib_yolo_detect.py
felixchenfy/ros_yolo_as_template_matching
0d5c0a52ba5540d2a644e0b426f9041a2a5e7858
[ "MIT" ]
29
2019-12-02T01:54:18.000Z
2022-02-15T09:23:27.000Z
src/lib_yolo_detect.py
felixchenfy/ros_yolo_as_template_matching
0d5c0a52ba5540d2a644e0b426f9041a2a5e7858
[ "MIT" ]
8
2019-12-24T13:13:44.000Z
2022-02-10T00:16:31.000Z
src/lib_yolo_detect.py
felixchenfy/ros_yolo_as_template_matching
0d5c0a52ba5540d2a644e0b426f9041a2a5e7858
[ "MIT" ]
5
2020-01-31T00:31:37.000Z
2022-03-28T06:14:09.000Z
# -*- coding: future_fstrings -*- from __future__ import division if 1: # Set path import sys, os ROOT = os.path.dirname(os.path.abspath(__file__))+"/../" # root of the project sys.path.append(ROOT) import sys from src.PyTorch_YOLOv3.models import Darknet from src.PyTorch_YOLOv3.utils.utils import non_max...
36.182692
111
0.639738
2,827
0.250421
0
0
0
0
0
0
3,369
0.298432
3d582b494cb98544a7b8b83f15184b7f8c7c6d2b
43
py
Python
python/parse_ddl/tests/ddl_examples/test_vs.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
python/parse_ddl/tests/ddl_examples/test_vs.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
python/parse_ddl/tests/ddl_examples/test_vs.py
jared-ong/data-projects
21ceccacb8e408ca45fe95c1c4d311f48e8f7708
[ "MIT" ]
null
null
null
import json import re print("Hello world")
10.75
20
0.767442
0
0
0
0
0
0
0
0
13
0.302326
3d58e1aeb6209bbf0ac5b1e7058c942f20cd4768
733
py
Python
tests/test_missing_variable.py
specfault/GreenerPython
976260c3e78969cfd3e1e40639325f104325c703
[ "MIT" ]
null
null
null
tests/test_missing_variable.py
specfault/GreenerPython
976260c3e78969cfd3e1e40639325f104325c703
[ "MIT" ]
null
null
null
tests/test_missing_variable.py
specfault/GreenerPython
976260c3e78969cfd3e1e40639325f104325c703
[ "MIT" ]
null
null
null
from tests.framework import AbstractFilePair from tests.framework import in_test_function from tests.framework import standard_test_spec from tests.framework import SavingFixesSUT from tests.framework import fixing_test variable_names = ('x', 'y') def missing_variable_in_source(variable_name): test_code = in_te...
29.32
73
0.718963
300
0.409277
0
0
313
0.427012
0
0
141
0.19236
3d59c021cf7fb75f7a11d364d01cd243b711a413
3,186
py
Python
aiida/storage/psql_dos/migrations/versions/django_0040_data_migration_legacy_process_attributes.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
153
2016-12-23T20:59:03.000Z
2019-07-02T06:47:52.000Z
aiida/storage/psql_dos/migrations/versions/django_0040_data_migration_legacy_process_attributes.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
2,466
2016-12-24T01:03:52.000Z
2019-07-04T13:41:08.000Z
aiida/storage/psql_dos/migrations/versions/django_0040_data_migration_legacy_process_attributes.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
88
2016-12-23T16:28:00.000Z
2019-07-01T15:55:20.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
35.797753
119
0.607031
0
0
0
0
0
0
0
0
2,887
0.906152
3d5a102883a7bb1dd52786e30fc8cbb5261af1f1
1,108
py
Python
hdvw/ops/matrix.py
shaoshitong/hdvw
fbb39da9ad8a765f74225eec7e9614978c740dde
[ "Apache-2.0" ]
2
2022-03-26T09:08:43.000Z
2022-03-26T09:09:27.000Z
hdvw/ops/matrix.py
shaoshitong/hdvw
fbb39da9ad8a765f74225eec7e9614978c740dde
[ "Apache-2.0" ]
null
null
null
hdvw/ops/matrix.py
shaoshitong/hdvw
fbb39da9ad8a765f74225eec7e9614978c740dde
[ "Apache-2.0" ]
null
null
null
from sklearn.metrics import confusion_matrix import torch import seaborn as sns import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt from tensorflow.keras.utils import to_categorical def confusion_matrix_pyplot(y_true,y_pred,num_classes,name=""): if isinstance(y_true,to...
38.206897
81
0.652527
0
0
0
0
0
0
0
0
27
0.024368
3d5a3b5d8a7ee8e5a8d60b3408e8aa8d46c512c1
346
py
Python
{{cookiecutter.app_name}}/search_indexes.py
rickydunlop/cookiecutter-django-app-template-drf-haystack
8ea9034c371950628b3d312639964753899c8c5d
[ "MIT" ]
null
null
null
{{cookiecutter.app_name}}/search_indexes.py
rickydunlop/cookiecutter-django-app-template-drf-haystack
8ea9034c371950628b3d312639964753899c8c5d
[ "MIT" ]
null
null
null
{{cookiecutter.app_name}}/search_indexes.py
rickydunlop/cookiecutter-django-app-template-drf-haystack
8ea9034c371950628b3d312639964753899c8c5d
[ "MIT" ]
null
null
null
from haystack import indexes from .models import {{ cookiecutter.model_name }} class {{ cookiecutter.model_name }}Index(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) name = indexes.CharField(model_attr='name') def get_model(self): return {{ c...
28.833333
81
0.736994
0
0
0
0
0
0
0
0
6
0.017341
3d5db5e05861ba4f7444a52667354a11e6f370f2
6,018
py
Python
utility_functions.py
andrewli2403/California-Basketball-Data-Processor
19582bef72d6a4f4281ddb61eceb4bee033b5ceb
[ "MIT" ]
null
null
null
utility_functions.py
andrewli2403/California-Basketball-Data-Processor
19582bef72d6a4f4281ddb61eceb4bee033b5ceb
[ "MIT" ]
null
null
null
utility_functions.py
andrewli2403/California-Basketball-Data-Processor
19582bef72d6a4f4281ddb61eceb4bee033b5ceb
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup as bs import re import pandas as pd #collect & process data based on GAME ID def processor(game_id): url = "https://www.espn.com/mens-college-basketball/matchup?gameId=" + str(game_id) r = requests.get(url) webpage = bs(r.content, features="html.parser") #...
47.015625
1,105
0.633599
0
0
0
0
0
0
0
0
2,353
0.390994
3d5eb8fb4fedfe6ddb55250652317a407099a204
3,787
py
Python
site_crawler/cleaner/cleaner.py
kwoshvick/NSE-Financial-News-Crawler-and-Predictor
8acee7c660c5487d18321dc7a169eba3043ef2b8
[ "MIT" ]
11
2018-04-24T12:05:45.000Z
2021-07-12T05:30:41.000Z
site_crawler/cleaner/cleaner.py
kwoshvick/NSE-Financial-News-Crawler-and-Predictor
8acee7c660c5487d18321dc7a169eba3043ef2b8
[ "MIT" ]
null
null
null
site_crawler/cleaner/cleaner.py
kwoshvick/NSE-Financial-News-Crawler-and-Predictor
8acee7c660c5487d18321dc7a169eba3043ef2b8
[ "MIT" ]
5
2019-08-09T04:43:23.000Z
2021-08-28T18:05:56.000Z
import csv import re import string import html class Cleaner: def __init__(self): self.remove_punctuations = str.maketrans('', '', string.punctuation) def read_csv(self,csv_name): cleaned_text = [] with open('../data/twitter_data/raw_data/'+csv_name+'.csv', newline='', encoding='utf-8'...
29.818898
113
0.578558
2,784
0.735147
0
0
0
0
0
0
939
0.247954
3d5f940e0e5788ca23c26f2a301fe14e51745333
1,161
py
Python
003.branch/if.py
cjp1016/python-samples
ca5a7284cf4cb9fe42fa1487d4944815a00487ec
[ "Apache-2.0" ]
null
null
null
003.branch/if.py
cjp1016/python-samples
ca5a7284cf4cb9fe42fa1487d4944815a00487ec
[ "Apache-2.0" ]
null
null
null
003.branch/if.py
cjp1016/python-samples
ca5a7284cf4cb9fe42fa1487d4944815a00487ec
[ "Apache-2.0" ]
null
null
null
""" 用户身份验证 Version: 0.1 Author: cjp """ username = input('请输入用户名: ') password = input('请输入口令: ') # 用户名是admin且密码是123456则身份验证成功否则身份验证失败 if username == 'admin' and password == '123456': print('身份验证成功!') else: print('身份验证失败!') """ Python中没有用花括号来构造代码块而是使用了缩进的方式来设置代码的层次结构, 如果if条件成立的情况下需要执行多条语句,只要保持多条语句具有相同的缩进就可以了,...
15.077922
53
0.564169
0
0
0
0
0
0
0
0
1,489
0.800107
3d602a949005e0184acfd82e6822740a19d36fb9
7,210
bzl
Python
bazel/antlr4_cc.bzl
kyle-winkelman/fhir
01038aa235189fd043fd2981ebf40f4dc1e826e0
[ "Apache-2.0" ]
null
null
null
bazel/antlr4_cc.bzl
kyle-winkelman/fhir
01038aa235189fd043fd2981ebf40f4dc1e826e0
[ "Apache-2.0" ]
2
2020-07-24T14:20:45.000Z
2020-07-24T19:43:52.000Z
bazel/antlr4_cc.bzl
kyle-winkelman/fhir
01038aa235189fd043fd2981ebf40f4dc1e826e0
[ "Apache-2.0" ]
1
2020-07-10T15:03:45.000Z
2020-07-10T15:03:45.000Z
"""Build rules to create C++ code from an Antlr4 grammar.""" def antlr4_cc_lexer(name, src, namespaces = None, imports = None, deps = None, lib_import = None): """Generates the C++ source corresponding to an antlr4 lexer definition. Args: name: The name of the package to use for the cc_library. sr...
38.55615
142
0.600971
0
0
0
0
0
0
0
0
2,960
0.410541
3d62c9779cfa7f3da2b542252bdcb812a8982541
234
py
Python
src/scenic/simulators/gta/map.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
141
2019-03-07T07:17:19.000Z
2022-03-19T16:15:48.000Z
src/scenic/simulators/gta/map.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
27
2019-06-18T23:04:29.000Z
2022-03-31T13:42:05.000Z
src/scenic/simulators/gta/map.py
cahartsell/Scenic
2e7979011aef426108687947668d9ba6f5439136
[ "BSD-3-Clause" ]
59
2019-04-08T15:20:15.000Z
2022-03-29T07:23:26.000Z
# stub to allow changing the map without having to alter gta_model.sc import os mapPath = 'map.npz' def setLocalMap(module, relpath): global mapPath base = os.path.dirname(module) mapPath = os.path.join(base, relpath)
19.5
69
0.717949
0
0
0
0
0
0
0
0
78
0.333333
e9e2bdbc8442df5b9a587f4296d83d87e0d66ce8
6,982
py
Python
bot/messages.py
pyaf/tpobot
d96a3650de46f6d43ab346d61b922b170cd5fdb2
[ "MIT" ]
4
2017-07-19T19:18:15.000Z
2017-11-24T16:15:51.000Z
bot/messages.py
rishabhiitbhu/tpobot
d96a3650de46f6d43ab346d61b922b170cd5fdb2
[ "MIT" ]
5
2020-02-11T23:53:50.000Z
2021-12-13T19:45:22.000Z
bot/messages.py
pyaf/tpobot
d96a3650de46f6d43ab346d61b922b170cd5fdb2
[ "MIT" ]
1
2017-08-27T20:40:50.000Z
2017-08-27T20:40:50.000Z
# -*- coding: utf-8 -*- message_dict = { 'welcome': "Hi! TPO Baba is here to give you updates about TPO portal, set willingness reminders, ppt "\ "reminders, exam date reminders and lot more...:D \n\n"\ "To personalise your experience, I gotta register you. It's simple two step proc...
48.151724
112
0.560011
0
0
0
0
0
0
0
0
5,366
0.759734
e9e2e74f010f4bd4956a3cbde97bcbf8f121ba63
5,208
py
Python
geomstats/geometry/matrices.py
PabloJ-1/geomstats
b53f62b745b21972b80bd7222df9af2549b66d64
[ "MIT" ]
null
null
null
geomstats/geometry/matrices.py
PabloJ-1/geomstats
b53f62b745b21972b80bd7222df9af2549b66d64
[ "MIT" ]
null
null
null
geomstats/geometry/matrices.py
PabloJ-1/geomstats
b53f62b745b21972b80bd7222df9af2549b66d64
[ "MIT" ]
null
null
null
"""Module exposing the `Matrices` and `MatricesMetric` class.""" from functools import reduce import geomstats.backend as gs from geomstats.geometry.euclidean import Euclidean from geomstats.geometry.riemannian_metric import RiemannianMetric TOLERANCE = 1e-5 class Matrices(Euclidean): """Class for the space o...
29.590909
78
0.576421
4,939
0.948349
0
0
3,149
0.604647
0
0
2,490
0.478111
e9e2f70538bbc55ae42d19558eee76ef0345309a
2,338
py
Python
gamutrf/mqtt_reporter.py
cglewis/gamutRF
d95b36f5893f165ff02701636c82662727d6e275
[ "Apache-2.0" ]
null
null
null
gamutrf/mqtt_reporter.py
cglewis/gamutRF
d95b36f5893f165ff02701636c82662727d6e275
[ "Apache-2.0" ]
null
null
null
gamutrf/mqtt_reporter.py
cglewis/gamutRF
d95b36f5893f165ff02701636c82662727d6e275
[ "Apache-2.0" ]
null
null
null
import gpsd import json import logging import socket import httpx import paho.mqtt.client as mqtt class MQTTReporter: def __init__(self, name, mqtt_server=None, gps_server=None, compass=False): self.name = name self.mqtt_server = mqtt_server self.compass = compass self.gps_server...
33.4
107
0.579983
2,236
0.956373
0
0
0
0
0
0
323
0.138152
e9e522181523a4e229d498e313189c98d24c3d87
7,377
py
Python
2onnx.py
Yifanfanfanfan/flops-counter.pytorch
5e7670106511f42f258083a01318b386605b61e7
[ "MIT" ]
null
null
null
2onnx.py
Yifanfanfanfan/flops-counter.pytorch
5e7670106511f42f258083a01318b386605b61e7
[ "MIT" ]
null
null
null
2onnx.py
Yifanfanfanfan/flops-counter.pytorch
5e7670106511f42f258083a01318b386605b61e7
[ "MIT" ]
null
null
null
import os, sys, time, shutil, argparse from functools import partial import pickle sys.path.append('../') import torch import torch.nn as nn from torch.autograd import Variable from torchvision import datasets, transforms #import torchvision.models as models import torch.optim as optim import torch.nn.parallel import t...
38.222798
143
0.682256
0
0
0
0
0
0
0
0
3,015
0.408703
e9e8878237d9fdf426e86b2606cac1e238054e1a
8,888
py
Python
arapheno/phenotypedb/migrations/0001_initial.py
svengato/AraPheno
d6918e2e69c497b7096d9291d904c69310e84d06
[ "MIT" ]
5
2018-03-24T08:54:50.000Z
2021-01-19T03:19:42.000Z
arapheno/phenotypedb/migrations/0001_initial.py
svengato/AraPheno
d6918e2e69c497b7096d9291d904c69310e84d06
[ "MIT" ]
38
2016-08-14T12:09:15.000Z
2020-10-30T06:02:24.000Z
arapheno/phenotypedb/migrations/0001_initial.py
svengato/AraPheno
d6918e2e69c497b7096d9291d904c69310e84d06
[ "MIT" ]
8
2016-08-15T06:07:32.000Z
2020-11-06T06:43:56.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-27 14:12 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
50.5
159
0.588884
8,698
0.978623
0
0
0
0
0
0
1,458
0.164041
e9e93ad17a56b7c2432a305bc659635d4fd17d0c
1,870
py
Python
prior_library_release.py
DReichLab/adna-workflow
07c6da8e64234decb7373fe7109e09395a45cb58
[ "BSD-3-Clause" ]
9
2019-05-28T11:16:14.000Z
2022-02-24T01:22:47.000Z
prior_library_release.py
DReichLab/adna-workflow
07c6da8e64234decb7373fe7109e09395a45cb58
[ "BSD-3-Clause" ]
3
2020-01-09T20:12:02.000Z
2020-11-17T14:50:28.000Z
prior_library_release.py
DReichLab/adna-workflow
07c6da8e64234decb7373fe7109e09395a45cb58
[ "BSD-3-Clause" ]
1
2019-08-04T12:46:01.000Z
2019-08-04T12:46:01.000Z
from release_libraries import LibraryParameters from bam_finder import getBamPath, library_default_dir, MT_default_dir, ShopVersion import argparse import re from has_read_groups import read_group_checks if __name__ == "__main__": parser = argparse.ArgumentParser(description="Augment the bam list for a release with a...
49.210526
306
0.758289
0
0
0
0
0
0
0
0
690
0.368984
e9e95132c690c91397faab36e332edee82e1ac48
3,818
py
Python
scratch/msf/fast_sample_data.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T02:37:59.000Z
2022-03-09T16:42:34.000Z
scratch/msf/fast_sample_data.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
446
2019-04-10T04:46:20.000Z
2022-03-15T20:27:57.000Z
scratch/msf/fast_sample_data.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
13
2019-02-05T18:02:05.000Z
2021-03-02T18:41:49.000Z
import numpy as np import matplotlib.pyplot as plt import scipy.signal as signal plt.ion() bands = [2,3] single_channel_readout = 2 nsamp = 2**25 new_chans = False def etaPhaseModDegree(etaPhase): return (etaPhase+180)%360-180 #For resonator I/Q high sampled data use eta_mag + eta_phase found in eta scans for Q...
41.956044
275
0.628078
0
0
0
0
0
0
0
0
1,005
0.263227
e9e9975a7e35ce3210ca6631964e51dc707d8e9b
2,667
py
Python
kwiklib/utils/settings.py
fiath/test
b50898dafa90e93da48f573e0b3feb1bb6acd8de
[ "MIT", "BSD-3-Clause" ]
7
2015-01-20T13:55:51.000Z
2018-02-06T09:31:21.000Z
kwiklib/utils/settings.py
fiath/test
b50898dafa90e93da48f573e0b3feb1bb6acd8de
[ "MIT", "BSD-3-Clause" ]
6
2015-01-08T18:13:53.000Z
2016-06-22T09:53:53.000Z
kwiklib/utils/settings.py
fiath/test
b50898dafa90e93da48f573e0b3feb1bb6acd8de
[ "MIT", "BSD-3-Clause" ]
8
2015-01-22T22:57:19.000Z
2020-03-19T11:43:56.000Z
"""Internal persistent settings store with cPickle.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import cPickle import os from kwiklib.utils.globalpaths import ensure_folder_exists # -----...
31.011628
79
0.490064
1,563
0.586052
0
0
0
0
0
0
1,243
0.466067
e9e9ed2bd4fb85cec280f41104f00f0f5fe284be
24,098
py
Python
cpu.py
philippechataignon/applepy
1b9d1709a4490f49fa06739bb44c0602bb07b730
[ "MIT" ]
null
null
null
cpu.py
philippechataignon/applepy
1b9d1709a4490f49fa06739bb44c0602bb07b730
[ "MIT" ]
null
null
null
cpu.py
philippechataignon/applepy
1b9d1709a4490f49fa06739bb44c0602bb07b730
[ "MIT" ]
null
null
null
import sys import pygame from utils import signed class CPU: STACK_PAGE = 0x100 RESET_VECTOR = 0xFFFC def __init__(self, options, memory): self.options = options self.memory = memory self.accumulator = 0x00 self.x_index = 0x00 self.y_index = 0x00 self.car...
36.960123
197
0.606523
24,046
0.997842
0
0
0
0
0
0
776
0.032202
e9ead4efec2b488b003bd50670c0f814058b8f19
29
py
Python
router/tasks/__init__.py
smallwat3r/shopify-webhook-processor
4f16017cb9695ca00eb6d95e4381a8442b3dc0e3
[ "MIT" ]
1
2021-08-30T14:01:03.000Z
2021-08-30T14:01:03.000Z
router/tasks/__init__.py
smallwat3r/shopify-webhook-processor
4f16017cb9695ca00eb6d95e4381a8442b3dc0e3
[ "MIT" ]
null
null
null
router/tasks/__init__.py
smallwat3r/shopify-webhook-processor
4f16017cb9695ca00eb6d95e4381a8442b3dc0e3
[ "MIT" ]
2
2021-08-30T14:01:04.000Z
2021-09-07T01:07:41.000Z
from .tasks import Processor
14.5
28
0.827586
0
0
0
0
0
0
0
0
0
0
e9ebfd8edc0153bf61129fe91fefdc9f0a9e4300
1,392
py
Python
dogs/dogs.py
RafaelBadaro-zz/dogtour-backend
30a83eac46dddaf29c3c643e2dc4dd71948484f0
[ "Unlicense" ]
null
null
null
dogs/dogs.py
RafaelBadaro-zz/dogtour-backend
30a83eac46dddaf29c3c643e2dc4dd71948484f0
[ "Unlicense" ]
2
2019-11-10T18:08:39.000Z
2020-07-11T21:22:42.000Z
dogs/dogs.py
RafaelBadaro-zz/dogtour-backend
30a83eac46dddaf29c3c643e2dc4dd71948484f0
[ "Unlicense" ]
1
2022-02-12T12:14:40.000Z
2022-02-12T12:14:40.000Z
import uuid from nameko.rpc import RpcProxy, rpc from nameko_redis import Redis class DogsService: name = "dogs" users_rpc = RpcProxy('users') redis = Redis('development') @rpc def get(self, dog_id): dog = self.redis.hgetall(dog_id) return dog @rpc def create(self...
19.068493
56
0.481322
1,306
0.938218
0
0
1,179
0.846983
0
0
159
0.114224
e9ec78a38e45c3ed801db04c7a18df698501ab39
1,531
py
Python
examples/demo_OT_2D_samples.py
agramfort/POT
8dbfd3edae649f5f3e87be4a3ce446c59729b2f7
[ "MIT" ]
null
null
null
examples/demo_OT_2D_samples.py
agramfort/POT
8dbfd3edae649f5f3e87be4a3ce446c59729b2f7
[ "MIT" ]
null
null
null
examples/demo_OT_2D_samples.py
agramfort/POT
8dbfd3edae649f5f3e87be4a3ce446c59729b2f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Demo for 2D Optimal transport between empirical distributions @author: rflamary """ import numpy as np import matplotlib.pylab as pl import ot #%% parameters and data generation n=20 # nb samples mu_s=np.array([0,0]) cov_s=np.array([[1,0],[0,1]]) mu_t=np.array([4,4]) cov_t=np.array([[1...
19.379747
61
0.677335
0
0
0
0
0
0
0
0
534
0.348792
e9ed96eda4a6de7f5ebf0c1ccffa4e86b1a28787
7,594
py
Python
src/morphometrics/utils/surface_utils.py
kevinyamauchi/morphometrics
f48cb4fa8c06b726f0b699940c32ac8df466f71c
[ "BSD-3-Clause" ]
5
2022-03-17T18:14:18.000Z
2022-03-23T00:48:17.000Z
src/morphometrics/utils/surface_utils.py
kevinyamauchi/morphometrics
f48cb4fa8c06b726f0b699940c32ac8df466f71c
[ "BSD-3-Clause" ]
11
2022-01-27T14:10:43.000Z
2022-03-20T18:22:30.000Z
src/morphometrics/utils/surface_utils.py
kevinyamauchi/morphometrics
f48cb4fa8c06b726f0b699940c32ac8df466f71c
[ "BSD-3-Clause" ]
1
2022-03-17T18:17:21.000Z
2022-03-17T18:17:21.000Z
from typing import List, Tuple import numpy as np import pymeshfix import trimesh.voxel.creation from skimage.measure import marching_cubes from trimesh import Trimesh from trimesh.smoothing import filter_taubin from ..types import BinaryImage, LabelImage def _round_to_pitch(coordinate: np.ndarray, pitch: float) ->...
32.314894
95
0.684093
0
0
0
0
0
0
0
0
3,881
0.511061
e9eda2a3fc73ffe30b97e1cd86e60cd02bdf72a7
1,402
py
Python
bigflow_python/python/bigflow/pipeline/test/testdata/columns/columns/column_sum.py
advancedxy/bigflow_python
8a244b483404fde7afc42eee98bc964da8ae03e2
[ "Apache-2.0" ]
1,236
2017-11-14T11:10:10.000Z
2022-03-08T11:54:41.000Z
bigflow_python/python/bigflow/pipeline/test/testdata/columns/columns/column_sum.py
advancedxy/bigflow_python
8a244b483404fde7afc42eee98bc964da8ae03e2
[ "Apache-2.0" ]
38
2017-11-14T16:29:12.000Z
2020-01-23T08:32:04.000Z
bigflow_python/python/bigflow/pipeline/test/testdata/columns/columns/column_sum.py
advancedxy/bigflow_python
8a244b483404fde7afc42eee98bc964da8ae03e2
[ "Apache-2.0" ]
184
2017-11-27T07:23:36.000Z
2022-03-14T02:54:16.000Z
#!/usr/bin/env python # encoding: utf-8 ######################################################################## # # Copyright (c) 2016 Baidu, Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain...
28.04
74
0.597004
0
0
0
0
0
0
0
0
1,146
0.782787
e9ee58711825a498c9db3c3f37e476c5e56bb0a6
282
py
Python
auction/models/bidbasket.py
littlepea/django-auction
fe0219faabe17efbeca1be51869d750e82299941
[ "MIT" ]
10
2015-01-13T02:51:35.000Z
2021-01-25T21:02:29.000Z
auction/models/bidbasket.py
JohnRomanski/django-auction
bc6982c8f34a9a6914badb203424eca7f3219685
[ "MIT" ]
2
2016-08-05T09:24:30.000Z
2020-06-28T06:00:11.000Z
auction/models/bidbasket.py
JohnRomanski/django-auction
bc6982c8f34a9a6914badb203424eca7f3219685
[ "MIT" ]
22
2015-03-12T10:41:52.000Z
2021-11-23T14:33:09.000Z
import importlib from django.conf import settings from auction.utils.loader import load_class AUCTION_BIDBASKET_MODEL = getattr(settings, 'AUCTION_BIDBASKET_MODEL', 'auction.models.defaults.BidBasket') BidBasket = load_class(AUCTION_BIDBASKET_MODEL, 'AUCTION_BIDBASKET_MODEL')
35.25
74
0.840426
0
0
0
0
0
0
0
0
85
0.301418
e9eed597103f69eb9973238f713e70a5ed271b2e
551
py
Python
stixpy/timeseries/tests/test_quicklook.py
nicHoch/stixpy
cdb86094995590da36f3ae5e01f4ca4b9aac819c
[ "BSD-3-Clause" ]
4
2021-07-06T14:42:09.000Z
2022-02-24T10:19:18.000Z
stixpy/timeseries/tests/test_quicklook.py
nicHoch/stixpy
cdb86094995590da36f3ae5e01f4ca4b9aac819c
[ "BSD-3-Clause" ]
30
2020-10-02T20:24:28.000Z
2022-03-31T18:29:07.000Z
stixpy/timeseries/tests/test_quicklook.py
nicHoch/stixpy
cdb86094995590da36f3ae5e01f4ca4b9aac819c
[ "BSD-3-Clause" ]
8
2021-04-16T11:00:13.000Z
2022-03-31T10:09:29.000Z
from pathlib import Path import pytest from sunpy.timeseries import TimeSeries from stixpy.data import test from stixpy.timeseries.quicklook import * def test_ql_lightcurve(): ql_lc = TimeSeries(test.STIX_QL_LIGHTCURVE_TIMESERIES) assert isinstance(ql_lc, QLLightCurve) def test_qlbackground(): ql_lc =...
22.958333
58
0.787659
0
0
0
0
0
0
0
0
0
0
e9f001a0eb4f10eb622617d07d8ad3650ace4a3c
2,284
py
Python
roberta_ses/datasets/sst_dataset.py
sythello/Roberta_SES
289d575b9330cb6ae61190846448bd5368d73453
[ "Apache-2.0" ]
null
null
null
roberta_ses/datasets/sst_dataset.py
sythello/Roberta_SES
289d575b9330cb6ae61190846448bd5368d73453
[ "Apache-2.0" ]
null
null
null
roberta_ses/datasets/sst_dataset.py
sythello/Roberta_SES
289d575b9330cb6ae61190846448bd5368d73453
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @file : sst_dataset.py @author: zijun @contact : [email protected] @date : 2020/11/17 11:45 @version: 1.0 @desc : sst5 and imdb task use the same dataset """ import os from functools import partial import torch from transformers import RobertaTokenizer from to...
30.453333
87
0.651926
1,097
0.480298
0
0
0
0
0
0
370
0.161996
e9f017283f2c9870d465de8537e58d7f7588313c
8,068
py
Python
tests/gem5/configs/boot_kvm_fork_run.py
darchr/gem5
0feb0a34db519523a8595f6d1543f7412259ba17
[ "BSD-3-Clause" ]
19
2018-07-20T15:08:50.000Z
2022-03-26T16:15:59.000Z
tests/gem5/configs/boot_kvm_fork_run.py
darchr/gem5
0feb0a34db519523a8595f6d1543f7412259ba17
[ "BSD-3-Clause" ]
148
2018-07-20T00:58:36.000Z
2021-11-16T01:52:33.000Z
tests/gem5/configs/boot_kvm_fork_run.py
darchr/gem5
0feb0a34db519523a8595f6d1543f7412259ba17
[ "BSD-3-Clause" ]
10
2019-01-10T03:01:30.000Z
2022-01-21T18:36:18.000Z
# Copyright (c) 2021 The University of Texas at Austin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of condi...
29.661765
79
0.716534
0
0
0
0
0
0
0
0
3,601
0.446331
e9f050b89ff8d6e83255108084e3c376a0039fc7
1,203
py
Python
rioxarray/write.py
kadyb/raster-benchmark
78733ff75181713071cc0694e187a2ac83f76752
[ "MIT" ]
11
2021-04-15T09:51:48.000Z
2022-02-08T13:01:28.000Z
rioxarray/write.py
kadyb/raster-benchmark
78733ff75181713071cc0694e187a2ac83f76752
[ "MIT" ]
11
2021-02-16T12:43:07.000Z
2021-12-14T19:57:10.000Z
rioxarray/write.py
kadyb/raster-benchmark
78733ff75181713071cc0694e187a2ac83f76752
[ "MIT" ]
2
2021-07-22T14:01:46.000Z
2021-07-25T05:24:51.000Z
# -*- coding: utf-8 -*- import os import timeit import xarray import rioxarray import pandas as pd wd = os.getcwd() catalog = os.path.join('data', 'LC08_L1TP_190024_20200418_20200822_02_T1') rasters = os.listdir(catalog) rasters = [r for r in rasters if r.endswith(('.TIF'))] rasters = [os.path.join(wd, ca...
27.340909
77
0.633416
0
0
0
0
0
0
0
0
266
0.221114
e9f15a2385f1ea0dee9385406e24c070bd322820
14,534
py
Python
manifold/manifold.py
timotheosh/Manifest
d3917cb386aa351335c38f08e4c7d36136d8863f
[ "MIT" ]
2
2021-08-13T12:38:24.000Z
2021-08-21T19:36:42.000Z
manifold/manifold.py
timotheosh/Manifold
d3917cb386aa351335c38f08e4c7d36136d8863f
[ "MIT" ]
null
null
null
manifold/manifold.py
timotheosh/Manifold
d3917cb386aa351335c38f08e4c7d36136d8863f
[ "MIT" ]
null
null
null
# encoding: utf-8 '''manifold An SMF service manifest creation tool. ''' __author__ = 'Chris Miles' __copyright__ = '(c) Chris Miles 2008. All rights reserved.' __license__ = 'GPL http://www.gnu.org/licenses/gpl.txt' __id__ = '$Id: manifold.py 7 2009-03-24 09:10:48Z miles.chris $' __url__ = '$URL: https://manifold.g...
30.923404
164
0.555938
3,478
0.239301
0
0
0
0
0
0
7,461
0.513348
e9f182577a3561deeedd13bd4f63beb75d349a4d
7,183
py
Python
lemon_boy.py
hug58/Lemon-Boy-platformer
5ec5dd8974088fce5084e6249d13e7bb47621669
[ "MIT" ]
4
2019-03-12T09:02:17.000Z
2019-05-06T20:31:18.000Z
lemon_boy.py
hug58/Lemon-Boy-platformer
5ec5dd8974088fce5084e6249d13e7bb47621669
[ "MIT" ]
null
null
null
lemon_boy.py
hug58/Lemon-Boy-platformer
5ec5dd8974088fce5084e6249d13e7bb47621669
[ "MIT" ]
2
2019-03-11T06:51:06.000Z
2020-09-01T16:17:06.000Z
from script import * from script.menu import Menu from script import image,sound,resolve_route from script.player import Player from script.enemy import Apple from script.elementos import Trap,Door,Trampoline,Key,Lemon from script.camera import Camera from script.tilemap import TileMap pg.display.init() pg.joystick.i...
24.599315
93
0.667688
4,797
0.667641
0
0
0
0
0
0
467
0.064997
e9f1fbbda761ade5d0893da97c048863bb481369
4,915
py
Python
pliers/utils/base.py
jsmentch/pliers
ef13552793ab5789065249a89230baced407c472
[ "BSD-3-Clause" ]
null
null
null
pliers/utils/base.py
jsmentch/pliers
ef13552793ab5789065249a89230baced407c472
[ "BSD-3-Clause" ]
null
null
null
pliers/utils/base.py
jsmentch/pliers
ef13552793ab5789065249a89230baced407c472
[ "BSD-3-Clause" ]
null
null
null
''' Miscellaneous internal utilities. ''' import collections import os from abc import ABCMeta, abstractmethod, abstractproperty from types import GeneratorType from itertools import islice from tqdm import tqdm import pandas as pd from pliers import config from pliers.support.exceptions import MissingDependencyErro...
29.431138
126
0.673042
1,389
0.282604
528
0.107426
338
0.068769
0
0
1,358
0.276297
e9f2022d8957402e8b079abe1da08f467caf510b
2,431
py
Python
lmnet/lmnet/datasets/cifar100_distribute.py
toohsk/blueoil
596922caa939db9c5ecbac3286fbf6f703865ee6
[ "Apache-2.0" ]
null
null
null
lmnet/lmnet/datasets/cifar100_distribute.py
toohsk/blueoil
596922caa939db9c5ecbac3286fbf6f703865ee6
[ "Apache-2.0" ]
1
2018-11-21T07:06:17.000Z
2018-11-21T07:06:17.000Z
lmnet/lmnet/datasets/cifar100_distribute.py
toohsk/blueoil
596922caa939db9c5ecbac3286fbf6f703865ee6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil 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 # # Unles...
31.571429
106
0.626903
1,543
0.634718
0
0
478
0.196627
0
0
897
0.368984
e9f22bb1ea67ab94d6fe17f1e1dc1a68f58ceef8
3,149
py
Python
gridengine/functional.py
MiqG/gridengine
457c34b16f2c43b9be985cd822f30305d68afd91
[ "BSD-3-Clause" ]
20
2015-01-31T16:52:15.000Z
2019-03-22T20:09:50.000Z
gridengine/functional.py
MiqG/gridengine
457c34b16f2c43b9be985cd822f30305d68afd91
[ "BSD-3-Clause" ]
1
2021-11-27T16:33:59.000Z
2021-11-27T16:33:59.000Z
gridengine/functional.py
MiqG/gridengine
457c34b16f2c43b9be985cd822f30305d68afd91
[ "BSD-3-Clause" ]
7
2015-10-27T16:49:52.000Z
2021-09-22T10:16:25.000Z
import inspect import functools from gridengine import job, dispatch, schedulers # ---------------------------------------------------------------------------- # Partial # ---------------------------------------------------------------------------- def isexception(x): """Test whether the value is an Exception instan...
32.463918
97
0.64719
0
0
0
0
0
0
0
0
2,155
0.684344
e9f24ec99f076ba98908603ffa1d50f5644d6aa7
31,441
py
Python
Bio/Prosite/__init__.py
nuin/biopython
045d57b08799ef52c64bd4fa807629b8a7e9715a
[ "PostgreSQL" ]
2
2016-05-09T04:20:06.000Z
2017-03-07T10:25:53.000Z
Bio/Prosite/__init__.py
nuin/biopython
045d57b08799ef52c64bd4fa807629b8a7e9715a
[ "PostgreSQL" ]
null
null
null
Bio/Prosite/__init__.py
nuin/biopython
045d57b08799ef52c64bd4fa807629b8a7e9715a
[ "PostgreSQL" ]
1
2019-08-19T22:05:14.000Z
2019-08-19T22:05:14.000Z
# Copyright 1999 by Jeffrey Chang. All rights reserved. # Copyright 2000 by Jeffrey Chang. All rights reserved. # Revisions Copyright 2007 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included #...
35.326966
256
0.580675
26,177
0.832575
377
0.011991
0
0
0
0
11,972
0.380777
e9f29e0f95ccd2b1945aff6967594472289887d8
21,120
py
Python
build/lib/mrgaze/pupilometry.py
jmtyszka/mrgaze
29217eab9ea431686fd200f08bddd6615c45d0d3
[ "MIT" ]
18
2016-01-22T02:47:45.000Z
2021-09-23T18:37:51.000Z
build/lib/mrgaze/pupilometry.py
jmtyszka/mrgaze
29217eab9ea431686fd200f08bddd6615c45d0d3
[ "MIT" ]
7
2015-05-26T21:33:16.000Z
2020-05-26T11:47:54.000Z
build/lib/mrgaze/pupilometry.py
jmtyszka/mrgaze
29217eab9ea431686fd200f08bddd6615c45d0d3
[ "MIT" ]
7
2016-02-06T00:17:52.000Z
2021-02-22T03:51:55.000Z
#!/usr/bin/env python # # Video pupilometry functions # - takes calibration and gaze video filenames as input # - controls calibration and gaze estimation workflow # # USAGE : mrgaze.py <Calibration Video> <Gaze Video> # # AUTHOR : Mike Tyszka # PLACE : Caltech # DATES : 2014-05-07 JMT From scratch # 2016-02...
33.051643
112
0.550284
0
0
0
0
0
0
0
0
8,518
0.403314
e9f462dbb1b4b480ae079d20eb179ca06f53f704
1,927
py
Python
aws_glue/combine_csv_files/combine_csv_files.py
veben/aws_python_snippets
39fa3cda8290fb097a5b9e8168829b62ab1af41e
[ "MIT" ]
1
2020-09-08T09:22:25.000Z
2020-09-08T09:22:25.000Z
aws_glue/combine_csv_files/combine_csv_files.py
veben/aws_python_snippets
39fa3cda8290fb097a5b9e8168829b62ab1af41e
[ "MIT" ]
null
null
null
aws_glue/combine_csv_files/combine_csv_files.py
veben/aws_python_snippets
39fa3cda8290fb097a5b9e8168829b62ab1af41e
[ "MIT" ]
1
2020-09-08T09:26:58.000Z
2020-09-08T09:26:58.000Z
from lib_combination.aws_client.aws_client import get_session_for_profile, run_job, get_job, create_job from lib_combination.aws_client.aws_client import upload_file_to_s3_bucket from lib_combination.conf_utils.conf_utils import get_job_name, get_profile_name, get_bucket_name, get_database_name from lib_combination.fil...
41.891304
116
0.70576
0
0
0
0
0
0
0
0
302
0.15672
e9f4dc1139fdd0b79eb9f6a5670984a538e5b297
1,062
py
Python
p850h/rectangle_area.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p850h/rectangle_area.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p850h/rectangle_area.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List class Solution: def rectangleArea(self, rectangles: List[List[int]]) -> int: xs = sorted(set([x for x1, y1, x2, y2 in rectangles for x in [x1, x2]])) x_i = {v: i for i, v in enumerate(xs)} count = [0] * len(x_i) L = [] for x1, y1, x2, y2 in rectangle...
32.181818
88
0.508475
729
0.686441
0
0
0
0
0
0
45
0.042373