hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0b92f2299b1215c30cace0cac62bbb713a588d51
2,616
py
Python
dohq_teamcity/models/branches.py
DenKoren/teamcity
69acb4d1402c316129b4602882a9cce2d55cf926
[ "MIT" ]
23
2018-10-19T07:28:45.000Z
2021-11-12T12:46:09.000Z
dohq_teamcity/models/branches.py
DenKoren/teamcity
69acb4d1402c316129b4602882a9cce2d55cf926
[ "MIT" ]
31
2018-10-16T05:53:11.000Z
2021-09-09T14:44:14.000Z
dohq_teamcity/models/branches.py
DenKoren/teamcity
69acb4d1402c316129b4602882a9cce2d55cf926
[ "MIT" ]
12
2018-10-28T23:00:17.000Z
2021-09-07T12:07:13.000Z
# coding: utf-8 from dohq_teamcity.custom.base_model import TeamCityObject # from dohq_teamcity.models.branch import Branch # noqa: F401,E501 class Branches(TeamCityObject): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ A...
23.357143
88
0.556957
dd4de33c81b5738e4f233e9e9ad8b734e1acc356
937
py
Python
pyleecan/Methods/Mesh/NodeMat/get_group.py
helene-t/pyleecan
8362de9b0e32b346051b38192e07f3a6974ea9aa
[ "Apache-2.0" ]
1
2021-02-26T12:28:45.000Z
2021-02-26T12:28:45.000Z
Methods/Mesh/NodeMat/get_group.py
magnetron/pyleecan
2a3338f4ab080ad6488b5ab8746c3fea1f36f177
[ "Apache-2.0" ]
null
null
null
Methods/Mesh/NodeMat/get_group.py
magnetron/pyleecan
2a3338f4ab080ad6488b5ab8746c3fea1f36f177
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from ....definitions import PACKAGE_NAME import numpy as np def get_group(self, element): """Define a new NodeMat object based on a set of elements. Parameters ---------- self : NodeMat an NodeMat object element : Element an Element object Retu...
25.324324
85
0.608324
2ef12909fe6cd4d75d33a1ccf5cb68b6704d6bed
2,659
py
Python
source/measures/reverse_clarkeDE.py
marcos0318/UnsupervisedHypernymy
79e20a74588132b04eca9e64638eb14adbb1bda9
[ "Apache-2.0" ]
51
2016-12-12T14:44:08.000Z
2021-12-14T09:04:49.000Z
source/measures/reverse_clarkeDE.py
marcos0318/UnsupervisedHypernymy
79e20a74588132b04eca9e64638eb14adbb1bda9
[ "Apache-2.0" ]
4
2018-05-25T13:54:23.000Z
2019-10-30T17:46:12.000Z
source/measures/reverse_clarkeDE.py
marcos0318/UnsupervisedHypernymy
79e20a74588132b04eca9e64638eb14adbb1bda9
[ "Apache-2.0" ]
12
2017-01-10T03:02:37.000Z
2020-03-12T07:04:09.000Z
import sys sys.path.append('../') import codecs import numpy as np from docopt import docopt from dsm_creation.common import * def main(): """ Reversed clarkeDE. """ # Get the arguments args = docopt("""Compute the revered clarkeDE for a list of (x, y) pairs and save their scores. Usage: ...
32.036145
106
0.633321
1fd3ecc1df7be548c446f6ba40fee06642e55d60
4,810
py
Python
toontown/safezone/GSPlayground.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
1
2020-09-27T22:12:47.000Z
2020-09-27T22:12:47.000Z
toontown/safezone/GSPlayground.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
null
null
null
toontown/safezone/GSPlayground.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
2
2020-09-26T20:37:18.000Z
2020-11-15T20:55:33.000Z
from pandac.PandaModules import * from toontown.toonbase import ToontownGlobals from . import Playground from toontown.launcher import DownloadForceAcknowledge from toontown.building import Elevator from toontown.toontowngui import TTDialog from toontown.toonbase import TTLocalizer from toontown.racing import RaceGloba...
41.465517
148
0.688358
a7d03c2c4156d1a9037739801e5164df3c37265a
6,107
py
Python
book_figures/chapter10/fig_LINEAR_SVM.py
autocorr/astroML
9bdeff87b9ae1993849bfc04d7f2865c05c8e52e
[ "BSD-2-Clause" ]
3
2017-02-23T07:59:15.000Z
2021-01-16T18:49:32.000Z
book_figures/chapter10/fig_LINEAR_SVM.py
cfroning/astroML
9bdeff87b9ae1993849bfc04d7f2865c05c8e52e
[ "BSD-2-Clause" ]
null
null
null
book_figures/chapter10/fig_LINEAR_SVM.py
cfroning/astroML
9bdeff87b9ae1993849bfc04d7f2865c05c8e52e
[ "BSD-2-Clause" ]
1
2021-01-16T18:49:36.000Z
2021-01-16T18:49:36.000Z
""" SVM classification of LINEAR data --------------------------------- Figure 10.23 Supervised classification of periodic variable stars from the LINEAR data set using a support vector machines method. The training sample includes five input classes. The top row shows clusters derived using two attributes (g - i and ...
31.642487
79
0.577861
2a4382baa016b31372d733e20b79f342b30868ed
2,043
py
Python
sampler.py
suruoxi/DistanceWeightedSampling
ea8561ad0e6d6e728e3ec121fd8cf500c52f83f8
[ "MIT" ]
50
2019-03-06T06:35:31.000Z
2022-03-13T09:29:24.000Z
sampler.py
suruoxi/DistanceWeightedSampling
ea8561ad0e6d6e728e3ec121fd8cf500c52f83f8
[ "MIT" ]
2
2021-07-12T10:04:55.000Z
2021-08-19T18:22:13.000Z
sampler.py
suruoxi/DistanceWeightedSampling
ea8561ad0e6d6e728e3ec121fd8cf500c52f83f8
[ "MIT" ]
12
2019-07-22T03:20:06.000Z
2022-02-25T11:53:25.000Z
import torch import torchvision import random from torch.utils.data.sampler import Sampler from scipy.special import comb import numpy as np class BalancedBatchSampler(Sampler): def __init__(self, dataset, batch_size, batch_k, length=None): assert (batch_size % batch_k == 0 ) and (batch_size > 0) ...
35.842105
117
0.612335
9672b3d42221e23688e23909a43876f607de054e
919
py
Python
meetup2xibo/log_summarizer/log_summarizer.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
3
2019-11-29T04:32:49.000Z
2020-06-03T01:34:45.000Z
meetup2xibo/log_summarizer/log_summarizer.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
194
2020-06-01T01:42:41.000Z
2021-08-02T10:25:58.000Z
meetup2xibo/log_summarizer/log_summarizer.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
1
2019-07-31T14:59:05.000Z
2019-07-31T14:59:05.000Z
"""Summarizes meetup2xibo logs, reporting meeting changes.""" class LogSummarizer: """Summarizes meetup2xibo logs, reporting meeting changes.""" def __init__( self, input_stream, output_stream, summary, log_parser, renderer): """Initialize with input and output streams, an em...
31.689655
72
0.668118
489fe177546add9f790bcc1c5a94a4463292b61b
23,247
py
Python
Lib/unittest/test/test_result.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
1,872
2015-01-02T18:56:47.000Z
2022-03-31T07:34:39.000Z
Lib/unittest/test/test_result.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
675
2015-02-27T09:01:01.000Z
2022-03-31T14:03:25.000Z
Lib/unittest/test/test_result.py
inging44/python3
fcd8d9d2ee54b46b757ecf34f284b4e60a43097a
[ "bzip2-1.0.6" ]
278
2015-01-02T03:48:20.000Z
2022-03-29T20:40:44.000Z
import io import sys import textwrap from test import support import traceback import unittest class Test_TestResult(unittest.TestCase): # Note: there are not separate tests for TestResult.wasSuccessful(), # TestResult.errors, TestResult.failures, TestResult.testsRun or # TestResult.shouldStop because t...
35.16944
94
0.613326
6b4966e6e7e676b10fd4b95b584fd165d4307399
22,447
py
Python
test/functional/replace-by-fee.py
wolfoxonly/ofic
dea8f4aa577999947e1c8f969af60a03e13cae00
[ "MIT" ]
null
null
null
test/functional/replace-by-fee.py
wolfoxonly/ofic
dea8f4aa577999947e1c8f969af60a03e13cae00
[ "MIT" ]
null
null
null
test/functional/replace-by-fee.py
wolfoxonly/ofic
dea8f4aa577999947e1c8f969af60a03e13cae00
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The OFIChain Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the RBF code.""" from test_framework.test_framework import OFIChainTestFramework from test_frame...
39.659011
127
0.628057
4b81942f15c18a151617a9dd9b4c54f4bae50f9d
3,155
py
Python
ChatBot/train.py
IEEE-LNMIIT-SB/IEEE-Project-Healthcarebot
503c4e238741c15724f054a85ac8dd6f494bd0ab
[ "MIT" ]
4
2020-07-31T09:25:53.000Z
2021-07-22T08:53:31.000Z
ChatBot/train.py
ANUBHAVNATANI/IEEE_Project
45bdd3e2f97e614951dcf22ab792ea1b08c0d7c3
[ "MIT" ]
1
2019-06-21T18:50:08.000Z
2019-06-21T18:50:08.000Z
ChatBot/train.py
IEEE-LNMIIT-SB/IEEE-Project-Healthcarebot
503c4e238741c15724f054a85ac8dd6f494bd0ab
[ "MIT" ]
5
2019-04-04T14:24:25.000Z
2021-02-02T15:24:53.000Z
import matplotlib.pyplot as plt import numpy as np import re import os import tensorflow_datasets as tfds import tensorflow as tf from bot import transformer from dataClean import VOCAB_SIZE, MAX_LENGTH, dataset, preprocess_sentence, START_TOKEN, tokenizer, END_TOKEN tf.keras.backend.clear_session() # Hyper-paramete...
26.291667
109
0.697623
5bbbb9f34d714ae4dbca7523d97576b3cc0761f0
227
py
Python
test_client.py
lilydjwg/udt_py
90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd
[ "BSD-3-Clause" ]
9
2015-01-11T06:59:40.000Z
2022-02-02T14:57:59.000Z
test_client.py
lilydjwg/udt_py
90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd
[ "BSD-3-Clause" ]
1
2015-01-15T21:03:51.000Z
2015-01-16T03:05:25.000Z
test_client.py
lilydjwg/udt_py
90cb36f3ef503bb45a9aa4f9dad5c86eddce0abd
[ "BSD-3-Clause" ]
1
2020-06-20T08:39:06.000Z
2020-06-20T08:39:06.000Z
#!/usr/bin/env python3 import udt import socket import time s = udt.socket(socket.AF_INET, socket.SOCK_STREAM, 0) s.connect(("localhost", 5555)) print("Sending...") s.send(b"Hello", 0) buf = s.recv(1024, 0) print(repr(buf))
16.214286
53
0.696035
fa61eb46c68b282d79469e41e1fc056d7df96a73
139
py
Python
__init__.py
01shruti/Clustering
a79b590316066a4e0e6181add2642190515964fe
[ "MIT" ]
null
null
null
__init__.py
01shruti/Clustering
a79b590316066a4e0e6181add2642190515964fe
[ "MIT" ]
null
null
null
__init__.py
01shruti/Clustering
a79b590316066a4e0e6181add2642190515964fe
[ "MIT" ]
null
null
null
"""Python implementations of the k-modes and k-prototypes clustering algorithms, for clustering categorical data.. """ __version__ = '0.8'
27.8
68
0.769784
16090d392c93705842bb9ea18d81fcfde657e120
1,537
py
Python
tests/utils.py
adamchainz/django-perf-rec
f543053d9de5bc7f52f5761fc914d342c78e37a1
[ "MIT" ]
147
2018-08-21T14:18:27.000Z
2022-03-31T23:16:58.000Z
tests/utils.py
adamchainz/django-perf-rec
f543053d9de5bc7f52f5761fc914d342c78e37a1
[ "MIT" ]
48
2018-07-15T11:07:08.000Z
2022-03-26T16:00:22.000Z
tests/utils.py
adamchainz/django-perf-rec
f543053d9de5bc7f52f5761fc914d342c78e37a1
[ "MIT" ]
11
2018-07-13T10:09:44.000Z
2021-02-13T18:15:12.000Z
import errno import os import shutil import traceback from contextlib import contextmanager from functools import wraps from typing import Any, Callable, Generator, List, Optional, TypeVar, cast from unittest import mock from django.db import connections from django_perf_rec import pytest_plugin def run_query(alias...
26.050847
81
0.692908
278b55f01bd8917db386cec298525c14857cc6d0
3,278
py
Python
admin/create_pyinstaller_binaries.py
admdev8/vws-cli
593b115d2efc5ebd6e275ecb5e5cd5c79bf2f24a
[ "MIT" ]
1
2020-11-02T10:58:32.000Z
2020-11-02T10:58:32.000Z
admin/create_pyinstaller_binaries.py
admdev8/vws-cli
593b115d2efc5ebd6e275ecb5e5cd5c79bf2f24a
[ "MIT" ]
29
2020-12-21T07:45:08.000Z
2021-05-03T07:31:12.000Z
admin/create_pyinstaller_binaries.py
admdev8/vws-cli
593b115d2efc5ebd6e275ecb5e5cd5c79bf2f24a
[ "MIT" ]
null
null
null
""" Make PyInstaller binaries for the platform that this is being run on. """ import shutil import subprocess from pathlib import Path from typing import Set def remove_existing_files(scripts: Set[Path]) -> None: """ Remove files created when building binaries. This is to stop interference with future b...
30.635514
78
0.622636
5aa8c6b624b145c477e01768290431dc1f82d066
778
py
Python
mAP/get_gt_txt.py
verages/YOLOv4_light
b8f707a7ab5c2f3b2fd58d34e287e6b28a625641
[ "MIT" ]
null
null
null
mAP/get_gt_txt.py
verages/YOLOv4_light
b8f707a7ab5c2f3b2fd58d34e287e6b28a625641
[ "MIT" ]
1
2022-02-10T00:11:51.000Z
2022-02-10T00:11:51.000Z
mAP/get_gt_txt.py
verages/YOLOv4_light
b8f707a7ab5c2f3b2fd58d34e287e6b28a625641
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Brief: 将真实图片转成mAP的txt检测格式 import os import sys import config.config as cfg image_infos = open("../config/test.txt").read().strip().split('\n') if not os.path.exists("./input"): os.makedirs("./input") if not os.path.exists("./input/ground-truth"): os.makedirs("./input/ground-truth")...
29.923077
92
0.611825
3fb8663859c84db6762b66ea4a81ec5dc735af8a
1,534
py
Python
app/views.py
DgFutureLab/satoyama-api
cc8d80ad4c437d67aa53ba619aa4904350be09f8
[ "MIT" ]
4
2015-10-05T18:35:41.000Z
2018-01-09T20:54:29.000Z
app/views.py
DgFutureLab/satoyama-api
cc8d80ad4c437d67aa53ba619aa4904350be09f8
[ "MIT" ]
56
2015-01-14T08:19:47.000Z
2015-04-03T01:23:55.000Z
app/views.py
DgFutureLab/satoyama-api
cc8d80ad4c437d67aa53ba619aa4904350be09f8
[ "MIT" ]
null
null
null
# coding: utf-8 from app import flapp from flask import render_template, request import datetime import json from resources import ApiResponse from satoyama.models import Node, Reading import zlib import sys from resources import put_reading_in_database, SensorData @flapp.route('/', methods = ['GET']) def index(): ...
31.306122
140
0.693611
2ef2813e6b5f52b723100a662d5ce5e8abe06257
5,693
py
Python
tnmf/tests/test_sparsity_inhibition.py
AdrianSosic/tnmf
3f4fe14bdf31385cb2ec7aec0f827422b0be58bb
[ "Apache-2.0" ]
3
2021-07-14T20:24:10.000Z
2021-07-29T15:03:24.000Z
tnmf/tests/test_sparsity_inhibition.py
AdrianSosic/tnmf
3f4fe14bdf31385cb2ec7aec0f827422b0be58bb
[ "Apache-2.0" ]
16
2021-07-12T07:44:51.000Z
2021-11-12T14:34:46.000Z
tnmf/tests/test_sparsity_inhibition.py
AdrianSosic/tnmf
3f4fe14bdf31385cb2ec7aec0f827422b0be58bb
[ "Apache-2.0" ]
2
2021-07-12T07:53:11.000Z
2021-08-12T15:09:56.000Z
""" Test the decomposition on two identical images with different values for sparsity and inhibition and ensure that all backends yield the same reconstruction energy and L0 and L1 norm for the activations H """ import logging from typing import Dict import numpy as np import pytest from tnmf.TransformInvariantNMF i...
55.271845
178
0.701915
a35de987792d5307e509e006cff12401826a4689
461
py
Python
trainer.py
mhwasil/pointcloud_classification
c4dd36db556087cc90dca16e31958adfd3641482
[ "MIT" ]
4
2021-11-14T14:54:03.000Z
2022-01-26T14:47:17.000Z
trainer.py
mhwasil/cnn_pointcloud_classification
c4dd36db556087cc90dca16e31958adfd3641482
[ "MIT" ]
1
2019-09-17T09:54:34.000Z
2019-09-17T09:54:34.000Z
trainer.py
mhwasil/pointcloud_classification
c4dd36db556087cc90dca16e31958adfd3641482
[ "MIT" ]
1
2019-12-05T19:46:16.000Z
2019-12-05T19:46:16.000Z
import argparse from pointcloud_classification import PointCloudClassification parser = argparse.ArgumentParser() parser.add_argument('--model', default='DGCNN', help='Model (DGCNNC, DGCNN, 3DmFV, SpiderCNN, PointNet, PointNet2)') parser.add_argument('--train', action='store_true') config_file = "./config/config.yaml...
38.416667
116
0.778742
8363de828d612edc1705b79e6e2414a3a5a40efe
10,261
py
Python
research/astronet/astronet/astro_model/astro_model.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
51
2018-06-06T06:58:12.000Z
2021-09-29T18:43:03.000Z
research/astronet/astronet/astro_model/astro_model.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
3
2018-07-17T12:53:05.000Z
2019-03-29T04:43:37.000Z
research/astronet/astronet/astro_model/astro_model.py
xychu/models
0344c5503ee55e24f0de7f37336a6e08f10976fd
[ "Apache-2.0" ]
43
2018-12-28T15:01:44.000Z
2022-02-15T06:23:05.000Z
# Copyright 2018 The TensorFlow Authors. # # 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 ...
33.642623
80
0.667869
7803cf2b102afdb371a4f4d695764b9c69965745
1,570
py
Python
xml/python/create/xml_create.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
3
2015-05-12T16:44:27.000Z
2021-02-09T00:39:24.000Z
xml/python/create/xml_create.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
xml/python/create/xml_create.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- # # xml_create.py # # Feb/17/2018 # # # -------------------------------------------------------------------- import sys import string import dicttoxml # sys.path.append ('/var/www/data_base/common/python_common') # from file_io import file_write_proc from text_manipulate ...
30.784314
70
0.585987
0f287107f8f85c494787c478001e7a4ebe0879d5
8,455
py
Python
gitgud/util/parsing.py
osai-mirrors/git-gud
ebf07774a01fca2f488e1b6bbbe9eb5bf6790762
[ "MIT" ]
133
2019-12-19T20:04:01.000Z
2022-03-26T23:25:22.000Z
gitgud/util/parsing.py
osai-mirrors/git-gud
ebf07774a01fca2f488e1b6bbbe9eb5bf6790762
[ "MIT" ]
243
2019-11-15T04:39:20.000Z
2021-04-22T13:08:02.000Z
gitgud/util/parsing.py
osai-mirrors/git-gud
ebf07774a01fca2f488e1b6bbbe9eb5bf6790762
[ "MIT" ]
30
2019-10-03T01:56:35.000Z
2019-11-13T08:02:08.000Z
from copy import deepcopy def parse_spec(spec_path): # The purpose of this method is to get a more computer-readable commit tree spec = spec_path.read_text() commits = [] # List of (commit_name, [parents], [branches], [tags]) all_branches = set() all_tags = set() for line in spec.split('\n'...
29.256055
79
0.582377
9f05cbd5339e7390d729c5c77c7a3933c19b16ab
6,262
py
Python
ckanapi/cli/main.py
nicholsn/ckanapi
c829c541447b3de7c31c47e48dc6cfa834152319
[ "MIT" ]
null
null
null
ckanapi/cli/main.py
nicholsn/ckanapi
c829c541447b3de7c31c47e48dc6cfa834152319
[ "MIT" ]
null
null
null
ckanapi/cli/main.py
nicholsn/ckanapi
c829c541447b3de7c31c47e48dc6cfa834152319
[ "MIT" ]
null
null
null
"""ckanapi command line interface Usage: ckanapi action ACTION_NAME [(KEY=STRING | KEY:JSON | KEY@FILE ) ... | -i | -I JSON_INPUT] [-j | -J] [[-c CONFIG] [-u USER] | -r SITE_URL [-a APIKEY] [-g]] ckanapi load datasets [--upload-resources] [-I JSONL_INPUT] [-s START] [-m MAX] ...
43.186207
79
0.602523
02642e52d3d7f60c3f9ec548e40cd36d10ebb165
1,713
py
Python
v1.0.0.test/toontown/distributed/ToontownInternalRepository.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/toontown/distributed/ToontownInternalRepository.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/distributed/ToontownInternalRepository.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed.AstronInternalRepository import AstronInternalRepository from direct.distributed.PyDatagram import PyDatagram from otp.distributed import DCReader from otp.distributed.OtpDoGlobals import * class ToontownInternalRepository(AstronInternalReposit...
39.837209
122
0.726211
47e039ea092bfc12bcdda0fc4e05d1e9a8fa7759
140,256
py
Python
python/ccxt/async_support/bitget.py
Serg-Maximchuk/ccxt
60b49e1f74d10ea42734ec9f0c7e20de07ac4585
[ "MIT" ]
null
null
null
python/ccxt/async_support/bitget.py
Serg-Maximchuk/ccxt
60b49e1f74d10ea42734ec9f0c7e20de07ac4585
[ "MIT" ]
1
2020-12-09T14:07:04.000Z
2020-12-09T14:07:04.000Z
python/ccxt/async_support/bitget.py
DelAnt/ccxt
3d6b7bbaacbf3a5a8b9e622e8884b46f440e687b
[ "MIT" ]
1
2022-02-01T10:37:45.000Z
2022-02-01T10:37:45.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors impor...
50.817391
519
0.503358
5f9854a03e71c150a31386b00afdabe350a5e8e5
7,390
py
Python
samples/DocumentManagement/Program.py
afiram/azure-documentdb-python-v2.2.1
e6af4adac47b2dcd9774f20659a61d23c0a09971
[ "MIT" ]
1
2017-11-03T21:11:48.000Z
2017-11-03T21:11:48.000Z
samples/DocumentManagement/Program.py
afiram/azure-documentdb-python-v2.2.1
e6af4adac47b2dcd9774f20659a61d23c0a09971
[ "MIT" ]
null
null
null
samples/DocumentManagement/Program.py
afiram/azure-documentdb-python-v2.2.1
e6af4adac47b2dcd9774f20659a61d23c0a09971
[ "MIT" ]
3
2017-11-06T16:13:48.000Z
2020-03-30T01:09:16.000Z
import pydocumentdb.documents as documents import pydocumentdb.document_client as document_client import pydocumentdb.errors as errors import datetime import config as cfg # ---------------------------------------------------------------------------------------------------------- # Prerequistes - # # 1. An Azure Do...
40.163043
131
0.573884
562147c500c374b45610675f3d7660c2a7992def
1,046
py
Python
gw2/api/build.py
Invisi/python-gw2
0e46b30ec646179c2337b92981c8625a37dace3a
[ "MIT" ]
null
null
null
gw2/api/build.py
Invisi/python-gw2
0e46b30ec646179c2337b92981c8625a37dace3a
[ "MIT" ]
null
null
null
gw2/api/build.py
Invisi/python-gw2
0e46b30ec646179c2337b92981c8625a37dace3a
[ "MIT" ]
null
null
null
import httpx from gw2 import models from gw2.api._base import Base class Build(Base[models.Build], _type=models.Build): pass class BuildManifest: @staticmethod async def get() -> models.BuildManifest: """ Retrieves the build ID (and some additional information) from the asset CD...
26.820513
79
0.528681
f173cf34840d05550cb2320a02256d60a4f1b055
705
py
Python
src/testingStage/Arcade/arcadeWindow.py
Kyzarok/SNNProject
14b555e221dbdd5100cb4f6333e49030423462ea
[ "BSD-2-Clause" ]
2
2020-03-20T13:30:19.000Z
2020-03-20T13:30:57.000Z
template.py
catherinedevlin/holy-grail-run-away
ff9ae8a68dafdbe4ec70cf824452e862584cc139
[ "MIT" ]
null
null
null
template.py
catherinedevlin/holy-grail-run-away
ff9ae8a68dafdbe4ec70cf824452e862584cc139
[ "MIT" ]
null
null
null
import arcade SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 class MyGame(arcade.Window): """ Main application class. """ def __init__(self, width, height): super().__init__(width, height) arcade.set_background_color(arcade.color.AMAZON) def setup(self): # Set up your game here ...
19.054054
68
0.611348
c7237b09f049b187f5d7be01da9f6c544984a19e
3,498
py
Python
elaina/modules/country.py
Vishal324140/ElainaRobot
d72092e9d2ddc9f94f21374cad57aea390612586
[ "MIT" ]
1
2022-01-31T08:44:33.000Z
2022-01-31T08:44:33.000Z
elaina/modules/country.py
Vishal324140/ElainaRobot
d72092e9d2ddc9f94f21374cad57aea390612586
[ "MIT" ]
8
2022-02-10T01:02:50.000Z
2022-03-31T23:30:07.000Z
elaina/modules/country.py
animeSubbingTeam/MitsuhaTaki
64ff3ba483656bc1246c863ebffbaddd76cb145f
[ "MIT" ]
1
2022-02-14T03:44:41.000Z
2022-02-14T03:44:41.000Z
# MIT License # Copyright (c) 2022 Zenitsu Prjkt™ # 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, copy, modify, merge,...
26.5
80
0.636078
304a53c29e80359a9fbdde576040e8bfa4454325
10,956
py
Python
pydriller/repository_mining.py
sposs/pydriller
fab78492ebfde176863b73f55e8da1ea538e6ffc
[ "Apache-2.0" ]
null
null
null
pydriller/repository_mining.py
sposs/pydriller
fab78492ebfde176863b73f55e8da1ea538e6ffc
[ "Apache-2.0" ]
null
null
null
pydriller/repository_mining.py
sposs/pydriller
fab78492ebfde176863b73f55e8da1ea538e6ffc
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Davide Spadini # # 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 writing...
44.356275
124
0.634995
e8fa154f9cd6565149a59dfd46df8a6330dabe14
9,658
py
Python
asposeslidescloud/models/image_export_options.py
aspose-slides-cloud/aspose-slides-cloud-python
3ee53c11a22c7efc8aaf8377bc72b41102821ca2
[ "MIT" ]
null
null
null
asposeslidescloud/models/image_export_options.py
aspose-slides-cloud/aspose-slides-cloud-python
3ee53c11a22c7efc8aaf8377bc72b41102821ca2
[ "MIT" ]
null
null
null
asposeslidescloud/models/image_export_options.py
aspose-slides-cloud/aspose-slides-cloud-python
3ee53c11a22c7efc8aaf8377bc72b41102821ca2
[ "MIT" ]
1
2020-12-25T16:28:49.000Z
2020-12-25T16:28:49.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose"> # Copyright (c) 2018 Aspose.Slides for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associa...
39.420408
177
0.623317
e509293532131f538fa17bd220aa42e9214d5e85
7,570
py
Python
sciencebirdsagents/PhyreAgents/RPIN/evaluator_plan.py
phy-q/benchmark
0a0fd31614039f3620369582017d9bd0a1c88b11
[ "MIT" ]
24
2021-09-01T09:50:06.000Z
2022-02-01T16:10:23.000Z
sciencebirdsagents/PhyreAgents/RPIN/evaluator_plan.py
phy-q/benchmark
0a0fd31614039f3620369582017d9bd0a1c88b11
[ "MIT" ]
4
2021-10-06T04:55:39.000Z
2021-12-07T03:56:46.000Z
sciencebirdsagents/PhyreAgents/RPIN/evaluator_plan.py
phy-q/benchmark
0a0fd31614039f3620369582017d9bd0a1c88b11
[ "MIT" ]
3
2021-09-15T05:48:58.000Z
2021-10-18T06:07:13.000Z
import os import cv2 import torch import phyre import hickle import random import numpy as np from tqdm import tqdm from utils.config import _C as C from utils.bbox import xyxy_to_rois, xywh2xyxy class PlannerPHYRE(object): def __init__(self, device, model, num_gpus, output_dir): self.device = device ...
46.158537
120
0.568692
da98a50c16b6c653607d6ef061ca79f31c99b627
7,390
py
Python
utils/misc.py
salvatoretrimarchi/FCSR-GAN
ce78be39f0e690a4389dbcb69d244b2f00fb2803
[ "Apache-2.0" ]
45
2019-10-25T05:41:17.000Z
2022-03-23T01:23:51.000Z
utils/misc.py
guangwei-gao/FCSR-GAN
82b219f95397baa126d77c70ecabe3cc17b4bdc2
[ "Apache-2.0" ]
5
2019-11-19T06:15:21.000Z
2022-02-15T09:55:20.000Z
utils/misc.py
guangwei-gao/FCSR-GAN
82b219f95397baa126d77c70ecabe3cc17b4bdc2
[ "Apache-2.0" ]
8
2019-11-08T20:25:34.000Z
2020-11-10T14:00:21.000Z
import os import math from PIL import Image import numpy as np import torch import torchvision # from skimage.measure import compare_ssim def faceparsing2im(mask): mask = mask.detach() palette = [0, 0, 0, 128, 0, 0, 0, 128, 0, 128, 128, 0, 0, 0, 128, 128, 0, 128, 0, 128, 128, 128, 128, 128, 64...
26.970803
111
0.575372
2e4d113cb15586987ee05730323f793f071a2bd1
1,954
py
Python
src/ingest-pipeline/airflow/dags/obsolete/trig_devtest.py
AustinHartman/ingest-pipeline
788d9310792c9396a38650deda3dad11483b368c
[ "MIT" ]
6
2020-02-18T19:09:59.000Z
2021-10-07T20:38:46.000Z
src/ingest-pipeline/airflow/dags/obsolete/trig_devtest.py
AustinHartman/ingest-pipeline
788d9310792c9396a38650deda3dad11483b368c
[ "MIT" ]
324
2020-02-06T22:08:50.000Z
2022-03-24T20:44:33.000Z
src/ingest-pipeline/airflow/dags/obsolete/trig_devtest.py
AustinHartman/ingest-pipeline
788d9310792c9396a38650deda3dad11483b368c
[ "MIT" ]
2
2020-07-20T14:43:49.000Z
2021-10-29T18:24:36.000Z
from airflow import DAG from airflow.operators.dagrun_operator import DagRunOrder from airflow.operators.multi_dagrun import TriggerMultiDagRunOperator from datetime import datetime, timedelta from pprint import pprint import utils # Following are defaults which can be overridden later on default_args = { 'owner'...
32.566667
94
0.66172
a6f789feb75055bd8ad2ab68564d9e456e540239
1,784
py
Python
weasyprint/tests/test_layout/test_shrink_to_fit.py
eyseman/WeasyPrint
ee316cdb780c4aec84442ef4f8cbfd4abd239330
[ "BSD-3-Clause" ]
3
2020-07-26T09:18:40.000Z
2021-02-18T00:41:58.000Z
weasyprint/tests/test_layout/test_shrink_to_fit.py
eyseman/WeasyPrint
ee316cdb780c4aec84442ef4f8cbfd4abd239330
[ "BSD-3-Clause" ]
null
null
null
weasyprint/tests/test_layout/test_shrink_to_fit.py
eyseman/WeasyPrint
ee316cdb780c4aec84442ef4f8cbfd4abd239330
[ "BSD-3-Clause" ]
null
null
null
""" weasyprint.tests.layout.shrink_to_fit ------------------------------------- Tests for shrink-to-fit algorithm. """ import pytest from ..test_boxes import render_pages as parse from ..testing_utils import assert_no_logs @assert_no_logs @pytest.mark.parametrize('margin_left', range(1, 10)) @pytest.m...
29.733333
71
0.575112
73bce77d3806285f0af6bcb0dbb99a3c081c6af0
4,859
py
Python
docs/conf.py
bellockk/AMT
c88f1e2407c15110062919182908924673615a6d
[ "MIT" ]
null
null
null
docs/conf.py
bellockk/AMT
c88f1e2407c15110062919182908924673615a6d
[ "MIT" ]
null
null
null
docs/conf.py
bellockk/AMT
c88f1e2407c15110062919182908924673615a6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # amt documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogen...
29.628049
77
0.683474
27d313c6ab27970d6b819991da88538b8b316bab
2,319
py
Python
xmind/core/relationship.py
qyloxe/xmind-sdk-python
58b2c7f1971abd941cd0f28e88388ec93ed2c53d
[ "MIT" ]
351
2015-01-04T03:00:25.000Z
2022-03-30T17:47:45.000Z
xmind/core/relationship.py
qyloxe/xmind-sdk-python
58b2c7f1971abd941cd0f28e88388ec93ed2c53d
[ "MIT" ]
16
2015-04-01T07:34:03.000Z
2019-05-15T01:38:45.000Z
xmind/core/relationship.py
qyloxe/xmind-sdk-python
58b2c7f1971abd941cd0f28e88388ec93ed2c53d
[ "MIT" ]
143
2015-02-17T08:35:51.000Z
2022-02-28T13:52:35.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- """ xmind.core.relationship ~~~~~~~~~~~~~~~~~~~ :copyright: :license: """ __author__ = "aiqi@xmind.net <Woody Ai>" from . import const from .mixin import WorkbookMixinElement from .topic import TopicElement from .title import TitleElement class Relati...
24.15625
71
0.664942
0759ddffcdbf2afb03ef80b8ae91ef4f666f4bbc
1,045
py
Python
tap_list_providers/migrations/0004_auto_20201115_1459.py
hsv-dot-beer/hsvdotbeer
e1a086e99f75a30a9ebf6745e7229d6e688dd346
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
tap_list_providers/migrations/0004_auto_20201115_1459.py
hsv-dot-beer/hsvdotbeer
e1a086e99f75a30a9ebf6745e7229d6e688dd346
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
tap_list_providers/migrations/0004_auto_20201115_1459.py
hsv-dot-beer/hsvdotbeer
e1a086e99f75a30a9ebf6745e7229d6e688dd346
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
# Generated by Django 3.1.2 on 2020-11-15 14:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("tap_list_providers", "0003_auto_20200602_2202"), ] operations = [ migrations.AlterField( model_name="apiratelimittimestamp", ...
30.735294
71
0.467943
14368dc749bfa2f766cb807a801a78edfc4b811f
2,340
py
Python
asgimod/mixins.py
paaksing/asgimod
bfbfe621ca0ca0b880a217afe147f2956481435b
[ "MIT" ]
11
2021-12-07T10:12:26.000Z
2022-03-06T13:30:39.000Z
asgimod/mixins.py
paaksing/asgimod
bfbfe621ca0ca0b880a217afe147f2956481435b
[ "MIT" ]
null
null
null
asgimod/mixins.py
paaksing/asgimod
bfbfe621ca0ca0b880a217afe147f2956481435b
[ "MIT" ]
null
null
null
from typing import Type, TypeVar from django.db import models, DEFAULT_DB_ALIAS from django.core.exceptions import SynchronousOnlyOperation from .sync import sync_to_async from .db import AsyncQuerySet, AsyncManyToManyRelatedQuerySet, AsyncManyToOneRelatedQuerySet T = TypeVar("T", bound=models.Model) class AsyncM...
37.142857
141
0.686752
f841b63e6faf9a505a62aac654838c1f51fbb7ae
9,440
py
Python
gammacat/webpage.py
cento14/gamma-cat
332ca06c4e1880fb7a2f3bd4362150927fb3a1ad
[ "BSD-3-Clause" ]
13
2016-08-25T09:21:14.000Z
2021-09-09T08:00:01.000Z
gammacat/webpage.py
cento14/gamma-cat
332ca06c4e1880fb7a2f3bd4362150927fb3a1ad
[ "BSD-3-Clause" ]
221
2016-08-26T15:55:38.000Z
2020-12-04T14:47:07.000Z
gammacat/webpage.py
cento14/gamma-cat
332ca06c4e1880fb7a2f3bd4362150927fb3a1ad
[ "BSD-3-Clause" ]
18
2016-08-26T15:32:52.000Z
2019-11-05T13:00:13.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Make gamma-cat webpage (in combination with Sphinx). """ import logging import shutil import urllib.parse from gammapy.catalog import GammaCatResourceIndex from .input import BasicSourceList from .info import gammacat_info from .utils import load_json,...
37.911647
119
0.663347
36d5db12bbfa7afae73b3aff46f599f4bc86024a
1,525
py
Python
Python/minimum-ascii-delete-sum-for-two-strings.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/minimum-ascii-delete-sum-for-two-strings.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/minimum-ascii-delete-sum-for-two-strings.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
# Time: O(m * n) # Space: O(n) class Solution(object): def minimumDeleteSum(self, s1, s2): """ :type s1: str :type s2: str :rtype: int """ dp = [[0] * (len(s2)+1) for _ in xrange(2)] for j in xrange(len(s2)): dp[0][j+1] = dp[0][j] + o...
29.326923
72
0.354098
06ee2e987d3fd76ac7d03dbff316edb75e78d34e
1,178
py
Python
flaskr/auth.py
ithackston/pi-hole-dhcp-monitor
50ee10d92b09d4d234b4b4a65ce54e8a459f8c8e
[ "MIT" ]
null
null
null
flaskr/auth.py
ithackston/pi-hole-dhcp-monitor
50ee10d92b09d4d234b4b4a65ce54e8a459f8c8e
[ "MIT" ]
null
null
null
flaskr/auth.py
ithackston/pi-hole-dhcp-monitor
50ee10d92b09d4d234b4b4a65ce54e8a459f8c8e
[ "MIT" ]
null
null
null
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash from simplepam import authenticate bp = Blueprint('auth', __name__) @bp.route('/login', methods=('GET', 'POST')) def login(): ...
25.06383
77
0.657046
1371ba90cf8ea1380d4992570b1d80a5821f79f3
429
py
Python
ecommerceApplicationServer/ecommerceApplicationServer/wsgi.py
ranjanapul/e-commerce-platform
eab6298ff5d1969fc333bdc46ced8209d551fc1b
[ "MIT" ]
1
2022-03-12T18:09:02.000Z
2022-03-12T18:09:02.000Z
ecommerceApplicationServer/ecommerceApplicationServer/wsgi.py
ranjanapul/e-commerce-platform
eab6298ff5d1969fc333bdc46ced8209d551fc1b
[ "MIT" ]
null
null
null
ecommerceApplicationServer/ecommerceApplicationServer/wsgi.py
ranjanapul/e-commerce-platform
eab6298ff5d1969fc333bdc46ced8209d551fc1b
[ "MIT" ]
null
null
null
""" WSGI config for ecommerceApplicationServer project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setde...
25.235294
86
0.804196
f2195e652314ba2b18402df2fea5e08b0a9c5b46
6,341
py
Python
qa/rpc-tests/spentindex.py
n0cte/omnicore
99a9ad6f08884bb7a86063500def791fe2172749
[ "MIT" ]
null
null
null
qa/rpc-tests/spentindex.py
n0cte/omnicore
99a9ad6f08884bb7a86063500def791fe2172749
[ "MIT" ]
null
null
null
qa/rpc-tests/spentindex.py
n0cte/omnicore
99a9ad6f08884bb7a86063500def791fe2172749
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test addressindex generation and fetching # import time from test_framework.test_framework import Bi...
44.971631
104
0.651159
09b9d1787dfa2bfc570c957efb66d450b3f61876
1,459
py
Python
classification/bin/vec_parse.py
wolszhang/text_classification
3819a8e331a41bb6a8373c9b5c434745caf78ba1
[ "MIT" ]
null
null
null
classification/bin/vec_parse.py
wolszhang/text_classification
3819a8e331a41bb6a8373c9b5c434745caf78ba1
[ "MIT" ]
null
null
null
classification/bin/vec_parse.py
wolszhang/text_classification
3819a8e331a41bb6a8373c9b5c434745caf78ba1
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division import struct import sys FILE_NAME = "vectors.bin" MAX_VECTORS = 3000000 # This script takes a lot of RAM (>2GB for 200K vectors), if you want to use the full 3M embeddings then you probably need to insert the vectors into some kind of database FLOAT_SIZE = 4 # 32bit fl...
26.527273
193
0.594928
78eafac63063f2dc8d53e0ea690e716ddfe0a177
6,454
py
Python
scripts/build_cutout.py
koen-vg/pypsa-eur
a431bbd5a75a54440fab93fd91577197968032e5
[ "MIT" ]
120
2018-09-21T08:44:00.000Z
2022-03-22T13:39:22.000Z
scripts/build_cutout.py
koen-vg/pypsa-eur
a431bbd5a75a54440fab93fd91577197968032e5
[ "MIT" ]
258
2019-02-07T09:37:11.000Z
2022-03-29T11:07:37.000Z
scripts/build_cutout.py
koen-vg/pypsa-eur
a431bbd5a75a54440fab93fd91577197968032e5
[ "MIT" ]
103
2018-09-21T08:34:40.000Z
2022-03-27T16:41:50.000Z
# SPDX-FileCopyrightText: : 2017-2021 The PyPSA-Eur Authors # # SPDX-License-Identifier: MIT """ Create cutouts with `atlite <https://atlite.readthedocs.io/en/latest/>`_. For this rule to work you must have - installed the `Copernicus Climate Data Store <https://cds.climate.copernicus.eu>`_ ``cdsapi`` package (`ins...
49.267176
200
0.477533
0abe385292093b3f55d99437bbdce394af5d91b8
425
py
Python
ubereats/utils/merge_trip.py
macchino/delivery-analisys
7d0507580532e87143c49d91693ee25aaf504a0b
[ "MIT" ]
5
2019-12-31T08:07:02.000Z
2021-08-15T06:58:50.000Z
ubereats/utils/merge_trip.py
macchino/delivery-analisys
7d0507580532e87143c49d91693ee25aaf504a0b
[ "MIT" ]
39
2019-12-22T03:25:10.000Z
2021-03-16T09:46:21.000Z
ubereats/utils/merge_trip.py
macchino/delivery-analisys
7d0507580532e87143c49d91693ee25aaf504a0b
[ "MIT" ]
2
2020-08-13T02:22:23.000Z
2021-08-15T07:00:30.000Z
import pandas as pd MASTER_FILE_PATH = './data/trip_master.csv' TARGET_FILE_PATH = "./rawdata/trips/latest_trips.csv" master = pd.read_csv(MASTER_FILE_PATH, index_col='id') df = pd.read_csv(TARGET_FILE_PATH, index_col="id") data = pd.concat([master, df], sort=False).drop_duplicates(subset="url", ...
32.692308
72
0.649412
50dd4ce81d360fbdbada787d44c0331f44091630
1,816
py
Python
dizoo/classic_control/pendulum/config/pendulum_cql_config.py
konnase/DI-engine
f803499cad191e9277b10e194132d74757bcfc8e
[ "Apache-2.0" ]
null
null
null
dizoo/classic_control/pendulum/config/pendulum_cql_config.py
konnase/DI-engine
f803499cad191e9277b10e194132d74757bcfc8e
[ "Apache-2.0" ]
null
null
null
dizoo/classic_control/pendulum/config/pendulum_cql_config.py
konnase/DI-engine
f803499cad191e9277b10e194132d74757bcfc8e
[ "Apache-2.0" ]
null
null
null
from easydict import EasyDict pendulum_cql_default_config = dict( seed=0, env=dict( collector_env_num=1, evaluator_env_num=5, act_scale=True, n_evaluator_episode=5, stop_value=-250, ), policy=dict( cuda=True, on_policy=False, model=dict( ...
27.938462
81
0.601322
49cab8140f7316a621b2bc4eb64fc00598ab73fc
18,304
py
Python
ServidorPython/python32_web/Lib/site-packages/jedi/evaluate/compiled/context.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
4
2019-07-26T11:32:22.000Z
2019-09-11T05:34:59.000Z
ServidorPython/python32_web/Lib/site-packages/jedi/evaluate/compiled/context.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
9
2019-12-05T00:49:12.000Z
2021-09-08T01:31:25.000Z
ServidorPython/python32_web/Lib/site-packages/jedi/evaluate/compiled/context.py
mak213k/Servidor_automatizado_python
4403ef8027a2f814220baacc95856cf5fbf01d21
[ "MIT" ]
2
2019-08-28T14:57:54.000Z
2019-11-26T16:18:30.000Z
""" Imitate the parser representation. """ import re from functools import partial from jedi import debug from jedi.evaluate.utils import to_list from jedi._compatibility import force_unicode, Parameter, cast_path from jedi.cache import underscore_memoization, memoize_method from jedi.evaluate.filters import AbstractF...
33.771218
100
0.646689
33595b5228e9224bbec4265686ac5d82de1120a9
20,608
py
Python
lib/GANBase.py
RachelCmy/den2vel
41985045bc0508009a3f322b9a0c858ffcfe71b4
[ "MIT" ]
10
2021-06-29T01:48:39.000Z
2022-02-08T15:31:24.000Z
lib/GANBase.py
kuning19901/den2vel
41985045bc0508009a3f322b9a0c858ffcfe71b4
[ "MIT" ]
4
2021-06-29T01:49:32.000Z
2022-02-11T03:17:50.000Z
lib/GANBase.py
kuning19901/den2vel
41985045bc0508009a3f322b9a0c858ffcfe71b4
[ "MIT" ]
2
2021-10-03T08:41:23.000Z
2022-01-02T06:16:27.000Z
from lib import ops import tensorflow as tf, numpy as np class GANBase(object): # base class for Generator and Discriminator def __init__(self, name, is_train, FLAGS, norm='instance', activation='relu', unet=False, gb_step=None, train_self=True): self.name = name self._is_train = is_...
52.705882
126
0.518245
85e02d10bafb30e6bd4b84d9ced284da91a754cf
422
py
Python
plotly/validators/sankey/_customdata.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/sankey/_customdata.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/sankey/_customdata.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__( self, plotly_name='customdata', parent_name='sankey', **kwargs ): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_na...
26.375
75
0.635071
8104a342d11b89c2050ac2c258402f9829c1584f
137,287
py
Python
btrdb/grpcinterface/btrdb_pb2.py
jacobmas/btrdb-python
a5a897c3822668c84a456677479a81838e729e15
[ "BSD-3-Clause" ]
7
2019-02-06T16:27:58.000Z
2021-05-08T01:34:14.000Z
btrdb/grpcinterface/btrdb_pb2.py
jacobmas/btrdb-python
a5a897c3822668c84a456677479a81838e729e15
[ "BSD-3-Clause" ]
35
2019-01-30T22:01:28.000Z
2021-05-20T19:35:14.000Z
btrdb/grpcinterface/btrdb_pb2.py
jacobmas/btrdb-python
a5a897c3822668c84a456677479a81838e729e15
[ "BSD-3-Clause" ]
10
2019-02-10T17:35:04.000Z
2021-09-28T01:30:59.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: btrdb.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _mes...
38.596289
12,249
0.745169
736b4c6d9fff3158d611e8fe4f97a1e0f9e6fd31
357
py
Python
scripts/avglat.py
Stuart0l/copilot
e2a9e5200e9bd890079179faa6a7808a96680ead
[ "Apache-2.0" ]
null
null
null
scripts/avglat.py
Stuart0l/copilot
e2a9e5200e9bd890079179faa6a7808a96680ead
[ "Apache-2.0" ]
null
null
null
scripts/avglat.py
Stuart0l/copilot
e2a9e5200e9bd890079179faa6a7808a96680ead
[ "Apache-2.0" ]
null
null
null
path_prefix = "/home/xuhao/copilot/experiments/latest/" def calc_average_latency(filename): with open(filename, 'r') as f: n_client = 0 total = 0 for line in f: total += float(line.split('\t')[9]) n_client += 1 print("{:.4f}".format(total / n_client)) if __name__ == '__main__': calc_average_latency...
23.8
58
0.677871
803e2788f54dae819dfae52e888beca9195ebb77
5,488
py
Python
docs/source/conf.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
docs/source/conf.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
docs/source/conf.py
cloudboss/friend
3357e6ec849552e3ae9ed28017ff0926e4006e4e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # friend documentation build configuration file, created by # sphinx-quickstart on Thu Aug 24 22:52:05 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
29.826087
79
0.684038
b48b53f73f060372744218dcdeb084f7fed6497a
1,985
py
Python
bin/rouge_cmd.py
hellomaxwell/rouge
814158135f659f50f07c94db4d9fa133d783d500
[ "Apache-2.0" ]
1
2019-09-18T12:14:13.000Z
2019-09-18T12:14:13.000Z
bin/rouge_cmd.py
hellomaxwell/rouge
814158135f659f50f07c94db4d9fa133d783d500
[ "Apache-2.0" ]
null
null
null
bin/rouge_cmd.py
hellomaxwell/rouge
814158135f659f50f07c94db4d9fa133d783d500
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse import json import os from rouge import Rouge, FilesRouge METRICS_CHOICES = {k.split('rouge-')[1].upper(): k for k in Rouge.AVAILABLE_METRICS.keys()} STATS_CHOICES = [s.upper() for s in Rouge.AVAILABLE_STATS] def main(): parser = argparse.ArgumentParser(...
33.083333
78
0.612594
352ffdf35bb9643087072fe0e0bc3fd95d45417f
578
py
Python
udemy/bot/bot.py
Rexinazor/UdemyBot
81e715da9ef30d0e9e2f683dac381f1a37d02ec6
[ "MIT" ]
2
2021-09-13T09:58:20.000Z
2021-09-23T15:09:10.000Z
udemy/bot/bot.py
Rexinazor/UdemyBot
81e715da9ef30d0e9e2f683dac381f1a37d02ec6
[ "MIT" ]
null
null
null
udemy/bot/bot.py
Rexinazor/UdemyBot
81e715da9ef30d0e9e2f683dac381f1a37d02ec6
[ "MIT" ]
1
2022-01-05T08:24:23.000Z
2022-01-05T08:24:23.000Z
import asyncio from telethon import TelegramClient from udemy import api_hash, api_id, token class UdemyBOT(TelegramClient): def __init__(self): super().__init__("udemybot", api_id=api_id, api_hash=api_hash) async def __start(self): await super().start(bot_token=token) ...
26.272727
71
0.643599
49d37c8ee404ddb189f94a2efeee10747d23c898
405
py
Python
JetMETCorrections/Modules/python/hltL1FastjetCorrectionESProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
JetMETCorrections/Modules/python/hltL1FastjetCorrectionESProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
JetMETCorrections/Modules/python/hltL1FastjetCorrectionESProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# HLT template for L1FastjetCorrectionESProducer import FWCore.ParameterSet.Config as cms # L1 (FastJet PU Subtraction) correction hltL1FastjetCorrectionESProducer = cms.ESProducer('L1FastjetCorrectionESProducer', appendToDataLabel = cms.string( '' ), level = cms.string( 'L1FastJet' ), algorithm = cms...
33.75
82
0.74321
dd50b68cbd4edd59da91bc38f83fb76248eb9cf2
7,003
py
Python
AHP_all.py
rudysynex/rf-gen-sim
e486b745e85b2b3878e40ac7ff16ad5e0e8d6be1
[ "CC0-1.0" ]
1
2022-03-18T18:29:02.000Z
2022-03-18T18:29:02.000Z
AHP_all.py
rudysynex/rf-gen-sim
e486b745e85b2b3878e40ac7ff16ad5e0e8d6be1
[ "CC0-1.0" ]
null
null
null
AHP_all.py
rudysynex/rf-gen-sim
e486b745e85b2b3878e40ac7ff16ad5e0e8d6be1
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright: Rudraksha Dutta Majumdar, 2021 """ Author: R.D Majumdar Date: 2021Dec17 Brief: Functions to generate adiabatic half-passage pulses """ import os import json import numpy as np import matplotlib.pyplot as plt # Pulse Parameters PULSE_LENGTH = 5000 #us NR_OF_POINTS = 2...
30.714912
93
0.603884
57781b1ddacff9213543fc0b73be9ab009662064
3,751
py
Python
tests/directory/test_group.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
tests/directory/test_group.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
tests/directory/test_group.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
import unittest import uuid from tests import test_user_principal_name from tests.graph_case import GraphTestCase from office365.directory.groups.group import Group from office365.directory.groups.group_profile import GroupProfile from office365.directory.users.user import User from office365.runtime.client_request_ex...
43.616279
120
0.699014
1c1f39f6f31a2b07f478641a61597fffbfde66cb
4,192
py
Python
LDA.py
gwthmsb/MLAndAI
cb255d9bd480f6f25bf868e831a68257faecbfcc
[ "Apache-2.0" ]
null
null
null
LDA.py
gwthmsb/MLAndAI
cb255d9bd480f6f25bf868e831a68257faecbfcc
[ "Apache-2.0" ]
null
null
null
LDA.py
gwthmsb/MLAndAI
cb255d9bd480f6f25bf868e831a68257faecbfcc
[ "Apache-2.0" ]
null
null
null
from numpy import mean from numpy import std from sklearn.datasets import make_classification, load_iris from sklearn.model_selection import cross_val_score, GridSearchCV from sklearn.model_selection import RepeatedStratifiedKFold from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from sklearn.naive_b...
34.081301
124
0.6875
1abe0a1687e59de295772f68c19b3f439d1c27d9
5,757
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/kernel_methods/python/losses.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/contrib/kernel_methods/python/losses.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/contrib/kernel_methods/python/losses.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 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...
42.330882
81
0.667535
c52f6578be75de21f2253fd0229ebfa5620224c5
15,760
py
Python
electrumpersonalserver/bitcoin/transaction.py
mflaxman/electrum-personal-server
700cd108ea026b971f05b906db03951acf6b2ac0
[ "MIT" ]
511
2018-02-08T16:55:27.000Z
2022-03-30T04:56:57.000Z
electrumpersonalserver/bitcoin/transaction.py
mflaxman/electrum-personal-server
700cd108ea026b971f05b906db03951acf6b2ac0
[ "MIT" ]
241
2018-03-02T19:37:20.000Z
2022-03-28T07:45:36.000Z
electrumpersonalserver/bitcoin/transaction.py
mflaxman/electrum-personal-server
700cd108ea026b971f05b906db03951acf6b2ac0
[ "MIT" ]
117
2018-02-08T19:06:08.000Z
2022-03-11T17:26:37.000Z
#!/usr/bin/python import binascii, re, json, copy, sys from electrumpersonalserver.bitcoin.main import * from _functools import reduce ### Hex to bin converter and vice versa for objects def json_is_base(obj, base): if not is_python2 and isinstance(obj, bytes): return False alpha = get_code_string(b...
32.09776
97
0.574873
815fec38f1967997985aa324e3ab9e5a8b56020e
6,241
py
Python
tests/providers/google/cloud/operators/test_mssql_to_gcs.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
null
null
null
tests/providers/google/cloud/operators/test_mssql_to_gcs.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
1
2019-05-14T14:32:40.000Z
2019-05-14T14:32:40.000Z
tests/providers/google/cloud/operators/test_mssql_to_gcs.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
40.264516
106
0.688511
cd73bb4344d2269913a5e39ce9859fe8656156a3
650
py
Python
docs/dev/2021/shared.mmap/example1/b.py
karlrink/sentinel
55474617cc4351030a88e0e7d946532f4c6a6337
[ "MIT" ]
null
null
null
docs/dev/2021/shared.mmap/example1/b.py
karlrink/sentinel
55474617cc4351030a88e0e7d946532f4c6a6337
[ "MIT" ]
null
null
null
docs/dev/2021/shared.mmap/example1/b.py
karlrink/sentinel
55474617cc4351030a88e0e7d946532f4c6a6337
[ "MIT" ]
null
null
null
import mmap import os import struct import time def main(): # Open the file for reading fd = os.open('/tmp/mmaptest', os.O_RDONLY) # Memory map the file buf = mmap.mmap(fd, mmap.PAGESIZE, mmap.MAP_SHARED, mmap.PROT_READ) i = None s = None while 1: new_i, = struct.unpack('i', buf[...
19.117647
71
0.516923
eccf00fa0ba96158cbd0bd4ca84cde07ab4ac099
5,205
py
Python
container_service_extension/lib/pksclient/models/compute_profile.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
81
2017-07-05T19:42:41.000Z
2022-03-09T22:04:05.000Z
container_service_extension/lib/pksclient/models/compute_profile.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
670
2017-07-05T16:48:02.000Z
2022-03-31T13:40:53.000Z
container_service_extension/lib/pksclient/models/compute_profile.py
arunmk/container-service-extension
5e67df64fd5ed7fbb664d449356cb983cecbca12
[ "BSD-3-Clause" ]
64
2017-07-05T16:32:55.000Z
2022-03-23T09:36:03.000Z
# coding: utf-8 """ PKS PKS API # noqa: E501 OpenAPI spec version: 1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ComputeProfile(object): """NOTE: This class is auto generated by the swagger code generat...
26.42132
96
0.559846
e0c8be199aa24da1110e6d325e06257604792f99
7,345
py
Python
aiida/storage/psql_dos/orm/utils.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/orm/utils.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/orm/utils.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. # # ...
39.702703
117
0.653097
49bb134c6d4ca215c4453bf4cf135e02d80fd519
1,694
py
Python
ArrayPrograms/selectionSortAndConcatenate.py
shelcia/InterviewQuestionPython
c1bff9598da01e3b75472e78f7a1b28fdcb2d935
[ "Apache-2.0" ]
1
2020-09-30T19:06:15.000Z
2020-09-30T19:06:15.000Z
ArrayPrograms/selectionSortAndConcatenate.py
shelcia/InterviewQuestionPython
c1bff9598da01e3b75472e78f7a1b28fdcb2d935
[ "Apache-2.0" ]
null
null
null
ArrayPrograms/selectionSortAndConcatenate.py
shelcia/InterviewQuestionPython
c1bff9598da01e3b75472e78f7a1b28fdcb2d935
[ "Apache-2.0" ]
null
null
null
# You are an intern at GUVI and the company wants to organise its data and # delete unnecessary extra storage elements used. # You are given k arrays of unequal dimensions. Sort the k arrays individually and concatenate them. def selectionSort(array): for index in range(0, len(array)): min = array[index] ...
33.215686
100
0.66588
b9571baa65129de5fd083be3e78af70dc509b3f0
823
py
Python
web_interface/debug2.py
maierbn/streaming_software
2cfe5da8e28b45751147c62906e8ef85ccf91fca
[ "MIT" ]
3
2021-07-24T21:07:00.000Z
2022-01-29T13:45:09.000Z
web_interface/debug2.py
maierbn/streaming_software
2cfe5da8e28b45751147c62906e8ef85ccf91fca
[ "MIT" ]
null
null
null
web_interface/debug2.py
maierbn/streaming_software
2cfe5da8e28b45751147c62906e8ef85ccf91fca
[ "MIT" ]
1
2021-07-10T15:33:29.000Z
2021-07-10T15:33:29.000Z
#!/usr/bin/python3 import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk class MyWindow(Gtk.Window): def __init__(self): super().__init__(title="Hello World") self.box = Gtk.Box(spacing=6) self.add(self.box) self.button1 = Gtk.Button(label="Hello") se...
23.514286
64
0.656136
deb2d0397f548e1c645ac3650cb3619cf19ee7a7
82
py
Python
src/eops/eops/migrations/__init__.py
haltu/eca-eops
2316af10ac08aabc23713a5065c8def79665f895
[ "MIT" ]
null
null
null
src/eops/eops/migrations/__init__.py
haltu/eca-eops
2316af10ac08aabc23713a5065c8def79665f895
[ "MIT" ]
11
2018-08-16T12:09:57.000Z
2018-08-22T14:26:15.000Z
src/eops/eops/migrations/__init__.py
haltu/eca-eops
2316af10ac08aabc23713a5065c8def79665f895
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2
11.714286
53
0.646341
da748a97a85e705888759309e28e5dba42a8de03
5,730
py
Python
src/txkube/_exception.py
LeastAuthority/txkube
a7e555d00535ff787d4b1204c264780da40cf736
[ "MIT" ]
14
2017-01-16T20:00:36.000Z
2020-02-15T05:58:23.000Z
src/txkube/_exception.py
LeastAuthority/txkube
a7e555d00535ff787d4b1204c264780da40cf736
[ "MIT" ]
192
2017-01-16T18:39:14.000Z
2019-01-03T14:01:50.000Z
src/txkube/_exception.py
LeastAuthority/txkube
a7e555d00535ff787d4b1204c264780da40cf736
[ "MIT" ]
6
2017-01-20T23:37:59.000Z
2020-10-16T21:38:59.000Z
# Copyright Least Authority Enterprises. # See LICENSE for details. from json import loads from functools import total_ordering from twisted.web.http import NOT_FOUND, CONFLICT from twisted.web.client import readBody def _full_kind(details): """ Determine the full kind (including a group if applicable) for ...
29.086294
78
0.582548
9092db695282724668bed1624198b72a795e9a72
1,435
py
Python
keras_ai.py
evandrocapo/Keras
5e2f73254e38d99ea1027b07c8e887be0d71fcac
[ "MIT" ]
null
null
null
keras_ai.py
evandrocapo/Keras
5e2f73254e38d99ea1027b07c8e887be0d71fcac
[ "MIT" ]
null
null
null
keras_ai.py
evandrocapo/Keras
5e2f73254e38d99ea1027b07c8e887be0d71fcac
[ "MIT" ]
null
null
null
from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Activation from tensorflow.keras.utils import to_categorical import numpy as np # Criação do modelo complicado # model = Sequential([ # Dense(32, input_shape=(784,)), # Activation('relu'), # Dense(10)...
21.41791
57
0.666899
705524570e7d02f4068e29708630c2b8950a2196
553
py
Python
work/python/rewrap.py
wincentbalin/vagrant-tesseract-cuneiform
6293054d3f8878139e4c9c18aac9abded037ffba
[ "Apache-2.0" ]
null
null
null
work/python/rewrap.py
wincentbalin/vagrant-tesseract-cuneiform
6293054d3f8878139e4c9c18aac9abded037ffba
[ "Apache-2.0" ]
null
null
null
work/python/rewrap.py
wincentbalin/vagrant-tesseract-cuneiform
6293054d3f8878139e4c9c18aac9abded037ffba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Rewrap lines without breaking words""" import sys import argparse import textwrap argparser = argparse.ArgumentParser(description=sys.modules[__name__].__doc__) argparser.add_argument('infile', type=argparse.FileType('r', encoding='UTF-8')) argparser.add_argument('outfile', type=argparse.Fi...
29.105263
80
0.748644
b99edc29244a7c6e2c4ab6c6b102de85a71ff402
629
py
Python
Src/WorkItemEventProcessor.Tests/bin/Debug/Dsl/tfs/setbuildretensionbyquality.py
rfennell/TfsAlertsDsl
dd5f8f1d122cba7361850f19cb229a6e10e0919f
[ "MS-PL" ]
null
null
null
Src/WorkItemEventProcessor.Tests/bin/Debug/Dsl/tfs/setbuildretensionbyquality.py
rfennell/TfsAlertsDsl
dd5f8f1d122cba7361850f19cb229a6e10e0919f
[ "MS-PL" ]
null
null
null
Src/WorkItemEventProcessor.Tests/bin/Debug/Dsl/tfs/setbuildretensionbyquality.py
rfennell/TfsAlertsDsl
dd5f8f1d122cba7361850f19cb229a6e10e0919f
[ "MS-PL" ]
null
null
null
import sys # Expect 2 args the event type and a value unique ID for the build if sys.argv[0] == "BuildEvent" : uri = sys.argv[1] build = GetBuildDetails(uri) if build.Quality == "Test Failed" or build.Quality == "Rejected" : keepForever = False else: keepForever = True SetBuildRetension(uri, keepForever) m...
37
129
0.710652
7d20df091ae1bab521e316699d46f7a830b57e8d
341
py
Python
HSCTF 2020/Boredom/payloader.py
Ishaan514/CTFs
643bf9b74fe01bdeea519bdf884616bb2a8ed85b
[ "Apache-2.0" ]
null
null
null
HSCTF 2020/Boredom/payloader.py
Ishaan514/CTFs
643bf9b74fe01bdeea519bdf884616bb2a8ed85b
[ "Apache-2.0" ]
null
null
null
HSCTF 2020/Boredom/payloader.py
Ishaan514/CTFs
643bf9b74fe01bdeea519bdf884616bb2a8ed85b
[ "Apache-2.0" ]
null
null
null
from pwn import * connection = remote('pwn.hsctf.com', 5002) #through fuzzing found buffer offset = 208 #through objdump -d we found the address of flag() as 00000000004011d5 and know the machine is 64 bit address = p64(0x000004011d5) #perform the bufferoverflow itself connection.sendline('a'*offset + address) connect...
26.230769
101
0.774194
5cb61df783c5f0c6f3a86e6cded7c90156d731f2
6,865
py
Python
helper.py
taeheecho/CarND-Semantic-Segmentation
7d18554e6fda87f59c6375eef2046e9842fca148
[ "MIT" ]
null
null
null
helper.py
taeheecho/CarND-Semantic-Segmentation
7d18554e6fda87f59c6375eef2046e9842fca148
[ "MIT" ]
null
null
null
helper.py
taeheecho/CarND-Semantic-Segmentation
7d18554e6fda87f59c6375eef2046e9842fca148
[ "MIT" ]
null
null
null
import re import random import numpy as np import os.path import scipy.misc import shutil import zipfile import time import tensorflow as tf from glob import glob from urllib.request import urlretrieve from tqdm import tqdm from moviepy.editor import VideoFileClip class DLProgress(tqdm): last_block = 0 def ho...
39.228571
104
0.655645
16136305d1adbb321dceba50ab65e58de0b05d4b
2,804
py
Python
python/tests/spatial_operator/test_rectangle_range.py
andreicovaliov/incubator-sedona
3613a756d6e9a50fd2cb7cb0484e654249440598
[ "Apache-2.0" ]
747
2016-03-02T21:29:54.000Z
2020-09-01T01:45:13.000Z
python/tests/spatial_operator/test_rectangle_range.py
andreicovaliov/incubator-sedona
3613a756d6e9a50fd2cb7cb0484e654249440598
[ "Apache-2.0" ]
329
2016-04-01T20:30:38.000Z
2020-08-31T23:29:02.000Z
python/tests/spatial_operator/test_rectangle_range.py
andreicovaliov/incubator-sedona
3613a756d6e9a50fd2cb7cb0484e654249440598
[ "Apache-2.0" ]
401
2016-03-03T20:38:38.000Z
2020-08-31T07:59:13.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
39.492958
117
0.738588
b5ab1da2fba5afad3ecd8815b671102c7f044ce5
625
py
Python
edge_detectors.py
CharlesW95/senior_project
d7bfe89c640b892f4c2f156a881c19cb5405b8ae
[ "MIT" ]
1
2018-07-12T10:00:11.000Z
2018-07-12T10:00:11.000Z
edge_detectors.py
CharlesW95/senior_project
d7bfe89c640b892f4c2f156a881c19cb5405b8ae
[ "MIT" ]
null
null
null
edge_detectors.py
CharlesW95/senior_project
d7bfe89c640b892f4c2f156a881c19cb5405b8ae
[ "MIT" ]
null
null
null
import tensorflow as tf def create_sobel_filters(): sobel_y = tf.constant([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]], tf.float32) sobel_y_filter = tf.reshape(sobel_y, [3, 3, 1, 1]) sobel_x_filter = tf.transpose(sobel_y_filter, [1, 0, 2, 3]) return sobel_x_filter, sobel_y_filter def edge_detection(images): ...
39.0625
75
0.6176
600efab90ac0272c4eec09f6ae8c08cb7c18f842
253
py
Python
Python/challenges/challenge_001.py
David29595/ProjectEuler
b2d1b60bdfd71193c2fb449801a8b4954bfc95ac
[ "MIT" ]
null
null
null
Python/challenges/challenge_001.py
David29595/ProjectEuler
b2d1b60bdfd71193c2fb449801a8b4954bfc95ac
[ "MIT" ]
null
null
null
Python/challenges/challenge_001.py
David29595/ProjectEuler
b2d1b60bdfd71193c2fb449801a8b4954bfc95ac
[ "MIT" ]
null
null
null
# sum all numbers between 1 and 1000 that are divisible by 3 and 5 def main(): sum=0 for i in range(1000): if i % 3 == 0 or i % 5 ==0: sum += i return sum if __name__ == '__main__': ans = main() print(str(ans))
19.461538
66
0.537549
74d643a77acb8e574edd5048da83b5dde28c6ffb
1,937
py
Python
test/test_scan_varying_integration_bug.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
2
2021-03-17T11:25:46.000Z
2021-11-18T04:20:54.000Z
test/test_scan_varying_integration_bug.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
null
null
null
test/test_scan_varying_integration_bug.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import procrunner import iotbx.mtz from cctbx import uctbx from libtbx.test_utils import approx_equal def test(dials_data, tmpdir): g = [f.strpath for f in dials_data("x4wide").listdir(sort=True)] assert len(g) == 90 commands = [ ...
30.265625
84
0.602994
b85fca7a6beabf2cf5870df3f010606ae3522fca
875
py
Python
django-valletpv/inicio/urls.py
vallemrv/django-tpv
75f738f13ffb7b4ca53a06d79ea6c4aef6eb12aa
[ "Apache-2.0" ]
2
2018-07-12T23:03:11.000Z
2018-07-16T19:09:01.000Z
django-valletpv/inicio/urls.py
vallemrv/django-tpv
75f738f13ffb7b4ca53a06d79ea6c4aef6eb12aa
[ "Apache-2.0" ]
null
null
null
django-valletpv/inicio/urls.py
vallemrv/django-tpv
75f738f13ffb7b4ca53a06d79ea6c4aef6eb12aa
[ "Apache-2.0" ]
null
null
null
# @Author: Manuel Rodriguez <valle> # @Date: 01-Jan-2018 # @Email: valle.mrv@gmail.com # @Last modified by: valle # @Last modified time: 19-Jun-2018 # @License: Apache license vesion 2.0 from django.conf.urls import url, include from . import views USER = [ url(r'^login/$', views.login, name="login_tk"), ...
35
121
0.68
b16c9e8593305514cd16a64c2b30a935479e9e21
5,681
py
Python
util/scheduler.py
CantSayIHave/OllieBotCore_v3
bec7b8bcfbd550bec11a85bfcead8478605998af
[ "MIT" ]
4
2018-01-16T10:08:49.000Z
2019-07-28T07:48:08.000Z
util/scheduler.py
CantSayIHave/OllieBotCore
bec7b8bcfbd550bec11a85bfcead8478605998af
[ "MIT" ]
null
null
null
util/scheduler.py
CantSayIHave/OllieBotCore
bec7b8bcfbd550bec11a85bfcead8478605998af
[ "MIT" ]
null
null
null
""" Scheduler module by Sierra --------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2018 CantSayIHave Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal i...
31.38674
109
0.647069
d6c706d7a0fea498411836c73045a1d583169c08
1,701
py
Python
venv/lib/python3.8/site-packages/vsts/git/v4_0/models/git_async_ref_operation_parameters.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/git/v4_0/models/git_async_ref_operation_parameters.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/vsts/git/v4_0/models/git_async_ref_operation_parameters.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------------------...
44.763158
99
0.574956
fba6361886b29ae0735b7bf61676c6126a13591e
695
py
Python
problems/Codeforces/A. Middle of the Contest.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
6
2020-06-25T14:52:09.000Z
2021-08-05T20:54:15.000Z
problems/Codeforces/A. Middle of the Contest.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
problems/Codeforces/A. Middle of the Contest.py
jspw/Basic_Python
aa159f576a471c6deebdf1e5f462dfc9ffb4930b
[ "Unlicense" ]
null
null
null
while(True): try: a,b=map(int,input().split(":")) c,d=map(int,input().split(":")) except EOFError: break x=a*60+b y=c*60+d br=(y-x)//2 # print(x,y,br) h=a+br//60 m=b+br%60 if(m>=60): m=m%...
25.740741
52
0.34964
156c73f73f60d0c71781aec145253d8c5dede1ff
1,988
py
Python
TestSuite_1.py
sakshamkatiyar/theta_maze
54fc49fa32cc2f3fcc76fa62b037656d4ed119b7
[ "MIT" ]
null
null
null
TestSuite_1.py
sakshamkatiyar/theta_maze
54fc49fa32cc2f3fcc76fa62b037656d4ed119b7
[ "MIT" ]
null
null
null
TestSuite_1.py
sakshamkatiyar/theta_maze
54fc49fa32cc2f3fcc76fa62b037656d4ed119b7
[ "MIT" ]
null
null
null
import os import numpy as np import cv2 import hashlib import time from section1 import * start_time = time.time() def parseData(data): a = data.split("\n") a.pop() output = [] for m in range(len(a)): b = a[m].split(",") num = [] for k in range(len(b)): ...
31.0625
109
0.480885
9d7653d4bf7c09b2f664139f12a79f0ab4c133d9
2,080
py
Python
editor/attributes/player/player_attribute_post_player_technique.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
1
2022-03-11T12:25:57.000Z
2022-03-11T12:25:57.000Z
editor/attributes/player/player_attribute_post_player_technique.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
null
null
null
editor/attributes/player/player_attribute_post_player_technique.py
PeterC10/COFPES-OF-Editor-6
0a9c9b75fada8264634bdc968c9da209c44b29e2
[ "MIT" ]
null
null
null
from editor.attributes.player.player_attribute import ( PlayerAttribute, PlayerAttributeTypes, ) from editor.attributes.player.player_attribute_post_player import ( PlayerAttributePostPlayer, ) from editor.attributes.player.player_attribute_technique import ( PlayerAttributeTechnique, ) from editor.a...
26.666667
84
0.698558
163786a8849a52b77458fda821614af50cc986f1
1,447
py
Python
Down the DevHole (@FLR)/Bonus - Paranormal Activity/pullall.py
cubermitis/HackfestPro2021
9cfb52040bf358feda1e22a52772a4c5ee8f1829
[ "MIT" ]
12
2021-11-21T00:21:43.000Z
2022-03-01T17:39:13.000Z
Down the DevHole (@FLR)/Bonus - Paranormal Activity/pullall.py
cubermitis/HackfestPro2021
9cfb52040bf358feda1e22a52772a4c5ee8f1829
[ "MIT" ]
null
null
null
Down the DevHole (@FLR)/Bonus - Paranormal Activity/pullall.py
cubermitis/HackfestPro2021
9cfb52040bf358feda1e22a52772a4c5ee8f1829
[ "MIT" ]
null
null
null
import requests import json r = requests.get( url="https://devhole.hfctf.ca:8888/v2/_catalog", headers={ "Authorization": "Basic cHJpdmF0ZV9yZWFkOnZ0OWdzaFlCS3c1aFVrNEtXOTBi", }, ) manifest = r.json() print(manifest) def download_file(url): local_filename = url.split('/')[-1] # NOTE the st...
32.155556
80
0.638563
feaa3b7d720ce77d6156cca79e84bd4ca7beca76
3,945
py
Python
tests/validation/tests/v3_api/test_bkp_restore.py
drpebcak/rancher
f78b142ac4b10960213f135dc8cffbec73bd32e5
[ "Apache-2.0" ]
6
2018-08-15T16:12:38.000Z
2019-12-17T03:49:13.000Z
tests/validation/tests/v3_api/test_bkp_restore.py
VonRosenchild/rancher
1befa202bf654bfd8506691867e14d0a1f2c5333
[ "Apache-2.0" ]
123
2018-01-25T21:17:59.000Z
2021-02-09T13:52:39.000Z
tests/validation/tests/v3_api/test_bkp_restore.py
VonRosenchild/rancher
1befa202bf654bfd8506691867e14d0a1f2c5333
[ "Apache-2.0" ]
29
2018-01-24T20:07:59.000Z
2021-01-26T06:09:29.000Z
import pytest from .common import * # NOQA namespace = {"p_client": None, "ns": None, "cluster": None, "project": None} def test_bkp_restore(): p_client = namespace["p_client"] ns = namespace["ns"] client = get_admin_client() cluster = namespace["cluster"] name = random_test_name("default") ...
37.216981
76
0.629151
68c027c09bb4d82d7e97e9f3e9c4a7ef1a650f99
7,077
py
Python
oxe-api/test/resource/analytics/test_get_ecosystem_activity.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/analytics/test_get_ecosystem_activity.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/analytics/test_get_ecosystem_activity.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime, timedelta from test.BaseCase import BaseCase class TestGetEcosystemActivity(BaseCase): @BaseCase.login def test_ok(self, token): time = (datetime.now() - timedelta(1)).isoformat().split('.')[0] time2 = (datetime.now() - timedelta(3)).isoformat().split('.')[0] ...
35.742424
84
0.469832
5f01c12b5bc6b994ed99f7b0cea4e31638cd8ea8
516
py
Python
graph_db/driver/null/vertex.py
josegomezr/graph_db
1ef286c9afdd4fd18559cccee9456dbc72ba7a8d
[ "Apache-2.0" ]
4
2015-11-19T01:22:19.000Z
2020-09-05T03:03:24.000Z
graph_db/driver/null/vertex.py
josegomezr/graph_db
1ef286c9afdd4fd18559cccee9456dbc72ba7a8d
[ "Apache-2.0" ]
1
2016-03-10T01:11:03.000Z
2016-03-10T01:11:03.000Z
graph_db/driver/null/vertex.py
josegomezr/graph_db
1ef286c9afdd4fd18559cccee9456dbc72ba7a8d
[ "Apache-2.0" ]
1
2016-03-08T00:03:18.000Z
2016-03-08T00:03:18.000Z
import pqb import uuid from ... import types class VertexDriver(types.BaseVertexDriver): def create(self, data = {}): vertex = {} uid = uuid.uuid4() vertex['uuid'] = str(uid) vertex['suid'] = "%x" % (uid.fields[0]) vertex['type'] = 'vertex' return vertex ...
24.571429
48
0.52907
bfe060c38e0bfbb4ca3655cdbabf3c6794fa8f85
1,795
py
Python
web/about_me_plugin/models.py
nguyentrisinh/hien_portfolio
538ea9efc358cb666e7198dc04d11248868301f0
[ "MIT" ]
null
null
null
web/about_me_plugin/models.py
nguyentrisinh/hien_portfolio
538ea9efc358cb666e7198dc04d11248868301f0
[ "MIT" ]
null
null
null
web/about_me_plugin/models.py
nguyentrisinh/hien_portfolio
538ea9efc358cb666e7198dc04d11248868301f0
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from djangocms_text_ckeditor.fields import HTMLField from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin # Create your models here. class AboutMe(models.Model): obj...
33.867925
95
0.752089
c861756690d8bc89730c9a077a1249c357f165b5
265
py
Python
yaml/read.py
aji-ptn/Bird_view
433b33b183ceddb5292b4d14983f7191974ae966
[ "MIT" ]
null
null
null
yaml/read.py
aji-ptn/Bird_view
433b33b183ceddb5292b4d14983f7191974ae966
[ "MIT" ]
null
null
null
yaml/read.py
aji-ptn/Bird_view
433b33b183ceddb5292b4d14983f7191974ae966
[ "MIT" ]
null
null
null
import cv2 fs = cv2.FileStorage("back.yaml", cv2.FILE_STORAGE_READ) camera_matrix = fs.getNode("camera_matrix").mat() dist_coeffs = fs.getNode("dist_coeffs").mat() resolution = fs.getNode("resolution").mat().flatten() #load_camera_params() print(camera_matrix)
22.083333
56
0.754717
0e6180b6f7abde8a7a5e9a34244e7cd1a9397a88
1,872
py
Python
ParlAI/parlai/tasks/nlvr/agents.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
258
2020-04-10T07:01:06.000Z
2022-03-26T11:49:30.000Z
ParlAI/parlai/tasks/nlvr/agents.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
33
2020-04-10T04:28:51.000Z
2022-03-31T02:52:02.000Z
ParlAI/parlai/tasks/nlvr/agents.py
UmaTaru/run
be29e4d41a4de3dee27cd6796801bfe51382d294
[ "MIT" ]
43
2020-04-14T10:43:33.000Z
2022-03-13T02:27:54.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.teachers import DialogTeacher from .build import build import json import os import glob def _path(o...
28.8
75
0.593483
b8f361313c8729389bffeeb00fbc16ca3cda3962
4,191
py
Python
utils/tutorials_tests/copyright_test/test_copyright.py
LRVerkin/tutorials
365757b0dee90f63a53851e40bfad790aca3cf8d
[ "MIT" ]
null
null
null
utils/tutorials_tests/copyright_test/test_copyright.py
LRVerkin/tutorials
365757b0dee90f63a53851e40bfad790aca3cf8d
[ "MIT" ]
null
null
null
utils/tutorials_tests/copyright_test/test_copyright.py
LRVerkin/tutorials
365757b0dee90f63a53851e40bfad790aca3cf8d
[ "MIT" ]
1
2022-02-25T12:07:16.000Z
2022-02-25T12:07:16.000Z
# Copyright (c) 2019 Graphcore Ltd. All rights reserved. import argparse import datetime import fileinput import inspect import os import re import sys import configparser C_FILE_EXTS = ['c', 'cpp', 'C', 'cxx', 'c++', 'h', 'hpp'] EXCLUDED = [] def check_file(path, language, amend): comment = "#" if language =...
32.488372
107
0.582439
1becbbf9225e9009d8b9d5bbfe81bc50d79d0a84
1,166
py
Python
cupy/io/text.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/io/text.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
cupy/io/text.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import numpy def loadtxt(fname, dtype=numpy.float64, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False, ndmin=0): # TODO(beam2d): Implement it raise NotImplementedError def savetxt(fname, X, fmt='%.18e', delimiter=' ', newline='\n', header='', foot...
33.314286
78
0.656947
14700d5cc97383f7774d828c43a6d3cf8c259ebf
1,079
py
Python
academicstoday_project/student/views/announcement.py
LeeDoona/EasyGrading
8a3b7a95e328a5b710bd98934dcde7556731bd72
[ "Apache-2.0" ]
146
2017-02-04T11:14:50.000Z
2021-12-30T20:54:50.000Z
academicstoday_project/student/views/announcement.py
LeeDoona/EasyGrading
8a3b7a95e328a5b710bd98934dcde7556731bd72
[ "Apache-2.0" ]
139
2015-02-21T21:40:34.000Z
2016-02-20T13:34:25.000Z
academicstoday_project/student/views/announcement.py
topsit143/acda
c2a20ffd1dcf8668d1fe401d114d32d9e686f1fd
[ "Apache-2.0" ]
88
2017-01-20T20:32:44.000Z
2022-02-07T05:32:44.000Z
from django.shortcuts import render from django.core import serializers from django.http import HttpResponse from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.conf import settings import json import datetime from registrar.models import Student from regist...
35.966667
89
0.754402
8b53c7a0170e8f9e0c9a8019a5b18e555c3e106c
5,139
py
Python
bigflow/build/operate.py
allegro/bigflow
df8b5112c220c9797d10504ba3db5401cf4684a7
[ "Apache-2.0" ]
63
2020-08-15T19:02:06.000Z
2022-03-29T16:19:00.000Z
bigflow/build/operate.py
allegro/bigflow
df8b5112c220c9797d10504ba3db5401cf4684a7
[ "Apache-2.0" ]
133
2020-08-18T03:51:05.000Z
2022-03-05T13:43:22.000Z
bigflow/build/operate.py
allegro/bigflow
df8b5112c220c9797d10504ba3db5401cf4684a7
[ "Apache-2.0" ]
10
2020-08-25T05:19:31.000Z
2022-02-03T10:33:41.000Z
"""Actual implementaion of buid/distribution operations""" import os import subprocess import shutil import logging import typing from pathlib import Path import bigflow.resources import bigflow.dagbuilder import bigflow.version import bigflow.build.pip import bigflow.build.dev import bigflow.build.dist import bigfl...
32.11875
129
0.712395
23d22a71928704ff4a1ec1075363c2155635b29a
12,737
py
Python
mouse/blink_click.py
EmergentMind/knausj_talon
476b6aa01e55683ad60c1cabe8789ca2046d98c6
[ "Unlicense" ]
null
null
null
mouse/blink_click.py
EmergentMind/knausj_talon
476b6aa01e55683ad60c1cabe8789ca2046d98c6
[ "Unlicense" ]
null
null
null
mouse/blink_click.py
EmergentMind/knausj_talon
476b6aa01e55683ad60c1cabe8789ca2046d98c6
[ "Unlicense" ]
null
null
null
import collections from os import system from sys import platform from time import sleep, time from talon import Module, actions, app, ctrl, settings, ui from talon.track.geom import Point2d from talon_plugins.eye_mouse import menu, tracker mod = Module() class EyeMouseSleepTracker(object): """Track whether or...
38.364458
141
0.528539
a4f7c2d9ec928de198336104fcf90ef06b3fef5c
4,988
py
Python
spectra_cluster/ui/clustering_stats.py
spectra-cluster/spectra-cluster-py
38797217b9451b192fe56cb72f2478f7f9e065e3
[ "Apache-2.0" ]
3
2017-03-08T08:05:32.000Z
2019-08-06T11:13:35.000Z
spectra_cluster/ui/clustering_stats.py
spectra-cluster/spectra-cluster-py
38797217b9451b192fe56cb72f2478f7f9e065e3
[ "Apache-2.0" ]
7
2016-11-08T13:27:09.000Z
2019-04-23T15:39:35.000Z
spectra_cluster/ui/clustering_stats.py
spectra-cluster/spectra-cluster-py
38797217b9451b192fe56cb72f2478f7f9e065e3
[ "Apache-2.0" ]
2
2017-01-22T16:42:48.000Z
2017-07-18T03:35:12.000Z
"""clustering_stats Extracts basic statistics (ie. number of clusters, incorrectly clustered spectra) from .clustering files. This script only creates meaningful results if the .clustering file contains identification data which will be used to evaluate correctly and incorrectly clustered spectra. Usage: clusteri...
39.275591
121
0.674218
8ebcec4c628fb59e650332bc0bbd16f0a2150af2
4,780
py
Python
pymatgen/io/qchem_io/sets.py
hillarypan/pymatgen
6b14109d59867331a48cd0986200094fd36dcfbb
[ "MIT" ]
null
null
null
pymatgen/io/qchem_io/sets.py
hillarypan/pymatgen
6b14109d59867331a48cd0986200094fd36dcfbb
[ "MIT" ]
null
null
null
pymatgen/io/qchem_io/sets.py
hillarypan/pymatgen
6b14109d59867331a48cd0986200094fd36dcfbb
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import logging from pymatgen.core import Molecule from pymatgen.io.qchem_io.inputs import QCInput # Classes for reading/manipulating/writing QChem ouput files. __author__ = "Samuel Blau, Brandon Wood, Shyam D...
38.24
121
0.619665
a4f4ad9201386af9b0c89d7c5861ed18eae49f9a
35,903
py
Python
mslib/mswms/demodata.py
plant99/MSS
4d1cef8d3822000d8f5a1a88bdeec714fda70adb
[ "Apache-2.0" ]
null
null
null
mslib/mswms/demodata.py
plant99/MSS
4d1cef8d3822000d8f5a1a88bdeec714fda70adb
[ "Apache-2.0" ]
null
null
null
mslib/mswms/demodata.py
plant99/MSS
4d1cef8d3822000d8f5a1a88bdeec714fda70adb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ mslib.mswms.demodata ~~~~~~~~~~~~~~~~~~~~ creates netCDF test data files and also a mss_wms_settings for accessing this data This file is part of mss. :copyright: Copyright 2017 Jens-Uwe Grooss, Joern Ungermann, Reimar Bauer :copyright: Copyr...
29.3565
120
0.6246
03cc3eeccba307115a431086216ba55b4b9773ba
723
py
Python
activity1.py
zhua1/pythonActivities
d4bebd9a43d658f4802b998f6963c9c87a94b7d0
[ "MIT" ]
null
null
null
activity1.py
zhua1/pythonActivities
d4bebd9a43d658f4802b998f6963c9c87a94b7d0
[ "MIT" ]
null
null
null
activity1.py
zhua1/pythonActivities
d4bebd9a43d658f4802b998f6963c9c87a94b7d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd file = pd.read_csv('C:\\Users\\meifl\\Desktop\\UCIRV201804DATA3-Class-Repository-DATA\\01-LessonPlan\\03-Python\\3\\Activities\\Unsolved\\01-Stu_CerealCleaner\\Resources\\cereal.csv', header = None) print(file[0][file[7] >= 5]) #-------------------------------------------...
51.642857
211
0.511757