blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
38c664a5f633c233fdbe24e57b1a41e9ed27b39a
74b97e20b06a58ada94278f82ce511403fcddf21
/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/vendored_sdks/synapse/aio/operations/_sql_pool_vulnerability_assessment_operations.py
4f82fc427e879b6c9c0ea7004f96261f2bbff7a8
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/autorest.az
b171eb495efdb815dc051dface3800c3e5e35b8e
64f403a5fe74be28e46a90b6b77f8d2bc9a12baf
refs/heads/master
2023-09-01T13:22:21.784354
2022-11-01T02:34:12
2022-11-01T02:34:12
226,059,721
24
17
MIT
2023-02-08T00:46:07
2019-12-05T09:04:00
Python
UTF-8
Python
false
false
18,864
py
# 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 may ...
57895863065f914aab45070167a5407a01d68969
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_hashish.py
6f095d1a7cb0b473df03c662bf7368e60180a1e3
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
#calss header class _HASHISH(): def __init__(self,): self.name = "HASHISH" self.definitions = [u'a drug, illegal in many countries, made from the cannabis plant and usually smoked'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, ob...
61f25521a8ac9bb244b7920b6aad006c7e980101
04fcaa42f982bc6c8de1d3a28e83007a5b8b000d
/tests/tests_indiv_jobs/test_ooziejob.py
31743f67165d76004d2470b532d5a8319dbf825d
[ "BSD-3-Clause" ]
permissive
tadinve/naga
26622416db7ff81a256a2f51daac0769763ed711
52a789ff79cc20aa999f7bb731a1c3cc3acc27fa
refs/heads/main
2023-08-12T22:45:19.876256
2021-09-24T02:15:42
2021-09-24T02:15:42
389,231,528
0
0
null
null
null
null
UTF-8
Python
false
false
1,583
py
from ctm_python_client.jobs.hadoop.oozie import OozieJob import os from ctm_python_client.core.bmc_control_m import CmJobFlow from ctm_python_client.session.session import Session BASE_PATH = os.path.abspath(os.path.dirname(__file__)) with open(BASE_PATH + "/.secrets", "r") as fp: ctm_uri = fp.readline().strip() ...
99a71c7b9e27e3157cd4de85ab83cc05e523d4bc
d902ac93fbff644ca2868d5836a9f476f3cd91fd
/wq_csv/util.py
6bbe34d6c95cb08f37c53383ded1fea23ec6d5ee
[]
no_license
NMWDI/WDIExtractors
5b3c2ad3562449ba6c3c2467284c9cd3e046837f
2da9aa7a1bd53d58ff7479f4507fffbc15b3bbb2
refs/heads/master
2022-12-24T17:19:35.998182
2020-10-02T19:22:48
2020-10-02T19:22:48
265,703,372
0
0
null
null
null
null
UTF-8
Python
false
false
5,162
py
# =============================================================================== # Copyright 2020 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/LICE...
196a7d3700530cf459ab672120d0ffb207717998
c2d5055a7b292d18facce55d975ff8f9a19b5c39
/examples/list_uarts.py
cbacc1f1a56b6a6c280b9dcd6a600aa50896ddb8
[ "MIT" ]
permissive
playi/Adafruit_Python_BluefruitLE
11f6c268436ebf1eb554fdfcf3a58eac0d01816e
928669aff263b6602365ecfea2a1efe1950c111c
refs/heads/master
2021-04-18T07:20:13.684162
2018-06-04T18:04:26
2018-06-04T18:04:26
126,250,975
2
3
MIT
2018-08-01T20:06:52
2018-03-21T23:04:06
Python
UTF-8
Python
false
false
2,515
py
# Search for BLE UART devices and list all that are found. # Author: Tony DiCola import atexit import time import Adafruit_BluefruitLE from Adafruit_BluefruitLE.services import UART # Get the BLE provider for the current platform. ble = Adafruit_BluefruitLE.get_provider() # Main function implements the program log...
46691ee0ff111b983af457bc01fe09ae5a1b1391
a5a6d753ebebec4ef31115424c932cbc167da83f
/models/resnext/paths.py
f382ef7737dfbb5bad6ea5da64078fa183756b11
[ "MIT" ]
permissive
XixiJin/depth-distillation
3bdf897eaa6b9dd725c6e1370e8d3d8572c23f23
fd53bceda4f317a5ed3832a2932a1eeb7eeb456b
refs/heads/master
2023-04-12T20:36:54.199498
2021-05-10T03:21:11
2021-05-10T03:21:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
resnext_101_32_path = 'resnext_101_32x4d.pth'
1340eb68406fbef4445d5ace94fbe286d31eeb2b
06fb976887431bb1091080e29fcd96e3a03c234f
/scripts/train_vae.py
238990d5876de0e5831fdd201f052fefafa9f450
[]
no_license
fbkarsdorp/seqmod
ec07538dda41967cfcefcaafc8676bff6f301f89
41be103717635187d8bc7862f1b8b24e4b844321
refs/heads/master
2021-08-23T01:52:27.485158
2017-12-02T08:46:36
2017-12-02T08:46:36
112,826,621
0
0
null
2017-12-02T08:39:57
2017-12-02T08:39:57
null
UTF-8
Python
false
false
8,411
py
import os import argparse import torch from torch.autograd import Variable from seqmod import utils as u from seqmod.misc.loggers import StdLogger, VisdomLogger from seqmod.misc.optimizer import Optimizer from seqmod.misc.preprocess import text_processor from seqmod.misc.dataset import PairedDataset, Dict from seqmo...
02fb7d52b9f2d4dd06d435b3711339f8d9111826
baf3996414315ffb60470c40c7ad797bf4e6897f
/02_ai/4_cv/1_ml_mastery/1_cv/code/chapter_20/07_model_3vgg_data_aug.py
02800ffcce5e2f90d1d314cb9dac9b719e6d5e41
[ "MIT" ]
permissive
thiago-allue/portfolio
8fbbecca7ce232567aebe97c19944f444508b7f4
0acd8253dc7c5150fef9b2d46eead3db83ca42de
refs/heads/main
2023-03-15T22:10:21.109707
2022-09-14T17:04:35
2022-09-14T17:04:35
207,919,073
0
0
null
2019-11-13T18:18:23
2019-09-11T22:40:46
Python
UTF-8
Python
false
false
3,497
py
# baseline model with data augmentation on the cifar10 dataset import sys from matplotlib import pyplot from keras.datasets import cifar10 from keras.utils import to_categorical from keras.models import Sequential from keras.layers import Conv2D from keras.layers import MaxPooling2D from keras.layers import Dense from ...
6a6c28212d9e9aabe4376c6f3ca2a32bf4e73053
f6f4c87a1f2e750530a7d691da43514d84f99f5c
/hw20/a/q3/q3.py
6ee2af17e499595428e05652bd352713f2bf63d4
[]
no_license
sarthak77/Basics-of-ML-AI
e941c6653bca95278cc62ee7ba229e8eaf4e309b
cb2ba9d271da919846211cf8496e29aff6beaa46
refs/heads/master
2020-07-25T10:33:54.420972
2020-01-09T19:25:57
2020-01-09T19:25:57
208,257,383
1
0
null
null
null
null
UTF-8
Python
false
false
2,409
py
#Import modules import numpy as np from numpy import linalg as LA import matplotlib.pyplot as plt from sklearn.metrics import mean_squared_error from sklearn.svm import SVC import keras from keras import regularizers import keras.optimizers import keras.initializers from keras.models import Sequential from keras.mo...
e8518de3fd37b928d126d13d14cc0fe03395fbf7
b838c392fec9934d73b6b605d672667bf1d5e3fd
/backend/application.py
88743c87cdba3245e549229a5b6501dfa63b214f
[]
no_license
hmisonne/Canoo_SWOPS_test
25ddcdb624cfeb8542206e3c055a5b4fba95f328
01c1556c60680674d51f8047f9c3c5afe8b91a03
refs/heads/main
2023-04-10T14:23:43.977490
2021-04-23T20:15:16
2021-04-23T20:15:16
360,990,095
1
0
null
null
null
null
UTF-8
Python
false
false
4,834
py
from flask import Flask from flask import render_template, abort, redirect, url_for, request, jsonify from flask_cors import CORS import json import uuid app = Flask(__name__) CORS(app) # Configure "database" as json file database_path = "data.json" app.config['JSON_DATA'] = database_path def read_json(): path ...
22c07331e1b110b09e94605b96187b0a4ec40108
c1960138a37d9b87bbc6ebd225ec54e09ede4a33
/Week 11/ArnieMartin_CircuitPlayground_Single_Mouse_Button_Advanced.py
318bd949acb9fb6b6f28b56d917f96a7274d3b7d
[]
no_license
apalileo/ACCD_PHCR_SP21
76d0e27c4203a2e90270cb2d84a75169f5db5240
37923f70f4c5536b18f0353470bedab200c67bad
refs/heads/main
2023-04-07T00:01:35.922061
2021-04-15T18:02:22
2021-04-15T18:02:22
332,101,844
0
0
null
null
null
null
UTF-8
Python
false
false
1,597
py
# more advanced-ish use of single onboard button to control LMB and RMB # works with CPX and CPB, copy adafuit_hid to /lib import board import time import digitalio import busio import adafruit_lis3dh import usb_hid from adafruit_hid.mouse import Mouse killswitch = digitalio.DigitalInOut(board.SLIDE_SWITCH) killswit...
9d01e66f647965d123823224278de34331718f3a
4e67c2edd71493a98a3f13e5b2073c1d05b1b656
/Semestre 02/ProjetoIntegrador2/Aula 08.27.2020/Metodos_lista.py
75d15a7c7e7bd102bbd084a1482db9446b15b851
[]
no_license
felipellima83/UniCEUB
05991d7a02b13cd4e236f3be3a34726af2dc1504
dbc44866545b5247d1b5f76ec6e9b7778e54093e
refs/heads/master
2023-07-08T19:04:19.830473
2021-08-12T12:33:49
2021-08-12T12:33:49
249,958,282
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
lista = [ ] t_lista = int(input("Quantidade: ")) for i in range(t_lista): n = int(input("Digite o número: ")) lista.append(n) print(lista) print(len(lista)) print(sum(lista)) print(max(lista)) print(min(lista)) pesquisa = int(input("Qual: ")) if pesquisa in lista: posicao = lista.index(pesquisa) print(p...
0af3834982b72c9cdf345b6aff6ffd9e7ccea915
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02716/s014491177.py
f6f24c53a93fa9d93bb64a4642c8896800c4707e
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
import sys sr = lambda: sys.stdin.readline().rstrip() ir = lambda: int(sr()) lr = lambda: list(map(int, sr().split())) from collections import defaultdict def resolve(): N = ir() A = lr() dp = defaultdict(lambda: -float('inf')) dp[0, 0, 0] = 0 for i in range(N): for j in range(max(i//2-1, 0)...
342b2b11b0890dc05a1974e7b6bcc3a3d4d54c02
25bf0d5ed033006074eaec207358d11943ba9936
/spider/eastnews/eastnews/middlewares.py
9693b0fe2196f59059d1711169982f4cae36adcd
[]
no_license
wanglanfeng/Distributed-crawler
0c7f90ea684da14ad7c33e8824f00b5df04e4745
36ce154562d022ebf1b06e507824786cb670d358
refs/heads/master
2020-03-16T23:41:00.866080
2018-02-24T11:37:20
2018-02-24T11:37:20
133,087,133
1
0
null
2018-05-11T20:46:47
2018-05-11T20:46:47
null
UTF-8
Python
false
false
1,906
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class EastnewsSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrapy ...
bfb26558c8d4426d10ad050db99ba001fa79afe6
c727d96f9ee57a186ac2f6a069e7863017131d9b
/mypy_boto3_builder/structures/waiter.py
573b3a99a0ef983c7359c5cc3713e46a8412d8b4
[ "MIT" ]
permissive
ayobuba/mypy_boto3_builder
66438be3c9fce1e6215a58692b69496250eda433
9315adca025a5831ab1c2c00d3ed8602a21e8c74
refs/heads/master
2022-11-08T12:38:00.596915
2020-06-09T23:10:30
2020-06-09T23:10:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,734
py
""" Boto3 client Waiter. """ from dataclasses import dataclass, field from typing import List from botocore.waiter import Waiter as Boto3Waiter from mypy_boto3_builder.enums.service_module_name import ServiceModuleName from mypy_boto3_builder.import_helpers.import_string import ImportString from mypy_boto3_builder.se...
33ae7c9f65c1462e20cf31b50507a4e2a51c791e
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/Advanced Corporate Actions/FPythonCode/FCorpActionPayoutViewer.py
aba8a545dc56d44c822c7b513a9f647546083cb7
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,739
py
""" Compiled: 2020-09-18 10:38:49 """ #__src_file__ = "extensions/advanced_corporate_actions/./etc/FCorpActionPayoutViewer.py" import acm import FUxCore def SelectFirstItem(objList, itemList): if objList: firstItem = objList[0] itemList.SetData(firstItem) def RemoveItem(objList, itemList, item):...
0950fd4826dade797628563d1bc43cbc412d6018
7234e6c72eb3f09c4a66dbe91f00fdf7742f010f
/algo/dp/medium/longestArithmeticSequence2.py
50004a01f60d588e9b4155d465a095777a44c4e1
[]
no_license
srinathalla/python
718ac603473e7bed060ba66aa3d39a90cf7ef69d
b6c546070b1738350303df3939888d1b0e90e89b
refs/heads/master
2021-06-13T06:11:42.653311
2021-02-19T06:01:41
2021-02-19T06:01:41
150,374,828
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from typing import List class Solution: def longestArithSeqLength(self, A: List[int]) -> int: dp = {} for i in range(1, len(A)): for j in range(i): dp[i, A[i] - A[j]] = dp.get((j, A[i] - A[j]), 1) + 1 print(dp) return max(dp.values()) s = Solut...
c17b10b518d979feca78ccbe1e9788aeba9bd12a
37a776779a43662ed9bb6523f1f42fd3dc215610
/TTHAnalysis/python/tools/treeReaderArrayTools.py
f35c73164ab905d806528e773e44aa78dd865187
[]
no_license
ashrafkasem/cmgtools-lite
818b3bc42ee3b5944074b45bc74248b8c32fa514
14d0a465aa5cfaa2036a38fcc2589cda159c6f72
refs/heads/80X
2022-12-31T02:07:00.683384
2017-01-25T10:19:40
2017-01-25T10:19:40
109,703,088
0
0
null
2017-11-06T14:06:09
2017-11-06T14:06:09
null
UTF-8
Python
false
false
4,008
py
import types import ROOT def initTree(tree): tree.entry = -1 tree._ttreereader = ROOT.TTreeReader(tree) tree._ttreereader.SetEntry(0) tree._ttrvs = {} tree._ttras = {} tree._leafTypes = {} tree._ttreereaderversion = 1 tree.arrayReader = types.MethodType(getArrayReader, tree) tree.va...
d5b36533b86e2e386538d1e81c4dcd407fa84e4e
b0d0dbb0742e3925bc8adab9bb7b7ee458972ad6
/analayze.py
13faa7de5dd2d27767b804c06edf05fc13229fab
[ "Apache-2.0" ]
permissive
miyosuda/dendritic_bp
0cd0e23da0db7ba7460f7b209a92362f9f0f28fe
fd831b6ad9ae1993a14ba970408b80abfd45f0b1
refs/heads/master
2020-04-05T12:47:53.112472
2019-04-12T00:46:59
2019-04-12T00:46:59
156,880,868
2
1
null
null
null
null
UTF-8
Python
false
false
2,657
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from model import Layer, LAYER_TYPE_BOTTOM, LAYER_TYPE_HIDDEN, LAYER_TYPE_TOP, LowPassFilter from option import Option # TopとBottomだけを接続して分析するためのコード class Network(ob...
b794c2df5ea3e950d2a988e2baa61785911770f8
2dd560dc468af0af4ca44cb4cd37a0b807357063
/Leetcode/378. Kth Smallest Element in a Sorted Matrix/solution1.py
85aed3e0043f6c962b512d91df8783c990105928
[ "MIT" ]
permissive
hi0t/Outtalent
460fe4a73788437ba6ce9ef1501291035c8ff1e8
8a10b23335d8e9f080e5c39715b38bcc2916ff00
refs/heads/master
2023-02-26T21:16:56.741589
2021-02-05T13:36:50
2021-02-05T13:36:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
class Solution: def kthSmallest(self, matrix: List[List[int]], k: int) -> int: lo, hi = matrix[0][0], matrix[-1][-1] while lo <= hi: mid = (lo + hi) >> 1 loc = sum(bisect.bisect_right(m, mid) for m in matrix) if loc >= k: hi = mid - 1 e...
e8937677ed1449ab35310cecf64433fe455a1935
835abbf0309503caddba77f4ed94ea3209e8784f
/kurs_dla_sredniozaawansowanych/itertools_groupby.py
7404c6c1405458b65739d460cc96b78a58e667c3
[]
no_license
rafal-mizera/UDEMY
46873a01223a31b36de84fcfd13a5b9b1cf262e8
d463613ecd470dae4f17ce59d2f815f70942ea07
refs/heads/master
2023-07-19T12:14:44.818156
2021-09-01T16:14:37
2021-09-01T16:14:37
402,125,681
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
import os, itertools def scantree(path): for el in os.scandir(path): if el.is_dir(): yield el yield from scantree(el.path) if not el.is_dir(): yield el listing = scantree(r"C:\\Users\RMZ\PycharmProjects") listing = sorted(listing,key= lambda x: x.is_dir()) for...
15eb945f14b81379026156ad81640eb4e6951ec3
02b37f5f702ae164de31f6fc36f826607a5f713e
/manage.py
e68e1157d6f290fa3927fc5333e90167c76a47b3
[]
no_license
Sovushka-sever/test_replica
e671aa4f20da6efd18ea947fa298e40b9d4ee457
8b15013b725e2f4772e904002dd359aa6a4a3716
refs/heads/master
2023-08-24T16:47:38.271279
2021-10-04T05:37:42
2021-10-04T05:37:42
412,221,568
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'my_library.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
c04acce25630ba2428d0ebcd3095b7bceebd7a59
c75ec82316ed5322c5844912ce9c528c24360b9f
/nsd1909/py02/day02/jiecheng.py
966d2d9c92ecc9d5f7c1468b18df28cbad74f5c0
[]
no_license
MrZhangzhg/nsd2019
a94cde22f2e4bd648bb9e56ca63827f558f3c083
54f6d2c7b348a69f13ad5f38f2fbdc8207528749
refs/heads/master
2021-08-22T17:38:27.697675
2020-02-22T08:36:21
2020-02-22T08:36:21
183,539,489
21
24
null
2020-05-17T12:07:55
2019-04-26T02:06:16
HTML
UTF-8
Python
false
false
385
py
def func(n): if n == 1: return 1 else: return n * func(n - 1) # 5 * func(4) # 不能直接返回,需要将func(4)的结果与5相乘,得到的结果再返回 # 5 * 4 * func(3) # 5 * 4 * 3 * func(2) # 5 * 4 * 3 * 2 * func(1) # 5 * 4 * 3 * 2 * 1 if __name__ == '__main__': ...
43114d2f7132bdd755e261c108c200afc4f4c9a5
3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be
/google-cloud-sdk/lib/googlecloudsdk/surface/compute/instances/set_iam_policy.py
b9eea24fbd21a269b6f8e9fd753b33d2e48e35d9
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
twistedpair/google-cloud-sdk
37f04872cf1ab9c9ce5ec692d2201a93679827e3
1f9b424c40a87b46656fc9f5e2e9c81895c7e614
refs/heads/master
2023-08-18T18:42:59.622485
2023-08-15T00:00:00
2023-08-15T12:14:05
116,506,777
58
24
null
2022-02-14T22:01:53
2018-01-06T18:40:35
Python
UTF-8
Python
false
false
717
py
# Copyright 2015 Google Inc. All Rights Reserved. """Command to set IAM policy for an instance resource.""" from googlecloudsdk.api_lib.compute import iam_base_classes from googlecloudsdk.calliope import base @base.Hidden @base.ReleaseTracks(base.ReleaseTrack.ALPHA) class SetIamPolicy(iam_base_classes.ZonalSetIamPol...
19b8bad12ca06aa46842267e1530a1532d13ae81
1ef56dcfef70ee14df8956eedd171f74406594af
/erp/biz/contact_unit_biz.py
44cf2026076d3860ea2709dc3884f82a98010696
[]
no_license
journeyends/webtest
6c54ff19e01cd0cd99a34bcae55dd5701abf132f
2a24c6d7c52aa627edfbba3dd5eb9ccc16abe9fb
refs/heads/master
2020-04-17T07:38:52.873722
2019-03-21T09:36:50
2019-03-21T09:36:50
166,378,280
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
from erp.idal.i_contact_unit_dal import I_contact_unit_dal class Contact_unit_biz: dal = I_contact_unit_dal().instance() def getList(self, condition={}, user_info={}): dal = Contact_unit_biz.dal return dal.getList(condition=condition, user_info=user_info)
d91ca4161a07129e9b9b27f17cd0465ab467fa7e
5ec7a72cab10dd39e0cc877caa1cb97c3cd9f3de
/garuda/models/dq/operation.py
ba1d5125ca3eb27edc83cce8bc6439db91f6ad76
[]
no_license
raufer/spark-dsl
a1d311263fe48f64859c04cd63a79f48d8cd8fa4
a0fbf9561ba4567bc5d40bf2c7d289e214712aa6
refs/heads/main
2023-04-11T19:29:11.661273
2021-01-26T18:34:23
2021-01-26T18:34:23
367,982,697
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
import logging from pydantic import BaseModel from pydantic import validator from garuda.dsl.mappings.operations import DSL_OPERATIONS from garuda.models.dq.argument import Argument from typing import List logger = logging.getLogger(__name__) class Operation(BaseModel): """ An operation represents a a Boo...
71ba4f507651adad9a4a6bea16e4fb6403802870
dbc4a65c17645fe2b77d4acd22d6c53ace261f89
/Numpy_bs/boolSetopSorting.py
3bc13b81a4446580efc48bf257a421f0260eef06
[]
no_license
felipeguth/basics
52fba5e94c4ebeda53a881a4f3f806e10a000c98
40669c03324e44a36466d760e0b6af923e0fafd0
refs/heads/master
2023-08-15T10:30:59.759551
2021-08-20T18:21:43
2021-08-20T18:21:43
203,874,748
0
0
null
2023-07-22T14:17:41
2019-08-22T21:16:55
HTML
UTF-8
Python
false
false
2,257
py
import numpy as np # We create a 5 x 5 ndarray that contains integers from 0 to 24 X = np.arange(25).reshape(5, 5) # We print X print() print('Original X = \n', X) print() # We use Boolean indexing to select elements in X: print('The elements in X that are greater than 10:', X[X > 10]) print('The elements in X that...
c11c3116864d5ac9805e39e4c0379455ab221940
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_11_01/aio/operations/_private_endpoint_connections_operations.py
083296317b9947180f059bbc703508241d77a482
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
21,670
py
# pylint: disable=too-many-lines # 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) AutoRe...
874eb69589c1c8e3384d0af1565f3fb7bbaa4eb5
19da1a56f137a08772c347cf974be54e9c23c053
/lib/adafruit_bitmap_font/bitmap_font.py
b958a6d5e9f99646e075e137ab049f2028ea3062
[]
no_license
mk53202/mk53202-timeclock-pyportal
d94f45a9d186190a4bc6130077baa6743a816ef3
230a858d429f8197c00cab3e67dcfd3b295ffbe0
refs/heads/master
2021-02-04T05:38:25.533292
2020-02-27T22:45:56
2020-02-27T22:45:56
243,626,362
0
0
null
null
null
null
UTF-8
Python
false
false
2,343
py
# The MIT License (MIT) # # Copyright (c) 2019 Scott Shawcroft for Adafruit Industries LLC # # 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 limit...
9c97389a9de5ea9c3f054a8cc24a3d65143ec055
3da991a057cd81de802c40da2edd640878685258
/test/test_op_normalization.py
c706451847070bc4b6095de92fb86e51b8490ca8
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
sjx0451/pytorch
9f5b1c0c7c874f9da72c0190dc131944ba828ab7
3544f60f7602081398ee62bc5d652a87f4743dab
refs/heads/master
2022-12-01T22:30:29.888370
2020-08-13T23:45:58
2020-08-13T23:48:31
287,421,291
2
0
NOASSERTION
2020-08-14T02:06:11
2020-08-14T02:06:11
null
UTF-8
Python
false
false
4,347
py
import torch from torch.testing import FileCheck from torch.testing._internal.common_utils import \ (run_tests) from torch.testing._internal.jit_utils import JitTestCase from torch.testing._internal.common_device_type import \ (instantiate_device_type_tests, skipCPUIfNoLapack, skipCUDAIfNoMagma) # Information...
ca558233180fa9b596dcb99d1b085674e4516699
e12edf6cde9670eb3d4f1596cd648fddefaf480f
/acm-practice/2017-10-26/D_suspension_binary_search.py
1661f660b42de137344239ea94ac4938ef6967cb
[]
no_license
VitamintK/AlgorithmProblems
7a7786a0377a236f5cc82ae3b623ecad7f0eb025
34da53e2e7d3b5964bafd1f3edb2e00dea9a729d
refs/heads/master
2023-06-29T00:56:53.360829
2023-06-14T16:33:14
2023-06-14T16:33:14
25,510,479
11
4
null
null
null
null
UTF-8
Python
false
false
311
py
d, s = map(int, input().split()) l = 0 r = 123456789 eps = 0.000001 import math for i in range(123456): a = (r+l)/2 term = (d/(2*a)) sag = 0.5*a*(math.exp(term) + math.exp(-term)) - a if sag < s: r = a else: l = a term = d/(2*l) print(l * (math.exp(term) - math.exp(-term)))
99d79ab61d8a2d1d313f004be2ed3b8742bb4c89
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/postfix/for/topLevel.py
f1b3ddf673f84c9ab1c8ffb03a662bc644f7fe85
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
13
py
[].for<caret>
96f75f958e7146a11ac99d2224a3a125a48406dc
60ca69e2a4c6b05e6df44007fd9e4a4ed4425f14
/grand_contest/037/A.py
96f513b224075418d215cfb1e943c483fd3a12f5
[ "MIT" ]
permissive
FGtatsuro/myatcoder
12a9daafc88efbb60fc0cd8840e594500fc3ee55
25a3123be6a6311e7d1c25394987de3e35575ff4
refs/heads/master
2021-06-13T15:24:07.906742
2021-05-16T11:47:09
2021-05-16T11:47:09
195,441,531
0
0
MIT
2021-05-16T11:47:10
2019-07-05T16:47:58
Python
UTF-8
Python
false
false
1,445
py
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 7) s = input().strip() if len(s) == 1: print(0) sys.exit(0) if len(s) == 2 and s[0] == s[1]: print(0) sys.exit(0) # [i][0]: index iが1文字分割 # [i][1]: index iが2文字分割 dp = [[0] * 2 for _ in range(len(s))] # 3文字以上では1文字/2文字の仮想結果が使われる # 1文字 dp[...
03ba7abe47bcab7d9872f3847417428cf3b2f187
cc2bb9ccc66783ac7d37454e4784df5e4a2d80f4
/server/mysqldb.py
f2feb13c8fbf3f3239e7424de6323d998304ed62
[]
no_license
ronnyzh/Tornado_Server
f308b7e9c2112167b04cbe324e37b1f891999187
42112d39e4dea128d059dbfa53c410f3774dc4b1
refs/heads/master
2021-05-22T22:10:26.694262
2020-04-04T23:39:14
2020-04-04T23:39:14
253,118,839
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
# -*- coding:utf-8 -*- # !/bin/python """ Author: ronnyzh Date: 2019/10/15 Revision: 1.0.0 Description: Description """ from configs import CONFIGS from model.model_mysql import MySQLdb from model.model_asyn_mysql import Async_Mysql import tornado.ioloop from public.public_logger import * mysql_logger ...
a404e63cb25c5f20ac03b7c7d3a2529e11c00d6f
1388bcd6de659ffefe97e7e6c2aee685b5e7c534
/stubs/stubs/Utilityrate4.pyi
0b9fd269d9178b5f58e6650042aed54b3107d49f
[ "BSD-3-Clause" ]
permissive
BRIK-Engenharia/pysam
a7b4b543131043510023a5c17b057ead0b39d440
2a4115f34419edf9776b0bbc7b3f453c958ce734
refs/heads/master
2022-12-06T05:15:35.364375
2020-09-03T22:59:17
2020-09-03T22:59:17
297,958,820
1
0
BSD-3-Clause
2020-09-23T12:13:32
2020-09-23T12:13:32
null
UTF-8
Python
false
false
6,297
pyi
class Common(object): def assign(self): pass def export(self) -> Dict[Dict]: pass def __init__(self, *args, **kwargs): pass analysis_period = float load_escalation = tuple rate_escalation = tuple system_use_lifetime_output = float ur_annual_min_charge = float ur_dc_enable = float ur_dc_flat_mat = ...
f1c6b8b4f3add343bd97fe50d6c9ac34e1446bc6
099c5d0d21de342ad578be0fa06dde6be10b4e95
/saltcloud/clouds/joyent.py
5f6729d01b3fa922fc700a5e3345b90c34949cca
[ "Apache-2.0" ]
permissive
lexual/salt-cloud
b09835795a0221c3d283e7e17c60ac68f76ee226
063ac2050f27181ea6da8e3ece528974f8284b72
refs/heads/master
2021-01-17T12:21:01.688573
2012-08-13T19:46:19
2012-08-13T19:46:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,900
py
''' Joyent Cloud Module =================== The Joyent Cloud module is used to intereact with the Joyend cloud system it requires that the username and password to the joyent accound be configured .. code-block:: yaml # The Joyent login user JOYENT.user: fred # The Joyent user's password JOYENT.pass...
d9b758cc0246650a55d4873c5080463895e12575
6e7b1305887d25ae60251ce54ed2b94dc37ea06c
/Ecommerce/shopping/migrations/0008_order_product.py
310c90465104e681244c4f32141b478425d05d25
[]
no_license
Aadeshkale/assignment
5bedaa95c6d2457d87b239117259c2a17d765c0f
bac0fa5523e3e6179dfe907f493a677adda7993b
refs/heads/master
2023-01-08T04:11:14.847962
2020-11-12T09:37:15
2020-11-12T09:37:15
304,293,311
0
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
# Generated by Django 3.1.1 on 2020-10-14 07:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('shopping', '0...
d45f5f1e80eb49d2b796c96c0f6f74279719c04f
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Calorimeter/CaloCondPhysAlgs/share/CaloNoise2Ntuple_data.py
b272eccf19df896d9085998da90333c610274a83
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
4,388
py
############################################################### # # Job options file for CaloNoise2Ntuple # #============================================================== # configuration for data, read noise from database through CaloNoiseToolDB if 'RunNumber' not in dir(): RunNumber = 258914 if 'LumiBlock' not i...
877ca248005210bb37f38a0f37109cfac25b2dbd
61a21ed2dcdfe9a43588c5582eea38ce8fdfcbf2
/akshare/charity/__init__.py
c5707908556063f7183a0abfe452b67f4dab4660
[ "MIT" ]
permissive
huanghyw/akshare
44187c6c56872d499651bb62c178ee837c776388
ed84e937773c0420cc003793d74b73e64223e08b
refs/heads/master
2023-04-22T07:06:08.929307
2021-05-02T16:05:59
2021-05-02T16:05:59
319,346,216
13
5
MIT
2021-05-02T16:05:59
2020-12-07T14:32:08
null
UTF-8
Python
false
false
81
py
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2020/2/21 16:03 Desc: """
916d8ba379bd9fe0dcfbd4758f028f88f55562fa
d044e88e622d9f4ca350aa4fd9d95d7ba2fae50b
/application/budget/migrations/0005_auto_20210518_1730.py
2650551c2c42b96e2b7524ac633bd6e6f8c70b2f
[]
no_license
Tiny-Hands/tinyhands
337d5845ab99861ae189de2b97b8b36203c33eef
77aa0bdcbd6f2cbedc7eaa1fa4779bb559d88584
refs/heads/develop
2023-09-06T04:23:06.330489
2023-08-31T11:31:17
2023-08-31T11:31:17
24,202,150
7
3
null
2023-08-31T11:31:18
2014-09-18T19:35:02
PLpgSQL
UTF-8
Python
false
false
683
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2021-05-18 17:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('budget', '0004_auto_20210120_1903'), ] operations = [ migrations.AlterFiel...
49f3bee05885e479558b18dcff7a038de7a5e3ba
250db406ad4a62e3d576e55b979bcfdc3407f226
/Leetcode分类/1. Array /Leetcode_27 Remove Element/my_solution.py
eb387a47da03f53268d0f9347d5e5e9c16df2127
[]
no_license
chenshanghao/Interview_preparation
0830f0e461a2fe287b8ec24ae761974f50268767
4e7701d32990604c16ba18a8083c2108c0232306
refs/heads/master
2020-04-25T02:36:19.499364
2019-06-10T04:51:00
2019-06-10T04:51:00
172,446,284
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
class Solution(object): def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int """ index = 0 for i in range(len(nums)): if nums[i] != val: nums[index] = nums[i] index += 1 re...
f37cd5437e19fb4a0472381b67b5f554307c24ad
1e263d605d4eaf0fd20f90dd2aa4174574e3ebce
/components/ally-http/__setup__/ally_http/__init__.py
b06c5790549446b5d6d3390a164ae4559aab9422
[]
no_license
galiminus/my_liveblog
698f67174753ff30f8c9590935d6562a79ad2cbf
550aa1d0a58fc30aa9faccbfd24c79a0ceb83352
refs/heads/master
2021-05-26T20:03:13.506295
2013-04-23T09:57:53
2013-04-23T09:57:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
''' Created on Jul 15, 2011 @package: ally http @copyright: 2012 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Contains setup and configuration files for the HTTP REST server. ''' from ally.container import ioc # -------------------------------------------------------...
fdf0029733f0c29f70e2242919078fe8131e8b6b
f428482945cf11d0fa17aa1a0607f43ec8427614
/run_profile.py
3a8a3189a42f462a73a5eb880fb0a24e0f0f8f45
[]
no_license
SomervilleJesusBall/KebleBall
22e3367797a0a9f740271dff40d5359e69a80f9d
09a7d9c6b86365c31827bfd44fa50d4527a646e4
refs/heads/master
2021-01-22T05:23:55.882724
2016-03-13T18:28:09
2016-04-14T12:17:45
47,200,067
0
0
null
2015-12-01T15:56:32
2015-12-01T15:56:31
null
UTF-8
Python
false
false
469
py
#! /usr/bin/env python2 # coding: utf-8 """Executable to run Eisitirio with profiling.""" from __future__ import unicode_literals from werkzeug.contrib import profiler from eisitirio import app from eisitirio import system # pylint: disable=unused-import APP = app.APP APP.config.from_pyfile('config/development.py'...
0901587cb483f5f586d862ad701e89b6273493d3
78649dd3fdfafc3edb7ef5b0de52096846cd9c28
/networking_mlnx_baremetal/ufmclient/session.py
4e246c17d2045be65610b4e4a49a1dd690b63064
[ "Apache-2.0" ]
permissive
IamFive/networking-mlnx-baremetal
38c99b127a7b08850e9ce5c83f0a6539ec4fe9b6
8d65405a8546803f903cadd0cf0818007a1d0119
refs/heads/master
2023-02-02T05:47:02.166816
2020-12-02T08:01:40
2020-12-02T12:29:02
296,988,990
0
0
null
null
null
null
UTF-8
Python
false
false
4,375
py
# Copyright 2020 HuaWei Technologies. 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...
bf3d53245cc918b53d410fb4e30485d53f1b055f
98d34935bfa9b709c07df539267daa6f3a6db880
/kikar_hamedina/mks/factories/member_factory.py
b99cce744d9c25d90690e045e9aff5fd62a4e562
[]
no_license
hasadna/kikar-hamedina
c4a0e939fdafb1f8d187db1be35aba5fde2350be
d08e9231fd4c91c4024ced26b760b87f93bb8607
refs/heads/dev
2020-12-25T18:04:22.817008
2019-03-30T15:27:13
2019-03-30T15:27:13
18,186,117
12
36
null
2019-03-30T15:28:06
2014-03-27T18:11:01
Python
UTF-8
Python
false
false
373
py
import factory from mks import models from party_factory import PartyFactory class MemberFactory(factory.DjangoModelFactory): class Meta: model = models.Member name = factory.sequence(lambda n: u"Name {}".format(n)) name_en = factory.sequence(lambda n: u"Name {}".format(n)) current_party = fa...
92faa3cc6c9b46d19d31350aa17bf68325786ac2
d1c3a9a4289b1aa262285b5de5084f3074893703
/games/forms.py
2465c9d8ef21a1a536c51afe892d02c167bedc86
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
Code-Institute-Submissions/stream-three-project-1
a9ce00a608b5d12d0c4ef48546c265f0110fb55e
96a5718a22f57b908ea5eb76298ceffdb1f17c8b
refs/heads/master
2020-03-21T11:13:19.873566
2018-06-24T14:57:31
2018-06-24T14:57:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
from django import forms from datetime import datetime # Form to select a season when viewing the league standings. Just a simple select field to choose a year. class SeasonSelectForm(forms.Form): SEASON_OPTIONS = ( (year, year) for year in range(2000, datetime.now().year+1) ) season = forms.Cho...
f43a8030903ababf84b372f2a71583c30458595b
49273a7e6e0d4726f38fab1c430b86dbfc4b2345
/leetcode/p49.py
ffbeedf32f08e603a01ecbb7f7ff820bb024d919
[]
no_license
adqz/interview_practice
d16d8c56436dde1f7fa96dc0d8dcc827295e0ff0
f55fb9c0a39c2482c98cc452c185a938a59ad57c
refs/heads/master
2023-01-11T01:30:03.353498
2023-01-03T14:48:08
2023-01-03T14:48:08
207,520,968
0
0
null
null
null
null
UTF-8
Python
false
false
1,289
py
''' @author: adnan Problem No. 98. Validate Binary Search Tree (Medium) Runtime: 40 ms, faster than 96.02% of Python3 online submissions for Validate Binary Search Tree. Memory Usage: 15.1 MB, less than 100.00% of Python3 online submissions for Validate Binary Search Tree. ''' from typing import List import tree_visua...
07a49fac0cb7ec2461404a59bf4502820bac0d55
fcccdb133bf5611c69781080fdbcbb9f4b70c222
/input/parameters/lithium-ion/experimental_functions/electrolyte_conductivity.py
40a418d3a98ec2576698a3f0b4f8afde213c94fe
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
galvanic653960572/PyBaMM
d04036e9e0fec12ceb1d9b4b50cfb3bcfe25f3f1
4869d358b3452c7ca627d713823a67fdfdafa4bd
refs/heads/master
2020-04-09T05:04:28.951580
2018-12-03T15:20:44
2018-12-03T15:21:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
def lfp_cond(c): """ Conductivity of LiPF6 in EC:DMC as in Newman's Dualfoil code. This function is in dimensional form. Parameters ---------- c: double lithium-ion concentration """ c = c / 1000 sigma_e = 0.0911 + 1.9101 * c - 1.052 * c ** 2 + 0.1554 * c ** 3 retur...
e08622954352b9e1b6540769c6217dd480ef770c
7ab41799fd38489c93282f1beb3b20e7ef8ff165
/python/111.py
ec32bd42ef24b2c21f576226dc84e6a8613f5d9a
[]
no_license
scturtle/leetcode-sol
86c4095df6b31a9fcad683f2d63669ce1691633c
e1a9ce5d9b8fe4bd11e50bd1d5ba1933de845db7
refs/heads/master
2020-04-23T00:01:37.016267
2015-11-21T04:15:27
2015-11-21T04:15:27
32,385,573
1
0
null
null
null
null
UTF-8
Python
false
false
408
py
class Solution(object): def minDepth(self, root): """ :type root: TreeNode :rtype: int """ if root is None: return 0 if root.left is None: return 1 + self.minDepth(root.right) if root.right is None: return 1 + self.minDepth(...
f58e05ef882af135fa092cb0991f14a2e01dd968
d98883fe1007111b8795ac5661e56758eca3b62e
/google-cloud-sdk/lib/surface/lifesciences/workflows/run.py
92eaf4895e9c83f71c66d593c7df7c99f4b867d9
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
pyDeb/KindnessCafe
7303464e3c0693b0586a4a32740d8b9b19299caf
6ff8dfe338aefd986edf67c382aff1a2920945d1
refs/heads/master
2022-12-29T16:16:35.796387
2021-04-19T00:03:14
2021-04-19T00:03:14
243,533,146
3
4
null
2022-12-08T09:48:09
2020-02-27T14:01:16
Python
UTF-8
Python
false
false
18,047
py
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
740243c8c2e06db15307652ccdf16cb6d4e8ecf1
79e0f8d64cb928ccc6a026b32dcbb3c8fcefa2de
/script/compile-coffee.py
179931a5db0a31bf159caccbe6107c6d847aaeef
[ "MIT" ]
permissive
mapbox/atom-shell
939bca5dec3f6cf7460a3b34d0517e78ed0da928
2125a0be826170c3a84af1e75572b06402f3add9
refs/heads/master
2023-06-05T10:46:29.802386
2014-08-04T16:05:26
2014-08-04T16:05:26
22,614,165
1
6
MIT
2023-04-09T15:03:19
2014-08-04T17:58:00
null
UTF-8
Python
false
false
953
py
#!/usr/bin/env python import os import subprocess import sys SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) WINDOWS_NODE_PATHs = [ 'C:/Program Files/nodejs/node.exe', 'C:/Program Files (x86)/nodejs/node.exe', ] def main(): input_file = sys.argv[1] output_dir = os.path.dirname(sys.argv[2]) coff...
f33c5c5eacd1cacf4b21708ba3c979e5958862da
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/cascade_rcnn/cascade_mask_rcnn_x101_32x4d_fpn_20e_coco.py
1a90b9ca274de0d0f5104b2b0f1741b2778accc7
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
1,019
py
# Copyright 2022 Huawei Technologies Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
63de0a760734ad6f525a1164cff32a69663a6382
7d43ba52d958537905cfdde46cc194a97c45dc56
/WEB/Networks/Organizations/Registrars/RIR.py
332105180c0a42d4b6aa3d37dd9dc1d0d59402e4
[]
no_license
Koshmatova/workbook
3e4d1f698a01f2be65c1abc83ee251ebc8a6bbcd
902695e8e660689a1730c23790dbdc51737085c9
refs/heads/master
2023-05-01T02:30:46.868027
2021-05-10T03:49:08
2021-05-10T03:49:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
RIR #regional internet Registry РЕГИСТРАТОРЫ #получают блоки и номера автономных сисм у IANA #выдают блоки LIR ARIN #обслуживает Северную Америку Багамы Пуэро-Рико Ямайку APNIC #обслуживает Южную Азию Восточную Азию Юго-Восточную Азию Австралию Океанию AfriNIC #обслуживает Африку ...
3d5ca3e81b309d799bafa57120c402ad3bbbaa20
ad16b0c0178e4543d0c44ad3d90f90c6beeb4f5a
/di2.py
cb2a72a47cbef1e402302ce534f3005b82c52464
[]
no_license
timmonspatrick/HemoDub
09cb61e8e33ee8b64c9e6011d4ae8679d07950d9
4e6cceb44456c498cc1d6d55f8369099d0d5d947
refs/heads/master
2021-04-27T09:34:40.935684
2018-05-31T08:29:04
2018-05-31T08:29:04
122,491,500
0
0
null
null
null
null
UTF-8
Python
false
false
3,278
py
# -*- coding: utf-8 -*- """ Created on Thu Dec 14 15:02:19 2017 @author: Patrick """ from __future__ import print_function import numpy as np from residue_distribution import alphabets conjoint_letters = ["A", "I", "Y", "H", "R", "D", "C"] aa_letters = ['A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'P',...
9e47a121f146030bb57a04733eda6fd89bd415c2
512f48fdcfa78e322526cf47163110009b84bf73
/test/test_page_of_policy_asset.py
b94a86aae703c7f17bf5ff820a90730167232177
[ "MIT" ]
permissive
confluentinc/vm-console-client-python
9a0f540c0113acf68ee9dc914715bc255e4d99f4
ccbd944a0e0333c73e098b769fe4c82755d29874
refs/heads/master
2023-07-18T10:33:58.909287
2021-09-02T20:52:20
2021-09-02T20:52:20
402,559,283
0
0
MIT
2021-09-02T20:49:56
2021-09-02T20:49:56
null
UTF-8
Python
false
false
879
py
# coding: utf-8 """ Python InsightVM API Client OpenAPI spec version: 3 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.page_of_policy_asset impo...
93f00f64a3499f2739b654603d11c63bd28647f0
c36bd73ddbf668b25908df4ed2d4729d3ea792a7
/venv/lib/python3.5/site-packages/facebook_business/adobjects/favoriterequest.py
29354ce89e9dd9e997aa5312a28ef6b0f0f1c467
[]
no_license
Suraj-KD/AbsentiaVR_Task
1e236f88063b97666c8e188af7fddc0fd7ea3792
1de364e0464ac79cefc26077318021570993d713
refs/heads/master
2022-12-10T20:40:31.396380
2019-01-31T19:19:36
2019-01-31T19:19:36
168,398,946
0
0
null
2022-12-08T01:34:30
2019-01-30T19:08:22
Python
UTF-8
Python
false
false
5,371
py
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
a5a67527ca645c09a5eda7d574e9c5751ba8d7c7
bcc04939aa70675c9be19c0bf4a9642877db46b1
/qa/admin.py
fb3490662c6887235e08bad516912b69be9dcd6b
[ "MIT" ]
permissive
zkeshtkar/gapbug
164398e2ddd8f952d5851eab19e34f9f84a080e1
eec5baf9b4346aef26bcb10e48ddcb358140d708
refs/heads/main
2023-06-20T07:39:50.084126
2021-07-16T13:31:10
2021-07-16T13:31:10
387,550,452
0
0
MIT
2021-07-19T17:53:20
2021-07-19T17:53:19
null
UTF-8
Python
false
false
187
py
from django.contrib import admin from .models import Question class QuestionAdmin(admin.ModelAdmin): list_display = ("title", "user") admin.site.register(Question, QuestionAdmin)
1b961f70e65bde6e2cf6a2d5479f8a1db3b842ef
7ecc7092c70d28cfbc4229aca95267673f3b2b57
/quru/server/mq_client.py
cab3ad58929c75dac7fb68c377ee1f2f1f96f8ad
[ "MIT" ]
permissive
ShawnHan1993/quru
403bd6499a18901a02378eae82da73f828090107
6b103a54d8228e4e2d44b06cc068c60a44b02d67
refs/heads/main
2023-07-17T19:38:43.855085
2021-09-03T01:40:25
2021-09-03T14:07:11
400,223,744
0
0
null
null
null
null
UTF-8
Python
false
false
6,594
py
import asyncio import time import typing import aio_pika import pika import aiormq from ..quru_logger import logger from ..env import (BROADCAST_EXCHANGE_NAME, MAIN_EXCHANGE_NAME, MQ_HOST, MQ_PORT, MQ_RETRY, RABBITMQ_PASSWORD, RABBITMQ_USERNAME, RPC_EXCHANGE_NAME) class BaseMqC...
2d7c95b9adc03370debcc3242e5f0acf53ab7a6f
020fbf1db497520abcb30cd3889cfe61c601723f
/practice/readmodclass.py
491a456b4862d0be7e5870f5afe2748e2fdea45c
[]
no_license
bluecrt/first-project
bc53a49ae23c3cc6beb0ede4d00d94e4ad568771
7f5f376adcaa0d48caf4540db6613f843d40e173
refs/heads/master
2023-06-21T19:16:46.644489
2021-07-22T13:13:15
2021-07-22T13:13:15
386,676,255
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
import classcars car = classcars.Cars('red', 'big') print('your car\'s color is:{},shape is:{},now you can drive it。'.format(car.color, car.shape))
[ "email" ]
email
a6fb58c89014ee062dd4f0919c71670b7ccf61ec
444a9480bce2035565332d4d4654244c0b5cd47b
/research/audio/FastSpeech/src/dataset.py
e72e66213e867feab300003b59edf5352fb51bbb
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
5,247
py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
01936368e6eccfa81284c68fe14ec28c64e46899
456433ac78b70cb8ae076ae166a85e349f181d7f
/systems/KURSSKLAD/KURSTERM/INCOMEDC/income.py
da1cc79d3b9404d80e97bace43769dfaef5fd48e
[]
no_license
shybkoi/WMS-Demo
854c1679b121c68323445b60f3992959f922be8d
2525559c4f56654acfbc21b41b3f5e40387b89e0
refs/heads/master
2021-01-23T01:51:20.074825
2017-03-23T11:51:18
2017-03-23T11:51:18
85,937,726
0
0
null
null
null
null
WINDOWS-1251
Python
false
false
18,623
py
# -*- coding: cp1251 -*- from systems.KURSSKLAD.KURSTERM.common import TCommonTerm #Import Templates from systems.KURSSKLAD.KURSTERM.INCOMEDC.templates.index import index from systems.KURSSKLAD.KURSTERM.INCOMEDC.templates.task import task from systems.KURSSKLAD.KURSTERM.INCOMEDC.templates.taskBL import taskBL from sys...
0cdecd0af3dafb9d82746ec845df802d9645f53a
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/8/u0j.py
f3000c2754bb1143fdbc84d3add04b9d26cc4120
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
891767424910c6312d21ec2883cabb1ee174ed30
094a82883b0f4490dbca6c042e129faf0593d7bc
/thingflow/filters/timeout.py
714092327ac119541bf3e1f1efb166cdb5bf6395
[ "Apache-2.0" ]
permissive
kesking82/thingflow-python
904495aa370fb0fdef5e1eb162f0553a37bd7271
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
refs/heads/master
2020-04-21T13:05:57.615247
2019-02-28T09:59:13
2019-02-28T09:59:13
169,587,091
0
0
Apache-2.0
2019-02-07T14:44:45
2019-02-07T14:44:44
null
UTF-8
Python
false
false
4,506
py
# Copyright 2016 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. """Timeout-related output things and filters. """ from thingflow.base import OutputThing, DirectOutputThingMixin, FunctionFilter,\ FatalError, filtermethod class Timeout(OutputThing, DirectOutputThing...
958691096444cbd3d3c96fb700112e2199f368ca
e86851297175203451374021595659adbd516b59
/tools/convert2txt.py
eecab18170bcdafe344373ef87bedb7667c58484
[ "MIT" ]
permissive
stcolumbas/free-church-psalms
f0417d07af449300a5ada758dc95e153712b0e9e
0eee5faa19306a79d77a55019ff82fcba72fc9b4
refs/heads/master
2022-12-16T15:31:44.907547
2017-12-08T22:53:40
2017-12-08T22:53:40
28,723,518
2
0
null
2022-12-07T23:51:49
2015-01-02T19:23:24
Elm
UTF-8
Python
false
false
1,290
py
import os from utils import (load_scottish_psalter, load_sing_psalms, make_output_folder, remove_folder, remove_markup, zip_folder) def write_text_file(psalm, output_folder, fname): fname += ".txt" with open(os.path.join(output_folder, fname), 'w') as f: text = psalm['name'] + "\r\...
60995d970bc68dc1ec94fb35ac1deb625a4a25b0
648f742d6db2ea4e97b83c99b6fc49abd59e9667
/common/vault/oas/models/v1_release.py
390e9e08ca27c8e6365b47a2aae883c73a864c3e
[]
no_license
jmiller-tm/replit
c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86
c8e6af3268c4ef8da66516154850919ea79055dc
refs/heads/main
2023-08-30T00:49:35.738089
2021-11-16T23:09:08
2021-11-16T23:09:08
428,809,777
0
0
null
null
null
null
UTF-8
Python
false
false
5,968
py
# coding: utf-8 """ vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/...
24eec6af70636c91b4a73525876f8dd6d1baaa4a
d932716790743d0e2ae7db7218fa6d24f9bc85dc
/net/data/verify_certificate_chain_unittest/expired-root/generate-chains.py
93d5bb72522e7d46dc7a0d48bd93b24afe02747a
[ "BSD-3-Clause" ]
permissive
vade/chromium
c43f0c92fdede38e8a9b858abd4fd7c2bb679d9c
35c8a0b1c1a76210ae000a946a17d8979b7d81eb
refs/heads/Syphon
2023-02-28T00:10:11.977720
2017-05-24T16:38:21
2017-05-24T16:38:21
80,049,719
19
3
null
2017-05-24T19:05:34
2017-01-25T19:31:53
null
UTF-8
Python
false
false
1,185
py
#!/usr/bin/python # Copyright (c) 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Certificate chain with a root, intermediate and target. The root has a smaller validity range than the other certificates, making it...
0a846cfd6088e8cd659faee4934e1bd8e097a172
3d8ee0556e21cda020272ca958c1ea3c40bf648f
/130401_MultiLanguageChanging/PosMulti04_showSelectList_referToCase10.py
bce89870480eaf77d71614ddbaaf80c00480d02a
[]
no_license
nikoladang/POS_Indonesia
b60bf5c32d07c6aff065090cf5c8b5fede329d30
e06d5433af3480a5e215f980bbf263cbb374010d
refs/heads/master
2020-04-12T03:24:07.059745
2014-02-24T10:07:53
2014-02-24T10:07:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,782
py
#-*- coding: utf-8 -*- ##http://www.saltycrane.com/blog/2007/10/python-finditer-regular-expression/ """ Python version: 2.7 Purpose: posui:showSelectList 130506: apply (not k.endswith('0')) ignore blank line inside apply suffix 'MultiLang' Note: If can find staticValue but can not find appropriate key ...
897de58d13bf05f061a944969efdd949a05fd250
70d3a0b9592d67627613806361996848cbdf6e81
/tribune/urls.py
743c5c2d51d89d1e34935298e5819d997537bf86
[]
no_license
markmurimi/moringa-tribune
38c85bfbde40b0f6540f9c0c33150f8d8cb2672e
51ced550760bfcf05c97889cbef5c891ed33c8e1
refs/heads/master
2020-03-15T11:07:25.408649
2018-05-18T05:25:23
2018-05-18T05:25:23
132,112,436
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
from django.conf.urls import url,include from django.contrib import admin from django.contrib.auth import views from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ url(r'^api-token-auth/', obtain_auth_token), url(r'^admin/', admin.site.urls), url(r'',include('news.urls')), url...
a8f12a818bd905bf27433ceb1d88cd1adcb6fd03
bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd
/neekanee/job_scrapers/plugins/org/link/ecri.py
454de8cc4ab4aed3dae40d464a9b0baad832bcf6
[]
no_license
thayton/neekanee
0890dd5e5cf5bf855d4867ae02de6554291dc349
f2b2a13e584469d982f7cc20b49a9b19fed8942d
refs/heads/master
2021-03-27T11:10:07.633264
2018-07-13T14:19:30
2018-07-13T14:19:30
11,584,212
2
0
null
null
null
null
UTF-8
Python
false
false
1,543
py
import re, urlparse, urllib from neekanee.jobscrapers.jobscraper import JobScraper from neekanee.htmlparse.soupify import soupify, get_all_text from neekanee_solr.models import * COMPANY = { 'name': 'Economic Cycle Research Institute - ECRI', 'hq': 'Plymouth Meeting, PA', 'home_page_url': 'http://www.ec...
76cdb6dfccc2ed384bfad32b928caa9558191f83
9eee1566e436a883fa3bd0266c6a7375e34ab4d7
/notes/cli/commands/document/modify.py
14ee5e002dbbd79ebb3e9e1fe2bda613817eda8d
[]
no_license
gropax/qiq-django
aa87fa070bf2083aba9043ebc96c2287be2cf7e5
31f8c6ad717994bd9b37fcdde3fec8549be5aec1
refs/heads/master
2020-07-09T05:19:13.117991
2017-01-10T16:54:52
2017-01-10T16:54:52
65,904,082
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
import os from core.cli.command import Command, command from notes.cli.utils import Utils from notes.cli.commands.document import DocumentCommand @command('modify', DocumentCommand) class ModifyCommand(Command, Utils): aliases = ('mod',) def add_arguments(self, parser): parser.add_argument('name_or_i...
308c563f76e19aceed010d3587c7917ad4876a05
ccfe4eb1a0df72da1ffb35d082ce4eedcf3a55e0
/grade/views.py
63fda731f48957eefbc2fed69edd739dd1f5d9ec
[]
no_license
chydream/djangoDemo
a807a8f93f59dee4ecde031388a2cdb5172b3e84
94df813dcf3877a46dad572d5421e33862100a0d
refs/heads/master
2022-07-17T16:34:04.343259
2020-05-20T03:29:10
2020-05-20T03:29:10
258,780,831
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
from django.db.models import Sum, Max, Count from django.http import HttpResponse from django.shortcuts import render # Create your views here. from grade.models import Grade, Student def page_count(request): # num = Grade.objects.filter(student_name= '张三').aggregate(total=Sum('score')) # print(num) # ma...
ee5485a406a84015222484f56a780b6e480a68cd
37ba62db61fc4ec62634638763a984cbfbe40fe3
/day40/聊天/client1.py
774d118ed33968502dfa2d9a623bffb169cd56ad
[]
no_license
lt910702lt/python
ca2768aee91882c893a9bc6c1bdd1b455ebd511f
c6f13a1a9461b18df17205fccdc28f89854f316c
refs/heads/master
2020-05-09T22:54:22.587206
2019-09-17T09:02:53
2019-09-17T09:02:53
181,485,866
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
import socket import time sk = socket.socket() sk.connect(('127.0.0.1', 8080)) while True: sk.send(b'hi') ret = sk.recv(1024).decode('utf-8') print(ret) time.sleep(1) sk.close()
f2921abb6806d16d0f7ddc14a97f9baeff9ea3f2
f0856e60a095ce99ec3497b3f27567803056ac60
/Dacon/01newstopic_4_StratifiedKFold.py
4133bad05dab0a9658e9397d51e417687e2a2d98
[]
no_license
hjuju/TF_Study-HAN
dcbac17ce8b8885f5fb7d7f554230c2948fda9ac
c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a
refs/heads/main
2023-09-04T09:13:33.212258
2021-10-27T08:00:49
2021-10-27T08:00:49
384,371,952
1
0
null
null
null
null
UTF-8
Python
false
false
5,418
py
import numpy as np import re import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from icecream import ic from sklearn.metrics import accuracy_score,log_loss from sklearn.model_selection import StratifiedKFold import datetime import tensorflow as tf from tensorflow.keras import Sequential from ten...
6d28554b2234358e85f3e19d6f78774acae86379
312d40d6023858891dd32bda67579f7284a54c15
/02/01/isalpha.py
c0ee947563b96940abf5d767079a9e3478a11056
[ "CC0-1.0" ]
permissive
pylangstudy/201708
b67a49f091f5f949954e7b9a910a07761fe9a7d1
126b1af96a1d1f57522d5a1d435b58597bea2e57
refs/heads/master
2021-01-01T20:49:15.973299
2017-08-31T00:18:55
2017-08-31T00:18:55
98,936,656
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
print('aAzZ'.isalpha()) print('1'.isalpha())
26c8a0b64e7d7cd923089885b32824ea3c70e05b
3d2f5c005bbf4b4194fc105b9c2492d2bd09109c
/dynamic_scraper/utils/processors.py
bd0c67b62fb18e5f462ab21b7c780165b1adcc79
[]
no_license
mtaziz/django-dynamic-scraper
e9a51a3b95a84767412df5edb9806dae5bdb69e1
87ae65ec97a405e03e1c2493637581bfe2545410
refs/heads/master
2021-01-22T01:43:55.587001
2016-01-07T09:43:51
2016-01-07T09:43:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,393
py
#Stage 2 Update (Python 3) from __future__ import unicode_literals from builtins import str import datetime from scrapy import log def string_strip(text, loader_context): if not isinstance(text, str): text = str(text) chars = loader_context.get('string_strip', ' \n\t\r') return text.strip(chars) ...
19ef8cdbc0dc5200b8b935d3ddd5ac3d2fe2bd1d
c7bb79543b679061376eb10df110041b0556d54f
/ilastik/applets/thresholdTwoLevels/thresholdTwoLevelsGui.py
a73dad2e8b9c30fd44c512ec28348c480e45f383
[]
no_license
thorbenk/ilastik
26eaf01d571415b195a945f169bd3acd47a79613
fc009544f4c3119f082f0623ed82303527c6fd88
refs/heads/master
2021-01-18T21:55:37.803554
2013-04-08T16:32:19
2013-04-08T16:33:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,726
py
import os import logging from functools import partial from PyQt4 import uic from PyQt4.QtCore import Qt, QEvent from PyQt4.QtGui import QColor from volumina.api import LazyflowSource, AlphaModulatedLayer from ilastik.applets.layerViewer import LayerViewerGui from ilastik.utility.gui import threadRouted logger = log...
20a6e72b54eb96bd50108fafb8ea71a7affed7ec
1be65c272e2788f647534db9b3b003fc98228a71
/mi-api/miapi/controllers/about.py
dc84e905469c3868744ffa99e5665e04dad872b1
[]
no_license
camwes/thisis.me
e93e530cdddaab08d8796985ef88c0882ae142d0
e1c32d237a7410298fdb034cab8378d5ecc14973
refs/heads/master
2021-01-20T21:45:09.389189
2012-09-12T00:45:19
2012-09-12T00:45:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
def about(request): return {'project': 'mi-api'}
8e45a5d0f33b6ef3c3ec1f9a9cbe1fafc2635b40
aef4faef04d851fe24f2b3f28ae98daa2152e543
/spikestim/negbin_bayes.py
c4b32098dcf07116803003630d8ad78e1e479204
[]
no_license
dattalab/spikestim
b1580eec250e0a6b03796b200dfe22b15112228b
631152b3f173dc6c8fa2601ad917f899dc1210b9
refs/heads/master
2021-01-21T08:44:00.379078
2015-12-04T13:53:51
2015-12-04T13:53:51
45,796,063
0
0
null
null
null
null
UTF-8
Python
false
false
1,267
py
from __future__ import division import numpy as np from pybasicbayes.distributions import NegativeBinomial ''' The code in this file provides utilities for Bayesian estimation of negative binomial parameters through MCMC methods provided by pybasicbayes. The main function to use is get_posterior_samples(data, num_s...
e1f6613cc9681c42b7d3e9225e62499c04ee0236
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2/VelvetTie/pancakes.py
c27cdec091f729b20528e32b3b22c5d62d391cef
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,853
py
import sys def flip(to_flip): """ >>> flip('-') '+' >>> flip('+') '-' >>> flip('+++') '---' >>> flip('-+') '-+' >>> flip('--+') '-++' :param to_flip: :return: """ num_pancakes = len(to_flip) flipped = [0 for i in range(num_pancakes)] for i in ra...
b6d9a025d803dd7983357c17927e7543de6c6a3d
c2415d039d12cc3b1d587ce497527ff62867df41
/authentication/config.py
618701e23120609d0033d92185799d74b676d777
[ "MIT" ]
permissive
admin-dashboards/django-dashboard-light
dc207c07d1987b7b4af52c449502ccd797d4d979
96142cf7f9e807e575a1d444e1bb291d3f956652
refs/heads/master
2022-09-04T16:48:08.087092
2022-08-23T07:37:03
2022-08-23T07:37:03
232,156,115
1
0
MIT
2020-01-06T18:02:01
2020-01-06T18:02:00
null
UTF-8
Python
false
false
173
py
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django.apps import AppConfig class AuthConfig(AppConfig): name = 'authcfg'
a42a79d97b8e29b148476dc6d40564bfd92ecc97
d644b6cabb4fa88cf900c59799a2897f5a0702d8
/tests/base_tests/polygon_tests/test_triangulate.py
47fe7d21c053c0b7be0a50fce9abd3e709ea7763
[ "MIT" ]
permissive
lycantropos/gon
c3f89a754c60424c8e2609e441d7be85af985455
177bd0de37255462c60adcbfcdf76bfdc343a9c1
refs/heads/master
2023-07-06T01:11:57.028646
2023-06-26T20:47:14
2023-06-27T00:30:06
194,597,548
15
1
MIT
2023-06-27T00:30:07
2019-07-01T04:06:06
Python
UTF-8
Python
false
false
546
py
from functools import reduce from operator import or_ from hypothesis import given from gon.base import (Polygon, Triangulation) from . import strategies @given(strategies.polygons) def test_basic(polygon: Polygon) -> None: result = polygon.triangulate() assert isinstance(result, Tria...
b118f7c657f941a6bddce32f35f2d83780071954
d5fcafedcd49a666e960eff3c61cfc1bfe9e081c
/setup.py
e2c764c5e29695769d00c9b9812696849ab732a7
[ "BSD-2-Clause" ]
permissive
IndustriaTech/filebrowser-safe
29155ef662604d5b4f6ec8a9a94002d4c0e82858
2eda8ae594617a58455bca63f88689f2f0579aad
refs/heads/master
2021-05-29T07:49:26.957672
2014-02-05T09:13:42
2014-02-05T09:13:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
from setuptools import setup, find_packages setup( name="filebrowser_safe", version="0.3.1", description="A snapshot of the filebrowser_3 branch of django-filebrowser, " "packaged as a dependency for the Mezzanine CMS for Django.", long_description=open("README.rst").read(), autho...
903b3cf6c2069424d4e7db0124097fd3a7ef999a
5d6ff6a6dc2174a6362d2d2782470aab7c72b909
/quokka/core/tests/test_models.py
e09141ef787b87e931b2da032962caee0c496ede
[ "MIT" ]
permissive
imgugu/quokka
41afb4abe095223ba6f1c53aa5e695213832426e
301a1300bbd76b6f53569decdf3b3999ba87543f
refs/heads/master
2020-05-20T22:23:43.282781
2013-11-21T21:06:21
2013-11-21T21:06:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
# coding: utf-8 from . import BaseTestCase from ..models import Channel, Config class TestChannel(BaseTestCase): def setUp(self): # Create method was not returning the created object with # the create() method self.parent, new = Channel.objects.get_or_create( title=u'Father', ...
b180b7ee13e37740ff672f524e6d84abb68a9392
4ce2cff60ddbb9a3b6fc2850187c86f866091b13
/tfrecords/src/wai/tfrecords/object_detection/utils/json_utils_test.py
abd785fffd16944d382209e289dc19bd61f7b9e2
[ "MIT", "Apache-2.0" ]
permissive
8176135/tensorflow
18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0
2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1
refs/heads/master
2020-11-26T05:00:56.213093
2019-12-19T08:13:44
2019-12-19T08:13:44
228,970,478
0
0
null
2019-12-19T03:51:38
2019-12-19T03:51:37
null
UTF-8
Python
false
false
3,594
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
a547b0c580f6eb57a424adc7697b39ea1301b365
98cb4fbb8bd776f187a9baf42d66911ed52211c9
/archives/vocalSeparation/network.py
598ceef69799222575f8631b585a63b4c1585f5e
[ "MIT" ]
permissive
daniel769/Audio-Source-Separation
017878dd5302f76948f9db800c50a4a4c43e2c63
1693a9736fc08c53935aba7218ad82a271b42525
refs/heads/master
2022-02-13T16:14:28.279016
2018-10-24T04:15:25
2018-10-24T04:15:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
from module import * import hyperparams as hp def network(input_, use_mulaw=hp.use_mulaw): input_ = conv1d(input_, output_channels=hp.hidden_dim, filter_width=3) skip_connections = list() for i in hp.dilation: skip, res = residual_block(input_, rate=i, scope="res_%d" % i) input_ = res ...
8c63a54063013f4c1c82f843d7730ceee77f0320
64e0208fa243ebbab4855980a3f21be78a4a1025
/test/tests/object_new_arguments.py
873ff6bf2839456b969c7e3f8e8ae6893704f34f
[ "Python-2.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
H8ter/pyston
581f5fcb59bb8b19399347626639a688e92c80ff
4cd23054a81b58a8de32ecf43daab2cb2e67f53f
refs/heads/master
2021-01-15T13:28:46.252887
2015-07-24T21:39:13
2015-07-24T21:39:13
39,681,136
0
0
null
2015-07-25T10:46:01
2015-07-25T10:46:01
null
UTF-8
Python
false
false
484
py
# object.__new__ doesn't complain if __init__ is overridden: class C1(object): def __init__(self, a): pass class C2(object): pass print "Trying C1" object.__new__(C1, 1) object.__new__(C1, a=1) print "Trying C2" try: object.__new__(C2, 1) except TypeError as e: print "caught TypeError" # Th...
ff987874fe44fb55ab175f210783ce133f0d2703
da6d4be0d0eaa328972798ee50c5caf2f1e835c0
/third_party/blink/web_tests/external/wpt/tools/third_party/packaging/tests/test_tags.py
68b109a89f331a048e00491b0310a62c43b719d7
[ "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "LicenseRef-scancode-other-copyleft" ]
permissive
typememo/chromium
11aaa35726ee96d534ed6887827f3300520b463f
6d6968680269418cc260e000318ca70ae2d2c034
refs/heads/master
2023-02-13T19:23:39.438224
2021-01-13T07:45:16
2021-01-13T07:45:16
328,891,336
0
0
BSD-3-Clause
2021-01-12T06:19:07
2021-01-12T06:19:07
null
UTF-8
Python
false
false
54,693
py
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. try: import collections.abc as collections_abc except ImportError: import collections as collections_abc try: import ctypes ex...
f290ff4dd28be8504759cd53e837052886f33c30
52b5773617a1b972a905de4d692540d26ff74926
/.history/Triangle_20200731215410.py
fe4e6be1a02b61ab6337d20bc82d3816c5bb2875
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
def triangle(A): A.sort() for i in range(len(A)-2): p = A[i] q = A[i+1] r = A[i+2] print('p',p,'q',q,'r',r) if (p + q) < r: return 0 elif (q + r) < p: return 0 elif (r + p) < q: return 0 return 1 triangle ...
9d964dff99e224a5b1083c30488dc44ae8cf0580
d05e4b5f195d03506360483041c1864895e8f4da
/swe/helper.py
7ec2819606a2c728509b50d57c6d1d04c0e6db70
[]
no_license
swesust/backEnd
bf01724429e68c5c1f3d21330c6b3acf617dceff
eb4eae0981d6d88071a11f1b973c83916e6d199e
refs/heads/master
2021-11-21T16:42:51.275389
2019-07-03T22:01:14
2019-07-03T22:01:14
162,592,471
6
0
null
2021-09-08T00:48:02
2018-12-20T14:46:35
Python
UTF-8
Python
false
false
3,507
py
from swe import models from django.core.exceptions import ObjectDoesNotExist from django.core.files.storage import FileSystemStorage as FSS from io import BytesIO from PIL import Image as ImageProcess from time import time from os import remove, makedirs from os.path import isdir class Image(): """ storing displ...
1611270234bf7a281288c63ea3b1f053d5fad8f5
29da2ca6def1270be13a3096685a8e5d82828dff
/CIM15/IEC61970/Informative/InfLocations/LandProperty.py
1506c9c2dae654fc5114f761e075d8afd906fa91
[ "MIT" ]
permissive
rimbendhaou/PyCIM
75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3
d578bb0bf1af344342bd23344385ed9c06c2d0ee
refs/heads/master
2022-04-28T01:16:12.673867
2020-04-16T02:19:09
2020-04-16T02:19:09
256,085,381
0
0
MIT
2020-04-16T02:15:20
2020-04-16T02:08:14
null
UTF-8
Python
false
false
10,945
py
# Copyright (C) 2010-2011 Richard Lincoln # # 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, publish...
6f2bc69f6325b24048fbf182011b336ea9ff6e4e
cfa35dc2ea93ee0eceb2399a9e6112e987579c09
/stonesoup/reader/tests/test_opensky.py
82d07f42184777b38386c2e114ca28d738c58229
[ "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Python-2.0", "LicenseRef-scancode-secret-labs-2011" ]
permissive
dstl/Stone-Soup
227e6a9e6fbdceca14af3f0259f311ec74095597
f24090cc919b3b590b84f965a3884ed1293d181d
refs/heads/main
2023-09-01T14:33:14.626428
2023-09-01T11:35:46
2023-09-01T11:35:46
98,420,803
315
126
MIT
2023-09-14T14:55:34
2017-07-26T12:34:28
Python
UTF-8
Python
false
false
1,326
py
import pytest from ..opensky import OpenSkyNetworkDetectionReader, OpenSkyNetworkGroundTruthReader pytestmark = pytest.mark.remote_data @pytest.mark.parametrize( 'reader_type', (OpenSkyNetworkDetectionReader, OpenSkyNetworkGroundTruthReader)) @pytest.mark.parametrize( 'bbox', [None, (-7.57216793459,...
b6d090f6e0c520b5335e366c013a6a95871dfb02
b05685baab270b50918c49c1e25d3aef90f0e83d
/UNIV-2016/1-29-16.py
f07a9382203ea83de48a71657283bce4130ad3f7
[]
no_license
daxaxelrod/notes-from-4th-semester
1ec25a0503d608bc50e20dd5d12e612c78b27f25
ba2c257271bc00ce8dd7a2a5d5984069ac5ae4d8
refs/heads/master
2016-08-11T12:37:46.605993
2016-02-18T00:26:59
2016-02-18T00:26:59
51,965,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
Univ 280C Venture accelerator 2 Woot fucking woot the job market millennials face 25% activily engaged 55% not engaged in their work 20% activly disengaged at work Important priciples from last class PITCH INCESSEANTLY 80/20 rule learn from failure be aware of change and pain those l...
6c5bcffedb01927008252fa07772bd2336994e6b
31a0b0749c30ff37c3a72592387f9d8195de4bd6
/rllib/agents/sac/rnnsac_torch_policy.py
8418f88b165cadcf4dab4ca3b8deb974de66af01
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
longshotsyndicate/ray
15100bad514b602a3fa39bfe205288e7bec75d90
3341fae573868338b665bcea8a1c4ee86b702751
refs/heads/master
2023-01-28T15:16:00.401509
2022-02-18T05:35:47
2022-02-18T05:35:47
163,961,795
1
1
Apache-2.0
2023-01-14T08:01:02
2019-01-03T11:03:35
Python
UTF-8
Python
false
false
18,307
py
import gym import numpy as np from typing import List, Optional, Tuple, Type, Union import ray from ray.rllib.agents.dqn.dqn_tf_policy import PRIO_WEIGHTS from ray.rllib.agents.sac import SACTorchPolicy from ray.rllib.agents.sac.rnnsac_torch_model import RNNSACTorchModel from ray.rllib.agents.sac.sac_torch_policy impo...
199c9d62f0c02ac09f43a77d38a29026977066d8
a5e71a333a86476b9cb1bdf6989bb5f47dd5e409
/ScrapePlugins/M/KissLoader/ContentLoader.py
3b88b158cb8837c710fe9f4fc8942aa693f906c4
[]
no_license
GDXN/MangaCMS
0e797299f12c48986fda5f2e7de448c2934a62bd
56be0e2e9a439151ae5302b3e6ceddc7868d8942
refs/heads/master
2021-01-18T11:40:51.993195
2017-07-22T12:55:32
2017-07-22T12:55:32
21,105,690
6
1
null
2017-07-22T12:55:33
2014-06-22T21:13:19
Python
UTF-8
Python
false
false
8,123
py
import logSetup import runStatus if __name__ == "__main__": runStatus.preloadDicts = False import webFunctions import settings import os import os.path import nameTools as nt import time import sys import urllib.parse import html.parser import zipfile import traceback import bs4 import re import json import Scr...
1f0508ba72e0fa6b452f48d450270349e204b152
7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0
/0801-0900/0889-Construct Binary Tree from Preorder and Postorder Traversal/0889-Construct Binary Tree from Preorder and Postorder Traversal.py
91552f75a60306b6c33b24b37f46cb02f2423c10
[ "MIT" ]
permissive
jiadaizhao/LeetCode
be31bd0db50cc6835d9c9eff8e0175747098afc6
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
refs/heads/master
2021-11-05T04:38:47.252590
2021-10-31T09:54:53
2021-10-31T09:54:53
99,655,604
52
28
MIT
2020-10-02T12:47:47
2017-08-08T05:57:26
C++
UTF-8
Python
false
false
1,638
py
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def constructFromPrePost(self, pre: List[int], post: List[int]) -> TreeNode: if not pre: return None root = TreeNode(pr...
4a98b8fcc727e88ce26f8d3498359f3e14bd2787
76c50a9849b4093c6339dfeff888a5a0672a92bc
/yatsm/phenology/longtermmean.py
627bb96a977f314a1651c0440907c1813340f769
[ "MIT" ]
permissive
valpasq/yatsm
d2fac9c7eea6f8a785d6c5b6c24196bb9f441db0
44e2124c1bae3dd4245437475d709187f52d376d
refs/heads/master
2021-01-18T07:40:33.260515
2016-09-13T16:22:36
2016-09-13T16:22:36
40,021,588
0
0
null
2015-07-31T19:30:14
2015-07-31T19:30:14
null
UTF-8
Python
false
false
11,900
py
""" Implementation of Eli Melaas' Landsat phenology algorithm See: Melaas, EK, MA Friedl, and Z Zhu. 2013. Detecting interannual variation in deciduous broadleaf forest phenology using Landsat TM/ETM+ data. Remote Sensing of Environment 132: 176-185. """ from __future__ import division from datetime impo...
8f37d8f65cf54dd283e22acd078d5087397db1d3
a1b375c3e98fe059dafc4d74cbcbcb99a0571e44
/images/urls.py
7b1168a1108824ea4f65b15f1955c15b27075621
[ "MIT" ]
permissive
mohsenamoon1160417237/Social_app
478a73552ceed8001c167be6caaf550cd58626bd
79fa0871f7b83648894941f9010f1d99f1b27ab3
refs/heads/master
2022-12-09T16:03:53.623506
2020-09-21T05:59:22
2020-09-21T06:02:03
297,242,915
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
from django.urls import path from . import views urlpatterns = [ path('best_images/' , views.most_liked_images , name='most_liked_images'), path('' , views.image_post , name='image_post'), path('delete/<int:image_id>/<slug:image_slug>/' , views.image_delete , name='image_delete'), path('all/' , views.images , na...
3f8a0fafc7d03d42481365c073a4dad659afc6ac
49ba5356bdc5df7dd9803b56fe507c5164a90716
/greatest-common-divisor-of-strings/test_solution.py
2c2c95aefa31c52e1d40ac929287824839313cf5
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
from solution import Solution def test_solution(): s = Solution() assert s.gcdOfStrings(str1 = "ABCABC", str2 = "ABC") == "ABC"
f6661f51dac094fd1cd85b3211f221fd56caccff
aed888628faf0f52081a8711653489e3982ce0c1
/mininet/wifiPlot.py
53bf454c111ea4aa97d7b87df0f9606c7ee6ab4d
[]
no_license
tapparello/mininet-wifi
69d01beea7d9b456a254694f1c38c443f0b32560
0feb170337bef16ea1a972685fc4a0eaa1a51eea
refs/heads/master
2021-01-20T17:27:34.311830
2017-05-09T19:43:36
2017-05-09T19:43:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,857
py
""" author: Ramon Fontes ([email protected]) ramonfontes.com """ import matplotlib.patches as patches import matplotlib.pyplot as plt from mininet.log import debug from mpl_toolkits.mplot3d import Axes3D import numpy as np class plot3d (object): ax = None @classmethod def instantiateG...
6f82494371dfa89abc75f24106979386cb34c94a
41777d4d219ea97b4632f4a8a31ab6c82a60772c
/kubernetes_typed/client/models/v1_scale_io_volume_source.py
b1eccb02122f904eb1df1f33838af3ec15a3c9d6
[ "Apache-2.0" ]
permissive
gordonbondon/kubernetes-typed
501d9c998c266386dc7f66f522f71ac3ba624d89
82995b008daf551a4fe11660018d9c08c69f9e6e
refs/heads/master
2023-07-18T12:06:04.208540
2021-09-05T19:50:05
2021-09-05T19:50:05
319,183,135
24
2
Apache-2.0
2021-09-05T19:50:06
2020-12-07T02:34:12
Python
UTF-8
Python
false
false
584
py
# Code generated by `typeddictgen`. DO NOT EDIT. """V1ScaleIOVolumeSourceDict generated type.""" from typing import TypedDict from kubernetes_typed.client import V1LocalObjectReferenceDict V1ScaleIOVolumeSourceDict = TypedDict( "V1ScaleIOVolumeSourceDict", { "fsType": str, "gateway": str, ...