hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4643e65b6ea35e2606b338d0ea21854bc21603a8
3,020
py
Python
djcommon/helpers.py
baskoopmans/djcommon
0c373405985b6fa28e8d1fba74fd23ad23df7918
[ "BSD-3-Clause" ]
2
2019-03-19T05:47:40.000Z
2019-04-21T12:15:57.000Z
djcommon/helpers.py
baskoopmans/djcommon
0c373405985b6fa28e8d1fba74fd23ad23df7918
[ "BSD-3-Clause" ]
null
null
null
djcommon/helpers.py
baskoopmans/djcommon
0c373405985b6fa28e8d1fba74fd23ad23df7918
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 import sys import re import copy import json import random from importlib import import_module from decimal import Decimal from django.conf import settings from django.core.exceptions import ObjectDoesNotExist # for formatting Decimal objects TWOPLACES = Decimal(10) ** -2 def c...
29.038462
108
0.642384
800472d33f2b7470b2413eb8a4fdcc6365a551f1
5,978
py
Python
wheat_detection/configs/faster_rcnn/faster_dilation.py
fengyouliang/wheat_detection
d056123426a1260c29b486cbb8e44a88a0a3c5bc
[ "Apache-2.0" ]
null
null
null
wheat_detection/configs/faster_rcnn/faster_dilation.py
fengyouliang/wheat_detection
d056123426a1260c29b486cbb8e44a88a0a3c5bc
[ "Apache-2.0" ]
null
null
null
wheat_detection/configs/faster_rcnn/faster_dilation.py
fengyouliang/wheat_detection
d056123426a1260c29b486cbb8e44a88a0a3c5bc
[ "Apache-2.0" ]
null
null
null
fp16 = dict(loss_scale=512.) model = dict( type='FasterRCNN', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, dilations=(2, 2, 2, 2), out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type=...
31.463158
98
0.556708
ffba4b03bfed13ae9b9031bbd7c20620c683b42c
39,580
py
Python
pypy/interpreter/test/test_argument.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/interpreter/test/test_argument.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/interpreter/test/test_argument.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# -*- coding: utf-8 -*- import py import pytest from pypy.interpreter.argument import (Arguments, ArgErr, ArgErrUnknownKwds, ArgErrMultipleValues, ArgErrMissing, ArgErrTooMany, ArgErrTooManyMethod, ArgErrPosonlyAsKwds) from pypy.interpreter.signature import Signature from pypy.interpreter.error import O...
40.141988
169
0.537494
d02b913a2717ccb207fe58f2771c4f8c0680c4c5
893
py
Python
src/data_wash.py
topologyYDM/dectree_QSO
3008ad7eb8ac9ba13b7182cb063aa41af05818fe
[ "MIT" ]
3
2019-03-05T14:02:21.000Z
2019-03-30T02:13:40.000Z
src/data_wash.py
topologyYDM/dectree_QSO
3008ad7eb8ac9ba13b7182cb063aa41af05818fe
[ "MIT" ]
15
2019-03-25T02:17:50.000Z
2019-04-12T03:41:29.000Z
src/data_wash.py
topologyYDM/dectree_QSO
3008ad7eb8ac9ba13b7182cb063aa41af05818fe
[ "MIT" ]
1
2019-03-03T08:13:12.000Z
2019-03-03T08:13:12.000Z
# -*- coding: utf-8 -*- import sys import numpy as np filename = sys.argv[1] colors = ['r', 'i', 'u', 'z', 'g'] with open('./data/light_curve/' + filename) as f: lines = f.readlines() atbss = [] atbs_r = [] atbs_i = [] atbs_u = [] atbs_z = [] atbs_g = [] atbss.append(atbs_r) atbss.append(atbs_i) atbss....
15.135593
61
0.578947
b4f3a5541c00e8b284013b5335700d9588d8e985
4,156
py
Python
phuber/network.py
dmizr/phuber
3b70eadd9bd1420047ada743ff5604eda48d63ac
[ "MIT" ]
12
2020-12-17T14:54:03.000Z
2021-12-13T21:30:13.000Z
phuber/network.py
dmizr/phuber
3b70eadd9bd1420047ada743ff5604eda48d63ac
[ "MIT" ]
5
2020-12-30T21:18:05.000Z
2021-04-16T21:27:35.000Z
phuber/network.py
dmizr/phuber
3b70eadd9bd1420047ada743ff5604eda48d63ac
[ "MIT" ]
7
2021-04-15T02:13:26.000Z
2021-12-01T21:20:59.000Z
from typing import Any, Callable, List, Optional, Type, Union import torch import torch.nn as nn import torchvision from torchvision.models.resnet import BasicBlock, Bottleneck from phuber.utils import truncated_normal class LeNet(nn.Module): """LeNet-5 from `"Gradient-Based Learning Applied To Document Recogni...
36.13913
88
0.637392
0b4adb3fcb4db6aa0ef40651928c16aa0ead3898
1,142
py
Python
test/make_test_suite_json.py
tzlaine/yaml
958716b79697d4501f57d10eca8d3024047f5e2d
[ "BSL-1.0" ]
null
null
null
test/make_test_suite_json.py
tzlaine/yaml
958716b79697d4501f57d10eca8d3024047f5e2d
[ "BSL-1.0" ]
2
2019-10-31T02:01:21.000Z
2019-10-31T02:13:51.000Z
test/make_test_suite_json.py
tzlaine/yaml
958716b79697d4501f57d10eca8d3024047f5e2d
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python import argparse import os import shutil import sys parser = argparse.ArgumentParser(description='Create an index of the .json test files from JSONTestSuite.') parser.add_argument('--json-test-suite-path', '-y', type=str, required=True, help='the path to JSONTestSuite') parse...
38.066667
107
0.707531
b6f0eabc8f665c3e230038934f1b11c9a2a45ed6
11,251
py
Python
Code/src/models/optim/DSAD_trainer.py
antoine-spahr/X-ray-Anomaly-Detection
850b6195d6290a50eee865b4d5a66f5db5260e8f
[ "MIT" ]
2
2020-10-12T08:25:13.000Z
2021-08-16T08:43:43.000Z
Code/src/models/optim/DSAD_trainer.py
antoine-spahr/X-ray-Anomaly-Detection
850b6195d6290a50eee865b4d5a66f5db5260e8f
[ "MIT" ]
null
null
null
Code/src/models/optim/DSAD_trainer.py
antoine-spahr/X-ray-Anomaly-Detection
850b6195d6290a50eee865b4d5a66f5db5260e8f
[ "MIT" ]
1
2020-06-17T07:40:17.000Z
2020-06-17T07:40:17.000Z
import torch import torch.nn as nn import torch.optim as optim import numpy as np import time import logging from sklearn.metrics import roc_auc_score from sklearn.manifold import TSNE from src.models.optim.CustomLosses import DeepSADLoss from src.utils.utils import print_progessbar class DSAD_trainer: """ Tr...
39.202091
114
0.552218
3b519040719ec0654c62e6fdba9805c035ca15e6
3,733
py
Python
floodsystem/datafetcher.py
PamposhMam/silver-pancakce
bf67429289ece1c710f32f8f21d691867c8d0a7b
[ "MIT" ]
null
null
null
floodsystem/datafetcher.py
PamposhMam/silver-pancakce
bf67429289ece1c710f32f8f21d691867c8d0a7b
[ "MIT" ]
null
null
null
floodsystem/datafetcher.py
PamposhMam/silver-pancakce
bf67429289ece1c710f32f8f21d691867c8d0a7b
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module provides functionality for retrieving real-time and latest time history level data """ import datetime import json import os import dateutil.parser import requests def fetch(url): """Fetch data from url and return fetched JSON ...
25.744828
136
0.643182
e09baca08a9e032a8d6795ee8e247fce9c0e35af
32,520
py
Python
VideoShow.py
leavin296/fresheng
617ededc456e765e42c711336e23eb0931466163
[ "MIT" ]
null
null
null
VideoShow.py
leavin296/fresheng
617ededc456e765e42c711336e23eb0931466163
[ "MIT" ]
null
null
null
VideoShow.py
leavin296/fresheng
617ededc456e765e42c711336e23eb0931466163
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'VideoShow.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import QDir, QUrl, Qt, QThread, QSizeF, QSize, QRectF from PyQ...
42.621232
122
0.627706
ff964278948e0e40221aa349538a8b6cacc0b451
10,100
py
Python
selfdrive/controls/lib/driver_monitor.py
symuhammad/openpilot
96072fe69bc10f6ac5a92e2353e1ca0e649694dc
[ "MIT" ]
8
2020-02-15T09:20:58.000Z
2020-08-26T11:06:06.000Z
selfdrive/controls/lib/driver_monitor.py
symuhammad/openpilot
96072fe69bc10f6ac5a92e2353e1ca0e649694dc
[ "MIT" ]
null
null
null
selfdrive/controls/lib/driver_monitor.py
symuhammad/openpilot
96072fe69bc10f6ac5a92e2353e1ca0e649694dc
[ "MIT" ]
35
2019-09-30T15:35:06.000Z
2020-09-27T06:51:12.000Z
import numpy as np from common.realtime import DT_CTRL, DT_DMON from selfdrive.controls.lib.drive_helpers import create_event, EventTypes as ET from common.filter_simple import FirstOrderFilter from common.stat_live import RunningStatFilter _AWARENESS_TIME = 300. # 1.6 minutes limit without user touching steering whe...
43.347639
154
0.742475
9b7f2ff43eadaa853a717e8df904e5db85bd06db
18
py
Python
virtbs/__init__.py
afazekas/speedling
bd9d93ef16f3d702f146812fb6e8fef51426a378
[ "Apache-2.0" ]
1
2019-04-10T18:20:09.000Z
2019-04-10T18:20:09.000Z
virtbs/__init__.py
afazekas/speedling
bd9d93ef16f3d702f146812fb6e8fef51426a378
[ "Apache-2.0" ]
1
2019-07-12T12:08:19.000Z
2019-07-12T12:08:19.000Z
virtbs/__init__.py
afazekas/speedling
bd9d93ef16f3d702f146812fb6e8fef51426a378
[ "Apache-2.0" ]
1
2019-02-26T16:37:10.000Z
2019-02-26T16:37:10.000Z
# Not package yet
9
17
0.722222
60e419418114e3162868c60069a5c30527b6d81e
2,559
py
Python
jupyterlab_widgets/setup.py
casperdcl/ipywidgets
f27cdc6dcdb838174f8280cd27c1c1013cadb0e7
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_widgets/setup.py
casperdcl/ipywidgets
f27cdc6dcdb838174f8280cd27c1c1013cadb0e7
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_widgets/setup.py
casperdcl/ipywidgets
f27cdc6dcdb838174f8280cd27c1c1013cadb0e7
[ "BSD-3-Clause" ]
null
null
null
""" jupyterlab_widgets setup """ import os from jupyter_packaging import ( create_cmdclass, install_npm, ensure_targets, combine_commands, ensure_python, get_version, skip_if_exists ) import setuptools HERE = os.path.abspath(os.path.dirname(__file__)) # The name of the project name = "jupyterlab_widgets"...
26.112245
78
0.687378
262672fb2b6b8df99067578c99cdba141e07a38d
6,506
py
Python
CrySPY/EA/ea_append.py
ruoitrau86/CrySPY
84cc0c663a6ecc73ff89d0d2893424ecf3faae50
[ "MIT" ]
null
null
null
CrySPY/EA/ea_append.py
ruoitrau86/CrySPY
84cc0c663a6ecc73ff89d0d2893424ecf3faae50
[ "MIT" ]
null
null
null
CrySPY/EA/ea_append.py
ruoitrau86/CrySPY
84cc0c663a6ecc73ff89d0d2893424ecf3faae50
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import ConfigParser import os import pandas as pd from .. import utility from ..gen_struc.EA.select_parents import Select_parents from ..gen_struc.EA.crossover import Crossover from ..gen_struc.EA.permutation import Permutation from...
43.373333
119
0.601752
65a069438b85cb2b0b130e8c8947b706aac5f4dc
424
py
Python
python/algorithms/binary_search.py
minhajul/learning
7fdccee7ff7624e69ba3198531be90f448b77837
[ "MIT" ]
1
2018-06-09T08:47:13.000Z
2018-06-09T08:47:13.000Z
python/algorithms/binary_search.py
minhajul/learning
7fdccee7ff7624e69ba3198531be90f448b77837
[ "MIT" ]
12
2018-06-08T20:02:43.000Z
2018-09-25T17:16:05.000Z
python/algorithms/binary_search.py
minhajul/learning
7fdccee7ff7624e69ba3198531be90f448b77837
[ "MIT" ]
null
null
null
def binary_search(list_items, x): left = list_items[0] right = len(list_items) - 1 while left <= right: mid = round((left + right) / 2) if x == list_items[mid]: return mid if x > list_items[mid]: left = mid + 1 if x < list_items[mid]: ri...
20.190476
58
0.509434
c90dc36e66fee3dcb300a00430345871b4dd01fa
2,688
py
Python
hello/views.py
1tjcaron/learnmath
311229e518bc52d834b30a961803c5fdc7851568
[ "MIT" ]
null
null
null
hello/views.py
1tjcaron/learnmath
311229e518bc52d834b30a961803c5fdc7851568
[ "MIT" ]
null
null
null
hello/views.py
1tjcaron/learnmath
311229e518bc52d834b30a961803c5fdc7851568
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render def hello(request): return render(request, 'hello.html', {"status1": "Unstarted"}) def hi2(request): return render(request, 'hello.html', {"status1": "Done"}) import datetime from django.shortcuts import render, get_object_or_404 from ...
32.385542
127
0.651786
04922411299b7200f2711b08256924151e3c9d00
6,669
py
Python
src/ircthread.py
fallingknife/electrum-uno-server
ecae2ea51a00806269f080546c42db9452ef34b5
[ "MIT" ]
null
null
null
src/ircthread.py
fallingknife/electrum-uno-server
ecae2ea51a00806269f080546c42db9452ef34b5
[ "MIT" ]
null
null
null
src/ircthread.py
fallingknife/electrum-uno-server
ecae2ea51a00806269f080546c42db9452ef34b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright(C) 2011-2016 Thomas Voegtlin # # 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, m...
37.256983
147
0.624232
903b4b6357e887c9e3bc4d8b4d3f00f158204858
1,714
py
Python
components/gpio_control/GPIODevices/led.py
drocx/RPi-Jukebox-RFID
1e211c2f4571a86d97747fe9094a34931de8b7c1
[ "MIT" ]
null
null
null
components/gpio_control/GPIODevices/led.py
drocx/RPi-Jukebox-RFID
1e211c2f4571a86d97747fe9094a34931de8b7c1
[ "MIT" ]
null
null
null
components/gpio_control/GPIODevices/led.py
drocx/RPi-Jukebox-RFID
1e211c2f4571a86d97747fe9094a34931de8b7c1
[ "MIT" ]
1
2019-10-06T16:33:52.000Z
2019-10-06T16:33:52.000Z
import logging import time import mpd from RPi import GPIO GPIO.setmode(GPIO.BCM) logger = logging.getLogger(__name__) class LED: def __init__(self, pin, initial_value=True, name='LED'): self.pin = pin self.name=name logger.debug('initialize {}(pin={}) to off'.format(self.name, self.pi...
29.050847
106
0.616103
43184a88cc4cdcaccfdde3323f6cb86579a5b114
21,044
py
Python
designate/central/rpcapi.py
mrlesmithjr/designate
bff3d5f6e31fe595a77143ec4ac779c187bf72a8
[ "Apache-2.0" ]
145
2015-01-02T09:35:53.000Z
2021-12-14T17:03:53.000Z
designate/central/rpcapi.py
mrlesmithjr/designate
bff3d5f6e31fe595a77143ec4ac779c187bf72a8
[ "Apache-2.0" ]
6
2015-03-15T00:22:27.000Z
2019-12-16T09:37:38.000Z
designate/central/rpcapi.py
mrlesmithjr/designate
bff3d5f6e31fe595a77143ec4ac779c187bf72a8
[ "Apache-2.0" ]
109
2015-01-13T16:47:34.000Z
2021-03-15T13:18:48.000Z
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hpe.com> # # 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/...
42.85947
79
0.636096
2315ddaaa6c246368e901870ef40f87018c0d644
7,605
py
Python
models/nn/convnet.py
gdikov/MNIST_Challenge
56834aeeaeefc440cb1d9882c95b73b84fe20edf
[ "MIT" ]
1
2017-02-15T12:19:46.000Z
2017-02-15T12:19:46.000Z
models/nn/convnet.py
gdikov/MNIST-challenge
56834aeeaeefc440cb1d9882c95b73b84fe20edf
[ "MIT" ]
1
2017-02-07T12:51:17.000Z
2017-02-07T12:51:17.000Z
models/nn/convnet.py
gdikov/MNIST_Challenge
56834aeeaeefc440cb1d9882c95b73b84fe20edf
[ "MIT" ]
1
2019-01-22T17:06:03.000Z
2019-01-22T17:06:03.000Z
from models.model import AbstractModel from models.nn.layers import * from numerics.softmax import softmax import config as cfg import os import cPickle import numpy as np # from utils.vizualiser import plot_filters class ConvolutionalNeuralNetwork(AbstractModel): def __init__(self, convolution_mode='scipy'): ...
40.238095
119
0.620644
37af50eba96b794ed6534cb2f8db62996566cf05
1,241
py
Python
algospot/lec9_DP/[cutz]blockgame.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
3
2019-11-26T14:31:01.000Z
2020-01-10T18:19:46.000Z
algospot/lec9_DP/[cutz]blockgame.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
algospot/lec9_DP/[cutz]blockgame.py
cutz-j/AlgorithmStudy
de0f81220e29bd5e109d174800f507b12a3bee36
[ "MIT" ]
null
null
null
import sys move = [] def cell(y, x): return 1 << (y*5 + x) def precalc(): for y in range(4): for x in range(4): cells = [] for dy in range(2): for dx in range(2): cells.append(cell(y+dy, x+dx)) squa...
22.563636
62
0.438356
ee11e06723f1648a5717bda7666d7446edee7f89
328
py
Python
Python Tutorial Beginner/16_Read_file.py
PaulPan00/donkey_wrapper
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
6
2021-03-26T01:42:31.000Z
2021-04-11T16:17:42.000Z
Python Tutorial Beginner/16_Read_file.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
null
null
null
Python Tutorial Beginner/16_Read_file.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
7
2021-04-06T06:55:22.000Z
2021-05-03T11:26:38.000Z
# Create by Packetsss # Personal use is allowed # Commercial use is prohibited file = open("Ex.txt", "r") # print(file.readable()) # print(file.read()) print(file.readlines()[0]) # for employee in file.readlines(): # print(employee) file.close() file = open("Ex2.txt", "w") file.write("\nWhy am I sad?") file....
15.619048
35
0.658537
3d77336188d792ba2f715e760aebf2476fdcca02
270
py
Python
tests/test_crv/crv_test_main.py
jonpovey/cocotb-coverage
8a8826a68af261a4195f9c315a59d8eb913bb24e
[ "BSD-2-Clause" ]
70
2018-11-28T12:06:18.000Z
2022-02-23T20:36:12.000Z
tests/test_crv/crv_test_main.py
jonpovey/cocotb-coverage
8a8826a68af261a4195f9c315a59d8eb913bb24e
[ "BSD-2-Clause" ]
58
2018-12-19T12:08:53.000Z
2022-01-27T07:45:36.000Z
tests/test_crv/crv_test_main.py
jonpovey/cocotb-coverage
8a8826a68af261a4195f9c315a59d8eb913bb24e
[ "BSD-2-Clause" ]
16
2018-12-26T22:59:48.000Z
2022-03-21T06:21:47.000Z
import cocotb import pytest import crv_test from cocotb.triggers import Timer from cocotb.result import TestFailure @cocotb.test() def test_crv(dut): exitcode = pytest.main() if exitcode != pytest.ExitCode.OK: raise TestFailure() yield Timer(1000)
19.285714
38
0.733333
4535fac78da8dbf8a5d0934e7f0b901c40b6e12c
7,119
py
Python
ogr/factory.py
pawelkopka/ogr
a88e9bbc76fe1476477165de496ab458e310d5ee
[ "MIT" ]
null
null
null
ogr/factory.py
pawelkopka/ogr
a88e9bbc76fe1476477165de496ab458e310d5ee
[ "MIT" ]
5
2021-04-08T22:01:19.000Z
2022-02-10T12:21:29.000Z
ogr/factory.py
pawelkopka/ogr
a88e9bbc76fe1476477165de496ab458e310d5ee
[ "MIT" ]
1
2020-01-25T14:40:32.000Z
2020-01-25T14:40:32.000Z
# MIT License # # Copyright (c) 2018-2019 Red Hat, Inc. # 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, m...
35.068966
100
0.674673
5f60e20d2a72125ff2323de58f084a5c48b99486
37,083
py
Python
run_classifier.py
cospplay/bert-master
433923003ebfb60193ff5f9f81e4d96ad3d83f1b
[ "Apache-2.0" ]
5
2021-04-16T01:44:49.000Z
2022-01-11T01:10:17.000Z
run_classifier.py
cospplay/bert-master
433923003ebfb60193ff5f9f81e4d96ad3d83f1b
[ "Apache-2.0" ]
null
null
null
run_classifier.py
cospplay/bert-master
433923003ebfb60193ff5f9f81e4d96ad3d83f1b
[ "Apache-2.0" ]
2
2021-05-13T07:35:33.000Z
2022-01-06T06:27:30.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
35.486124
94
0.678775
9b9d3d5b3fe80247642d962edd6fb787537d01d6
102
py
Python
mmseg/models/necks/__init__.py
HeqingZhang/mmsegmentation
90d8038e909be9f2154b49d15f95a648ceb75120
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
mmseg/models/necks/__init__.py
HeqingZhang/mmsegmentation
90d8038e909be9f2154b49d15f95a648ceb75120
[ "Apache-2.0" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
mmseg/models/necks/__init__.py
HeqingZhang/mmsegmentation
90d8038e909be9f2154b49d15f95a648ceb75120
[ "Apache-2.0" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
from .fpn import FPN from .multilevel_neck import MultiLevelNeck __all__ = ['FPN', 'MultiLevelNeck']
20.4
43
0.77451
5a71707e864e946c3a98706efc7d211f16a86868
4,673
py
Python
lib/python2.7/site-packages/appionlib/apTomoFullRecon.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apTomoFullRecon.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/appionlib/apTomoFullRecon.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import os import shutil import subprocess #appion from appionlib import apTomoMakerBase from appionlib import apImod from appionlib import apTomo from appionlib import apParam from appionlib import apDisplay #===================== #===================== class ImodMaker(apTomoMakerBase.TomoMaker)...
41.723214
281
0.71453
661f41153f5f22bb6be87ca3f946d5174fe13ef1
1,707
py
Python
forecast_dataset_to_stories.py
Cyntwikip/PreSumm
9abb00ca9910e210fe786c5a2805821a81ceca73
[ "MIT" ]
null
null
null
forecast_dataset_to_stories.py
Cyntwikip/PreSumm
9abb00ca9910e210fe786c5a2805821a81ceca73
[ "MIT" ]
null
null
null
forecast_dataset_to_stories.py
Cyntwikip/PreSumm
9abb00ca9910e210fe786c5a2805821a81ceca73
[ "MIT" ]
null
null
null
import pandas as pd import re, os import click from tqdm import tqdm def split_lines(text): text = [' '.join(i.split()) for i in re.split(r'\n{2,}', text)] text = [i for i in text if i] return text def preprocess(file, forecast_folder): # file = '~/notebooks/Cognitive_Search/sash/data/feb_20/ulm_forec...
31.611111
104
0.632689
2f73df2075b6c7be91ff7129344df378a4379f5f
154,425
py
Python
Tests/test_number.py
Xen0byte/ironpython3
2e5bb6025d01ab52ea4bfbaf6fd7e0fec8ec0194
[ "Apache-2.0" ]
null
null
null
Tests/test_number.py
Xen0byte/ironpython3
2e5bb6025d01ab52ea4bfbaf6fd7e0fec8ec0194
[ "Apache-2.0" ]
null
null
null
Tests/test_number.py
Xen0byte/ironpython3
2e5bb6025d01ab52ea4bfbaf6fd7e0fec8ec0194
[ "Apache-2.0" ]
null
null
null
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. import sys import unittest from iptest import IronPythonTestCase, is_cli, big, run_test, skipUnlessIronPython ...
75.921829
138
0.693411
b5d0ac4da90d385c057aaa53edd5e7f498390331
470
py
Python
app/request.py
aleki21/blogip
3a5e71b4b91dad3e0967d11b07a7cbfad26b664d
[ "MIT" ]
null
null
null
app/request.py
aleki21/blogip
3a5e71b4b91dad3e0967d11b07a7cbfad26b664d
[ "MIT" ]
null
null
null
app/request.py
aleki21/blogip
3a5e71b4b91dad3e0967d11b07a7cbfad26b664d
[ "MIT" ]
null
null
null
import urllib.request, json QUOTE_API = 'http://quotes.stormconsultancy.co.uk/random.json' def get_quotes(): with urllib.request.urlopen(QUOTE_API) as url: get_quotes_data = url.read() get_quotes_response = json.loads(get_quotes_data) quotes_dict = {} if get_quotes_response: ...
27.647059
66
0.678723
b5556d62c40085a5b7a12340e5d54f5ba47d0044
5,764
py
Python
VL-T5/src/adapters/adapter_modeling.py
ylsung/VL_adapter
287409f383f89a11764fc45806864693a4d3e498
[ "MIT" ]
41
2021-12-14T02:50:16.000Z
2022-03-30T07:41:19.000Z
VL-T5/src/adapters/adapter_modeling.py
ylsung/VL_adapter
287409f383f89a11764fc45806864693a4d3e498
[ "MIT" ]
1
2022-01-07T03:31:47.000Z
2022-03-25T00:31:53.000Z
VL-T5/src/adapters/adapter_modeling.py
ylsung/VL_adapter
287409f383f89a11764fc45806864693a4d3e498
[ "MIT" ]
2
2021-12-14T03:10:18.000Z
2022-03-29T04:59:23.000Z
"""Implements an Adapter, Low-rank adapters and Hyper-adapter Layers.""" import torch.nn as nn from .adapter_utils import Activations from .hypercomplex.layers import PHMLinear from .low_rank_layer import LowRankLinear class LowRankAdapter(nn.Module): """This is the low-rank adapter, in which each adapter is com...
43.666667
96
0.577897
6166049db9647174a1e85de9003d454bfd4c1928
964
py
Python
envs/setup.py
a-akram/ctd2022
70b59c90e060b9f40f12754e596617154a3230d9
[ "MIT" ]
null
null
null
envs/setup.py
a-akram/ctd2022
70b59c90e060b9f40f12754e596617154a3230d9
[ "MIT" ]
null
null
null
envs/setup.py
a-akram/ctd2022
70b59c90e060b9f40f12754e596617154a3230d9
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() dependencies = [ "decorator", "memory_profiler", "traintrack", "trackml@ https://github.com/LAL/trackml-library/tarball/master#egg=trackml-3", ] setup( n...
26.777778
104
0.655602
bf017e44f410febdc897a4de0a2d6f095643a3aa
34,055
py
Python
tests/unit/test_fileio.py
cojenco/python-storage
79b669bbede1cd4f06f1d697b71c7f9f2442fb80
[ "Apache-2.0" ]
null
null
null
tests/unit/test_fileio.py
cojenco/python-storage
79b669bbede1cd4f06f1d697b71c7f9f2442fb80
[ "Apache-2.0" ]
null
null
null
tests/unit/test_fileio.py
cojenco/python-storage
79b669bbede1cd4f06f1d697b71c7f9f2442fb80
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
37.713178
141
0.652386
c4936bc25fb30510e7bbab77dcf691f008e5c954
1,666
py
Python
pachong.py
yetote/PythonTest
2b987f706c7d8cc7e94003051801c652cec5318a
[ "Apache-2.0" ]
null
null
null
pachong.py
yetote/PythonTest
2b987f706c7d8cc7e94003051801c652cec5318a
[ "Apache-2.0" ]
null
null
null
pachong.py
yetote/PythonTest
2b987f706c7d8cc7e94003051801c652cec5318a
[ "Apache-2.0" ]
null
null
null
import re import requests from lxml import etree def urlChange(url, page_num): page_group = [] page_group.append('http://www.bytravel.cn/view/index109_list.html') now_page = int(re.search(('_list(\d+)'), url, re.S).group(1)) for i in range(now_page, page_num): link = re.sub('_list\d+...
29.75
75
0.57443
3a2aacabd19f36ed56fdb6919b3782719b52b8b5
1,980
py
Python
pychron/data_mapper/import_spec.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/data_mapper/import_spec.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/data_mapper/import_spec.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2016 Jake Ross # # 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...
20
81
0.554545
463fcd408b18bb0854968967d1abef9f0eef049e
3,280
py
Python
examples/examples.py
DisruptiveLabs/balanced-python
dbabd8a1c8cd0728d322f6f1caa08891d590e0a1
[ "MIT" ]
12
2015-04-12T06:18:33.000Z
2021-03-03T23:54:19.000Z
examples/examples.py
DisruptiveLabs/balanced-python
dbabd8a1c8cd0728d322f6f1caa08891d590e0a1
[ "MIT" ]
1
2021-11-24T20:10:19.000Z
2021-11-24T20:10:19.000Z
examples/examples.py
DisruptiveLabs/balanced-python
dbabd8a1c8cd0728d322f6f1caa08891d590e0a1
[ "MIT" ]
14
2015-03-23T17:52:06.000Z
2021-11-24T11:04:15.000Z
from __future__ import unicode_literals import balanced print "create our new api key" api_key = balanced.APIKey().save() print "Our secret is: ", api_key.secret print "configure with our secret " + api_key.secret balanced.configure(api_key.secret) print "create our marketplace" marketplace = balanced.Marketplace(...
29.285714
79
0.730793
33e967c1c6370852d0c96bbc10e853bc8d73ba0e
536
py
Python
users/urls.py
Celoka/flight_booking_system
17d0fb0f4cf4b039cc05d814e881b5f31366c538
[ "MIT" ]
3
2019-03-15T00:25:04.000Z
2019-04-12T14:06:01.000Z
users/urls.py
Celoka/flight_booking_system
17d0fb0f4cf4b039cc05d814e881b5f31366c538
[ "MIT" ]
9
2020-02-11T23:44:44.000Z
2022-03-11T23:41:14.000Z
users/urls.py
Celoka/flight-booking-system
17d0fb0f4cf4b039cc05d814e881b5f31366c538
[ "MIT" ]
1
2021-02-10T14:56:00.000Z
2021-02-10T14:56:00.000Z
from django.urls import path from .views import (RegisterUserView, LoginView, ImageUploadViewSet, index) urlpatterns = [ path('', index, name="home-route"), path('auth/register/', RegisterUserView.as_view(), name="auth-register"), path('auth/log...
38.285714
90
0.623134
8bdf5446d6ba6b6534e256ec5bdea48d01fab34d
3,070
py
Python
interacting_with_regulondb.py
ASintsova/lab-notebook
f177738c4550d05e9e43ed3da637b51ea4a1fb35
[ "MIT" ]
null
null
null
interacting_with_regulondb.py
ASintsova/lab-notebook
f177738c4550d05e9e43ed3da637b51ea4a1fb35
[ "MIT" ]
null
null
null
interacting_with_regulondb.py
ASintsova/lab-notebook
f177738c4550d05e9e43ed3da637b51ea4a1fb35
[ "MIT" ]
null
null
null
import sqlite3 import pandas as pd import os import sys sys.path.append('/Users/annasintsova/git_repos/HUTI-RNAseq/analysis/methods') import helpers def get_all_regulators(db): """Returns a list of regulators""" conn = sqlite3.connect(db) cur = conn.cursor() cur.execute("SELECT transcription_factor_id...
31.979167
102
0.646906
50f09ce6a9dfe3581fd9e2b71d9c557ca2993e1f
3,385
py
Python
python3/koans/about_deleting_objects.py
Bege13mot/python_koans_solution
a679e685ef3bbc1c0ec29064d5eb6564c98b979e
[ "MIT" ]
1
2017-05-21T11:45:30.000Z
2017-05-21T11:45:30.000Z
python3/koans/about_deleting_objects.py
bege13mot/python_koans_solution
a679e685ef3bbc1c0ec29064d5eb6564c98b979e
[ "MIT" ]
null
null
null
python3/koans/about_deleting_objects.py
bege13mot/python_koans_solution
a679e685ef3bbc1c0ec29064d5eb6564c98b979e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutDeletingObjects(Koan): def test_del_can_remove_slices(self): lottery_nums = [4, 8, 15, 16, 23, 42] del lottery_nums[1] del lottery_nums[2:4] self.assertEqual([4, 15, 42], lottery_nums) def test...
27.08
74
0.54062
27d52aad4fe733f971a9e76559eb46bd762949be
1,145
py
Python
Python27/ExcelUtil.py
smujm/MyProjects
057da8137ffc0eff0b8d94e4f45494961d523385
[ "MIT" ]
1
2020-08-25T10:46:44.000Z
2020-08-25T10:46:44.000Z
Python27/ExcelUtil.py
smujm/MyProjects
057da8137ffc0eff0b8d94e4f45494961d523385
[ "MIT" ]
null
null
null
Python27/ExcelUtil.py
smujm/MyProjects
057da8137ffc0eff0b8d94e4f45494961d523385
[ "MIT" ]
1
2021-12-15T09:59:46.000Z
2021-12-15T09:59:46.000Z
import xlwt import sys reload(sys) sys.setdefaultencoding('utf-8') ''' 这里是操作excel的工具类,以后也可以直接复用 方法调用SpiderUtils.create_excel(...) ''' class ExcelUtils(object): @staticmethod def create_excel(sheet_name, row_titles): ''' 创建excel文件与sheet表,并创建他们的第一行标题 :param sheet_name: excel中sheet_n...
24.361702
70
0.630568
1adfc03246cfc78791ce17c8ef2496423cda9652
626
py
Python
blog/models.py
PocketsOfAir/django-girls-tutorial
c39bab2c97935872fb5a8017b584ed781dcf6cdc
[ "MIT" ]
null
null
null
blog/models.py
PocketsOfAir/django-girls-tutorial
c39bab2c97935872fb5a8017b584ed781dcf6cdc
[ "MIT" ]
null
null
null
blog/models.py
PocketsOfAir/django-girls-tutorial
c39bab2c97935872fb5a8017b584ed781dcf6cdc
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone class Post(models.Model): author = models.ForeignKey('auth.User') title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField(default=timezone.now) published_date = models.DateTimeField(blank=...
28.454545
80
0.666134
574f219a79474a92990540e463db929b95047711
22,193
py
Python
freezer_api/storage/elastic.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
freezer_api/storage/elastic.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
freezer_api/storage/elastic.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Hewlett-Packard 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, softwar...
40.20471
79
0.590907
11c485d983cbd4ac979681cd348f4bf8705b8b3d
944
py
Python
day06/part2/orbits.py
FernandoBuenoLima/advent-of-code-2019
33acbcf541f00682856b9dcfc54155bdad07d1ae
[ "Unlicense" ]
null
null
null
day06/part2/orbits.py
FernandoBuenoLima/advent-of-code-2019
33acbcf541f00682856b9dcfc54155bdad07d1ae
[ "Unlicense" ]
null
null
null
day06/part2/orbits.py
FernandoBuenoLima/advent-of-code-2019
33acbcf541f00682856b9dcfc54155bdad07d1ae
[ "Unlicense" ]
null
null
null
from tree import * def pathfind(origin, target): path = [origin] return doPathfindRecursive(path, target) def doPathfindRecursive(path, target): current = path[-1] if current == target: return len(path)-1 nodes = [] for node in current.children: if node not in path: ...
20.977778
50
0.603814
b1254341ad1fe65722bc75976d4a7c25bad27bc1
417
py
Python
ResidenciAppServidor/wsgi.py
ResidenciApp/ResidenciAppServidor
7cc8c66bc07d198be37232fdc74d64227d14ce3d
[ "MIT" ]
2
2019-10-31T03:21:07.000Z
2019-12-11T16:25:33.000Z
ResidenciAppServidor/wsgi.py
ResidenciApp/ResidenciAppServidor
7cc8c66bc07d198be37232fdc74d64227d14ce3d
[ "MIT" ]
6
2021-03-19T02:43:26.000Z
2022-02-10T10:42:00.000Z
ResidenciAppServidor/wsgi.py
lmbaeza/ResidenciAppServidor
7cc8c66bc07d198be37232fdc74d64227d14ce3d
[ "MIT" ]
null
null
null
""" WSGI config for ResidenciAppServidor 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault(...
24.529412
80
0.798561
4ad2c19ecd2d9be68519abd42ba8d88043792a0c
2,673
py
Python
OnToology/mock/__init__.py
runzbuzz/auton
d30a15d8573321f78831cf1456ef51e735772381
[ "Apache-2.0" ]
54
2015-05-20T16:12:12.000Z
2022-03-28T10:48:06.000Z
OnToology/mock/__init__.py
runzbuzz/auton
d30a15d8573321f78831cf1456ef51e735772381
[ "Apache-2.0" ]
360
2015-05-14T00:14:01.000Z
2022-03-24T16:05:53.000Z
OnToology/mock/__init__.py
runzbuzz/auton
d30a15d8573321f78831cf1456ef51e735772381
[ "Apache-2.0" ]
18
2015-07-08T10:58:02.000Z
2022-03-24T12:25:50.000Z
from .commit import * from .fork import * from .org import * from .pull import * from .repo import * from .tree import * from .user import * from .milestone import * user = "ahmad88me" repo_name = "ontoology-auto-test-no-res" repo_name_with_res = "ontoology-auto-test-with-res" repo = user + "/" + repo_name repo_with_...
24.981308
122
0.479237
d73950f8604bd848018e63f064a7ec004ce5dd66
4,777
py
Python
Lib/site-packages/django/contrib/gis/gdal/datasource.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
123
2015-01-15T06:56:45.000Z
2022-03-19T22:18:55.000Z
Lib/site-packages/django/contrib/gis/gdal/datasource.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
21
2015-03-25T18:00:33.000Z
2019-08-12T17:11:10.000Z
Lib/site-packages/django/contrib/gis/gdal/datasource.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
72
2015-01-14T16:29:47.000Z
2021-10-09T16:31:47.000Z
""" DataSource is a wrapper for the OGR Data Source object, which provides an interface for reading vector geometry data from many different file formats (including ESRI shapefiles). When instantiating a DataSource object, use the filename of a GDAL-supported data source. For example, a SHP file or a TIGER/Line...
36.746154
92
0.637639
ff4767b0dbcef30d212db3f38884dfb67bfd9ace
953
py
Python
Python_ch4/Ch4_5_Sentinels.py
ninhnguyen01/Python_Book
e5e372f1895b06e908cd0dd07dc68a260c34d7ad
[ "Apache-2.0" ]
null
null
null
Python_ch4/Ch4_5_Sentinels.py
ninhnguyen01/Python_Book
e5e372f1895b06e908cd0dd07dc68a260c34d7ad
[ "Apache-2.0" ]
null
null
null
Python_ch4/Ch4_5_Sentinels.py
ninhnguyen01/Python_Book
e5e372f1895b06e908cd0dd07dc68a260c34d7ad
[ "Apache-2.0" ]
null
null
null
# Sentinels (Title) # Reading # This program displays property taxes. TAX_FACTOR = 0.0065 # Get the first lot number. print('Enter the property lot number or enter 0 to end.') lot = int(input('Lot number: ')) # Continue processsing as long as the user does not enter lot number # 0. while lot != 0: # Get the...
19.44898
69
0.650577
609a681d2e6a78ad2de7ecca45fcb7f868689aa3
40,842
py
Python
pytorch_lightning/utilities/cli.py
VedPatwardhan/pytorch-lightning
623dc974f56505cfdb6a7c62ad75780229e101de
[ "Apache-2.0" ]
2
2022-01-24T12:40:51.000Z
2022-01-25T02:26:32.000Z
pytorch_lightning/utilities/cli.py
VedPatwardhan/pytorch-lightning
623dc974f56505cfdb6a7c62ad75780229e101de
[ "Apache-2.0" ]
1
2021-09-20T00:24:38.000Z
2021-09-20T00:24:38.000Z
pytorch_lightning/utilities/cli.py
VedPatwardhan/pytorch-lightning
623dc974f56505cfdb6a7c62ad75780229e101de
[ "Apache-2.0" ]
2
2022-02-11T08:26:13.000Z
2022-03-21T03:48:34.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
46.729977
120
0.650825
0c38aa566eb888aa5c27830c3785593d1f14d406
699
py
Python
Visualization/us_counties.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
Visualization/us_counties.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
Visualization/us_counties.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map dataset = ee.FeatureCollection('TIGER/2018/Counties') visParams = { 'palette': ['purple', 'blue', 'green', 'yellow', 'orange', 'red'], 'min': 0, 'max': 50, 'opacity': 0.8, } # Turn the strings into numbers dataset = dataset.map(lambda f: f.set('STATEFP', ee.Number.parse(f...
27.96
84
0.668097
c36ea07e41d4d16b6fe239c9707805d1c68ad5da
2,923
py
Python
apps/browser/firefox.py
AndreasArvidsson/andreas-talon
240218a385e450188a28f628af48d53d56d091d5
[ "MIT" ]
11
2021-08-22T19:41:23.000Z
2022-02-24T11:39:42.000Z
apps/browser/firefox.py
AndreasArvidsson/talon-user
c8945d94a8c3c53083b2f75b9e585500d9ae8845
[ "MIT" ]
null
null
null
apps/browser/firefox.py
AndreasArvidsson/talon-user
c8945d94a8c3c53083b2f75b9e585500d9ae8845
[ "MIT" ]
2
2022-01-28T04:59:31.000Z
2022-03-04T21:28:59.000Z
from talon import Module, Context, actions, app key = actions.key ctx = Context() mod = Module() apps = mod.apps apps.firefox = "app.name: Firefox" apps.firefox = "app.name: firefox" apps.firefox = """ os: windows and app.name: Firefox os: windows and app.exe: firefox.exe """ apps.firefox = """ os: mac and app.bundle:...
26.098214
56
0.571331
743bff7eb823fe626dfca8d7a42af91dbe16ff58
1,719
py
Python
16.Clustering/16.5.MeanShift.py
radiumweilei/chinahadoop-ml-2
ea886610a6ccb278afeff759bf2dc8a30ef3f275
[ "Apache-2.0" ]
null
null
null
16.Clustering/16.5.MeanShift.py
radiumweilei/chinahadoop-ml-2
ea886610a6ccb278afeff759bf2dc8a30ef3f275
[ "Apache-2.0" ]
null
null
null
16.Clustering/16.5.MeanShift.py
radiumweilei/chinahadoop-ml-2
ea886610a6ccb278afeff759bf2dc8a30ef3f275
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/python # -*- coding:utf-8 -*- import numpy as np import matplotlib.pyplot as plt import sklearn.datasets as ds import matplotlib.colors from sklearn.cluster import MeanShift from sklearn.metrics import euclidean_distances if __name__ == "__main__": N = 1000 centers = [[1, 2], [-1, -1], [1, -1], [-...
36.574468
112
0.612565
244aa0243d6eb61686a159c057d8e7a049106a40
514
py
Python
bin/sample_sparkline.py
aayoubi/spyklines
23969d4ceabeeb661cbcc607547c8ca964412f86
[ "MIT" ]
2
2019-11-06T12:11:43.000Z
2020-07-23T09:30:47.000Z
bin/sample_sparkline.py
aayoubi/spyklines
23969d4ceabeeb661cbcc607547c8ca964412f86
[ "MIT" ]
1
2020-07-22T16:45:25.000Z
2020-07-22T16:45:25.000Z
bin/sample_sparkline.py
aayoubi/spyklines
23969d4ceabeeb661cbcc607547c8ca964412f86
[ "MIT" ]
3
2020-02-22T13:10:22.000Z
2021-02-15T17:36:14.000Z
import matplotlib.pyplot as plt import numpy as np from spyklines import SparkLine, TrendLine if __name__ == '__main__': number_of_plots = 10 plt.figure(figsize=(6, 4)) for i in range(1, number_of_plots + 1): ax = plt.subplot(number_of_plots, 1, i) values = np.random.randint(100, 500, siz...
28.555556
58
0.642023
93f342036f8c102a6cf7d2898ff9c9990a8e55b5
11,764
py
Python
intersight/model/iaas_most_run_tasks_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/iaas_most_run_tasks_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/iaas_most_run_tasks_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
47.056
1,678
0.637538
00ff6334d937372140f4f72b15e1494034bddd11
7,142
py
Python
apps/trade/src/CrossTrader.py
kikei/btc-bot-ai
cb118fa1809ebef472a2025be697c9050e948009
[ "Apache-2.0" ]
1
2020-02-02T13:53:21.000Z
2020-02-02T13:53:21.000Z
apps/trade/src/CrossTrader.py
kikei/btc-bot-ai
cb118fa1809ebef472a2025be697c9050e948009
[ "Apache-2.0" ]
null
null
null
apps/trade/src/CrossTrader.py
kikei/btc-bot-ai
cb118fa1809ebef472a2025be697c9050e948009
[ "Apache-2.0" ]
null
null
null
import os import sys import concurrent.futures CWD = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(CWD, '..', 'config')) from Markets import Markets import market.MarketConstants as Const from classes import Tick def get_executor(): executor = concurrent.futures.ThreadPoolExecutor(max_wor...
30.262712
77
0.58541
a9758c8f089c11fde5b4a0bc128205770cbc7fb9
3,874
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/application_gateway_request_routing_rule_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/application_gateway_request_routing_rule_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/application_gateway_request_routing_rule_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.037975
275
0.680692
0d9cfbed35d44d3a806b92669b29e4b9b41b2265
2,257
py
Python
third_party/gsutil/gslib/addlhelp/anon.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
third_party/gsutil/gslib/addlhelp/anon.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
third_party/gsutil/gslib/addlhelp/anon.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# -*- coding: utf-8 -*- # Copyright 2012 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 # # Unless require...
37.616667
79
0.770049
5c67e76d41cdd04a6e138c3d14a43cb22e88bc84
926
py
Python
content/charts/amdahl-efficiency.py
ENCCS/veloxchem-hpc
548c68f90816f4774a7ed9d5c18b1a1afb98f1bf
[ "CC-BY-4.0" ]
null
null
null
content/charts/amdahl-efficiency.py
ENCCS/veloxchem-hpc
548c68f90816f4774a7ed9d5c18b1a1afb98f1bf
[ "CC-BY-4.0" ]
3
2022-02-28T14:49:31.000Z
2022-03-03T10:04:08.000Z
content/charts/amdahl-efficiency.py
ENCCS/veloxchem-hpc
548c68f90816f4774a7ed9d5c18b1a1afb98f1bf
[ "CC-BY-4.0" ]
3
2022-02-17T01:18:05.000Z
2022-03-05T11:59:10.000Z
#!/usr/bin/env python3 import numpy as np import plotly.graph_objects as go serial_fraction = [0.001, 0.01, 0.1, 0.3, 0.5] workers = np.around(np.geomspace(1, 2048, num=12)).astype(int) fig = go.Figure() for i, f in enumerate(serial_fraction): efficiency = 1 / np.multiply(workers, (f + (1 - f) / workers)) fig...
26.457143
66
0.605832
910040b14ea98f39ea41cdabfcfbc58fcdf0c978
1,772
py
Python
stellar/rooms.py
wg4568/PyStellarEngine
feec17fa5795fe2aa131bdf9d36b4b5b4f1a2601
[ "MIT" ]
2
2017-05-02T01:18:06.000Z
2017-05-02T10:33:48.000Z
stellar/rooms.py
wg4568/PyStellarEngine
feec17fa5795fe2aa131bdf9d36b4b5b4f1a2601
[ "MIT" ]
null
null
null
stellar/rooms.py
wg4568/PyStellarEngine
feec17fa5795fe2aa131bdf9d36b4b5b4f1a2601
[ "MIT" ]
null
null
null
class Room: def __init__(self): self.game = None self.background = (0, 0, 0) self.all_objects = [] self.objects = [] self.fixtures = [] self.active = False self.size = None def game_link(self, game): self.game = game self.size = self.game.size def add_object(self, obj): obj.room_link(self) se...
18.652632
74
0.692438
bd87f03baffa50bd99d559ddd3e1c68341b3c234
10,709
py
Python
scripts/validate.py
risseraka/english-wordnet
72c8fbcd616937b8bdba3340899bf234eaed77c0
[ "CC-BY-4.0" ]
null
null
null
scripts/validate.py
risseraka/english-wordnet
72c8fbcd616937b8bdba3340899bf234eaed77c0
[ "CC-BY-4.0" ]
null
null
null
scripts/validate.py
risseraka/english-wordnet
72c8fbcd616937b8bdba3340899bf234eaed77c0
[ "CC-BY-4.0" ]
null
null
null
from wordnet import * import re import sys import glob import sense_keys def check_symmetry(wn, fix): errors = [] for synset in wn.synsets: for rel in synset.synset_relations: if rel.rel_type in inverse_synset_rels: synset2 = wn.synset_by_id(rel.target) if no...
40.411321
176
0.53964
e7534867323d0a3ae75145b105bff28d83b54d8c
1,549
py
Python
se/commands/prepare_release.py
jggimi/tools
b4aa35f986b22ab1b92dae1e0bfad9c4d94b6cf7
[ "CC0-1.0" ]
null
null
null
se/commands/prepare_release.py
jggimi/tools
b4aa35f986b22ab1b92dae1e0bfad9c4d94b6cf7
[ "CC0-1.0" ]
null
null
null
se/commands/prepare_release.py
jggimi/tools
b4aa35f986b22ab1b92dae1e0bfad9c4d94b6cf7
[ "CC0-1.0" ]
null
null
null
""" This module implements the `se prepare_release` command. """ import argparse from pathlib import Path import se from se.se_epub import SeEpub def prepare_release() -> int: """ Entry point for `se prepare-release` """ parser = argparse.ArgumentParser(description="Calculate work word count, insert release da...
27.660714
157
0.704971
6bc893d129511ba0641153780336f25efb184b52
2,140
py
Python
tpDcc/libs/unittests/dccs/maya/result.py
tpDcc/tpDcc-libs-unittest
8897c8feb45b2d474495af8f0370c6c504959873
[ "MIT" ]
null
null
null
tpDcc/libs/unittests/dccs/maya/result.py
tpDcc/tpDcc-libs-unittest
8897c8feb45b2d474495af8f0370c6c504959873
[ "MIT" ]
null
null
null
tpDcc/libs/unittests/dccs/maya/result.py
tpDcc/tpDcc-libs-unittest
8897c8feb45b2d474495af8f0370c6c504959873
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains tpDcc-libs-unittest unit test Maya result class """ from __future__ import print_function, division, absolute_import import os import shutil import logging import maya.cmds from tpDcc.libs.unittests.core import settings, result from tpDcc.libs...
30.140845
116
0.674299
9adcf7d74bd677a580d9a5ecd94ce95e4efef084
8,941
py
Python
test/test_dataset.py
alexandrugavril/habitat-api
95106a965355e024dc7ebd109519799a64530660
[ "MIT" ]
null
null
null
test/test_dataset.py
alexandrugavril/habitat-api
95106a965355e024dc7ebd109519799a64530660
[ "MIT" ]
null
null
null
test/test_dataset.py
alexandrugavril/habitat-api
95106a965355e024dc7ebd109519799a64530660
[ "MIT" ]
null
null
null
#!/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 itertools import groupby, islice import pytest from habitat.core.dataset import Dataset, Episode def _construct...
33.867424
79
0.676546
b97548f3857ba8edccb8632a1d7d76b2e47ac195
1,449
py
Python
networks/modular_downscaling_model/input_modules/InputModule.py
khoehlein/CNNs-for-Wind-Field-Downscaling
eb8418d4d893fcb2beb929abb241281b7a9b6a95
[ "MIT" ]
5
2021-05-05T06:08:52.000Z
2022-03-24T04:57:52.000Z
networks/modular_downscaling_model/input_modules/InputModule.py
khoehlein/CNNs-for-Wind-Field-Downscaling
eb8418d4d893fcb2beb929abb241281b7a9b6a95
[ "MIT" ]
null
null
null
networks/modular_downscaling_model/input_modules/InputModule.py
khoehlein/CNNs-for-Wind-Field-Downscaling
eb8418d4d893fcb2beb929abb241281b7a9b6a95
[ "MIT" ]
2
2021-08-07T05:18:05.000Z
2022-03-31T03:48:37.000Z
import torch import torch.nn as nn class InputModule(nn.Module): def __init__(self, module_lr, module_hr=None, module_combined=None): super(InputModule, self).__init__() output_channels = self._verify_compatibility(module_lr, module_hr, module_combined) self.module_lr = module_lr s...
41.4
91
0.693582
271adf1d45c9c87358e977fcb7ef04f9d7e3b5d5
701
py
Python
dataset/models/tf/layers/__init__.py
mikhailkin/dataset
7417483fdbe2e3743af4d614cb9036fd5b1375c0
[ "Apache-2.0" ]
null
null
null
dataset/models/tf/layers/__init__.py
mikhailkin/dataset
7417483fdbe2e3743af4d614cb9036fd5b1375c0
[ "Apache-2.0" ]
null
null
null
dataset/models/tf/layers/__init__.py
mikhailkin/dataset
7417483fdbe2e3743af4d614cb9036fd5b1375c0
[ "Apache-2.0" ]
null
null
null
""" Custom tf layers and operations """ import numpy as np import tensorflow as tf from .core import flatten, flatten2d, maxout, mip, xip, alpha_dropout from .conv_block import conv_block, upsample from .conv import conv1d_transpose, conv1d_transpose_nn, conv_transpose, separable_conv, separable_conv_transpose from .p...
50.071429
113
0.7903
d502d78b2a3b2674d683c381495172e6dfa7e6fa
12,255
py
Python
lib/improver/utilities/solar.py
TomekTrzeciak/improver
74b7bc0d194c30ea7af426d153e5047ccb67f60c
[ "BSD-3-Clause" ]
null
null
null
lib/improver/utilities/solar.py
TomekTrzeciak/improver
74b7bc0d194c30ea7af426d153e5047ccb67f60c
[ "BSD-3-Clause" ]
null
null
null
lib/improver/utilities/solar.py
TomekTrzeciak/improver
74b7bc0d194c30ea7af426d153e5047ccb67f60c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2019 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
39.660194
79
0.624806
ec75db9ddbb87cfe7c065a95cd2fab10ea0106cd
90
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/codestar/__init__.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/codestar/__init__.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/codestar/__init__.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from boto3_type_annotations.codestar.client import Client __all__ = ( 'Client' )
15
57
0.722222
896999f944912a2506b1d30f41698197db819cbc
4,155
py
Python
dateparser/data/date_translation_data/mk.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/mk.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/mk.py
Rodp63/dateparser
938a9573234679b603210bd47cc93eb258b1f1df
[ "BSD-3-Clause" ]
null
null
null
info = { "name": "mk", "date_order": "DMY", "january": [ "јан", "јануари" ], "february": [ "фев", "февруари" ], "march": [ "мар", "март" ], "april": [ "апр", "април" ], "may": [ "мај" ], "june": [...
17.680851
34
0.272924
b4e565d39038b531292f95fd4096bda7b69a8492
14,329
py
Python
brian2/core/base.py
Kyzarok/SNNProject
14b555e221dbdd5100cb4f6333e49030423462ea
[ "BSD-2-Clause" ]
2
2020-03-20T13:30:19.000Z
2020-03-20T13:30:57.000Z
brian2/core/base.py
Kyzarok/SNNProject
14b555e221dbdd5100cb4f6333e49030423462ea
[ "BSD-2-Clause" ]
null
null
null
brian2/core/base.py
Kyzarok/SNNProject
14b555e221dbdd5100cb4f6333e49030423462ea
[ "BSD-2-Clause" ]
null
null
null
''' All Brian objects should derive from `BrianObject`. ''' import weakref import traceback import os import sys from brian2.utils.logger import get_logger from brian2.core.names import Nameable from brian2.units.allunits import second from brian2.units.fundamentalunits import check_units __all__ = ['BrianObject', ...
40.36338
109
0.592226
6a2918be84bf52e5d0f44175cadf2a300aceb11c
3,529
py
Python
mltoolkit/mldp/tests/transformers/test_vocab_mapper.py
stungkit/Copycat-abstractive-opinion-summarizer
04fe5393a7bb6883516766b762f6a0c530e95375
[ "MIT" ]
51
2020-09-25T07:05:01.000Z
2022-03-17T12:07:40.000Z
mltoolkit/mldp/tests/transformers/test_vocab_mapper.py
stungkit/Copycat-abstractive-opinion-summarizer
04fe5393a7bb6883516766b762f6a0c530e95375
[ "MIT" ]
4
2020-10-19T10:00:22.000Z
2022-03-14T17:02:47.000Z
mltoolkit/mldp/tests/transformers/test_vocab_mapper.py
stungkit/Copycat-abstractive-opinion-summarizer
04fe5393a7bb6883516766b762f6a0c530e95375
[ "MIT" ]
22
2020-09-22T01:06:47.000Z
2022-01-26T14:20:09.000Z
import unittest from mltoolkit.mldp.tests.common import read_data_from_csv_file from mltoolkit.mldp.utils.tools import Vocabulary, DataChunk from mltoolkit.mldp.steps.transformers.nlp import VocabMapper from mltoolkit.mldp.steps.readers import CsvReader import copy import numpy as np class TestVocabMapper(unittest.Te...
35.29
80
0.606687
a305707db76815514a4ae1891fbee441894578e0
650
py
Python
Aula18/ex08.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula18/ex08.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula18/ex08.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
from random import randint from time import sleep lista = list() jogos = list() print('-'*30) print(f'{"JOGA NA MEGA SENA":^30}') print('-'*30) quant = int(input('Quantos jogos você quer que eu sortei? ')) tot = 1 while tot <= quant: cont = 0 while True: num = randint(1, 60) if num not in lista:...
24.074074
61
0.54
5a24594ac470c6c102cca9da652bd195bf6d97c7
342
py
Python
src/data/migrations/0004_auto_20210220_2304.py
oreoluwa/stocksight
764167ae88904f04cea0b01161e2c17da3951355
[ "Apache-2.0" ]
null
null
null
src/data/migrations/0004_auto_20210220_2304.py
oreoluwa/stocksight
764167ae88904f04cea0b01161e2c17da3951355
[ "Apache-2.0" ]
null
null
null
src/data/migrations/0004_auto_20210220_2304.py
oreoluwa/stocksight
764167ae88904f04cea0b01161e2c17da3951355
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-20 23:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('data', '0003_auto_20210220_2251'), ] operations = [ migrations.RenameModel( old_name='ArticleAuthors', new_name='ArticleAuth...
19
47
0.608187
c6da5ac62cc1e025e6675ef5710a8b1a8d22c09a
2,842
py
Python
test/functional/interface_rpc.py
bitcoin-global/bitcoin-global
8f8783245ec209ba1ae4b2c0717f9d8f2d5658ea
[ "MIT" ]
3
2020-09-23T23:55:28.000Z
2021-07-10T03:21:46.000Z
test/functional/interface_rpc.py
Penny-Admixture/bitcoin-global
8f8783245ec209ba1ae4b2c0717f9d8f2d5658ea
[ "MIT" ]
2
2020-07-28T08:55:30.000Z
2021-04-22T10:57:10.000Z
test/functional/interface_rpc.py
Penny-Admixture/bitcoin-global
8f8783245ec209ba1ae4b2c0717f9d8f2d5658ea
[ "MIT" ]
1
2021-06-12T07:04:55.000Z
2021-06-12T07:04:55.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Copyright (c) 2020 The Bitcoin Global developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Tests some generic aspects of the RPC interface.""" ...
36.435897
98
0.662913
b46a4922398bbc6abb0808d485dbdcb7e69e82f9
9,338
py
Python
HW2-named-entity-recognition/code_share/utils.py
henniekim/named-entity-recognition
155fd6d50cc126082b4b90dea12037be273ce24c
[ "MIT" ]
null
null
null
HW2-named-entity-recognition/code_share/utils.py
henniekim/named-entity-recognition
155fd6d50cc126082b4b90dea12037be273ce24c
[ "MIT" ]
null
null
null
HW2-named-entity-recognition/code_share/utils.py
henniekim/named-entity-recognition
155fd6d50cc126082b4b90dea12037be273ce24c
[ "MIT" ]
null
null
null
import numpy as np import os # shared global variables to be imported from model also UNK = "$UNK$" NUM = "$NUM$" NONE = "O" class Config(): # general config dir_output = "results/test/" dir_model = dir_output + "model.weights/" path_log = dir_output + "log.txt" # embeddings dim_word = 50...
31.761905
94
0.575926
fc83545c3ba9868ecb3d3feb9d9f76704354913f
616
py
Python
test/unittests/test_NConc.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/unittests/test_NConc.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/unittests/test_NConc.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.Output.Loading import NConc class TestNConc(VariableUnitTest): def test_NConc(self): z = self.z np.testing.assert_array_almost_equal( NConc.NConc_f(z.NRur, z.NUrb, z.NitrConc, z.ManNitr, z.ManuredAreas, z.Firs...
41.066667
119
0.686688
b30b59bd56ab99999a71fbc517f1f030532b0d07
1,353
py
Python
improvement-prediction/recommend_datasets.py
VIDA-NYU/prida
cb2af13704506abc73d10f5c346ea21f70dd6e65
[ "BSD-3-Clause" ]
1
2021-06-12T02:03:54.000Z
2021-06-12T02:03:54.000Z
improvement-prediction/recommend_datasets.py
VIDA-NYU/prida
cb2af13704506abc73d10f5c346ea21f70dd6e65
[ "BSD-3-Clause" ]
null
null
null
improvement-prediction/recommend_datasets.py
VIDA-NYU/prida
cb2af13704506abc73d10f5c346ea21f70dd6e65
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import json import sys from recommender import * if __name__ == '__main__': """This script reads a training file with lines in the format features generated by generate_data_for_augmentation_learning_spark.py, learns how to predict relative gains with data augmentation, and ...
43.645161
116
0.707317
579840e139ea21f653294ebdd84baff90adf7d08
473
py
Python
Source_Pages/Upload.py
StephenJD/TnT.Cinley
1779ef282eeb6d7381f5a6361f14928202d57eb3
[ "MIT" ]
null
null
null
Source_Pages/Upload.py
StephenJD/TnT.Cinley
1779ef282eeb6d7381f5a6361f14928202d57eb3
[ "MIT" ]
null
null
null
Source_Pages/Upload.py
StephenJD/TnT.Cinley
1779ef282eeb6d7381f5a6361f14928202d57eb3
[ "MIT" ]
null
null
null
import subprocess from pathlib import Path def updateWebsite(webRootPath): ParmsAdd = ("add", ".") ParmsCommit = ("commit","-m", "Upload new content") ParmsPush = ("push", "origin", "master") Git = "git" subprocess.run([Git, *ParmsAdd], shell=False, cwd=webRootPath) subprocess.run([Git, *ParmsCommit], shel...
31.533333
67
0.710359
ff4a42a3394b591146a89061ecbea19fd9977dac
155
py
Python
chill/examples/chill/testcases/test_permute.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
5
2019-05-20T03:35:41.000Z
2021-09-16T22:22:13.000Z
chill/examples/chill/testcases/test_permute.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
chill/examples/chill/testcases/test_permute.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
from chill import * source('mm.c') procedure('mm') #format: rose loop(0) known('ambn > 0') known('an > 0') known('bm > 0') permute([3,2,1]) print_code()
11.923077
19
0.619355
30f9fa7a6050d03395602281f06a3da07c71dded
35
py
Python
python/testData/surround/SurroundNewline.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/surround/SurroundNewline.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/surround/SurroundNewline.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
<selection>a = 1 </selection> a = 2
11.666667
16
0.628571
e3c7e78fdd00ec7157fe4a82add968be8ba26df1
12,102
py
Python
train.py
nyLiao/GPT2-Chinese
18af9c9547320ed9f472951a33569729ec829f67
[ "MIT" ]
null
null
null
train.py
nyLiao/GPT2-Chinese
18af9c9547320ed9f472951a33569729ec829f67
[ "MIT" ]
null
null
null
train.py
nyLiao/GPT2-Chinese
18af9c9547320ed9f472951a33569729ec829f67
[ "MIT" ]
null
null
null
import transformers import torch import os import json import random import numpy as np import argparse # from torch.utils.tensorboard import SummaryWriter from datetime import datetime from tqdm import tqdm from torch.nn import DataParallel # from tokenizations.bpe_tokenizer import get_encoder def build_files(data_p...
47.833992
123
0.640307
bc54e69b8ce5534d5d45e11e71108a67c23daa00
1,197
py
Python
setup.py
naibo-code/nnabla_tensorboard
eea69bc18e912ba602a5c62ecaaf21a837764d16
[ "MIT" ]
null
null
null
setup.py
naibo-code/nnabla_tensorboard
eea69bc18e912ba602a5c62ecaaf21a837764d16
[ "MIT" ]
null
null
null
setup.py
naibo-code/nnabla_tensorboard
eea69bc18e912ba602a5c62ecaaf21a837764d16
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages version_git = '0.1' with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'numpy', 'protobuf >= 3.8.0', 'six', ] test_requirements = [ 'pytest', 'matplotlib', 'c...
24.9375
77
0.643275
dbb9d1b84f345b8ab53c8ea83110c1915713935c
208
py
Python
ccgowl/simulations/simulation.py
cmazzaanthony/ccgowl
31e12579449c296d7581c2838b5d7d7873361b48
[ "MIT" ]
8
2019-06-20T17:26:15.000Z
2020-08-26T04:19:22.000Z
ccgowl/simulations/simulation.py
cmazzaanthony/ccgowl
31e12579449c296d7581c2838b5d7d7873361b48
[ "MIT" ]
3
2021-03-25T22:42:42.000Z
2021-06-01T23:52:14.000Z
ccgowl/simulations/simulation.py
cmazzaanthony/ccgowl
31e12579449c296d7581c2838b5d7d7873361b48
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Simulation(ABC): @abstractmethod def run(self, *arg, **kwargs): pass @abstractmethod def plot_results(self, *arg, **kwargs): pass
16
43
0.629808
40db722767ef8ef35094b1a8122dde7ac921d120
6,796
py
Python
molecule/driver/delegated.py
micheelengronne/molecule
152be703d65606d6bdea7202bc5270ceb108c8ba
[ "MIT" ]
1
2019-05-14T13:03:34.000Z
2019-05-14T13:03:34.000Z
molecule/driver/delegated.py
micheelengronne/molecule
152be703d65606d6bdea7202bc5270ceb108c8ba
[ "MIT" ]
11
2019-05-16T17:10:49.000Z
2019-06-13T20:51:15.000Z
molecule/driver/delegated.py
micheelengronne/molecule
152be703d65606d6bdea7202bc5270ceb108c8ba
[ "MIT" ]
1
2021-04-26T19:47:39.000Z
2021-04-26T19:47:39.000Z
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # 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...
32.516746
79
0.623161
88ac93467503e354f5ac2b086117a04a164f76bd
3,439
py
Python
test/functional/mempool_persist.py
freelancedeveloper025/titaniumcore
7a629d0391d78527bad017ce0b8b02c964a26258
[ "MIT" ]
null
null
null
test/functional/mempool_persist.py
freelancedeveloper025/titaniumcore
7a629d0391d78527bad017ce0b8b02c964a26258
[ "MIT" ]
null
null
null
test/functional/mempool_persist.py
freelancedeveloper025/titaniumcore
7a629d0391d78527bad017ce0b8b02c964a26258
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 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 mempool persistence. By default, bitcoind will dump mempool on shutdown and then reload it on sta...
41.433735
127
0.698168
f66e0dc364fab2c111de4e9ab7b7330b95cabff6
10,701
py
Python
pyscf/grad/dhf.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
2
2021-06-30T22:33:35.000Z
2021-11-22T18:02:36.000Z
pyscf/grad/dhf.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/grad/dhf.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
36.274576
83
0.572563
7c0a50e081ff113d491e1d50233bcf6cb8cde7c4
1,659
py
Python
datafactory/models/dict.py
righ/datafactory
8299df4e29472381ccfe91535fdecf8e97a46d32
[ "Apache-2.0" ]
2
2015-07-09T08:49:32.000Z
2015-09-04T13:43:40.000Z
datafactory/models/dict.py
righ/datafactory
8299df4e29472381ccfe91535fdecf8e97a46d32
[ "Apache-2.0" ]
1
2020-06-06T13:12:39.000Z
2020-06-06T13:12:39.000Z
datafactory/models/dict.py
righ/datafactory
8299df4e29472381ccfe91535fdecf8e97a46d32
[ "Apache-2.0" ]
1
2020-11-06T08:11:51.000Z
2020-11-06T08:11:51.000Z
# coding: utf-8 from .base import BaseModel from ..api import render, special class DictModel(BaseModel, dict): """dict structure that is repeatedly drawn.""" __type = dict def __init__(self, params, callback=None): """define dict-structure model. :param dict params: elements. :...
30.163636
88
0.605184
43e19b2f12dff4e955c6e36e2051b994e821daaf
132
py
Python
tests/BaseTest.py
jsutch/webhook_as_a_service_demo
8c9d9f00b0dab04e0d2819d89007cf18fa8bd57f
[ "BSD-2-Clause" ]
null
null
null
tests/BaseTest.py
jsutch/webhook_as_a_service_demo
8c9d9f00b0dab04e0d2819d89007cf18fa8bd57f
[ "BSD-2-Clause" ]
null
null
null
tests/BaseTest.py
jsutch/webhook_as_a_service_demo
8c9d9f00b0dab04e0d2819d89007cf18fa8bd57f
[ "BSD-2-Clause" ]
null
null
null
import unittest from app import app class BaseTest(unittest.TestCase): def setUp(self): self.app = app.test_client()
14.666667
36
0.69697
dcfa611fc599f557d064ff8843fcd33d39388295
19,243
py
Python
django/analysis/tracer.py
kantai/passe-framework-prototype
51a441b689c54cfd57748129f77fde3c7a08e5c3
[ "BSD-3-Clause" ]
3
2016-07-06T16:34:38.000Z
2021-02-10T08:06:23.000Z
django/analysis/tracer.py
kantai/passe-framework-prototype
51a441b689c54cfd57748129f77fde3c7a08e5c3
[ "BSD-3-Clause" ]
null
null
null
django/analysis/tracer.py
kantai/passe-framework-prototype
51a441b689c54cfd57748129f77fde3c7a08e5c3
[ "BSD-3-Clause" ]
2
2020-06-22T20:55:48.000Z
2021-01-15T18:01:04.000Z
import sys, os, gc, inspect, dis, opcode from django.htoken import get_token from django.analysis import persisted #, taintmode import django.analysis.persisted as persisted from django.analysis.assertion import * _caller_cache = dict() NULL_STATE = 1 BEFORE_VIEW_STATE = 2 IN_VIEW_STATE = 3 ANALYSIS_RUNNING = False...
37.077071
265
0.601777
9bf6f98ce3066955f5491742cf5f5215544b0cdc
815
py
Python
tensorflow/tools/docker/jupyter_notebook_config.py
jylinman/tensorflow
5248d111c3aeaf9f560cd77bff0f183f38e31e0b
[ "Apache-2.0" ]
23
2016-02-04T21:08:43.000Z
2022-01-14T13:22:33.000Z
tensorflow/tools/docker/jupyter_notebook_config.py
jylinman/tensorflow
5248d111c3aeaf9f560cd77bff0f183f38e31e0b
[ "Apache-2.0" ]
2
2016-05-31T16:38:55.000Z
2018-12-30T20:17:05.000Z
tensorflow/tools/docker/jupyter_notebook_config.py
jylinman/tensorflow
5248d111c3aeaf9f560cd77bff0f183f38e31e0b
[ "Apache-2.0" ]
39
2016-03-25T05:13:09.000Z
2020-06-16T01:30:53.000Z
# Copyright 2015 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 # # Unless required by applicable law or a...
40.75
80
0.690798
92765ff94970c0ac85172eb056058d9f0bc34036
1,484
py
Python
var/spack/repos/builtin/packages/activeharmony/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/activeharmony/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/activeharmony/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Activeharmony(MakefilePackage): """Active Harmony: a framework for auto-tuning (the automa...
38.051282
146
0.694744
43951332d3637b548093958124735a45cb0edbc4
9,573
py
Python
src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py
Tobi-Alonso/finn
ea73d873e66414590f196dc71c398ba345301c24
[ "BSD-3-Clause" ]
null
null
null
src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py
Tobi-Alonso/finn
ea73d873e66414590f196dc71c398ba345301c24
[ "BSD-3-Clause" ]
null
null
null
src/finn/custom_op/fpgadataflow/streamingmaxpool_batch.py
Tobi-Alonso/finn
ea73d873e66414590f196dc71c398ba345301c24
[ "BSD-3-Clause" ]
1
2020-05-14T13:50:40.000Z
2020-05-14T13:50:40.000Z
# Copyright (c) 2020, Xilinx # 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 conditions and the follow...
39.073469
88
0.583307
a1327fbb1a2052550191ec5c2c3ab213e48e187d
4,248
py
Python
python/src/nnabla/utils/converter/tensorflow/common.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/utils/converter/tensorflow/common.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
python/src/nnabla/utils/converter/tensorflow/common.py
isabella232/nnabla
82a3c6fed382f889d1a4a429c696bb8cedf6ce79
[ "Apache-2.0" ]
null
null
null
# Copyright 2020,2021 Sony Corporation. # Copyright 2021 Sony Group 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 ...
33.714286
95
0.643832
a7b585ffb94e503a601d50fb296e98eb0656575c
41
py
Python
src/lib/formatter.py
DTenore/skulpt
098d20acfb088d6db85535132c324b7ac2f2d212
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
src/lib/formatter.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
src/lib/formatter.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import _sk_fail; _sk_fail._("formatter")
20.5
40
0.780488
c892c14afb903836e7c86e4701e0ff68258c111c
100
py
Python
tutorial/snippets/apps.py
usadamasa/drf-example
e72b8a4d78575c3b291ac1650b10ccd66fbbd046
[ "MIT" ]
null
null
null
tutorial/snippets/apps.py
usadamasa/drf-example
e72b8a4d78575c3b291ac1650b10ccd66fbbd046
[ "MIT" ]
null
null
null
tutorial/snippets/apps.py
usadamasa/drf-example
e72b8a4d78575c3b291ac1650b10ccd66fbbd046
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SnippetsConfig(AppConfig): name = 'tutorial.snippets'
16.666667
33
0.77
fdd7b85942f6283a7c89392e3900c34c57cd515d
366
py
Python
lecture_01/hw/task02.py
AlekseiAfanasev/epam_python_autumn_2020
7e954aca381e258ca8348db1770f391c1e2bce44
[ "MIT" ]
null
null
null
lecture_01/hw/task02.py
AlekseiAfanasev/epam_python_autumn_2020
7e954aca381e258ca8348db1770f391c1e2bce44
[ "MIT" ]
null
null
null
lecture_01/hw/task02.py
AlekseiAfanasev/epam_python_autumn_2020
7e954aca381e258ca8348db1770f391c1e2bce44
[ "MIT" ]
1
2022-01-02T11:47:29.000Z
2022-01-02T11:47:29.000Z
""" Given a cell with "it's a fib sequence" from slideshow, please write function "check_fib", which accepts a Sequence of integers, and returns if the given sequence is a Fibonacci sequence We guarantee, that the given sequence contain >= 0 integers inside. """ from collections import Sequence def check_fi...
26.142857
80
0.73224
144b383d806812a6b5766a7091783c957c604d26
2,840
py
Python
parlai/tasks/ms_marco/build.py
ysglh/ParlAI
e0f16e9168839be12f72d3431b9819cf3d51fe10
[ "BSD-3-Clause" ]
2
2017-10-06T09:56:49.000Z
2017-10-06T09:57:03.000Z
parlai/tasks/ms_marco/build.py
ysglh/ParlAI
e0f16e9168839be12f72d3431b9819cf3d51fe10
[ "BSD-3-Clause" ]
1
2018-03-08T20:44:39.000Z
2018-03-08T23:49:29.000Z
parlai/tasks/ms_marco/build.py
ysglh/ParlAI
e0f16e9168839be12f72d3431b9819cf3d51fe10
[ "BSD-3-Clause" ]
2
2017-10-06T09:57:04.000Z
2018-11-08T13:45:47.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. # Download and build the da...
35.5
99
0.615493
00cfc6b0427acfcfda03652ce139acc35c381fdd
43
py
Python
tasks/R2R-judy/src/__init__.py
IMNearth/Curriculum-Learning-For-VLN
d2fe1286eb295dc8c63a0c886b35883f32481d85
[ "MIT" ]
8
2021-11-09T13:29:19.000Z
2022-03-30T04:01:42.000Z
tasks/R2R-judy/src/__init__.py
IMNearth/Curriculum-Learning-For-VLN
d2fe1286eb295dc8c63a0c886b35883f32481d85
[ "MIT" ]
1
2022-03-17T14:16:44.000Z
2022-03-29T03:16:32.000Z
tasks/R2R-judy/src/__init__.py
IMNearth/Curriculum-Learning-For-VLN
d2fe1286eb295dc8c63a0c886b35883f32481d85
[ "MIT" ]
null
null
null
from . import utils, agent, engine, environ
43
43
0.767442
8b529fa33b6514d8cb550373e889bada5d128511
2,717
py
Python
venv/Lib/site-packages/nipype/interfaces/slicer/quantification/changequantification.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
585
2015-01-12T16:06:47.000Z
2022-03-26T14:51:08.000Z
nipype/interfaces/slicer/quantification/changequantification.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
2,329
2015-01-01T09:56:41.000Z
2022-03-30T14:24:49.000Z
nipype/interfaces/slicer/quantification/changequantification.py
tamires-consulting/nipype
b7879d75a63b6500b2e7d2c3eba5aa7670339274
[ "Apache-2.0" ]
487
2015-01-20T01:04:52.000Z
2022-03-21T21:22:47.000Z
# -*- coding: utf-8 -*- # -*- coding: utf8 -*- """Autogenerated file - DO NOT EDIT If you spot a bug, please report it on the mailing list and/or change the generator.""" from nipype.interfaces.base import ( CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, ...
27.444444
130
0.662127
f2cdd9fcb1fdb7f4741692a7075a420e03a53fb0
3,108
py
Python
stock-filters/colan_draw_box_lines.py
bi3mer/GDMC
6c619cbf907d8de17f9bd7b1390849201e977581
[ "ISC" ]
null
null
null
stock-filters/colan_draw_box_lines.py
bi3mer/GDMC
6c619cbf907d8de17f9bd7b1390849201e977581
[ "ISC" ]
null
null
null
stock-filters/colan_draw_box_lines.py
bi3mer/GDMC
6c619cbf907d8de17f9bd7b1390849201e977581
[ "ISC" ]
null
null
null
from pymclevel import alphaMaterials, MCSchematic, MCLevel, BoundingBox from pymclevel.box import Vector from mcplatform import * from pprint import pprint inputs = ( ("Replace All", "label"), ("Material", alphaMaterials.CoalBlock), ("Creator: Colan Biemer", "label") ) def vector_equals(v1, v2): return v1.x == v2...
36.564706
98
0.665701
1663182b6a43b44b1d46291357c2c476fdfb9001
477
py
Python
languages/python/design_restricter_class.py
Andilyn/learntosolveit
fd15345c74ef543e4e26f4691bf91cb6dac568a4
[ "BSD-3-Clause" ]
1
2021-04-09T04:15:24.000Z
2021-04-09T04:15:24.000Z
languages/python/design_restricter_class.py
Andilyn/learntosolveit
fd15345c74ef543e4e26f4691bf91cb6dac568a4
[ "BSD-3-Clause" ]
null
null
null
languages/python/design_restricter_class.py
Andilyn/learntosolveit
fd15345c74ef543e4e26f4691bf91cb6dac568a4
[ "BSD-3-Clause" ]
1
2021-07-31T02:45:29.000Z
2021-07-31T02:45:29.000Z
class RestrictingWrapper(object): def __init__(self, obj, to_block): self._obj = obj self._to_block = to_block def __getattr__(self, name): if name in self._to_block: raise AttributeError(name) return getattr(self._obj, name) class Foo(object): def __init__(self...
22.714286
40
0.612159
60d6182d32a4373baae72b9b41a85dfde4a5e081
948
py
Python
xwavecal/utils/basic_utils.py
gmbrandt/echelle
7e6678cd541ccf025fc187eca7f1344efe85f265
[ "MIT" ]
null
null
null
xwavecal/utils/basic_utils.py
gmbrandt/echelle
7e6678cd541ccf025fc187eca7f1344efe85f265
[ "MIT" ]
null
null
null
xwavecal/utils/basic_utils.py
gmbrandt/echelle
7e6678cd541ccf025fc187eca7f1344efe85f265
[ "MIT" ]
null
null
null
import numpy as np def median_subtract_channels_y(data, num_channels): """ :param data: array_like Input array. Must be 2D :param num_channels: The number of readout channels along axis=0 (rows). :return: ndarray Input array with each horizontal slice of size data.shape[0...
32.689655
89
0.562236
e82e997d0e8d9f45fc3b878ca9c2a19e558a16ed
5,157
py
Python
openGaussBase/testcase/SQL/DML/copy/Opengauss_Function_DML_Copy_Case0047.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/copy/Opengauss_Function_DML_Copy_Case0047.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DML/copy/Opengauss_Function_DML_Copy_Case0047.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
38.485075
84
0.632538