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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73aaac7076a35b1339df56a6ec97847718e5b576 | a9063fd669162d4ce0e1d6cd2e35974274851547 | /swagger_client/models/inline_response20037.py | 95fc2cf006de2311defe2c4535c4bd38e08daa3b | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,916 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
473643508173d56ecf3fe8c14b5fb62600047a35 | 4f4ab46092c73b1cfb0a7730bb3ed59b829552a9 | /src/transitive_closure.py | 724181ea557f3b713347230a46afc1f6c3137049 | [
"Unlicense"
] | permissive | kemingy/daily-coding-problem | ab3dcab662593fa9ce15ef49a9105cf962514189 | 0839311ec0848f8f0b4a9edba817ecceb8f944a0 | refs/heads/master | 2020-03-27T06:05:52.028030 | 2019-08-07T03:32:33 | 2019-08-07T03:32:33 | 146,078,162 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | # The transitive closure of a graph is a measure of which vertices are reachable
# from other vertices. It can be represented as a matrix M, where M[i][j] == 1
# if there is a path between vertices i and j, and otherwise 0.
# For example, suppose we are given the following graph in adjacency list form:
# graph = ... | [
"kemingy94@gmail.com"
] | kemingy94@gmail.com |
b92d0a536b3759e0b69960e134bad0a246f04b01 | 641f76328bfeb7e54f0793a18c5b7c00595b98fd | /packages/qcache/store/goods/migrations/0002_goods_version_timestamp.py | 0b0f87ec3a36bf092a87088fbcb5790ff2d77058 | [
"Apache-2.0"
] | permissive | lianxiaopang/camel-store-api | 1d16060af92eb01607757c0423377a8c94c3a726 | b8021250bf3d8cf7adc566deebdba55225148316 | refs/heads/master | 2020-12-29T13:23:18.118617 | 2020-02-09T08:38:53 | 2020-02-09T08:38:53 | 238,621,246 | 0 | 0 | Apache-2.0 | 2020-02-07T14:28:35 | 2020-02-06T06:17:47 | Python | UTF-8 | Python | false | false | 414 | py | # Generated by Django 2.2.7 on 2019-12-02 09:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='goods',
name='version_timestamp',
... | [
"lyh@gzqichang.com"
] | lyh@gzqichang.com |
8f91fa57271dc972b722d8279dc9b614fbfcc268 | baf3996414315ffb60470c40c7ad797bf4e6897f | /02_ai/1_ml/8_ensemble_learning/code/chapter_23/10_tune_learning_rate.py | 8d53a5f6b6e2f205074bced889b430ee25fd1526 | [
"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 | 1,580 | py | # explore xgboost learning rate effect on performance
from numpy import mean
from numpy import std
from sklearn.datasets import make_classification
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import RepeatedStratifiedKFold
from xgboost import XGBClassifier
from matplotlib import pyp... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
5ca887c236dfdd6747f88e3232427442936668e0 | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /calibrate_CN_histograms.py | f60c6b0dedfab4fd51811d34d1ef3f915ca51ac7 | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,893 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 7 10:33:59 2016
@author: lpsmith
"""
from __future__ import division
import lucianSNPLibrary as lsl
from os import walk
nsamples_min = 21 #Arbitrary value: minimum number of samples we require
nsamples_max = 100000000
binwidth = 0.001
#indir = "CN_calc_log2rs/"
#out... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
f3831fe26da6c678dc2e49829f78175589d64d94 | 37d8802ecca37cc003053c2175f945a501822c82 | /10-贪心算法/0455.py | abdf70825a17b0ff77b8e07df26ed88d679067fd | [
"Apache-2.0"
] | permissive | Sytx74/LeetCode-Solution-Python | cc0f51e31a58d605fe65b88583eedfcfd7461658 | b484ae4c4e9f9186232e31f2de11720aebb42968 | refs/heads/master | 2020-07-04T18:17:24.781640 | 2019-07-30T03:34:19 | 2019-07-30T03:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | class Solution:
def findContentChildren(self, g: List[int], s: List[int]) -> int:
g.sort() # [2,3]
s.sort() # [1,2,3]
# 如果小的饼干满足不了贪心指数最小的小朋友,就放弃这个饼干
gi = 0
si = 0
res = 0
while gi < len(g) and si < len(s):
if s[si] >= g[gi]:
si +=... | [
"121088825@qq.com"
] | 121088825@qq.com |
8e9b01a78a6b4215a07315e90ff3abf14419c6af | fed019ab105b513e935fc9f3f3119db5c212c565 | /algorithm/community_detection.py | 77676a894fcbe29355151a013e612afea50e7a2e | [] | no_license | superf2t/ringnet | d7194d31c22f7d5d1dd1aa46d62fca5c34a6f566 | 322942f47bdf27728bdf17e2d71122d8da13361a | refs/heads/master | 2021-01-24T02:53:44.552344 | 2012-12-25T15:22:48 | 2012-12-25T15:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | '''
Created on Dec 19, 2012
@author: Yutao
Implementation of Girvan-Newman Community Detection Algorithm For Weighted Graphs
'''
import networkx as nx
import pkg_resources
pkg_resources.require("matplotlib")
import matplotlib.pylab as plt
import math
import csv
import random as rand
from metadata import settings
#th... | [
"stack@live.cn"
] | stack@live.cn |
6753857b3ae30e5fc86eb478872920d47de427dc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_nervier.py | 50e82697190213ebc90d28e9ab11efd7627c8f7f | [
"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 | 243 | py |
from xai.brain.wordbase.adjectives._nervy import _NERVY
#calss header
class _NERVIER(_NERVY, ):
def __init__(self,):
_NERVY.__init__(self)
self.name = "NERVIER"
self.specie = 'adjectives'
self.basic = "nervy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7165431f6198b23aa6e71561e48cfa8437fcba30 | 55173732ce1f2537a4fd8a6137b2a813f594b250 | /azure-mgmt-logic/azure/mgmt/logic/models/workflow.py | e29da68ee3c7ab95fd4d64e671e2c476bfbbee04 | [
"Apache-2.0"
] | permissive | dipple/azure-sdk-for-python | ea6e93b84bfa8f2c3e642aecdeab9329658bd27d | 9d746cb673c39bee8bd3010738c37f26ba6603a4 | refs/heads/master | 2020-02-26T15:32:39.178116 | 2016-03-01T19:25:05 | 2016-03-01T19:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
ebfd9a9dfa0d0b83abbaeea867ebb361b67b0170 | 7cdd4ebfb492b6f50f8dba8c4adde9058d4d0105 | /thank_you_stars/_extractor.py | d96c781d19982fdc791cd2497c707bed696d2ea9 | [
"MIT"
] | permissive | jayvdb/thank-you-stars | 74b1321c258680d466aeba778cd719ec3a91ccf8 | 9dbeec873839a0472735dfdc38eeea8bcb0eb199 | refs/heads/master | 2021-05-21T07:44:44.142527 | 2020-04-02T13:43:41 | 2020-04-02T13:43:41 | 252,606,147 | 0 | 0 | MIT | 2020-04-03T01:40:35 | 2020-04-03T01:40:34 | null | UTF-8 | Python | false | false | 16,314 | py | import re
from collections import namedtuple
from difflib import SequenceMatcher
import msgfy
import retryrequests
import simplejson as json
from github.GithubException import RateLimitExceededException, UnknownObjectException
from mbstrdecoder import MultiByteStrDecoder
from pathvalidate import sanitize_filename
from... | [
"tsuyoshi.hombashi@gmail.com"
] | tsuyoshi.hombashi@gmail.com |
abf5cb941fac1874cfb1518b1df89f92c70bdc1b | ae7ba9c83692cfcb39e95483d84610715930fe9e | /jw2013/Leetcode-Py/Word Ladder II.py | f25c932467a340d39233741d56bf9fa9a057abd0 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | class Solution:
def backtrack(self, result, trace, path, word):
if len(trace[word]) == 0:
result.append([word] + path)
else:
for prev in trace[word]:
self.backtrack(result, trace, [word] + path, prev)
def findLadders(self, start, e... | [
"xenron@outlook.com"
] | xenron@outlook.com |
11f8805a3402a80099be4d5d5858bfcfe7aa76e9 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /updated_debug_branch_loop_mcs/interreplay_26_r.3/replay_config.py | 16dc3f2fb2d3bad8277505363a2b8eb9c6866f0c | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pox.py --verbose sts.syncproto.pox_syncer --blocking=False... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
2c0f1cf4b9b357f1424d5f1ef20680b82fdd0856 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /know_problem_over_group/hand_or_young_way/able_case/fact.py | 5e6e5cdadb856652ee5e1124bc52d79def4c99ec | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
#! /usr/bin/env python
def time(str_arg):
get_case_with_case(str_arg)
print('hand')
def get_case_with_case(str_arg):
print(str_arg)
if __name__ == '__main__':
time('week')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
b0b16093569febbff40973724100b76c6c799077 | 79910ec27631b7e1f7f36eef0ab453ab66ebdc1b | /smartcontract/forms.py | 50cf4d81e6f670820991a3be7380302b09af2e5f | [] | no_license | SaurabhAgarwala/VeriBuy | bdbe2d93cff7e5335e09f3946dd1566c82ef599b | f971a21752dfd1c9ca9c143beb2ac30bdfa22b41 | refs/heads/main | 2023-01-13T00:57:10.869994 | 2020-11-04T16:47:58 | 2020-11-04T16:47:58 | 309,657,968 | 0 | 0 | null | 2020-11-03T14:01:19 | 2020-11-03T11:00:02 | Python | UTF-8 | Python | false | false | 290 | py | from django import forms
from . import models
class ProductForm(forms.ModelForm):
class Meta:
model = models.Product
fields = ['name', 'desc', 'retailer']
class EditOwnerForm(forms.ModelForm):
class Meta:
model = models.Product
fields = ['owner']
| [
"saur.agarwala@gmail.com"
] | saur.agarwala@gmail.com |
3cf80b733c974ec0f5aaaa1bc68f553ec0617fcd | 3b239e588f2ca6e49a28a63d906dd8dd26173f88 | /code/dlgo/gtp/play_local.py | cc9bdc1acbc90d702fa98051d9d530a2ce4c61b1 | [] | no_license | Angi16/deep_learning_and_the_game_of_go | 3bbf4f075f41359b87cb06fe01b4c7af85837c18 | ba63d5e3f60ec42fa1088921ecf93bdec641fd04 | refs/heads/master | 2020-03-23T16:02:47.431241 | 2018-07-21T02:57:16 | 2018-07-21T02:57:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,604 | py | from __future__ import print_function
# tag::play_local_imports[]
import subprocess
import re
import h5py
from dlgo.agent.predict import load_prediction_agent
from dlgo.agent.termination import PassWhenOpponentPasses, TerminationAgent
from dlgo.goboard_fast import GameState, Move
from dlgo.gotypes import Player
from d... | [
"max.pumperla@googlemail.com"
] | max.pumperla@googlemail.com |
16a959f9551c63b9e032874c0a95782b2913e825 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1762390/homework02/program01.py | 484371a7177473da3ea507bbb64ce466f2882439 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | '''
I post di un forum sono raccolti in alcuni file che hanno il seguente formato.
Un file contiene uno o piu' post, l'inizio di un post e' marcato da una linea che contiene
in sequenza le due sottostringhe "<POST>" ed "N" (senza virgolette) eventualmente
inframmezzate, precedute e/o seguite da 0,1 o piu' spazi.
"N"... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
a2123dd872e54d5bfb69f05e3c75c3e39798d898 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Google/Contacts/DeleteContact.py | 78bb4c79c9ac5d784d8bf6d9ad842b30e04edc0a | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# DeleteContact
# Deletes a specified contact.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file exce... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
825c346e273d17a72f1d35f21788c2d5ab12a219 | a8cdbe8b8fc01d5b1ec46fadbcd6914c2ddee55f | /test.py | a4beae7ea36c5e8bde211b068eae002ddc8bc276 | [] | no_license | kiwonNam/bl-df-crawl-amz | 8b8b8e88a343183d473d24a42a52011a22ce822b | 9e70c0e1ce80a9e8f33568621222d3cf2a42ad33 | refs/heads/master | 2021-04-15T15:36:13.438663 | 2018-03-27T02:31:02 | 2018-03-27T02:31:02 | 126,917,413 | 0 | 1 | null | 2018-03-27T02:32:06 | 2018-03-27T02:32:06 | null | UTF-8 | Python | false | false | 95 | py | from stylelens_crawl_amazon.stylelens_crawl import StylensCrawler
crawler = StylensCrawler()
| [
"master@bluehack.net"
] | master@bluehack.net |
21232647b1233b1d7d6dffa03ced25db2595b0a7 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1_neat/16_1_1_swmuron_a.py | 8645bb1c638b89d9b6e0812c33738dfd700156c8 | [] | 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 | 768 | py |
import sys
def solveIt(s):
maxletter = ''
word = ''
index = 0
slen = len(s)
while (index < slen):
print 'm: ' + maxletter + ' s[index]:' + s[index] + ' word: '+word
if (s[index] >= maxletter):
maxletter = s[index]
word = maxletter + word
else:
word = word + s[index]
inde... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
9dc93f7d0d72e35617b1dbf9bce7acc7bee7d8d1 | c33690a1cf47cd18e755f30260291d51912c690f | /App_Base/migrations/0011_reunion_url.py | 35a13408cfa6f5046d11c39f2cee2758916a8862 | [] | no_license | otonelunico/LegalAssistant | 6cb5075b096684546a6ad862aa5c486c1efc59ad | 5c2c4308c10e0a353fa58e9d8bd4d699e74f3f38 | refs/heads/master | 2021-05-14T12:25:24.181305 | 2018-01-19T06:14:36 | 2018-01-19T06:14:36 | 116,408,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.0.1 on 2018-01-18 03:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App_Base', '0010_auto_20180118_0007'),
]
operations = [
migrations.AddField(
model_name='reunion',
name='url',
... | [
"ocubillosj@gmail.com"
] | ocubillosj@gmail.com |
12e6bd1a6377a46682d6e5a77fc44c3c2f105f1c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nineveh.py | aac83ac0a32d4a323fd3bad7f4af0cfb0cd40214 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 138 | py | ii = [('GodwWSL2.py', 1), ('CarlTFR.py', 1), ('WilkJMC.py', 1), ('DequTKM.py', 1), ('JacoWHI.py', 1), ('ClarGE3.py', 1), ('TaylIF.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
69b79dfd44ec5c39409aab69e8881d86af9b6259 | cb062c48280311134fe22573a41f9c4d6631b795 | /tests/misc/helper.py | 81168afcfd985e0ac0e4ce347719d64a6c5ce40e | [
"MIT"
] | permissive | xm-blockchain/xm-core | da1e6bb4ceb8ab642e5d507796e2cc630ed23e0f | 2282b435a02f061424d656155756d8f50238bcfd | refs/heads/main | 2023-01-15T19:08:31.399219 | 2020-11-19T03:54:19 | 2020-11-19T03:54:19 | 314,127,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,848 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import contextlib
import os
import shutil
import tempfile
import time
from copy import deepcopy
import simplejson as json
from mock import mock
from pyxmlib.pyxmlib im... | [
"74695206+xm-blockchain@users.noreply.github.com"
] | 74695206+xm-blockchain@users.noreply.github.com |
012177334ec8f809c2bbf8045d8214bce7b3681b | aa73e301f658b45a9674df4b619b288945dd0669 | /branches/sal_refactor_generic_classes/dot/pygraph/readwrite/dot.py | 4b78b3c840094be85ee1db739bc835d7801abd8b | [
"MIT"
] | permissive | svn2github/python-graph2 | e1c37f77cc0a27ac9099208876c63693bffbc929 | f19039d7f3fc1f04977c3f1d1d6128e8545ebef1 | refs/heads/master | 2020-04-30T04:11:38.475209 | 2013-04-19T01:06:14 | 2013-04-19T01:06:14 | 9,714,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,956 | py | # Copyright (c) 2007-2009 Pedro Matiello <pmatiello@gmail.com>
#
# 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,... | [
"salimfadhley@70df0079-b534-0410-988b-a5721c0f2d16"
] | salimfadhley@70df0079-b534-0410-988b-a5721c0f2d16 |
bb1f4318b509f59fd872544e381aac00d5246fa6 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R4/benchmark/startQiskit_QC726.py | 332c0f75c85ee32a7ea60c476b48ef53c4b5a3db | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | # qubit number=3
# total number=15
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
c9010c7ba0e51b3a1b1197ee877afebf8cfe4af1 | 9ccf9e6ad40081e40d604976cf7d28fd99dcb128 | /alr/training/ephemeral_trainer.py | bae429ef9cfe1efe3aa35ba342f2063cc0192f20 | [
"MIT"
] | permissive | darth-donut/alr | 30e6c16e54aca182fa24f0510d7208e3b9629620 | ee561c545bd98ec17c4f9c3040ef23b0222ef71a | refs/heads/master | 2023-03-31T07:29:47.629779 | 2021-01-03T23:36:05 | 2021-01-03T23:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,965 | py | from collections import defaultdict
from alr import ALRModel
from alr.data import RelabelDataset, PseudoLabelDataset, UnlabelledDataset
from alr.training.utils import EarlyStopper, PLPredictionSaver
from alr.utils._type_aliases import _DeviceType, _Loss_fn
from typing import Optional, Callable, Union
import numpy as ... | [
"jiahfong@gmail.com"
] | jiahfong@gmail.com |
98583b6671a894809709798e797a7a4c7c2b95e3 | e700cbfcfa43aa42449cbcd2c337727fe398f253 | /twit/api/security.py | 0db3ac998687106af9443c90eae6643494595d72 | [
"MIT"
] | permissive | pchudzik/tweet | 28b12787667dae25dda64ab97218ed35703057c5 | 1938dae6be1359d73a8140b994c3db39d2b336da | refs/heads/master | 2020-04-23T11:57:40.508876 | 2019-03-15T20:03:55 | 2019-03-15T20:03:55 | 171,153,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from flask_jwt_extended import jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt
from flask import jsonify, request, Flask
from twit import users, tokens
def login_user():
payload = request.get_json()
login_state = users.login(payload.get("login"), payload.get("password"))
if login_... | [
"pawel.chudzik@gmail.com"
] | pawel.chudzik@gmail.com |
310ff641b989d7940cc1695fbdb8b6061811b6d1 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /fNQEi9Y2adsERgn98_5.py | 326ac1c77e47cba36deeba658a0cc5c63b081e7c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | """
Write a function that takes the coordinates of three points in the form of a
2d array and returns the perimeter of the triangle. The given points are the
vertices of a triangle on a two-dimensional plane.
### Examples
perimeter( [ [15, 7], [5, 22], [11, 1] ] ) ➞ 47.08
perimeter( [ [0, 0], [0, 1], ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
02a82b5faedbd3a91ab09f0fa5a843fc3ac9a56f | 4e67c2edd71493a98a3f13e5b2073c1d05b1b656 | /Semestre 02/ProjetoIntegrador2/Aula 11.05.2020/heranca.py | e3253170a13af5d997f7c8028fca9b4ae7cf97aa | [] | 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 | 3,948 | py | ''' UniCEUB - Ciência da Computação - Prof. Barbosa
Atalho de teclado: ctlr <d>, duplica linha. ctrl <y>, apaga linha. ctrl </>, comenta linha
1- Crie a classe Funcionario com os atributos nome, cpf, salario
- Crie o construtor da classe Funcionario def __init___ (self, ...). Teste
3- Crie uma instância (obj... | [
"felipellima83@gmail.com"
] | felipellima83@gmail.com |
bf597a4acd8431cb675a1fa2e2141e59cced6163 | 805f2236caaec6c75629a7ce7a4b00c2c5b5e0f1 | /object_detection/anchors.py | b0d1d43863ac93eaee1e60dd2ca64758967d2ffa | [] | no_license | pai-plznw4me/object_detection | 7cccc46a32aded7828ce75edffbece35b6370177 | 43cf167e2c73c75682db888a11bce3321bb2d73f | refs/heads/master | 2020-11-24T20:27:01.116215 | 2019-12-28T07:18:19 | 2019-12-28T07:18:19 | 228,329,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,691 | py | import numpy as np
import tensorflow as tf
from tensorflow.keras import backend as K
def generate_anchor(input_tensor,
backbone_output,
anchor_default_sizes=(32., 64., 128.),
anchor_ratio=(0.5, 1, 2)):
"""
Description:
Anchors 을 생성합니다
Ar... | [
"plznw4me@naver.com"
] | plznw4me@naver.com |
0ead00a9de13ee038b09006097ebe531c1fb1e13 | 4369c5a214f8c4fb1f8a286f72d57cfa9c3f02c7 | /geotrek/flatpages/migrations/0006_auto_20200406_1413.py | 2c0159b11ab5d6e1e3e01fbedfeda9c5f6637a40 | [
"BSD-2-Clause"
] | permissive | GeotrekCE/Geotrek-admin | c13d251066e92359c26f22d185b8bd2e26e622ef | a91b75261a876be51ad2a693618629900bea6003 | refs/heads/master | 2023-08-21T12:45:25.586551 | 2023-08-09T12:28:33 | 2023-08-09T12:28:33 | 9,886,107 | 71 | 56 | BSD-2-Clause | 2023-09-13T09:40:33 | 2013-05-06T12:17:21 | Python | UTF-8 | Python | false | false | 550 | py | # Generated by Django 2.0.13 on 2020-04-06 14:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('flatpages', '0005_auto_20200228_2150'),
]
operations = [
migrations.RunSQL('ALTER SEQUENCE p_t_page_id_seq RENAME TO flatpages_flatpage_id_seq;'),
... | [
"gael.utard@makina-corpus.com"
] | gael.utard@makina-corpus.com |
ca543090d0178402418aaec36a7a435942abb28f | 3b84ca7d132e6ca5004029d39bfa7c8fead07fe1 | /arnold/5.3.1.0/package.py | 69832010ff5d3970be4247eb14dfda606c5bd6b4 | [] | no_license | est77/rez-packages | 05a5a05224e02c0a28bc37a81cbd07ca7447d604 | 449ade7acf92196efda2e8ec883c52ba4e33262d | refs/heads/master | 2020-05-27T10:35:02.323417 | 2020-02-23T19:03:05 | 2020-02-23T19:03:05 | 82,542,112 | 22 | 7 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # -*- coding: utf-8 -*-
name = "arnold"
version = "5.3.1.0"
description = "Arnold"
def commands():
env.PATH.append("{root}/bin")
env.LD_LIBRARY_PATH.append("{root}/bin")
env.PYTHONPATH.append("{root}/python")
| [
"ramenhdr@gmail.com"
] | ramenhdr@gmail.com |
20fd63457fbe8324e6d75d4f58117473bc620f2b | 4f972877da14226125440b3da9bdb058764d8a54 | /mlflowDemo/sklearn_logistic_regression.py | 09b1659d8a2feb4deb3ff623ec6a439ff6c83977 | [] | no_license | ZhiYinZhang/study | 16c29990cb371e7e278c437aa0abc7c348614063 | 8c085310b4f65e36f2d84d0acda4ca257b7389af | refs/heads/master | 2021-07-09T16:05:02.925343 | 2020-06-30T07:53:05 | 2020-06-30T07:53:05 | 153,767,096 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# datetime:2019/11/11 11:56
import numpy as np
from sklearn.linear_model import LogisticRegression
import mlflow
from mlflow import sklearn
if __name__ == "__main__":
mlflow.set_tracking_uri("http://localhost:5001")
# mlflow.create_experiment("sklearn logistic re... | [
"2454099127@qq.com"
] | 2454099127@qq.com |
9dc567114028c18e7f20da8e620668d1ca00936d | ba35ce41c1cf8a1cd75441df1b7173c6606b8c7f | /si_prefix/tests/test_si_format.py | 502e967aed31fa6665d8f1b226678bb31eade23f | [
"BSD-3-Clause"
] | permissive | Lucaszw/si-prefix | 352396f184ed041d3054b10cddcd894deee3f3cf | e1f73d6abb3735cc6aad70eb216cb92a7736892a | refs/heads/master | 2021-06-20T11:06:08.101055 | 2017-07-30T04:17:32 | 2017-07-30T04:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | # coding: utf-8
from nose.tools import eq_
from si_prefix import si_format
TEST_CASES = [(1e-27, '1.00e-27'),
(1.764e-24, '1.76 y'),
(7.4088e-23, '74.09 y'),
(3.1117e-21, '3.11 z'),
(1.30691e-19, '130.69 z'),
(5.48903e-18, '5.49 a'),
... | [
"christian@fobel.net"
] | christian@fobel.net |
45d253c567b327996b18ea3c6e7bf4caeb94dd7a | b4efe7a85bbde01cd47189bcc0298594baae7a14 | /code/54.py | c431441835953ac567f5c06b5dcbca0b2531fcef | [] | no_license | HarshaaArunachalam/guvi | c200e05dc0c259bfabfc0ee58c1ab9b6412b89a7 | 67c87e8fe50d645036333649759b5b1a40369004 | refs/heads/master | 2020-05-31T06:27:27.104793 | 2019-06-11T18:31:43 | 2019-06-11T18:31:43 | 190,141,812 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | num=int(input())
number=(num//2)*2
print(number)
| [
"noreply@github.com"
] | HarshaaArunachalam.noreply@github.com |
e961cf89a9e27dee6daa9cb7527a45eaf9db66b0 | 68b2e5981caadabd6a4ecec5dab69831979b33f2 | /job_portal/urls.py | 5d01babc1e71be29b10536a68e717fa37420dc88 | [] | no_license | linker10/jodep | a78b853743b701ef3a63ed6f8555e280e20f1048 | 7f533e9ee68e57eb19a874390e087ca19d786d60 | refs/heads/master | 2022-12-30T20:34:06.721603 | 2020-10-14T17:14:15 | 2020-10-14T17:14:15 | 292,902,953 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | """job_portal URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"bilalsharif4@gmail.com"
] | bilalsharif4@gmail.com |
4eb534b6c3f8fc7ab0a1340f2bb63bf369c7e86a | 656df056ad736fdaaa1ef428ef09786c5a3d1494 | /codigo/ESP32/boot.py | 9b8ce49b77c2b0a915f6328fe69091b79e1b4d73 | [] | no_license | javacasm/micropythonTutorial | a610024096b50512347bcb72937facd41cf6db8e | cc90e26763ef884e0311eecccc6c72c6c94a0a30 | refs/heads/master | 2022-02-03T20:06:10.315551 | 2022-01-25T11:02:09 | 2022-01-25T11:02:09 | 159,473,846 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | # This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import webrepl
import network
iw = network.WLAN(network.STA_IF)
iw.active(True)
iw.connect('OpenWrt','qazxcvbgtrewsdf')
webrepl.start()
iw.ifconfig()
print('esp32 Lolin32.34')
| [
"javacasm@gmail.com"
] | javacasm@gmail.com |
23cf0b4eab94f6e562a94369a9a428538ba2f765 | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/market_tools/tools/complain/util.py | beac7fad6a1a9d61bdf0ff35d0765fc78f27069d | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | # -*- coding: utf-8 -*-
from django.contrib.auth.models import User, Group, Permission
from django.db.models import F
import time
from market_tools.prize.models import Prize
from market_tools.tools.coupon import util as coupon_util
from watchdog.utils import watchdog_fatal, watchdog_error
from modules.... | [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
c59aaab11b58925f08a80bb679e33fb9aca93f2d | 97af2f80f417afce2f5a41d6b9dfe077b5f6e4f5 | /publication/migrations/0002_auto__del_watched__del_liked__del_rated__del_forward__del_alert__add_f.py | d53330467bdd514aa7db09dce92525569062e220 | [] | no_license | valdergallo/puuublic | a10457579da05a64216d3bf6d76fbad49b036e76 | 59ae2ecc236368fdff190df854d063a7ae1e1b04 | refs/heads/master | 2021-01-10T20:39:17.704433 | 2013-05-01T02:06:35 | 2013-05-01T02:17:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,574 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Watched'
db.delete_table('publication_watched')
# Deleting model 'Liked'
... | [
"valdergallo@gmail.com"
] | valdergallo@gmail.com |
9799bfd8fcc771cd4435949af42db1f97eb1cf32 | c8b1d07ba58a82ce58623c4e67703e1a71251691 | /ChipSeq/ComparePeak/combine.py | 2e35eece161fd30d8f90bfe31a6dfdab7b6122fa | [] | no_license | jumphone/Bioinformatics | 17a54740033b3fafb1efee52b770ae023765e39b | 58b7a83233e43fd2cb4db8baa0a1379d1fbf07c9 | refs/heads/master | 2021-04-27T07:27:26.423309 | 2020-11-26T09:04:23 | 2020-11-26T09:04:23 | 122,632,340 | 25 | 14 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import sys
fa=open(sys.argv[1])
f1=open(sys.argv[2])
f2=open(sys.argv[3])
fo=open(sys.argv[4],'w')
old=[]
for line in fa:
old.append(line.rstrip())
set1=set()
for line in f1:
seq=line.rstrip().split('\t')
if int(seq[-4])>0:
set1.add(seq[0]+'\t'+seq[1]+'\t'+seq[2]+'\t'+seq[3])
set2=set()
... | [
"noreply@github.com"
] | jumphone.noreply@github.com |
96844d6e1b7cbb1e0c4df2cf34bf1e2323da26d5 | 4412fd856cfbdfab98122b11ea01e447a76851b3 | /rodentdb/migrations/0036_auto_20190621_1805.py | 2901595ecec0afdf9c55748cf027ceb41f509900 | [] | no_license | fchampalimaud/rodentdb | d8e8c0c7552de638d3a2fd57de287401997fdf3c | 4a970c09da78f22a8c57d8ea98d29a569f531613 | refs/heads/master | 2021-06-18T02:05:19.200858 | 2019-09-17T18:09:57 | 2019-09-17T18:09:57 | 185,334,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # Generated by Django 2.1.8 on 2019-06-21 17:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rodentdb', '0035_rodent_origin'),
]
operations = [
migrations.AlterModelOptions(
name='origin',
options={'ordering':... | [
"hugo.cachitas@research.fchampalimaud.org"
] | hugo.cachitas@research.fchampalimaud.org |
b914488248139a3f003a0b38e8d485dc08daed30 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Skimage_numpy/source/skimage/segmentation/_clear_border.py | a44f07859aa9bb75d87a4367a8a97fc326a07f6c | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 2,504 | py | import numpy as np
from ..measure import label
def clear_border(labels, buffer_size=0, bgval=0, in_place=False):
"""Clear objects connected to the label image border.
The changes will be applied directly to the input.
Parameters
----------
labels : (N, M) array of int
Label or binary ima... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
66e328a42fc7eace24bdcf174e58a64c8389a711 | 337d17b845f5fdd7f32f6a0607e494eed488a601 | /leetcode/405-convert-number-hexadecimal.py | 3d8c5916e2972e42026261cbfded5ed8cf102540 | [] | no_license | karsibali/solutions | e6130abe026a26558434239cde39c6a14a9712ba | 4ba5d7ac41fecc87491cae2c88293bd798db31fd | refs/heads/master | 2020-04-29T00:13:34.168323 | 2018-12-27T15:43:26 | 2018-12-27T15:43:26 | 175,686,183 | 1 | 0 | null | 2019-03-14T19:27:00 | 2019-03-14T19:27:00 | null | UTF-8 | Python | false | false | 407 | py | SYMS = '0123456789abcdef'
class Solution(object):
def toHex(self, num):
if num < 0:
num = (1 << 32) + num
digits = []
while num > 0:
digits.append(SYMS[num & 15])
num >>= 4
return digits and ''.join(reversed(digits)) or '0'
if __name__ == '__mai... | [
"ozan.onay@gmail.com"
] | ozan.onay@gmail.com |
cdcd7bc6c9374134941acf33f390338df306523c | 19e3fc8e92b1430625987f97068889dfa94caafd | /concierge/endpoints/templates.py | 62ce78437948765cd8443476228cbdc8fd8f3da0 | [
"MIT"
] | permissive | creativcoder/concierge | 167ac092d71b7757e181309e70e5c7600911796b | 8f7bd8f45f8bb9ec2406cd5063df8480c1729d24 | refs/heads/master | 2020-12-25T23:08:19.094852 | 2016-03-24T07:10:22 | 2016-03-24T07:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | # -*- coding: utf-8 -*-
import datetime
import distutils.spawn
import os.path
import sys
import concierge
HEADER = """
# THIS FILE WAS AUTOGENERATED BY concierge on {date}.
# IT MAKES NO SENSE TO EDIT IT MANUALLY!
#
# CONCIERGERC FILE: {rc_file}
#
# PLEASE VISIT https://github.com/9seconds/concierge FOR DETAILS.
"... | [
"nineseconds@yandex.ru"
] | nineseconds@yandex.ru |
b6a42690360b47fc27b39e105511259c5474aad7 | 241cc30b91e910caf6a9a47a156813ccc495e069 | /blog/management/commands/sync_user_avatar.py | 263734c963e382f9ba01c7abbdff9fc32a2c69f3 | [
"MIT"
] | permissive | colinshin/DjangoBlog | 9f430ffb3faae32553b2ec17a2351aa7dec36ce7 | c6277d2c35b021806be0fa623f1451c201e9677d | refs/heads/master | 2022-11-20T09:58:17.937199 | 2022-10-28T03:36:18 | 2022-10-28T03:36:18 | 266,242,440 | 1 | 0 | MIT | 2020-05-23T01:42:35 | 2020-05-23T01:42:34 | null | UTF-8 | Python | false | false | 894 | py | from django.core.management.base import BaseCommand
from djangoblog.utils import save_user_avatar
from oauth.models import OAuthUser
class Command(BaseCommand):
help = 'sync user avatar'
def handle(self, *args, **options):
users = OAuthUser.objects.filter(picture__isnull=False).exclude(
... | [
"liangliangyy@gmail.com"
] | liangliangyy@gmail.com |
2b282ed9401f181196eddae1813de58d0ccb22f7 | 372af35b599f45b2cb2cc365afd2ece5c31ed188 | /python/EE_Calulator/unit_attack_multiplyer.py | 5ed28b8ae40a599b4e3425bb2b0010503d8b8976 | [] | no_license | byrdie/EE-Calulator | 0eea538d7c9b6ea475cb967951ba11b7b42a7dd5 | 8526bbb5d40887a63afcb0cadc6f0262bc336c27 | refs/heads/master | 2021-08-28T02:56:56.191092 | 2017-12-11T02:59:56 | 2017-12-11T02:59:56 | 112,962,480 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py |
import csv
import dbobject as db_obj
import dbfamily as db_fam
# import EE databases
obj = db_obj.object_import()
fam = db_fam.family_import()
# enter indices of needed object fields
name_index = 0
attack_index = 24
attackMode_index = 32
family_index = 2
names = ['']
M = [] # attack multiplier matrix
k_flag = F... | [
"roytsmart@gmail.com"
] | roytsmart@gmail.com |
8d1731506c2ee63018c08b01f36688ce01f6e895 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/_PYTHON/maths/next_bigger.py | 390668adb236f2ce42e24ef6f8e54baa18b6c7cf | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,688 | py | """
I just bombed an interview and made pretty much zero
progress on my interview question.
Given a number, find the next higher number which has the
exact same set of digits as the original number.
For example: given 38276 return 38627.
given 99999 return -1. (no such number exists)
Condensed mathem... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
64f08c07a8fdcdd9e63ac8ac69e8275d53666fa4 | e4eabccc6d971289cf13653d1b6f290e39b870ab | /1619-path-crossing/path-crossing.py | ff2eb4223fd49dfd11600445aa563f25aee32bac | [] | no_license | HEroKuma/leetcode | 128b38a9f559dc9e3f21c86a47ede67ad72f7675 | b3045aaedbe98eddc7e4e518a03a9337a63be716 | refs/heads/master | 2023-01-03T12:12:31.018717 | 2020-11-01T16:56:47 | 2020-11-01T16:56:47 | 260,488,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You start at the origin (0, 0) on a 2D plane and walk on the path specified by path.
#
# Return True if the path crosses itself at any point, that is, if at any time you are on a loc... | [
"zx8733520+github@gapp.nthu.edu.tw"
] | zx8733520+github@gapp.nthu.edu.tw |
f073f3d41691a29c9540897a209ee146d29935fb | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/deepgram_kur/kur-master/kur/model/executor.py | 7df74460d4aa7b6a18447c52535009d063edb957 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 24,208 | py | """
Copyright 2016 Deepgram
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, software
distri... | [
"659338505@qq.com"
] | 659338505@qq.com |
43fdde8988ff5a86173b9cbdcbd8468ed3c5ab0d | a4410fa34651da92dbce9ea0807d4a72a4802177 | /python/hsfs/core/job.py | 5876cc880a8082f141e02539d450831908da25cd | [
"Apache-2.0"
] | permissive | logicalclocks/feature-store-api | 33797e2b4681d8948998d292a3ef8f551979ac08 | 3e67b26271e43b1ce38bd1e872bfb4c9212bb372 | refs/heads/master | 2023-09-01T03:41:47.750367 | 2023-08-30T18:25:59 | 2023-08-30T18:25:59 | 232,286,451 | 59 | 42 | Apache-2.0 | 2023-09-13T11:52:55 | 2020-01-07T09:10:14 | Python | UTF-8 | Python | false | false | 4,292 | py | #
# Copyright 2020 Logical Clocks AB
#
# 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 ag... | [
"noreply@github.com"
] | logicalclocks.noreply@github.com |
da3e82dfc76303e43f05fa7cf081576377d5b684 | d6b99ab3cc7108f4f0cc0be899641ac990e30db9 | /multipleOf3or5/test.py | a42133ea858991b66c5473b82f3bb50e49e4df3b | [] | no_license | AsemAntar/codewars_problems | ef97e8a8058551276cdb943a07474cbeb9353c4d | c0ae0a769e16211c2b8e325d1116a6cebd3be016 | refs/heads/master | 2020-08-10T02:01:12.411030 | 2019-12-15T22:45:20 | 2019-12-15T22:45:20 | 214,229,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import unittest
from multiple_of_3_or_5 import solutions, solution, math_solution
class TESTSOLUTIONS(unittest.TestCase):
def test_solutions(self):
with self.subTest():
self.assertEqual(solutions(10), 23, 'should be 23')
with self.subTest():
self.assertEqual(solutions(11), ... | [
"asemantar@gmail.com"
] | asemantar@gmail.com |
8b2be3a0a6c6d7dd961060fb445080451144a87a | b8a13ecb7c0999954807e80c7470d8f752a3653b | /LearnPythonTheHardWay/Python3/ex19.py | c51d970fe06d475994d7b20c59cd0a164a7aa38d | [] | no_license | jbarcia/Python-Books | 59ca3d7b7fb1f2c1e3d1659f846032382af557a9 | 2106a2e5f56cdd4261bf870798a0a427d6137249 | refs/heads/master | 2021-01-19T00:24:59.727307 | 2017-01-05T00:07:13 | 2017-01-05T00:07:13 | 62,562,390 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | #!/bin/python3
# ex19: Functions and Variables
# ex20: Functions and Files
# Import argv variables from the sys module
from sys import argv
# Assign the first and the second arguments to the two variables
script, input_file = argv
# Define a function called print_call to print the whole contents of a
# file, with... | [
"jbarcia99@yahoo.com"
] | jbarcia99@yahoo.com |
1fc5b7e63761e961e0e4347e56f84fa5955cfd41 | d799ab92fff30ec3b4efc5aa079628971451c17a | /coilmq/exception.py | 8f90c7941d9f9f6b8499e17ead4cf48437773574 | [] | no_license | LucaLanziani/coilmq | cf87a3daed400ccc64548873827f148097d7d780 | dce6254801617b5612816dc8d95c3249a284e99a | refs/heads/master | 2021-01-15T16:00:07.231608 | 2014-12-18T12:29:30 | 2014-12-18T12:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | """
Exception classes used by CoilMQ.
CoilMQ exceptions extend C{RuntimeError} or other appropriate sub-classes. These will be
thrown if there is not a more appropriate error class already provided by builtins.
"""
__authors__ = ['"Hans Lellelid" <hans@xmpl.org>']
__copyright__ = "Copyright 2009 Hans Lellelid"
__lice... | [
"hans@xmpl.org"
] | hans@xmpl.org |
86214b40a21aae0c95f24089ca06737c40f26190 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/batch/v20200901/batch_account.py | 46de600800a601fa2ae01fce9fc13bb136cd2562 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,122 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
0cbbf7ba00dc2b17bb9cbd8f94012fa86ce29902 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/Quote18/HQ_18_060.py | fa5796cbcf138713fd0b5fd81619997aa3d26089 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from log import *
class HQ_18_060(xtp_test_case):
def subOrderBook(self, Api, stk_info, case_name, rs_exp... | [
"418033945@qq.com"
] | 418033945@qq.com |
c2c846d923d1bf7b2fe113d153a514669da57a91 | decefb13f8a603c1f5cc7eb00634b4649915204f | /packages/node-mobile/node.gypi | 68f04d733cf1e4641f39211164425f686f077149 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Zlib",
"CC0-1.0",
"ISC",
"LicenseRef-scancode-public-domain",
"ICU",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"Artistic-2.0",
"BSD-3-Clause",
"NTP",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"LicenseR... | permissive | open-pwa/open-pwa | f092b377dc6cb04123a16ef96811ad09a9956c26 | 4c88c8520b4f6e7af8701393fd2cedbe1b209e8f | refs/heads/master | 2022-05-28T22:05:19.514921 | 2022-05-20T07:27:10 | 2022-05-20T07:27:10 | 247,925,596 | 24 | 1 | Apache-2.0 | 2021-08-10T07:38:42 | 2020-03-17T09:13:00 | C++ | UTF-8 | Python | false | false | 10,995 | gypi | {
# 'force_load' means to include the static libs into the shared lib or
# executable. Therefore, it is enabled when building:
# 1. The executable and it uses static lib (cctest and node)
# 2. The shared lib
# Linker optimizes out functions that are not used. When force_load=true,
# --whole-archive,force_lo... | [
"frank@lemanschik.com"
] | frank@lemanschik.com |
30d795f86d1c75a3ae7fdb57e194dc737a719ab3 | 871690900c8da2456ca2818565b5e8c34818658e | /dongbinbook/chapter16/35.py | 9e8fbe3d8c9323eacf6a95aba7e56cc69392b67e | [] | no_license | kobeomseok95/codingTest | 40d692132e6aeeee32ee53ea5d4b7af8f2b2a5b2 | d628d72d9d0c1aef2b3fa63bfa9a1b50d47aaf29 | refs/heads/master | 2023-04-16T09:48:14.916659 | 2021-05-01T11:35:42 | 2021-05-01T11:35:42 | 311,012,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from sys import stdin
READ = lambda : stdin.readline().strip()
n = int(READ())
dp = [0] * n
dp[0] = 1
i2, i3, i5 = 0, 0, 0
nx2, nx3, nx5 = 2, 3, 5
for i in range(1, n):
dp[i] = min(nx2, nx3, nx5)
if dp[i] == nx2:
i2 += 1
nx2 = dp[i2] * 2
if dp[i] == nx3:
i3 += 1
nx3 = dp[... | [
"37062337+kobeomseok95@users.noreply.github.com"
] | 37062337+kobeomseok95@users.noreply.github.com |
96795c8782d229dd9979c2851965e6e213f5175b | 6670bcf105cea48a407284f652192c3b43555941 | /globalance/spiders/globalance.py | 036b2b3a801b62a26eac5c117fa6dfe70c5d93d1 | [] | no_license | daniel-kanchev/globalance | 9850b41452ba4f4d251ab46c2790fefbbed83958 | 6bf1194045420bb18bd38a7351c1f9e188bd7cf3 | refs/heads/main | 2023-03-11T09:27:25.800554 | 2021-02-25T09:30:46 | 2021-02-25T09:30:46 | 342,191,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from globalance.items import Article
class GlobalanceSpider(scrapy.Spider):
name = 'globalance'
start_urls = ['https://www.globalance.com/news-trends/']
def parse(self, response):... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
3bc11c3f4410b8e7d3e9ff51facf65e0ad06d894 | 89bcfc45d70a3ca3f0f1878bebd71aa76d9dc5e2 | /scrapy_demo/ifeng_news/ifeng_news/middlewares.py | 6d773b56201d81b4056f90acc4b85eec7f44beba | [] | no_license | lichao20000/python_spider | dfa95311ab375804e0de4a31ad1e4cb29b60c45b | 81f3377ad6df57ca877463192387933c99d4aff0 | refs/heads/master | 2022-02-16T20:59:40.711810 | 2019-09-10T03:13:07 | 2019-09-10T03:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class IfengNewsSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"64174469@qq.com"
] | 64174469@qq.com |
2990723184aa412d234eade34f9964d6652e7fba | 445166300ebfdfbbb13269b7186000f2e9b5d6cd | /bcbio/variation/bedutils.py | 7d7befd9567e536514a249a6020346683857fb7c | [
"MIT"
] | permissive | matanhofree/bcbio-nextgen | 0434675b90bc37fd25e5f59a0bed48bc6de592d3 | e6938cedb20ff3b7632165105941d71189e46aac | refs/heads/master | 2020-12-26T00:07:33.384662 | 2014-04-17T23:17:19 | 2014-04-17T23:17:19 | 17,914,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | """Utilities for manipulating BED files.
"""
import os
import shutil
from bcbio import utils
from bcbio.distributed.transaction import file_transaction
from bcbio.pipeline import config_utils
from bcbio.provenance import do
from bcbio.variation import vcfutils
def clean_file(in_file, data, prefix=""):
"""Prepare ... | [
"chapmanb@50mail.com"
] | chapmanb@50mail.com |
5096e1124ae1ec023777ece46d421a3a04d4c6a7 | 921481680f0821fb377799013395f63c00c74a13 | /client/commands/start.py | d4db36062e2c02e84c45ee4b43fbe991ffc6703e | [
"MIT"
] | permissive | jpmondet/pyre-check | 026302aed6eed15312541ecce5c6c959ca5f1720 | d8e916f143af55a013f56510730544afd639e977 | refs/heads/master | 2022-12-27T22:56:55.080300 | 2020-10-16T01:21:57 | 2020-10-16T01:23:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,475 | py | # 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.
import errno
import logging
import os
from logging import Logger
from typing import List, Optional
from .. import (
command_arguments,
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cf393c7ba87cbe283a5ea1a3cc6842334c93573b | 38258a7dd9acbfb7adf72983015de68a948a4826 | /B_1000~/B_1920.py | 4d9a17f2cc8b86303296610a604dd878094b257f | [] | no_license | kangsm0903/Algorithm | 13a7fe5729039a1d0ce91a574c4755a8a92fb02b | 7d713d1c9e2e4dc30141d4f409ac1430a357065b | refs/heads/master | 2022-10-04T00:33:49.247977 | 2022-09-26T12:51:16 | 2022-09-26T12:51:16 | 219,265,010 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # Binary Search
import sys
N=int(sys.stdin.readline())
case=list(map(int,sys.stdin.readline().split()))
case.sort() # 오름차순 1 2 3 4 5
M=int(sys.stdin.readline())
case2=list(map(int,sys.stdin.readline().split()))
def Binary_Search(arr,value):
start=0
end=len(arr)
while True:
mid=(start+end)//2
... | [
"kangsm0903@naver.com"
] | kangsm0903@naver.com |
eaae2bac105eae300e5e56925168de0fe36418da | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Books/GodOfPython/P15_Thread/direct/num2_1.py | 22db2b5b8f96c51f5cf87484cecfceb3e24d7c60 | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import threading
import time
class client_thread(threading.Thread):
def __init__(self, word, sec):
threading.Thread.__init__(self)
self.word = word
self.sec = sec
def run(self):
while True:
print(self.word)
time.sleep(self.sec)
client_A = client_thread(... | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
e820fc6eb664ddd70910f830cfc698c1046c2b27 | ee3039b27532d09c0c435ea7b92e29c70246c66e | /opencv/learnOpencv/091-120/107-Brisk特征提取与描述子匹配.py | 2445870091acd0512850103849db6de6ecba50d4 | [] | no_license | Alvazz/fanfuhan_ML_OpenCV | e8b37acc406462b9aaca9c5e6844d1db5aa3c944 | dacfdaf87356e857d3ff18c5e0a4fd5a50855324 | refs/heads/master | 2022-04-05T06:15:31.778227 | 2020-02-07T01:40:07 | 2020-02-07T01:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | """
Brisk特征提取与描述子匹配
"""
import cv2 as cv
box = cv.imread("images/box.png")
box_in_scene = cv.imread("images/box_in_scene.png")
# 创建Brisk特征检测器
brisk = cv.BRISK_create()
# 得到特征关键点和描述子
kp1, des1 = brisk.detectAndCompute(box, None)
kp2, des2 = brisk.detectAndCompute(box_in_scene, None)
# 暴力匹配
bf = cv.BFMatcher(cv.NORM... | [
"gitea@fake.local"
] | gitea@fake.local |
55620ebc9837797070670695ca2f01c1d53aa79c | e1bdbd08afec39c1ee56a3885a837ec966543a2d | /Section_05_code/function_composition.py | 94b9cab36e24c24e98e0c20dfe7503c72a40805b | [
"MIT"
] | permissive | PacktPublishing/Python-Machine-Learning-Solutions-V- | 507bd8b285f051d2761a5348e4a8c9a50329287a | 8bb80a43a7c64032c25c1023faaa29bbfbd39d45 | refs/heads/master | 2023-02-28T05:19:49.782472 | 2021-01-20T09:11:09 | 2021-01-20T09:11:09 | 188,817,647 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import numpy as np
from functools import reduce
def add3(input_array):
return list(map(lambda x: x+3, input_array))
def mul2(input_array):
return list(map(lambda x: x*2, input_array))
def sub5(input_array):
return list(map(lambda x: x-5, input_array))
def function_composer(*args):
return reduce(lamb... | [
"sonalis@packtpub.com"
] | sonalis@packtpub.com |
02b1d509f61b8aa6d56212bae696130cbbe68648 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/106/usersdata/250/51843/submittedfiles/questao2.py | ba338ef6887469e0b298d1b93d06e56af4237019 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
a1=int(input('1° numero da aposta:'))
a2=int(input('2° numero da aposta:'))
a3=int(input('3° numero da aposta:'))
a4=int(input('4° numero da aposta:'))
a5=int(input('5° numero da aposta:'))
a6=int(input('6° numero da aposta:'))
b1=int(input('1° numero sorteado:'))
b2=int(input('2° numero sortead... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e5f90e811df9ccce1e34f936f9d73c5858150bb0 | abc4a73e5f93ebf90be946b95ef215e32c823353 | /colour/models/rgb/datasets/color_match_rgb.py | b66710a32c654b51f587f18453877293617fbaf5 | [
"BSD-3-Clause"
] | permissive | OmarWagih1/colour | 69f5108e83ec443551c5593c066bcd4e3596060f | bdc880a2783ff523dafb19f1233212dd03a639bd | refs/heads/develop | 2021-04-14T20:30:29.635916 | 2020-07-26T05:46:00 | 2020-07-26T05:46:00 | 249,263,927 | 0 | 0 | BSD-3-Clause | 2020-03-22T20:11:06 | 2020-03-22T20:11:06 | null | UTF-8 | Python | false | false | 2,658 | py | # -*- coding: utf-8 -*-
"""
ColorMatch RGB Colourspace
==========================
Defines the *ColorMatch RGB* colourspace:
- :attr:`colour.models.COLOR_MATCH_RGB_COLOURSPACE`.
References
----------
- :cite:`Lindbloom2014a` : Lindbloom, B. (2014). RGB Working Space
Information. Retrieved April 11, 2014, from... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
58833472273c67331ab27281f4677f0b6a75008b | a934a51f68592785a7aed1eeb31e5be45dd087d3 | /Learning/Network_process_WA/Day1/2020_Jul23/get_password.py | cc1afee02d5db35f9571e93b5029364eb37a9cc7 | [] | no_license | nsshayan/Python | 9bf0dcb9a6890419873428a2dde7a802e715be2b | 0cf5420eecac3505071326c90b28bd942205ea54 | refs/heads/master | 2021-06-03T18:41:06.203334 | 2020-09-28T07:28:48 | 2020-09-28T07:28:48 | 35,269,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import getpass
username = input("Enter username: ")
password = getpass.getpass("Enter password: ")
print(f"Username {username}, Password is {password}")
print("Logged in as", getpass.getuser())
| [
"nsshayan89@gmail.com"
] | nsshayan89@gmail.com |
7d2635b73bf9e628176bb913afe718340253d357 | 1bad7fc3fdd9e38b7ff50a7825565b7b190fa5b7 | /qrback/migrations/0034_auto_20201015_0106.py | 44ea931eaea9adc4f2daa7b21b8fd04f9380a3fa | [] | no_license | furkankykc/QRforAll | d4be43e403d75c86436ed9d9e2b222619ecf92b1 | 6cc0555fdc27797586628f2012523dce5212b321 | refs/heads/master | 2023-07-10T13:02:27.618792 | 2021-08-05T07:22:29 | 2021-08-05T07:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # Generated by Django 3.0.8 on 2020-10-14 22:06
from django.db import migrations, models
import qrback.models
class Migration(migrations.Migration):
dependencies = [
('qrback', '0033_auto_20201005_1411'),
]
operations = [
migrations.AddField(
model_name='company',
... | [
"furkanfbr@gmail.com"
] | furkanfbr@gmail.com |
ff943da6f0fe8957f24c6671b6c35d37ca590f9c | 1d502006c95de319b9e629ba9bea08823e689679 | /bndl/compute/tests/test_reduce_by_key.py | 21b7c5380fc085933ce6b5f7f78fa8f3d4a9a9d0 | [
"Apache-2.0"
] | permissive | bndl/bndl | 0e8dcb959b3a9dd603a006e4e6ae073ae6143ddf | e9c49c9844e7c4d6ac0c9491c02122098e22153d | refs/heads/master | 2022-12-10T18:11:17.877017 | 2022-03-20T18:23:26 | 2022-03-20T18:23:26 | 72,571,767 | 1 | 2 | Apache-2.0 | 2022-12-05T22:31:45 | 2016-11-01T20:01:19 | Python | UTF-8 | Python | false | false | 1,110 | py | # 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, software
# distributed under th... | [
"frens.jan.rumph@target-holding.nl"
] | frens.jan.rumph@target-holding.nl |
1ac453d4fc2c54b43c12c33bc1445864694ebec6 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/ctypes/test/test_byteswap.py | 046b757767016946ce9b51a6fd0d7b710ff39df2 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 9,873 | py | # 2015.11.10 21:34:50 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_byteswap.py
import sys, unittest, struct, math, ctypes
from binascii import hexlify
from ctypes import *
def bin(s):
return hexlify(memoryview(s)).upper()
class Test(unittest.TestCase):
def X_test(self... | [
"info@webium.sk"
] | info@webium.sk |
23ee0c538db3ab215488797a03c1787eba16cd76 | ea99544eef7572b194c2d3607fa7121cb1e45872 | /apps/notification/migrations/0002_auto_20190407_0310.py | 8ab14bb16d0e8a9f752f89dd4da047f06b6ceff0 | [] | no_license | ash018/FFTracker | 4ab55d504a9d8ba9e541a8b682bc821f112a0866 | 11be165f85cda0ffe7a237d011de562d3dc64135 | refs/heads/master | 2022-12-02T15:04:58.543382 | 2019-10-05T12:54:27 | 2019-10-05T12:54:27 | 212,999,035 | 0 | 0 | null | 2022-11-22T03:58:29 | 2019-10-05T12:53:26 | Python | UTF-8 | Python | false | false | 1,104 | py | # Generated by Django 2.2 on 2019-04-07 03:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('task', '0001_initial'),
('notification', '0001_initial'),
... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
02d7538ca267d6d32fa4370b3f204473841b89d0 | 05dc7ec5341ff65c92a6b9c347ac3203479b6e64 | /src/alveos/wsgi.py | a5c96796ac70706b8c3b7a681379edf23cd8c89d | [
"BSD-3-Clause"
] | permissive | tykling/alveos | 7542d15dbdf0ef6df53fd7b0a66f49929f1c7681 | 0758a1505bf1696a48c02d14c1fefe6633c35a97 | refs/heads/master | 2021-06-08T15:41:34.245465 | 2016-12-05T09:27:45 | 2016-12-05T09:27:45 | 74,826,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for alveos 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"thomas@gibfest.dk"
] | thomas@gibfest.dk |
17c020ac1425c98eb76a34fe9d863373305d7b2c | e67a0139092d3389fea0075de9ecf12ab209649f | /scripts/addons_extern/AF_3dview_specials/__init__.py | d7533a07f8e4f96b91ac55f60f211be8beb49c96 | [] | no_license | amagnoni/blenderpython | 9fe864d287f992b7cd71cd584fca4a501a6ac954 | d2fec1a35369b7b171e2f0999196b87e242e08f3 | refs/heads/master | 2021-01-18T11:28:55.372759 | 2015-10-17T20:16:57 | 2015-10-17T20:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
f4ef86db426b803bbb16c0ac7b8b53b436cc1d88 | 55a281d728541773e6eda896599c0cc48dfe5156 | /Advanced/Functions Advanced/4. Even or Odd.py | 2bbf52c69c734eb8c90fc21f076ff63127380a23 | [] | no_license | dhariskov/python-advanced | c0bebd937f3849dd62ae2834cbdf9f8100b2bb56 | 4725070c960d3c234ed2f20ff2156e2f89514a02 | refs/heads/master | 2022-12-04T22:40:18.485552 | 2020-08-28T08:29:25 | 2020-08-28T08:29:25 | 288,775,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | def even_odd(*args):
command = args[-1]
ll = args[:len(args)-1:]
if command == "odd":
sum_odd = list(filter(lambda x: x % 2 == 1, ll))
return sum_odd
elif command == "even":
sum_even = list(filter(lambda x: x % 2 == 0, ll))
return sum_even
print(even_odd(1, 2, 3, 4, 5, ... | [
"dhariskov@gmail.com"
] | dhariskov@gmail.com |
546c1c9e2e3477c864d0cc64cb3b3282e66ea1de | 9fb0500924f754425005d3ac92a4be538f203783 | /gaphor/UML/interactions/tests/test_executionspecification.py | da4a80c774098fc9232dc835753437caa641e3fd | [
"Apache-2.0"
] | permissive | seryafarma/gaphor | 491f57214c5392ad408cc7530424d99f7f81346f | f85998ae3a3ec5381b25cda60d89a47383c4fd2e | refs/heads/master | 2022-09-26T09:13:48.976569 | 2020-05-30T20:03:27 | 2020-05-30T20:03:39 | 268,274,153 | 0 | 0 | Apache-2.0 | 2020-05-31T12:21:13 | 2020-05-31T12:21:13 | null | UTF-8 | Python | false | false | 6,771 | py | from gaphas.canvas import Canvas, instant_cairo_context
from gaphor import UML
from gaphor.diagram.shapes import DrawContext
from gaphor.diagram.tests.fixtures import allow, connect, disconnect
from gaphor.UML.interactions.executionspecification import ExecutionSpecificationItem
from gaphor.UML.interactions.lifeline i... | [
"gaphor@gmail.com"
] | gaphor@gmail.com |
3383f2959f626f37b6ab18cc8a5d8816397abc6c | 9f0babb96bb327aaa859aeb7950fb6e5b2fca73d | /HIGHLIGHTS/freeSpacePropagateModes.py | 2dfd7d288377348cfa03d26e0b905dcbe8b3f681 | [
"MIT"
] | permissive | srio/shadow3-scripts | d39e750774ad8f1c551e9965d4402b3fcb2b043d | 7dd9b4424f47e6d78db9fd6fcb5a3db788b062f7 | refs/heads/master | 2022-09-18T03:37:16.480163 | 2022-09-02T13:43:46 | 2022-09-02T13:43:46 | 43,300,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | __author__ = 'mglass'
from srwlib import *
import sys
from comsyl.autocorrelation.AutocorrelationFunction import AutocorrelationFunction
from comsyl.autocorrelation.AutocorrelationFunctionPropagator import AutocorrelationFunctionPropagator
from comsyl.parallel.utils import isMaster, barrier
from comsyl.utils.Logger im... | [
"srio@esrf.eu"
] | srio@esrf.eu |
9820f4e56513b1d24f74f5ae3cc92e63e23f2d7a | 2c5073c0140b3366b94866d50f8b975c926a529b | /venv/lib/python3.9/site-packages/mediapipe/calculators/util/collection_has_min_size_calculator_pb2.py | 12f5045ea54268b2af3cf6362f92c5e865b13e3f | [] | no_license | geekboi777/Volumegesture | 435c2752d107ac6915919e79bcb63fb0b85f6e9e | 3cc35f74533e26588a606154897f9ded4801f0ce | refs/heads/master | 2023-06-24T19:09:07.138900 | 2021-07-30T23:22:18 | 2021-07-30T23:22:18 | 390,512,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,920 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/util/collection_has_min_size_calculator.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... | [
"geekboi777@github.com"
] | geekboi777@github.com |
0b38a6f4b4ac235595e3a0c19b632b9b0a49a262 | f090c3e0faa70cf0ef7c4be99cb894630bce2842 | /scripts_201410/simpleMeasurements/micromotioncomp/scanEy.py | 4e93efb76ce8b5265babb5a67054ba26b52c4464 | [] | no_license | HaeffnerLab/resonator | 157d1dc455209da9b7de077157bda53b4883c8b7 | 7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71 | refs/heads/master | 2021-01-09T20:48:03.587634 | 2016-09-22T18:40:17 | 2016-09-22T18:40:17 | 6,715,345 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | from FFT import measureFFT
import numpy as np
import labrad
import datetime
now = datetime.datetime.now()
date = now.strftime("%Y%m%d")
cxn = labrad.connect()
dv = cxn.data_vault
ds = cxn.resonatordac
#rs = cxn.rohdeschwarz_server
#rs.select_device('resonator-pc GPIB Bus - USB0::0x0AAD::0x0054::102549')
amplMin = -.... | [
"soenkeamoeller@gmail.com"
] | soenkeamoeller@gmail.com |
6605b246a60796200540bfea2493f300ae9e79fe | 7cebfa2066e679e19993a5507e59d1979df3d4a8 | /1_Basics/9_revamp.py | 7d04e2986df78e238ca677bcc1fb34fbcad2937f | [
"Apache-2.0"
] | permissive | Arunken/PythonScripts | 833e9e43ccb29234a206027f1cda1d978718d5eb | 702d0a3af7a9be3311f9da0afc5285d453f15484 | refs/heads/master | 2022-12-24T18:50:43.672779 | 2021-05-13T11:31:51 | 2021-05-13T11:31:51 | 237,631,027 | 0 | 0 | Apache-2.0 | 2022-12-08T00:47:45 | 2020-02-01T15:01:20 | Python | UTF-8 | Python | false | false | 1,196 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 20 14:18:16 2018
@author: Arken
"""
# splitting a sentence and storing it in a list or tuple
a = ' python programming '
a = a.strip()
b = list(a) #saves individual characters separately in a list.
c = tuple(b) # The same goes for tuple.
tup = a.split() # split in to in... | [
"mail.arunken@gmail.com"
] | mail.arunken@gmail.com |
12ae6ecdf67ee0c45b00920a1013ddc02f7e2206 | 4869c5e4d4b5ba6af434b62a2369ed58891c4eb0 | /addons/script.embuary.helper/resources/lib/library.py | 37ac5db0b300c2484d026e5146fc2a65a8b4b0e8 | [] | no_license | JohnnyBlackwater/Zephyr-mod | 1bd73a04549da83965a0979a1957ab4f98b03a6d | 2e9472793b45287b1114221f5dd1674ce886bca1 | refs/heads/master | 2023-08-31T22:54:47.827433 | 2021-11-15T03:01:01 | 2021-11-15T03:01:01 | 428,104,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,263 | py | #!/usr/bin/python
########################
import xbmc
import xbmcgui
from time import gmtime, strftime
from resources.lib.json_map import *
from resources.lib.helper import *
########################
def add_items(li,json_query,type,searchstring=None):
for item in json_query:
if type == 'movie':
... | [
"Johnnyblackx3@aol.com"
] | Johnnyblackx3@aol.com |
71b56e58f27fc67cf47cecacfa2c58b0264f5054 | f476cdf5a27e7768238854c5e7f24e3650ffeebc | /Codeforces/1409A.py | b5d64d8e69939839e4534b9d1c0c62fc669fc834 | [] | no_license | masudurHimel/Problematic_Adventure | 0d1a8b0d3cc6339d3d9a4f8ed9be9c1635ab290f | 3f32f5195c497e1c44d1a37c80ea644c31a53688 | refs/heads/master | 2023-05-01T23:34:15.697852 | 2023-04-28T09:30:00 | 2023-04-29T09:22:33 | 226,885,967 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | n = int(input())
for i in range(n):
a, b = map(int, input().split())
if a == b:
print(0)
continue
diff_abs = abs(a-b)
step = 0
for j in range(10, 0, -1):
if diff_abs//j != 0:
step += diff_abs//j
diff_abs = diff_abs % j
print(step)
| [
"masudurhimel@gmail.com"
] | masudurhimel@gmail.com |
dcde52d8d1e7cda7719a66c2bc0f132c213960a8 | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /app/migrations/0010_auto_20160712_1040.py | e5c34056b176ac89bbcdf1bcefd4ce23094e8c03 | [] | no_license | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-07-12 02:40
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0009_auto_20160712_1037'),
]
operations = [
migration... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
ebf4bdc53c74f65f3d597c85336264c25abf9174 | 242da8865e037f9fffb76269c3acddb73ce9fa14 | /packages/pyright-internal/src/tests/samples/tuples10.py | f111dbbb6122c9440b75b9f703c03c87600c2765 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | khyveasna11111908/pyright | f42eceae044f6fbc27552c1765b03ebd345a451c | 493d47807b96137995e4bb6ca341930e4de911f9 | refs/heads/main | 2023-08-30T00:08:36.191799 | 2021-09-25T19:17:13 | 2021-09-25T19:17:13 | 410,361,483 | 1 | 1 | NOASSERTION | 2021-09-25T19:15:23 | 2021-09-25T19:15:22 | null | UTF-8 | Python | false | false | 721 | py | # This sample tests that inferred types for tuples strip
# literals under the appropriate circumstances.
from typing import List, Literal, Tuple
a1 = (1, 2)
t1: Literal["tuple[Literal[1], Literal[2]]"] = reveal_type(a1)
a2 = list((1, 2))
t2: Literal["list[int]"] = reveal_type(a2)
a3: List[Literal[1]] = list((1,))... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
677418f0a2b1374b3bc980f5460395cd3bbfbbfb | f0fc7de70574a6bacacc5110652d28d076b0047f | /sierra/apps.py | 716f9716f80a7446947706969680513521e2988a | [] | no_license | robertvandeneynde/sierra | 6b95a285b116482efde3d05f9898e069d5022f76 | 59cbaaaa1f14d9a591c40f372180795353e1a6f4 | refs/heads/master | 2020-04-01T21:46:11.457236 | 2020-01-02T04:10:57 | 2020-01-02T04:10:57 | 153,674,376 | 1 | 1 | null | 2020-01-08T15:26:45 | 2018-10-18T19:07:58 | TeX | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class SierraConfig(AppConfig):
name = 'sierra'
| [
"robertvandeneynde@hotmail.com"
] | robertvandeneynde@hotmail.com |
b9e8aa1f4c274670cb8f1b15a15dd85cd3bc852c | 5341e31c0a210bd9449dcc4aa63d5ce5ab161e3a | /bin/cron_command.py | b1d4854f6c919ff2a88f67a2816330f03654c2ed | [
"MIT"
] | permissive | ipashchenko/watcher | efc347cd261c1483f4bc18cd030d3d42d09422d9 | ab55615b0ad8d23f98317bd49c2c9291c4add69b | refs/heads/master | 2021-01-10T10:20:09.504787 | 2016-01-25T12:27:44 | 2016-01-25T12:27:44 | 49,568,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,122 | py | #!/usr/bin python
# -*- coding: utf-8 -*-
import os
import sys
import shutil
import smtplib
import netrc
from difflib import context_diff
from email.mime.application import MIMEApplication
from filecmp import cmp
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from os.path import ba... | [
"in4pashchenko@gmail.com"
] | in4pashchenko@gmail.com |
43fe1136c40dce46d74805aa4f3ea6a264cfcc08 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/semantic_segmentation/BiseNetV1_for_PyTorch/configs/fcn/fcn_r50-d8_769x769_40k_cityscapes.py | 0a8eafa418cb4e080cad194c16bddd0970d1efb8 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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,050 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# Copyright 2020 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... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
586847bd394d5bf213a98ea55153760e22ad456c | 2b8fe23680fb8c6596c8b4fd53a2547e32e84617 | /1-DS-Array-String/String_Compress.py | 43bcad128033c460e03812bfdc4ce87e60f0064c | [] | no_license | jigarshah2811/Python-Programming | b441c4815f80bef4d17611cdea851254c59739a9 | a60a11ad29e9dde9e9960006f887d9b66d29e427 | refs/heads/master | 2022-11-20T18:09:11.955564 | 2022-11-04T05:58:19 | 2022-11-04T05:58:19 | 67,324,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | """
https://nbviewer.org/github/donnemartin/interactive-coding-challenges/blob/master/arrays_strings/compress/compress_challenge.ipynb
Problem: Compress a string such that 'AAABCCDDDD' becomes 'A3BC2D4'. Only compress the string if it saves space.
"""
import unittest
class TestSolution(unittest.TestCase):
def t... | [
"jshah@pinterest.com"
] | jshah@pinterest.com |
94ec424c89decabfdda8c83f68cfd5daceac066b | 9c7581c3b862174878a5e71609f94b3e5a2de5c9 | /CursoEmVideo/Aula20/ex097.py | db52582c0213396493f58974d80d72cb11e57046 | [
"MIT"
] | permissive | lucashsouza/Desafios-Python | 6d9fdc3500e0d01ce9a75201fc4fe88469928170 | abb5b11ebdfd4c232b4f0427ef41fd96013f2802 | refs/heads/master | 2020-06-21T16:49:32.884025 | 2019-07-23T01:23:07 | 2019-07-23T01:23:07 | 143,765,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Exercicio 097 - Função para texto
'''
Faça um programa que tenha uma função chamada escreva(), que receba um texto
qualquer como parâmetro e mostre uma mensagem com o tamanho adaptável
'''
def mensagem(txt):
tam = len(txt)
print('~'*tam)
print(txt)
print('~'*tam, '\n')
mensagem('Hello, worl... | [
"noreply@github.com"
] | lucashsouza.noreply@github.com |
bd89de0e8e6e8a3312f0081d9b98cb531374b37a | 40fc319f88b1296af916bd61c14dc55512bb3951 | /changeset/tests.py | d629a9c9fd6be51905eb6a0adcbe8f55adddaa58 | [] | no_license | aaj013/pycrocosm | bd43a119a5fb3ec8a38b78e181e99cd3ee0b75b9 | 40cb6ebdbcec08fa4e8bc85ea6ed5854de1bb84b | refs/heads/master | 2020-12-02T08:44:04.190942 | 2019-11-26T00:52:36 | 2019-11-26T00:52:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,541 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from django.test import TestCase
from django.test import Client
from django.urls import reverse
from django.contrib.auth.models import User
import xml.etree.ElementTree as ET
from defusedxml.ElementTree import parse,... | [
"tim2009@sheerman-chase.org.uk"
] | tim2009@sheerman-chase.org.uk |
b0acf56f2da7e65ce7b8ef6af2945ed5cf4c5bd0 | 4abce782dad606b10d7646763b21277689e8cedd | /async-pydevd/tests/test_generate.py | 552980c42eaf9220bb5c76d07dd48fff99bf2108 | [] | no_license | wordhui/pycharm-evaluate-async-code | 8cca3ee4a5b74eff1073a442c1f014de30b02b5b | 64ccd29b0ee286ad6fe45172334926e9f517d162 | refs/heads/master | 2023-05-14T18:10:20.786741 | 2021-06-08T07:04:05 | 2021-06-08T07:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from async_pydevd import FILES, generate
def test_generate():
result = generate()
assert '"""' not in result
for f in FILES:
normalized = (
f.read_text("utf-8").replace('"""', "'''").replace(" # pragma: no cover", "").strip()
)
assert normalized in result
asser... | [
"1998uriyyo@gmail.com"
] | 1998uriyyo@gmail.com |
ed4d0a72fc25b24f5a5ba572bb628ea20168a043 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_friends.py | 120a772768eee00c88d6902834549d9e7b6fe04a | [
"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 | 238 | py |
from xai.brain.wordbase.verbs._friend import _FRIEND
#calss header
class _FRIENDS(_FRIEND, ):
def __init__(self,):
_FRIEND.__init__(self)
self.name = "FRIENDS"
self.specie = 'verbs'
self.basic = "friend"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
32b70266bcc9034ed202f467bfd9da532c09fc20 | edbb5293b14fae626ad38f0087e66c996acd80de | /run.py | 3a094f50bdc2aa60b87f6bb15133904c69f742fc | [] | no_license | furuiyang0715/sync_services | 4d8b2f425814920e409580080d946b1437ed17b3 | 95bb50180129ddd4cc78ef086d5e415f2740ea2b | refs/heads/master | 2020-06-12T10:31:57.314671 | 2019-07-12T02:00:07 | 2019-07-12T02:00:07 | 194,272,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!/usr/bin/env python3
# coding=utf8
import subprocess
def start():
cmd = """
python index_run.py start; python finance_run.py start; python calendars_run.py start;
"""
subprocess.getoutput(cmd)
def stop():
cmd = """
python index_run.py stop; python finance_run.py stop; python calendar... | [
"furuiyang0715@gmail.com"
] | furuiyang0715@gmail.com |
d038618b91626654260d34d8571e6a64bce244d4 | 14a913fce4b538b22f28409645cd6abe3455808f | /dialogflow/cloud-client/document_management.py | 6145c9df8a6ae25fef0a9e30d3f88037cebd79cc | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iamLoi/Python-Random-Number-Generator | 8da7dbd37cb13a01232c8ed49b9df35a99c63d73 | 7579e8b15130802aaf519979e475c6c75c403eda | refs/heads/master | 2022-08-29T19:05:32.649931 | 2019-09-14T14:48:58 | 2019-09-14T14:48:58 | 208,454,877 | 2 | 1 | Apache-2.0 | 2022-08-05T21:57:49 | 2019-09-14T14:51:05 | Python | UTF-8 | Python | false | false | 8,572 | py | #!/usr/bin/env python
# Copyright 2018 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... | [
"noreply@github.com"
] | iamLoi.noreply@github.com |
460b589029a28f4fa3fa3f781280627857374c0b | c6f14a40b13121e8266882a38fa7ff3ff6c943a2 | /apps/ndvi_anomaly/utils.py | d2ed9a3b5d738907c70718714555adcf22309a69 | [
"Apache-2.0"
] | permissive | gijs/data_cube_ui | 443572c7b25734a13f576ea284687145bb3e72cf | 831f4d4f1fe44d7cb81caebf241e3d2add5d7b5d | refs/heads/master | 2021-01-17T11:56:21.657787 | 2017-01-20T23:53:08 | 2017-01-20T23:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | # Copyright 2016 United States Government as represented by the Administrator
# of the National Aeronautics and Space Administration. All Rights Reserved.
#
# Portion of this code is Copyright Geoscience Australia, Licensed under the
# Apache License, Version 2.0 (the "License"); you may not use this file
# except in c... | [
"alfredo.h.delos_santos@ama-inc.com"
] | alfredo.h.delos_santos@ama-inc.com |
b0098d8416b34e015d6c88c4e7f600a0ab479460 | 98cd5ddf45a73aea64bbfac0c0104829d7231b81 | /S - Sound Jaws-Image/info.py | f063b8a755be8e9c8b7362e3492b7a13b012ff08 | [] | no_license | atheis4/ETC_Modes_Extra | 42508d523cfe632a3335e29f6e1e40af91df231b | d0ce221562105382a7a73cc6d280f4ad0eabf6f3 | refs/heads/master | 2022-04-04T11:15:07.335910 | 2020-01-03T20:27:32 | 2020-01-03T20:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | name = "S - Sound Jaws-Image"
description = "Oscilloscope teeth with background image cycle and tooth color cycle"
knob1 = "Clench"
knob2 = "Number of Teeth"
knob3 = "Tooth Shape"
knob4 = "Colorshift Speed"
released = "September 7 2017"
| [
"media@critterandguitari.com"
] | media@critterandguitari.com |
6281f5af7e13ed5ac591b3359234870130abb8e0 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/django/contrib/localflavor/no/__init__.py | 34417bd2b5f11a5b4b6bc08711c262ea5e04f4d8 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/django/contrib/localflavor/no/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
80cb84142bdc36f93b641768e87520357a096f0a | 01e82d70ee62824fcad3d2df57411c2ff620d6e0 | /data/imsitu_loader.py | ddd1505a8b00336a0b571a85c31dd6cd54b6752c | [
"MIT"
] | permissive | kyoungrok0517/verb-attributes | 3a54c99a096d4252116748dfb1188045f4a2dd70 | a04931e3b2ef5be859bdb4c0f123148b194c9d42 | refs/heads/master | 2020-03-21T05:28:10.026977 | 2018-03-20T16:36:25 | 2018-03-20T16:36:25 | 138,162,475 | 2 | 0 | null | 2018-06-21T11:38:47 | 2018-06-21T11:38:47 | null | UTF-8 | Python | false | false | 6,844 | py | """
Dataset and dataloader for imsitu experiments.
This allows us to:
1) Finetune on Imsitu
2) Finetune on a zero shot setting
"""
import spacy
import torch
import os
from config import IMSITU_TRAIN_LIST, IMSITU_VAL_LIST, IMSITU_TEST_LIST, IMSITU_IMGS
from torchvision.transforms import Scale, RandomCrop, CenterCrop, ... | [
"rowanz@cs.washington.edu"
] | rowanz@cs.washington.edu |
5d91735118f1452267c4e02054d07b1411cadc2e | 2624007528d2e37f2a2460c7a2d2964890deed16 | /synapse/rest/client/knock.py | 0152a0c66a509b24012d562c6d0f97a525001cbb | [
"Apache-2.0"
] | permissive | matrix-org/synapse-dinsic | a5386060fb6a9575dbec86547fd0943e46d63ac7 | 3da3ecc22d36f129eade97b679e1791176e3d9fa | refs/heads/dinsic | 2023-02-19T22:15:54.550679 | 2022-07-07T13:24:51 | 2022-07-07T13:24:51 | 206,570,942 | 8 | 7 | Apache-2.0 | 2023-02-08T02:50:31 | 2019-09-05T13:29:44 | Python | UTF-8 | Python | false | false | 3,759 | py | # Copyright 2020 Sorunome
# Copyright 2020 The Matrix.org Foundation C.I.C.
#
# 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 requi... | [
"noreply@github.com"
] | matrix-org.noreply@github.com |
8c3f4059018913519c05f57b490e763a80e25559 | bd2b8551aca9728d1dd37a6f2ac988f03e93b2bf | /120_SquareRemainders_(MakeFaster).py | 9f6fb23b41b0421fb2c8235d29a7060338585464 | [] | no_license | acganesh/euler | c7fc6bb0873df4474765598a2933baf413d094e7 | 1a870e9ecfaec770d162eec32dbaa327269ac5ce | refs/heads/master | 2020-06-25T13:07:59.976765 | 2019-10-15T00:19:41 | 2019-10-15T00:19:41 | 199,316,809 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from datetime import datetime
s = datetime.now()
cache = [[-1]*(2*a**2) for a in range(1000+1)]
def cache_pow(a, n, mod):
try:
val = cache[a][n]
except:
print 'failed', a, n
if val != -1:
return val
else:
val = pow(a, n, mod)
cache[a][n] = val
return val
def remainder(a, n):
mod = a**2
val = (pow(... | [
"acganesh@stanford.edu"
] | acganesh@stanford.edu |
34c460b320afaa0d7a0a6778bb245ac99c089f7a | 205fe9835ee9ae9dee72635c870bd836f911d331 | /src/cloudx/migrations/0002_auto_20170903_1445.py | 0c823947ecfad2dc0289f569f91dc98f706f9f97 | [] | no_license | msrshahrukh100/testxml | 8bc9b2f5e40dd3878499a988579a3e76beec6582 | 30fa9523fd8d507964b127a640949534515c5b2e | refs/heads/master | 2021-01-22T06:11:59.410452 | 2017-09-03T18:43:54 | 2017-09-03T18:43:54 | 102,286,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-03 14:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cloudx', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"msr.concordfly@gmail.com"
] | msr.concordfly@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.