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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c79dcbd3e94c42a92504220ffb36ebae2587156d | 6d5414a710f09c8a1613e1cb60dfff2d8b37e8ad | /Biweekly Contest 40/Maximum Repeating Substring.py | 62ae08890abed3b5a9fbacc68b6a88d4b8a0ed12 | [] | no_license | prashanthr11/Leetcode | 59985b5037f70933965d509083545e58716b9ec3 | c9a034073062ea01f76448b962152ec8f9b82228 | refs/heads/master | 2023-04-15T09:19:36.526698 | 2021-04-17T16:09:55 | 2021-04-17T16:09:55 | 273,557,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | class Solution:
def maxRepeating(self, a: str, b: str) -> int:
cnt = 0
tmp = b
while b in a:
cnt += 1
b += tmp
return cnt if cnt else 0
| [
"prashanthr6789@gmail.com"
] | prashanthr6789@gmail.com |
0324f681a4d12c47fa524aa35bd3858f1955c899 | 98f730ec6a43d8be4a34b0f2a44a9d35989d2287 | /tests/unit/entity/test_user_groups_entity.py | d83bcc41f01048931032fe2204cd5fa53a0413ae | [] | no_license | scottwr98/pynifi-client | 9337a4f322536ee466d419a788b8b5948cdc62d7 | 013ac2ffa591284a0d6cbb9ed552681cc6f91165 | refs/heads/master | 2020-04-18T08:47:03.680749 | 2017-11-04T23:59:58 | 2017-11-04T23:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"ajish@rootedinsights.com"
] | ajish@rootedinsights.com |
9363a989c86865fd89d14d0fc1c01f2e8361c7b4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04011/s295435245.py | 4d2ae76e99072dfb9ca262f4ebf7f3e478f48296 | [] | 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 | 139 | py | N = int(input())
K = int(input())
X = int(input())
Y = int(input())
ans = 0
if N>=K:
ans = K*X+(N-K)*Y
if N<K:
ans = N*X
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1da82694458a1675eda0715f585913a2ace1f065 | cd25757a1ce38f99534f8790e9d4359ab609fc17 | /build_index.py | f6d9ab58ca76b8c373d37eab4bd893fd9a161f81 | [] | no_license | daviddwlee84/SearchEngine | 64be99b2114364e8a0913a51d11215bb3c9806fa | 283d1db39900cddf3a2aad6141bd8c9f253a832a | refs/heads/master | 2023-03-16T17:55:22.135027 | 2021-02-24T09:49:54 | 2021-02-24T09:49:54 | 288,898,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | # Build index for search models
import os
import sys
import pandas as pd
from tqdm import tqdm
import argparse
curr_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(curr_dir)
from search.annoy.build_index import AnnoyIndexBuilder
from search.elastic_search.build_index import ESIndexBuilder
class In... | [
"daviddwlee84@gmail.com"
] | daviddwlee84@gmail.com |
c5b2f86108ef15f5f1ac362a8347eaf8587e4578 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_considerable.py | 90514ebc212bd524acaa3c6e06d566fdda7c1fb1 | [
"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 | 405 | py |
#calss header
class _CONSIDERABLE():
def __init__(self,):
self.name = "CONSIDERABLE"
self.definitions = [u'large or of noticeable importance: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2]... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
227c65532562036f5e133f80f39c5b3e37744a30 | 0214ce4dd9c8973751120ced006ec90ddc10e0e6 | /xepmts_staging/models/inline_response20029.py | f37d1190293987f4bcc393b0a61685193252124f | [] | no_license | jmosbacher/pmts-staging-api-client | b9b4175a8ab52bd1c22a2845ab564cd0bd4d2e1c | d25cacc6c75b5d716414e08184c4a6bc205126f9 | refs/heads/master | 2022-11-08T09:18:38.371104 | 2020-07-01T14:52:46 | 2020-07-01T14:52:46 | 276,405,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | # coding: utf-8
"""
PMT API
API for the XenonnT PMT database # noqa: E501
The version of the OpenAPI document: 0.1
Contact: joe.mosbacher@gmail.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from xepmts_staging.configuration import Confi... | [
"joe.mosbacher@gmail.com"
] | joe.mosbacher@gmail.com |
7b6f7484cb3c1c0a99d4139fa6e0a1b4a53cbb31 | 6452ffce36d1d50dbb27657398af4314ba73c0aa | /python/sqlite-benchmark-graph.py | 90612bef91573d686282d438380c1415e3b71cf0 | [] | no_license | laysakura/sqlite3_benchmark | 1bde4f37be88e20d8a7a385ab897bfe571f7ce3b | f125db9466f9467b7fbd877285e8bd2669fe5346 | refs/heads/master | 2016-09-06T09:06:43.350515 | 2012-11-20T12:55:22 | 2012-11-20T12:55:22 | 6,775,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | #!/usr/bin/env python
import smart_gnuplotter
g = smart_gnuplotter.smart_gnuplotter()
import Config
import Util
def get_graph_file_name(var_graph_file_params):
ret = ""
for key in var_graph_file_params.keys():
ret += "%(key)s_%%(%(key)s)s--" % {"key": key}
return ret[:len(ret) - len("--")]
def ... | [
"lay.sakura@gmail.com"
] | lay.sakura@gmail.com |
a003bcb38318a40c71739f4d1552601723b08b17 | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/test_20190626132733.py | 79accd38ca746ea23e96e964bef94a8f31ed415e | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | # # class Foo:
# # answer = 42
# # f1 = Foo()
# # f2 = Foo()
# # print(f1.answer)
# # print(f2.answer)
# # # both will print 42
# # f1.answer = 84
# # Foo.answer = 21
# # print(f1.answer) # 84
# # print(f2.answer) # 21
# class Foo:
# def __init__(self):
# self.answer = 42
# f1 = Foo()
# f2 = Fo... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
17f4605acddde5733e7845a54b2e7a72f439d2b9 | 58bca29946133281eca5bf1f255b10d497ae2f13 | /ros_ws/devel/lib/python3/dist-packages/moveit_msgs/msg/_MotionPlanDetailedResponse.py | 03fb12b54fc034126496a61dc263bcfe988e87c9 | [] | no_license | AlexanderVieira/robotics | d3656f72f0f375d0229bef923d15d6ffe3d8750f | 0c54b200ccbc702f807212cfe5c40b6ca865b16f | refs/heads/main | 2023-03-31T05:15:19.378479 | 2021-04-09T01:53:26 | 2021-04-09T01:53:26 | 355,740,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | /home/ros_ws/devel/.private/moveit_msgs/lib/python3/dist-packages/moveit_msgs/msg/_MotionPlanDetailedResponse.py | [
"alexander.silva@al.infnet.edu.br"
] | alexander.silva@al.infnet.edu.br |
079a78638966c854c7a692303e50cb2a90e5ee38 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02847/s323542817.py | e4b56ed542d286d18994ff8e3ae443092f5f3288 | [] | 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 | 320 | py | from sys import stdin, setrecursionlimit
WEEK = {
'SUN': 0,
'MON': 1,
'TUE': 2,
'WED': 3,
'THU': 4,
'FRI': 5,
'SAT': 6
}
def main():
input = stdin.buffer.readline
s = input()[:-1].decode()
print(7 - WEEK[s])
if __name__ == "__main__":
setrecursionlimit(10000)
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ce296890810f5eea7f7228c73a9c33edeabfaad3 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_465.py | e154871c10ca2a59b29c8328d23975e31a1fcf9d | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | # how to avoid hard-coding urls in webapp templates
url
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
e8390081053f84852515f18c5edfb636621d94b6 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /dp/dp_d/12309481.py | 505ec598e3b892ba10e55f5a4b003c8f412ac4cc | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | def main():
N, W = map(int, input().split())
wv = [tuple(map(int, input().split())) for i in range(N)]
dp = [-1]*(W+1)
dp[0] = 0
for w, v in wv:
for j in range(W-1, -1, -1):
if dp[j] >= 0 and j+w <= W:
dp[j+w] = max(dp[j+w], dp[j] + v)
print(max(dp))
main(... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
d60ad3880d7c6e574a14889e96134d03ea0cf5a7 | 54fdaa05078261180cbd7cc94c132527725b189d | /test/crab_ElectronPlots_newskim_eraBv2.py | 3669634ae8acc57d136ad537adca62dd18a27724 | [] | no_license | psiddire/ZeeAnalyzer | e488d3b65108ca923bd459cda41e61f3bd746a5b | d94b1fd4f4de19f5cdeaf405e4c0d6629b889888 | refs/heads/master | 2021-09-07T12:20:36.554253 | 2018-02-22T18:31:52 | 2018-02-22T18:31:52 | 113,574,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # from https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookCRAB3Tutorial
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'plots_Zee_newskim_eraBv2'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transfe... | [
"psiddire@nd.edu"
] | psiddire@nd.edu |
1b90511986a531459e5946949c883716a0400749 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories/267667/kaggle-heart-master/ira/data_iterators.py | cf51b09e680a9c57f815dfc6f35d04a33d7f6edb | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,976 | py | import data
import glob
import re
import itertools
from collections import defaultdict
import numpy as np
import utils
class SliceNormRescaleDataGenerator(object):
def __init__(self, data_path, batch_size, transform_params, patient_ids=None, labels_path=None,
slice2roi_path=None, full_batch=False... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
4cf9b4ddf5b75a0c24363f4cabbb4a2c429cd06e | 1d9e681b204e6ec2d7a710ef45b7dec082239491 | /venv/Lib/site-packages/od_python/models/inline_response_200_23.py | be19e551a11c272b3e2fa1c510c9a94e50aeca25 | [] | no_license | 1chimaruGin/DotaAnalysis | 0e0b85805cc83e4cc491d46f7eadc014e8d6b1f1 | 6a74cde2ee400fc0dc96305203d60c5e56d7ecff | refs/heads/master | 2020-07-21T20:48:07.589295 | 2019-09-07T12:20:15 | 2019-09-07T12:20:15 | 206,972,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | # coding: utf-8
"""
OpenDota API
# Introduction The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays. Please keep request rate to approximately 1/s. **Begining 4/22/2018, the OpenDota API will be limited to 50,000 free calls per month.** We'll be offering a... | [
"kyitharhein18@gmail.com"
] | kyitharhein18@gmail.com |
c7bc15d72bb90e5fb7c6d3a794bcdc3c286ee53a | a3926c09872e1f74b57431fbb3e711918a11dc0a | /python/hash_table/1346_check_if_n_and_its_double_exist.py | a5c2c203328d0dbf68510dd50017a7aac7c37ec2 | [
"MIT"
] | permissive | linshaoyong/leetcode | e64297dc6afcebcee0614a153a566323bf223779 | 57080da5fbe5d62cbc0b8a34e362a8b0978d5b59 | refs/heads/main | 2022-09-15T00:05:36.476268 | 2022-08-16T14:09:11 | 2022-08-16T14:09:11 | 196,914,051 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | class Solution(object):
def checkIfExist(self, arr):
"""
:type arr: List[int]
:rtype: bool
"""
sa = set()
for a in arr:
if 2 * a in sa or (a % 2 == 0 and a // 2 in sa):
return True
sa.add(a)
return False
def test_check... | [
"linshaoyong@gmail.com"
] | linshaoyong@gmail.com |
50a7a10cb9a1aa88a71c786a4b06da91c96801bc | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/anagram/7a7f1153e39747b2922e1c830c65ac0a.py | 23159322f0bf7864d05c50ccb0628b12b1aae17c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 246 | py | def detect_anagrams(word, possibles):
found = []
for possible in possibles:
if sorted(list(word.lower())) == sorted(list(possible.lower())) and word.lower() != possible.lower():
found.append(possible)
return found
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
528c4a1f5896ec1fbbc0e2b833b6a51ca7381b80 | 17cbe826892d06dc5aee4e4c2a5747e10933f2d0 | /hmtl/modules/text_field_embedders/__init__.py | 233345c6669cbadde24653011c00aa7013aa3810 | [
"MIT"
] | permissive | rahular/joint-coref-srl | 3fdd0e37a56e3be894f3da4ceeb030a599ff4388 | cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be | refs/heads/main | 2023-02-16T21:53:11.721014 | 2021-01-18T15:31:47 | 2021-01-18T15:31:47 | 330,708,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # coding: utf-8
from hmtl.modules.text_field_embedders.shortcut_connect_text_field_embedder import (
ShortcutConnectTextFieldEmbedder,
)
| [
"rahul@di.ku.dk"
] | rahul@di.ku.dk |
96fd35a1314f73aa37ac76aef4bb32df8cc4fe3a | cd052f960846ea33e22abdded3106fb492f16c31 | /爬虫项目/code09/ITCast/ITCast/spiders/itcast.py | ed76197004fcb89ff0c9826496a95830942d4f4d | [] | no_license | byst4nder/his_spider | 2d96457b70894c36506e8061d8a3201ac337a5d0 | a51e31acff41292e568ac22b0e213e6cb48218fa | refs/heads/master | 2020-07-21T12:06:28.952083 | 2019-09-06T14:25:58 | 2019-09-06T14:25:58 | 206,857,595 | 1 | 0 | null | 2019-09-06T19:04:02 | 2019-09-06T19:04:02 | null | UTF-8 | Python | false | false | 1,322 | py | # coding:utf-8
# 可以通过命令创建爬虫
# #scrapy genspider itcast itcast.cn
import scrapy
from ..items import ItcastItem
class ItcastSpider(scrapy.Spider):
name = "itcast"
allowed_domains = ["itcast.cn"]
start_urls = ["http://www.itcast.cn/channel/teacher.shtml"]
def parse(self, respon... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
1f07585f8b5bd8b97955c465f76f0b70ac4458b1 | 19be6560901ac2d1c2c1cfa307adb84295e58a9e | /backoffice/urls.py | 2e272952075115a11bb1b203fa20a5f776dcfd7c | [] | no_license | Neutrinet/backoffice | ebacf44cf9f7c7581a593a6986f1e83c2cfe2591 | cb87571a87a4f6fec54d47095e454080cf6fbe5c | refs/heads/master | 2023-04-20T09:18:31.755593 | 2023-03-30T20:54:49 | 2023-03-30T20:54:49 | 36,190,840 | 1 | 0 | null | 2017-12-11T18:13:23 | 2015-05-24T20:10:06 | Python | UTF-8 | Python | false | false | 349 | py | from members.views import ffdn_api
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^admin2/', include('admin2.urls')),
url(r'^', include('ordering.urls')),
url(r'^accounts/', include('accounts.urls')),
url... | [
"cortex@worlddomination.be"
] | cortex@worlddomination.be |
d5c8d40acc3d63d3f90c826b6f55231a1363ca22 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_september.py | 50ec52f86c7a3f910be158d3734960cae05fab5d | [
"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 | 348 | py |
#calss header
class _SEPTEMBER():
def __init__(self,):
self.name = "SEPTEMBER"
self.definitions = [u'the ninth month of the year, after August and before October: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
26b37fb1f6de95098a60273063f8127dfa9cd6ee | 9e335834e7be81068f001d5451781d5c1530ebbf | /LearnPythonTHW/ex15.py | bf759b93985340432ebf224960e5e9315db9f325 | [] | no_license | jtr109/SelfLearning | c1dbffa5485d0cd2f444ea510da62a8e3d269dbc | cc920ed507647762b9855385be76869adac89e7c | refs/heads/master | 2020-04-06T04:11:31.143688 | 2016-07-22T02:19:39 | 2016-07-22T02:19:39 | 58,049,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # -*- coding: utf-8 -*-
from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r:" % filename
print txt.read()
print "Type the filename again:"
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
| [
"lyp_login@outlook.com"
] | lyp_login@outlook.com |
eb5f2cf86ec088fe0044bbd729282c46ce185b5e | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/freedompro/light.py | 95731da914e47175459ea54202f980d23b6451cc | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399277 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 4,138 | py | """Support for Freedompro light."""
import json
from pyfreedompro import put_state
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
COLOR_MODE_BRIGHTNESS,
COLOR_MODE_HS,
COLOR_MODE_ONOFF,
LightEntity,
)
from homeassistant.config_entries import ConfigEntry
from homea... | [
"noreply@github.com"
] | JeffLIrion.noreply@github.com |
00796d3b3a4472968a31b50cfda2cb973bf04186 | 2b08e2af586db3b290773bf579ba243962b5e7d5 | /interactivo.py | d1758cd6945e8311071ff7ed59a2a6a6013fd7a5 | [] | no_license | schiob/python-ciencias-basicas | e7fa4332e3038993c81388272280c4da90812959 | 433a210f1a80ecdbd6a70df468d9e579ff26df7e | refs/heads/main | 2023-06-05T05:10:15.130329 | 2021-06-24T00:20:55 | 2021-06-24T00:20:55 | 378,769,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider, Button
# The parametrized function to be plotted
def f(t, amplitude, frequency):
return amplitude * np.sin(2 * np.pi * frequency * t)
t = np.linspace(0, 1, 1000)
# Define initial parameters
init_amplitude = 5
init_frequency... | [
"schiob4@gmail.com"
] | schiob4@gmail.com |
e4a39f7dc670a9334da406a630aee065d7152554 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OTLModel/Datatypes/KlAlgSnelheidsregime.py | 421b590ae8912821efe765805334d2de3ff76636 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 3,552 | py | # coding=utf-8
import random
from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField
from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde
# Generated with OTLEnumerationCreator. To modify: extend, do not edit
class KlAlgSnelheidsregime(KeuzelijstField):
"""De snelheidsregimes met ... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
255f4e48e12b0086a363b02a7d0c3e7cf026e4cf | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529123243.py | 4b781a03c1f4d2efb3abc216954d34d660e80018 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,684 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
b6c35090a87a08f91a9ef3303b9b4a5b23fcbb98 | a5aabe2e4057d78e687a57a6b560516a7cdb5836 | /tests/extreme/clustering/test_tman.py | c4cab7f0ccaa18b6d758bf361d21d8e50575424a | [
"MIT"
] | permissive | aratz-lasa/py-unsserv | 0ffc09ddab65a11ce917d0faa8b1b5dff091e563 | 6f332385e55d05953186b9a8b7848bca4b878e18 | refs/heads/master | 2022-12-14T21:10:12.397834 | 2020-05-03T11:29:49 | 2020-05-03T11:29:49 | 228,329,158 | 5 | 0 | MIT | 2022-12-08T07:00:55 | 2019-12-16T07:35:20 | Python | UTF-8 | Python | false | false | 4,202 | py | import asyncio
from collections import Counter
from functools import partial
from math import ceil
import pytest
from tests.utils import init_extreme_membership
from unsserv.common.gossip.config import GossipConfig
from unsserv.common.structs import Node
from unsserv.extreme.clustering.t_man import TMan
init_extreme... | [
"aratzml@opendeusto.es"
] | aratzml@opendeusto.es |
8b8cc3dcee06ab2783d556bc60df2a47668c5d00 | ffcce7bc3d82f19a2e024549f9fe3cd8e8702203 | /examples/other/animation2.py | 465af025dde5cf668f825fb115e5caad8b1f804a | [
"MIT"
] | permissive | jlqzzz/vtkplotter | 97f122e533b7f7d2dae1d7523d96326fbe5b8b60 | 6d28cb79153ddef29bc7b0bd19ddde655dcc392c | refs/heads/master | 2022-03-25T03:15:44.487184 | 2019-12-02T18:50:10 | 2019-12-02T18:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | """
This example shows how to animate simultaneously various objects
by specifying event times and durations of the visual effects.
"""
from vtkplotter import *
s = load(datadir+"bunny.obj").subdivide().normalize()
vp = Animation()
vp.timeResolution = 0.02 # secs
vp.switchOn(s)
# no need to repeat t=1, duration=3 ... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
fe34abe7832b4c957422ee6ce3e3eb4df632a86d | ebcc40516adba151e6a1c772223b0726899a26eb | /tests/io_/test_versions.py | 462e87461b8534cdaa4886943c80729df6647e0a | [
"MIT"
] | permissive | spacetx/slicedimage | acf4a767f87b6ab78e657d85efad22ee241939f4 | eb8e1d3899628db66cffed1370f2a7e6dd729c4f | refs/heads/master | 2021-04-09T10:53:15.057821 | 2020-05-26T17:40:11 | 2020-05-26T17:40:11 | 125,316,414 | 7 | 4 | MIT | 2020-05-26T17:40:15 | 2018-03-15T05:24:24 | Python | UTF-8 | Python | false | false | 374 | py | from packaging import version
from slicedimage import VERSIONS
def test_version_increasing_order():
"""Verifies that the VERSIONS list is in increasing order."""
for ix in range(1, len(VERSIONS)):
prev_version = VERSIONS[ix - 1]
curr_version = VERSIONS[ix]
assert version.parse(prev_v... | [
"noreply@github.com"
] | spacetx.noreply@github.com |
6ccd00459fa87e1a94f5758411d0bbdb9aec6367 | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Livro-Desenvolvimento web com Flask/Capitulo04/Nível 01/exemplo4_3.py | a387fdd0382fcffe143985b37b25f2d588a471a9 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # Program: exemplo4_3.py
# Author: Ramon R. Valeriano
# Description: Fazendos os programas do Capítulo 04, do nível 01
# Developed: 09/03/2020 - 14:48
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from flask_wtf import FlaskForm
from wtforms import Str... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
4a0cf341c54b5e86925e1e4083c443883922d80b | 23e40d2056bcadb28aad88ef58efb95461516072 | /main/settings.py | aab3cf8e575662e3a8938c00d1089bb561948ca2 | [] | no_license | drewvpham/dojo_secrets | 6436335005373ab93e3dd58e5943b918313f3fa9 | 120016c86d17643c59f6e18aff84d5ccb84b52b0 | refs/heads/master | 2021-01-22T04:15:15.385267 | 2017-05-30T21:47:34 | 2017-05-30T21:47:34 | 92,445,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# B... | [
"drewvpham@gmail.com"
] | drewvpham@gmail.com |
b82c5691d93f85bfb3f0a5405b79ca804500f2c4 | 2e8ff2eb86f34ce2fc330766906b48ffc8df0dab | /tensorflow_probability/python/internal/backend/numpy/gen/linear_operator_block_diag.py | 6aeec93a59471c9f85ff8fffe030e4d7812c59de | [
"Apache-2.0"
] | permissive | wataruhashimoto52/probability | 9613f9a3cc685ff1a20643c4a05a48f9cf0fe1ae | 12e3f256544eadea6e863868da825614f4423eb0 | refs/heads/master | 2021-07-16T18:44:25.970036 | 2020-06-14T02:48:29 | 2020-06-14T02:51:59 | 146,873,495 | 0 | 0 | Apache-2.0 | 2018-08-31T09:51:20 | 2018-08-31T09:51:20 | null | UTF-8 | Python | false | false | 28,763 | py | # Copyright 2020 The TensorFlow Probability Authors. All Rights Reserved.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# THIS FILE IS AUTO-GENERATED BY `gen_linear_operators.py`.
# DO NOT MODIFY DIRECTLY.
# @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b92267db4323341dfa9c38b216bca9f91bb337b0 | 76b4790cc405d8287fccfa2dd691f4415fc88a11 | /format/mpls/playlist/play_item/__init__.py | c58d6a32d299fbb04eff8c2fa3060a099b8e3ce4 | [] | no_license | Nicba1010/blumount-python | 8131f6685469e73b05068c3e41c9b709ccc21a5a | 648c44b74617186172c767c66c98299e7688c056 | refs/heads/master | 2022-12-16T15:14:12.294720 | 2020-09-13T11:55:01 | 2020-09-13T11:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | from .play_item import PlayItem | [
"nicba1010@gmail.com"
] | nicba1010@gmail.com |
6d2cce74c330a140309c8fdbe07a96d959916b66 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_obj_shell_2nd/test_c40407.py | bc6d1b372424eea87293ec88ccf7c74bca513fd8 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | import pytest
import time
import sys
from page_obj.scg.scg_def import *
from page_obj.scg.scg_def_obj import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail import *
from page_obj.scg.scg_def_acl import *
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file_... | [
"15501866985@163.com"
] | 15501866985@163.com |
52f26c2206606fbefa691cc6942173f41b6ca058 | 3f2b2c885e81a15ed22b4a781bc2e8f5f264b336 | /mhs/common/mhs_common/messages/envelope.py | 647b5cfc88274a3290b87d36d4fc9f90d8920933 | [
"Apache-2.0"
] | permissive | nhsconnect/prm-deductions-integration-adaptors | 9c947dbca3c5bf22874efb35364cd22b52acd795 | 17c78a2b2df3755736500d8b10f3e09c99263ef2 | refs/heads/deductions | 2021-07-20T11:13:59.339647 | 2020-12-22T09:48:09 | 2020-12-22T09:48:09 | 246,785,891 | 0 | 2 | Apache-2.0 | 2021-04-30T21:57:17 | 2020-03-12T08:50:37 | Python | UTF-8 | Python | false | false | 2,123 | py | """This module defines the base envelope used to wrap messages to be sent to a remote MHS."""
from __future__ import annotations
import abc
import pathlib
from typing import Dict, Tuple, Any
from builder import pystache_message_builder
from definitions import ROOT_DIR
FROM_PARTY_ID = "from_party_id"
TO_PARTY_ID = ... | [
"noreply@github.com"
] | nhsconnect.noreply@github.com |
2a12c95c893661baca9bef4785d6924789ae87e7 | 50e3d53c47250bca40fbbe49ea6f5979cf3ca807 | /tson/token.py | 46875ebbe66e3600a47e3695f0654d5d388e3a25 | [] | no_license | cstuartroe/tson | 1d85749e16d611dcf653cef4adc944932450db01 | 5485e0b6480150f3535c0ce634d228876dd76ba2 | refs/heads/main | 2023-04-18T12:11:35.751657 | 2021-05-02T18:39:58 | 2021-05-02T18:39:58 | 359,987,026 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | import re
import sys
SINGLE_CHAR_ESCAPES = {
'"': '"',
'\\': '\\',
'/': '/',
'b': '\b',
'f': '\f',
'n': '\n',
'r': '\r',
't': '\t'
}
LABEL_RE = "[a-zA-Z_][a-zA-Z0-9_]*"
NUMERIC_RE = r"-?[0-9]+(\.[0-9]+)?"
BOOLS = {
"true": True,
"false": False,
}
DECLARERS = {
"type",
... | [
"cstuartroe@haverford.edu"
] | cstuartroe@haverford.edu |
efb465ae45ed7fa2b00ca94106f0b6d33d05e6bd | 135f624cf8c2d95eff09a07397da44c8e76d1a70 | /src/tasks/migrations/0003_auto_20170206_1153.py | 8c2bbb6235854c056f563c00840d7cc4929eb512 | [] | no_license | uk-gov-mirror/datagovuk.publish_data_alpha | 42709ffdf1e3ccedf6c5c742078fda5fc9522712 | 4cbafff4311da0693d456953d01b24f27101e41f | refs/heads/master | 2021-06-17T23:05:50.835551 | 2017-05-25T15:00:27 | 2017-05-25T15:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-02-06 11:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0002_task_related_object_id'),
]
operations = [
migrations.AlterFi... | [
"ross@servercode.co.uk"
] | ross@servercode.co.uk |
0a7f5bc245d7a0b1e7ff8dee61d3c6b185e1ebf3 | 139af68b78734a6bc53bd942ffa05476baf3d71d | /Python Fundamentals 2020 - 2021/13 - TEXT PROCESSING/More exercise - 13 - 05.py | 5a2252209bfb53e58143d4c6eca76fe595a218b6 | [] | no_license | MiroVatov/Python-SoftUni | 7fe3fc0a3928848c5317fb120f789c773bfc117e | 0d0d6f116281b4de8c413d254386e27d992d047b | refs/heads/main | 2023-08-24T09:44:31.261137 | 2021-10-18T14:04:03 | 2021-10-18T14:04:03 | 317,510,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | title_of_an_article = input()
print(f"<h1>")
print(title_of_an_article)
print(f"</h1>")
content_of_the_article = input()
print(f"<article>")
print(content_of_the_article)
print(f"</article>")
while True:
comment = input()
if comment == "end of comments":
break
print(f"<div>")
... | [
"noreply@github.com"
] | MiroVatov.noreply@github.com |
715b78f5c54afb7db2f05ce2265f7dd90eed0a8d | 76a68cbbaf9c4aa15ec9b59455e33c6784229bdb | /MECS_gym/venv/bin/easy_install-3.5 | 82fa72283113e10abd217602c94e6c52cf7de730 | [
"MIT"
] | permissive | Python-Repository-Hub/KAIST_MEC_simulator | e63f704bd20b36fd1a8ffa30b7e736c50351d1cc | 26556a8216e2bbdfa5c5ee377e9deb51ea7602f8 | refs/heads/master | 2023-08-30T06:57:39.003766 | 2021-11-18T16:16:48 | 2021-11-18T16:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | 5 | #!/home/wisrl/Downloads/baselines-master_final_ppo2/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"elasteam88@gmail.com"
] | elasteam88@gmail.com |
63672e5230782b6ef6729b1836332595ccc3ecfd | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/Pythia_i/share/PYTUNE_pprintout.py | 564fee7303a86b2b89df12767930b5600ed7390c | [] | 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 | 1,134 | py | #______________________________________________________________________________________________________________________
# author: liza.mijovic@_nospam_cern.ch
#
# jO effect: dump the values of all parameters PYTUNE can set - this jopts are meant for runnig with GET_TUNE_params.sh
#
# __________________________________... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
f43e0ddb2fcdcb7dc177f350b6b4392c4c8151cf | e519a3134e5242eff29a95a05b02f8ae0bfde232 | /services/control-tower/vendor/riffyn-sdk/swagger_client/models/inline_response2009.py | d0159adf2ba606c4d7868ece17e12f892cd52bd6 | [] | no_license | zoltuz/lab-automation-playground | ba7bc08f5d4687a6daa64de04c6d9b36ee71bd3e | 7a21f59b30af6922470ee2b20651918605914cfe | refs/heads/master | 2023-01-28T10:21:51.427650 | 2020-12-04T14:13:13 | 2020-12-05T03:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,874 | py | # coding: utf-8
"""
Riffyn REST API
### Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ### Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to send req... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
9c47159651e9c6fdafe463538fc91b52c74619cd | 3f09e77f169780968eb4bd5dc24b6927ed87dfa2 | /src/Problems/Unique_Paths_II.py | 99924d8912f90f3e4316559a40514a8aff937e3d | [] | no_license | zouyuanrenren/Leetcode | ad921836256c31e31cf079cf8e671a8f865c0660 | 188b104b81e6c73792f7c803c0fa025f9413a484 | refs/heads/master | 2020-12-24T16:59:12.464615 | 2015-01-19T21:59:15 | 2015-01-19T21:59:15 | 26,719,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | '''
Created on 22 Nov 2014
@author: zouyuanrenren
'''
'''
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respectively in the grid.
For example,
There is one obstacle in the middle of a 3x3 g... | [
"y.ren@abdn.ac.uk"
] | y.ren@abdn.ac.uk |
650ae2260d45097b8160c5a8e332d7be6a280eb9 | 33f1c49920201e21adaf794c826148d0330db4a1 | /python/binary search/141_sqrt_x.py | 688a4f77400111f7206db6c0513756dfcec4b3c1 | [] | no_license | zsmountain/lintcode | 18767289566ccef84f9b32fbf50f16b2a4bf3b21 | 09e53dbcf3b3dc2b51dfb343bf77799632efd219 | refs/heads/master | 2020-04-04T21:35:07.740575 | 2019-03-16T20:43:31 | 2019-03-16T20:43:31 | 156,291,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | '''
Implement int sqrt(int x).
Compute and return the square root of x.
Have you met this question in a real interview?
Example
sqrt(3) = 1
sqrt(4) = 2
sqrt(5) = 2
sqrt(10) = 3
'''
class Solution:
"""
@param x: An integer
@return: The sqrt of x
"""
def sqrt(self, x):
# write your ... | [
"zsmountain27@gmail.com"
] | zsmountain27@gmail.com |
6588b9fe3061b83e4c1c428f27244a0a784cdca2 | f13350eaf5d84a46d875357c5d0a1dd4139ef1f6 | /venv/bin/easy_install | c8753856ed8049709a3df2c5854626671ad58908 | [] | no_license | lssdeveloper/datafresh | bb07f97d7737133242da30ea99f34527ffce1dcc | 5e1f52afb32188543d1abcde8408e7f130e5d912 | refs/heads/master | 2020-03-18T22:46:08.640515 | 2018-05-29T10:54:30 | 2018-05-29T10:54:30 | 129,455,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/lserra/datafresh/venv/bin/python3.3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"leandro.serra.10@gmail.com"
] | leandro.serra.10@gmail.com | |
3b23e16e50ca0f47fef9667521ed3075d96d58e2 | 1f6212fab177fb8b84258f297928f5d6b97908d4 | /apps/CMDB/model/idc_models.py | 6bce6d2afca8721001a890b7cae21920a613b25d | [] | no_license | logan0709/roe | 9773ca058e017648bc9a9c05abf1597268a9759a | 3f87cfb08471f0e307c08fe0d5de064b4ea8e35b | refs/heads/master | 2020-04-08T22:00:51.851184 | 2018-11-29T10:37:30 | 2018-11-29T10:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,986 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
IDCType = (
('DX', u'电信'),
('LT', u'联通'),
('YD', u'移动'),
('ZJ', u'自建'),
('BGP', u'BGP')
)
#IDC 机房信息
class Idc(models.Model):
name = models.CharField(u"机房名称", max_length=30, nul... | [
"flc009@163.com"
] | flc009@163.com |
e577ecad7dd739f19d5d4c54911877c6f273475d | cc128e9804ce0cb659421d2b7c98ff4bfbb9d90b | /train_mnist.py | 1b0d31c2e9272ae7e592fb1a42f457db483d3fe7 | [] | no_license | hope-yao/robust_attention | 6beb2de2c3b849c66e79ec71ae81ed127cee3079 | 905a32f02bb8d4709666036f6a6e1f82684f8716 | refs/heads/master | 2020-04-02T08:52:48.430423 | 2018-10-30T00:13:55 | 2018-10-30T00:13:55 | 154,265,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,507 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
from model_mnist import Model_madry, Model_att, Model_crop
from pgd_attack import *
from viz2 import *
import os
import numpy as np
from pgd_attack import LinfPGDAttack
from utils import creat_dir
from tqdm import tqdm
slim = tf.contrib.... | [
"hope-yao@asu.edu"
] | hope-yao@asu.edu |
31293892611c10cb6f78d5d022590cb0fd1f5d9c | 56ade096db1fe376ee43d38c96b43651ee07f217 | /326. Power of Three/Python/Solution.py | c065d49b669d5e5476e90c9150b003991cc8f091 | [] | no_license | xiaole0310/leetcode | c08649c3f9a9b04579635ee7e768fe3378c04900 | 7a501cf84cfa46b677d9c9fced18deacb61de0e8 | refs/heads/master | 2020-03-17T05:46:41.102580 | 2018-04-20T13:05:32 | 2018-04-20T13:05:32 | 133,328,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | class Solution(object):
def isPowerOfThree(self, n):
"""
:type n: int
:rtype: bool
"""
if n <= 0:
return False
return (3 ** 19) % n == 0
| [
"zhantong1994@163.com"
] | zhantong1994@163.com |
c321ff81f92bb3395f0e4dba6fc0c8587be08646 | b1cdbb08b51ce0edfc97351ea07f10166624e5cc | /src/rocks-pylib/rocks/commands/dump/appliance/attr/__init__.py | 6c6ac6efa9a4ddd893b4f02fb1a4175d1e36d338 | [] | no_license | tcooper/core | 2453220bdc305a4532fd6f0bda9fdb22560add21 | 61d2512146f34f71d09f817a3d07a56c979d1bf9 | refs/heads/master | 2021-08-22T17:17:20.080481 | 2017-11-30T19:33:53 | 2017-11-30T19:33:53 | 105,914,127 | 0 | 0 | null | 2017-10-05T16:32:48 | 2017-10-05T16:32:48 | null | UTF-8 | Python | false | false | 4,555 | py | # $Id: __init__.py,v 1.9 2012/11/27 00:48:14 phil Exp $
#
# @Copyright@
#
# Rocks(r)
# www.rocksclusters.org
# version 6.2 (SideWindwer)
# version 7.0 (Manzanita)
#
# Copyright (c) 2000 - 2017 The Regents of the University of California.
# All rights reserved.
#
# Redistribution... | [
"ppapadopoulos@ucsd.edu"
] | ppapadopoulos@ucsd.edu |
89154813eb3ff9f4e9c50e0d31da866ddf5a105f | 1617a9a9c92146bcdac89b5efb1ef0d18408160b | /cont6lab/36/generator.py | 0977a7c5fc92dad574ae123ad1808f554c15b4d0 | [] | no_license | LitRidl/checker-content | 1b1329b4462b87731e0755ab33480ff063a94a00 | b5d0456c8d4d28db6e6022e272a95a385f253797 | refs/heads/master | 2023-08-17T18:08:07.377680 | 2018-02-04T11:16:34 | 2018-02-04T11:16:34 | 120,077,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | from __future__ import print_function
from random import shuffle, randint, choice
from numpy import base_repr
import sys
HEX_DIGITS = '0123456789ABCDEF'
def rnd(l, r, base=10):
return base_repr(randint(l, r), base=base)
def rnd_word(length, prefix=' ', alphabet=HEX_DIGITS):
word = ''.join(choice(alphabet) ... | [
"tutkarma@gmail.com"
] | tutkarma@gmail.com |
f4adbaf1b2964ff6c99e4ebc11725555d3d8b479 | d6589ff7cf647af56938a9598f9e2e674c0ae6b5 | /sas-20181203/alibabacloud_sas20181203/client.py | 9b1b8966fd4890d8d6945e6c7403bff1b32e9637 | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python-sdk | 55028a0605b1509941269867a043f8408fa8c296 | cddd32154bb8c12e50772fec55429a9a97f3efd9 | refs/heads/master | 2023-07-01T17:51:57.893326 | 2021-08-02T08:55:22 | 2021-08-02T08:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360,248 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from typing import Dict
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilCl... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
732198405c718e475715d90fdb730cc8b135948c | dbd87fe6e9466c4cada18b037667cfdddc62c193 | /data/FX_CFD/XTB/utils.py | 78e5d6fefed7858147792c12c920d9589d12f8b3 | [] | no_license | alexanu/Python_Trading_Snippets | 74515a40dc63ba50d95bd50330ed05d59b5dc837 | 85969e681b9c74e24e60cc524a952f9585ea9ce9 | refs/heads/main | 2023-06-25T03:27:45.813987 | 2023-06-09T16:09:43 | 2023-06-09T16:09:43 | 197,401,560 | 18 | 17 | null | 2023-02-08T22:25:25 | 2019-07-17T14:05:32 | Jupyter Notebook | UTF-8 | Python | false | false | 481 | py | from itertools import product
import settings
from api import data_getter
from writer import write_tsv
def file_maker():
combis = product(settings.WATCHLIST_MAP, settings.INDICATORS)
for i in combis:
s = i[0].split(",")[0]
ind = i[1].split(",")
data = data_getter(symbol=s, indicator=... | [
"oanufriyev@gmail.com"
] | oanufriyev@gmail.com |
791450cd265e4fdf114e22cd378fa7697db6ffcf | 64ae9e59e387aa219183f6748f07ede3533c14b2 | /lib/auxiliary/switchd/workertask.py | 3f4ddb643005a336a65bf135c9c26feece16dbf4 | [
"BSD-2-Clause"
] | permissive | sohonet/HEN | fe0168816d908c9c5d3180e90e67b12e4724c7be | 47575028a6f3d3fe04d6839dd779b2b1b991accc | refs/heads/master | 2021-01-19T07:30:22.849260 | 2012-02-20T19:41:17 | 2012-02-20T19:41:17 | 87,548,153 | 0 | 0 | null | 2017-04-07T13:25:40 | 2017-04-07T13:25:40 | null | UTF-8 | Python | false | false | 1,214 | py | class TaskID:
checkSensorTask = 0
hostStatusTask = 1
switchReadFdbTask = 2
linkStatusTask = 3
networkMapGenerationTask = 4
class WorkerTask:
nodeinstance = None
node = None
taskid = None
timeScheduled = None
def __init__(self, node, nodeinstance, taskid, timeScheduled):
... | [
"ben@darkworks.net"
] | ben@darkworks.net |
02916aa12e26d8e7bd5c64c4e962ad2a3ddd86e0 | 63a1671145dc6dc6e1a9d10ec21c520b83036fea | /others/label_convert/show_img_by_yolo.py | 9a438d83718bba72dd0beed8655d3fa9949b61fa | [
"MIT"
] | permissive | chenpaopao/- | 4eca1405a3aab86fe649817048852b620a962c1a | 320f7d9a0b9e49528561024217ba07645eb68805 | refs/heads/master | 2023-02-04T17:44:48.639136 | 2022-06-06T05:04:57 | 2022-06-06T05:04:57 | 323,789,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,590 | py | import argparse
import os
import sys
from collections import defaultdict
import cv2
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
from tqdm import tqdm
category_set = dict()
image_set = set()
every_class_num = defaultdict(int)
category_item_id = -1
def xywhn2xyxy(box, size):
box = ... | [
"739677819@qq.com"
] | 739677819@qq.com |
1e9b873b207de4e3ceafa838dad971dbb1499a7f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit365.py | eb19e320752840e2c905c3f8005c7be2d19bdece | [
"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 | 7,388 | py | # qubit number=3
# total number=73
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5cd7bf15cbb9f9a315ace1403ce4ea46bc9b95db | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2345/60586/315364.py | 08640613734e1bd7c00a353bb3777990539f833a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | input()
input()
x=input()
input()
y=input()
if x=="2 2"and y=="1 2 3":
print("2 1")
print("0 0")
elif x=="2 2"and y=="1 3 3":
print("2 1")
print("3 2")
else:
print(x)
print(y) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0009a4238258a3dc5749b796594aed5a71aa1f16 | f518506fb620fd29a2db876c05de813508eda519 | /CreateView/CreateView/urls.py | 8ff63f64f426a78c025e088176b31d2ce45712cd | [] | no_license | Niharika3128/Django5-6 | 07435ae9088659e2d192cda60542aee5214e0637 | be3055ca91da45c37f9ec1adb626eea335477746 | refs/heads/master | 2020-06-02T04:28:37.016405 | 2019-06-09T17:28:33 | 2019-06-09T17:28:33 | 191,035,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """CreateView URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
92798e97c2e24cf01a2aa823f42f660aaab8293b | 08892167da611ae1d9fa36ac2c1232804da9d487 | /build/ur_dashboard_msgs/catkin_generated/pkg.develspace.context.pc.py | be83fb6cc713cfdfe3c18a4b00a74ad547de0f19 | [] | no_license | QuiN-cy/ROS_Test_ws | cfd11134312590cabe09f404a332e5f1c4415f59 | 6b041e3aa8c27212c5fc665d3c54dbde988b5d67 | refs/heads/main | 2023-05-15T06:19:16.680149 | 2021-06-11T15:34:05 | 2021-06-11T15:34:05 | 371,643,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/student/test_ws/devel/.private/ur_dashboard_msgs/include".split(';') if "/home/student/test_ws/devel/.private/ur_dashboard_msgs/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;ac... | [
"quincy1234321@hotmail.nl"
] | quincy1234321@hotmail.nl |
2e3d8d7cfcfa60a44a0addf88f52ea50fef537c3 | cb63b64435af17aaa652d7efd9f624e0e9385085 | /todo/forms.py | af63ce00a410f0b86a199cb882b0d209adfb2464 | [] | no_license | Vostbur/todo-multiuser-site | e4bb6bb0713cb466fa5338c213911f3d53089db2 | b6e975255cbd74ce2319e64b885558d244454b43 | refs/heads/master | 2023-05-04T23:36:50.668891 | 2021-05-24T19:47:36 | 2021-05-24T19:47:36 | 370,466,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.forms import ModelForm
from .models import Todo
class TodoForm(ModelForm):
class Meta:
model = Todo
fields = ['title', 'description', 'important']
| [
"vostbur@gmail.com"
] | vostbur@gmail.com |
e57a5bd566d8bd5e6aa1057bfd026b0c36f65ea1 | 33d078ea9a4dd549d99b01a3aff09d1f2032d6eb | /test/test_server.py | 926c6bae3aa8e125201d8c062760d2678483ddf8 | [] | no_license | labinxu/majong | f84fa34ce4ba82f5006f37f0ddc98b8c08445d10 | 234a82b11093f475d5fc4ea37d2b77a3d33877be | refs/heads/master | 2020-03-19T04:18:39.950419 | 2018-06-02T12:16:38 | 2018-06-02T12:16:38 | 135,814,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import sys
if '..' not in sys.path:
sys.path.append('..')
import socket
from xserver import XServer
from player import Player
from protos.action_pb2 import Action
class Test_server(XServer):
def __init__(self, host,ip,players):
# define four players
super().__init__(host, ip, players)
def ... | [
"flowinair@gmail.com"
] | flowinair@gmail.com |
9b3819333e808913783007eba80920255b57e3c6 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/rasbt_mlxtend/mlxtend-master/mlxtend/classifier/multilayerperceptron.py | 42f723cf529b36903010a7ecc949d7acdb1d6c50 | [] | 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 | 9,902 | py | # Sebastian Raschka 2014-2017
# mlxtend Machine Learning Library Extensions
#
# Implementation of a Multi-layer Perceptron in Tensorflow
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause
import numpy as np
from time import time
from scipy.special import expit
from .._base import _BaseModel
f... | [
"659338505@qq.com"
] | 659338505@qq.com |
c006e72d485742e0e24ae62bfbfb57f79139c0dd | 2ce0c97025f0cc644bcb747e1a7bc41b15890618 | /src/powerful_benchmarker/ensembles/concatenate_embeddings.py | a6360ad6b300eeb1d7808ecc03f99a0a4389d704 | [] | no_license | kwotsin/powerful-benchmarker | 5412c9b42be385b0b525e9ae9893ba9d12bd21eb | b9cf4dd1ed1e21bfe10b9a88972e51f0db9a0545 | refs/heads/master | 2022-11-22T10:03:34.346800 | 2020-07-28T04:31:27 | 2020-07-28T04:31:27 | 285,510,355 | 2 | 0 | null | 2020-08-06T08:00:03 | 2020-08-06T08:00:02 | null | UTF-8 | Python | false | false | 1,029 | py | from ..utils import common_functions as c_f
import torch
from .base_ensemble import BaseEnsemble
from .. import architectures
class ConcatenateEmbeddings(BaseEnsemble):
def create_ensemble_model(self, list_of_trunks, list_of_embedders):
if isinstance(self.embedder_input_sizes[0], list):
self.em... | [
"tkm45@cornell.edu"
] | tkm45@cornell.edu |
3b6bfc3e77f83f7cee554a520237036597617472 | 1faa248589efec362481be76b536e66fb16784b8 | /examples/datavault2-bigdata-example/dags/dvdrentals.py | d631cd5535ef9993bba4e0843ebecdd1e55dcfac | [] | no_license | JomaMinoza/etl-with-airflow | 97769b77dd34420efd7545f8cc0980e5fc67540a | cc4fa33b3fb300c79da7cb3696eed8cebac5ca67 | refs/heads/master | 2020-03-19T18:31:57.234918 | 2018-06-10T09:13:46 | 2018-06-10T09:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,102 | py | # -*- coding: utf-8 -*-
#
# 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
... | [
"gtoonstra@gmail.com"
] | gtoonstra@gmail.com |
794ee8b5e9280e3685ccad77574041cb70b678f9 | f20931826a557f0d884f8b46de259840c29b7428 | /meiduo_mall/meiduo_mall/utils/views.py | 6277b442a78467dc0f3a239d427d6ac13b413536 | [] | no_license | zy723/meiduo_project | 38ccecc2fa1d61f2eb848ebc572dd43d45a534c8 | f50a8105c63554b57419cb3494c3d323bb343f9c | refs/heads/master | 2022-12-15T02:34:42.578549 | 2020-05-20T16:56:27 | 2020-05-20T16:56:27 | 248,264,846 | 0 | 0 | null | 2022-12-12T20:28:41 | 2020-03-18T15:08:40 | TSQL | UTF-8 | Python | false | false | 982 | py | from django import http
from django.contrib.auth.mixins import LoginRequiredMixin
from meiduo_mall.utils.response_code import RETCODE
class LoginRequiredJSONMixin(LoginRequiredMixin):
"""
验证用户并返回json 的扩展类
"""
def handle_no_permission(self):
"""
重写 handle_no_permission 返回json
... | [
"zy723@vip.qq.com"
] | zy723@vip.qq.com |
a71e3dfb3d120f35cc2b76d64013210f50176ec6 | 4ce5f83f93309e4d446296fad79a63ed859365a8 | /models/__init__.py | fb8e3a9920cea7bf641bee8724bebbe4d794c8c7 | [
"Apache-2.0"
] | permissive | amirunpri2018/TT-SRN | 3024d05deeec69e3bb2ee8350b332ed24f07fc65 | 83eb03a9393442e6b09aa736862b3a2d5bdcf5b6 | refs/heads/main | 2023-08-14T04:28:10.419866 | 2021-10-08T11:57:29 | 2021-10-08T11:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | from .vistr import build
def build_model(args):
return build(args)
| [
"noreply@github.com"
] | amirunpri2018.noreply@github.com |
494c29e9fe3a84a374cb6cd28ca676afa31d980d | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/object_detection/metrics/calibration_evaluation.py | e3fc4b05639b94d7425a8811ef92e1878c13f4f8 | [
"Apache-2.0",
"MIT"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 10,266 | py | # Copyright 2019 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... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
83d042904a986cd4ad3a58ee892205b4cf61e7b0 | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/itkVectorConfidenceConnectedImageFilterPython.py | 7bc6ab589db1a24b58adb144511094c296061932 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629,267 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkV... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
4574c829390dab1c4b2ccbccc3376035ba788e83 | a1b21aa9b4c3b99b9b16fd47686bcc76e6fafd18 | /playground/people.py | b0f3a9910a955ad3632716f3dd4206debc55f55e | [] | no_license | irfan87/python_tutorial | 986c5dae98a5ad928c3820bf0355f544c091caf0 | 71bbf8b8aba2d5a1fafc56b8cb15d471c428a0cf | refs/heads/master | 2020-06-05T00:52:07.619489 | 2019-08-19T02:56:41 | 2019-08-19T02:56:41 | 192,257,432 | 0 | 0 | null | 2019-08-19T02:56:42 | 2019-06-17T01:53:46 | Python | UTF-8 | Python | false | false | 689 | py | # make a list of people dictionary
people = []
person = {
'first_name': 'ahmad irfan',
'last_name': 'mohammad shukri',
'age': 32,
'job': 'web developer'
}
people.append(person)
person = {
'first_name': 'ivy',
'last_name': 'ying',
'age': 21,
'job': 'hair dresser'
}
people.append(perso... | [
"nerve2009@yahoo.com"
] | nerve2009@yahoo.com |
92cfb05db74646ccddbc5c70833a6a1303308641 | 2e43fc58f2a70b38c8f74101d639d1ad6fffb609 | /ParadoxTrading/Indicator/General/KDJ.py | bcec73dc9792d1d6b3c2bea58f33a1710705b2a3 | [
"MIT"
] | permissive | ppaanngggg/ParadoxTrading | 9cac27dee26a49739dde661c1e03d83bda09df9b | 2c4024e60b14bf630fd141ccd4c77f197b7c901a | refs/heads/master | 2021-05-11T20:13:14.871616 | 2018-07-13T05:49:15 | 2018-07-13T05:49:15 | 117,434,771 | 96 | 26 | MIT | 2018-03-21T08:47:27 | 2018-01-14T13:57:16 | Python | UTF-8 | Python | false | false | 1,769 | py | import statistics
from collections import deque
from ParadoxTrading.Indicator.IndicatorAbstract import IndicatorAbstract
from ParadoxTrading.Utils import DataStruct
class KDJ(IndicatorAbstract):
def __init__(
self,
_k_period: int = 20,
_d_period: int = 3,
_j_period... | [
"hantian.pang@gmail.com"
] | hantian.pang@gmail.com |
9b9fb2306b6d63ca35fd6410f142f97e9fbe80e2 | 3faf4b9fb76145b2326446bc6bc190a5712b3b62 | /Algorithms/0547 Friend Circles.py | 8df58948a81a0e77ac8d3781796868dd3678e6a6 | [] | no_license | cravo123/LeetCode | b93c18f3e4ca01ea55f4fdebceca76ccf664e55e | 4c1288c99f78823c7c3bac0ceedd532e64af1258 | refs/heads/master | 2021-07-12T11:10:26.987657 | 2020-06-02T12:24:29 | 2020-06-02T12:24:29 | 152,670,206 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | import collections
# Solution 1, DFS
class Solution:
def dfs(self, idx, seen, M, n):
seen.add(idx)
for i in range(n):
if i not in seen and M[idx][i] == 1:
self.dfs(i, seen, M, n)
def findCircleNum(self, M: List[List[int]]) -> int:
n = len(M)... | [
"cc3630@columbia.edu"
] | cc3630@columbia.edu |
c79df475ffbfb4d044fa2c896464eb9892f52c11 | 8c6f7475f372c76bcc9c6538bd1d2b4a50cadf74 | /trackerproject/trackerwebapp/views/students/student_withdrawal.py | 2d69d05367f568f2c774d719ea130132ff09ce68 | [] | no_license | stevebrownlee/python-foundations-tracker | a2169a70a0d29bd38eb416dfefb53110f69576b4 | de1cd4fa6887bed725eabcc2e6842ced882adaf0 | refs/heads/master | 2023-05-25T11:16:55.252655 | 2021-05-31T20:23:48 | 2021-05-31T20:23:48 | 276,436,092 | 1 | 1 | null | 2021-06-09T19:23:10 | 2020-07-01T17:02:37 | Python | UTF-8 | Python | false | false | 509 | py | from datetime import date
from django.shortcuts import render, redirect
from django.urls import reverse
from ...models import Student, Cohort
def student_withdrawal(request):
if request.method == 'POST':
student_id = request.POST.get('student', None)
student = Student.objects.get(pk=student_id)
... | [
"chortlehoort@gmail.com"
] | chortlehoort@gmail.com |
b011141f26bcb341f2544953a40d8dfec7d492c9 | f68eda51246c95597def569224f3b56d4c3700e7 | /top/api/rest/WdtDictLogisticsQueryRequest.py | c22cdf7b0450254198c06a58e33cabca338fbc47 | [
"MIT",
"BSD-3-Clause"
] | permissive | stoensin/taobao-openapi | 47de8fb29ae2d8ce47d4fce07c0ccaeaee1ef91f | 202a9df2085229838541713bd24433a90d07c7fc | refs/heads/main | 2023-07-17T02:17:51.527455 | 2021-08-25T15:08:49 | 2021-08-25T15:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | '''
Created by auto_sdk on 2020.06.01
'''
from top.api.base import RestApi
class WdtDictLogisticsQueryRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.page_no = None
self.page_size = None
self.sid = None
def getapiname(self):
retu... | [
"samzong.lu@gmail.com"
] | samzong.lu@gmail.com |
b29c3cc6e9735c70ab606d234516c1b7feb0b706 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_3417.py | 531231f8fd443d20800f3ab318d8c1b24d18059f | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # Changing the encoding of a table with django+south migrations using --auto
--auto
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
53283ad6f5c2217a5a71cff991b53a10091daa3b | 09d3599c8e53b38104e96d479b2b40ac549d0bef | /Rakesh/permutation-combination/palindromic_permutation.py | 128dfbbc9c13ad0ed8713cdc04433f515971161b | [] | no_license | rakeshsukla53/interview-preparation | 54764c83c86a52c566899ec87d74dad84216764d | 09355094c85496cc42f8cb3241da43e0ece1e45a | refs/heads/master | 2016-09-06T02:08:50.436414 | 2016-02-01T00:31:52 | 2016-02-01T00:31:52 | 40,916,511 | 9 | 3 | null | 2015-12-31T05:00:55 | 2015-08-17T17:59:55 | HTML | UTF-8 | Python | false | false | 1,726 | py |
from collections import Counter
from itertools import permutations, repeat
class Solution(object):
def generatePalindromes(self, s):
"""
Generate all palindrome of a given sequence
:type s: str
:rtype: List[str]
"""
# for not be palindrome we cannot have two charact... | [
"rakesh.sukla53@gmail.com"
] | rakesh.sukla53@gmail.com |
07549c00bd4f9d4c98dacd7d1e6de9ae69f986e3 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/container/v1beta1/container-v1beta1-py/google/container_v1beta1/types/__init__.py | 63e366e3fc48ad2bfb6cf302007e3f7562e4d6eb | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,486 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
b4e791d6d5b79e2d392a46edb0f370b10920f691 | 3e30e334d759a3606be1dce6dca1154568808d68 | /xlsxwriter/test/comparison/test_hyperlink05.py | 639cc3fb1843d81ac62e040af046d02a719c2ee3 | [
"BSD-2-Clause-Views"
] | permissive | cimarronm/XlsxWriter | 59668816c4faf5b2e5fc7b96a4ab98d5797891b7 | b440055bebfcc08339bc3e43cc2ce9819a142004 | refs/heads/master | 2021-01-18T10:07:21.729676 | 2014-08-12T23:17:43 | 2014-08-12T23:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
cd99cc88148eee700ffc8af3c5913d772fc4bb78 | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /391.py | 3cab8540bcc577d43e48c5eceebe7ebc5562b23d | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | # ref: https://discuss.leetcode.com/topic/55923/o-n-solution-by-counting-corners
# -with-detailed-explaination
# ref: https://discuss.leetcode.com/topic/56064/python-solution-based-on-hxtang
# -s-idea
import collections
class Solution(object):
def isRectangleCover(self, rectangles):
... | [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
2042d5174b3aa20c74ebf96ade33fe236381d38b | 8d0f432027f1c6ee318f0a065caa9e666d00fb6b | /doit_algorithm/chap01/max3_func.py | 0ee5290250ea8289f09a0369726e4e06b2c21e4d | [] | no_license | HC-kang/algorithm | ca72e1e4edd8a9c68fca32d15739818dcfbb3c8b | 5cd459608bffe28e4de9cfb3ab21880e64456201 | refs/heads/master | 2023-08-14T16:17:19.501251 | 2021-09-20T02:01:59 | 2021-09-20T02:01:59 | 363,345,024 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | def max3(a, b, c):
maximum = a
if b > maximum: maximum=b;
if c > maximum: maximum=c;
return maximum
print(f'max3(3,2,1) = {max3(3,2,1)}')
print(f'max3(3,2,2) = {max3(3,2,2)}')
print(f'max3(3,1,2) = {max3(3,1,2)}')
print(f'max3(3,2,3) = {max3(3,2,3)}')
print(f'max3(2,1,3) = {max3(2,1,3)}')
print(f'max3(... | [
"weston0713@gmail.com"
] | weston0713@gmail.com |
e482c7beef46ad7a9cbd29be3f5bc13e5190a5a4 | b9c33f67fa66839ee18930e2679ac8f3a1b450fe | /build/robotiq/robotiq_3f_gripper_visualization/catkin_generated/pkg.develspace.context.pc.py | e3b1ba83c1205d0812d2f0e893634ee282b50cc4 | [] | no_license | Haoran-Zhao/Ultrasound_and_UR3 | e397e66207789c50b8fe7ca7c7be9ac9dfa6e2da | bb0e4b19216a4b21a1af4b6524f4ed98fee8d83c | refs/heads/master | 2023-01-07T13:46:56.723360 | 2020-11-11T01:14:18 | 2020-11-11T01:14:18 | 274,579,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "robotiq_3f_gripper_visualization"
PRO... | [
"zhaohaorandl@gmail.com"
] | zhaohaorandl@gmail.com |
0747f07f2f274bde1a1d1eff63b5516798628722 | 86fc644c327a8d6ea66fd045d94c7733c22df48c | /scripts/managed_cpe_services/customer/wanop_services/type2_site/type2_site/wanop_primary/inpath_rules/inpath_rules/service_customization.py | 240dde8fe5b4f13035c8e61590f5fe763c767c56 | [] | no_license | lucabrasi83/anutacpedeployment | bfe703657fbcf0375c92bcbe7560051817f1a526 | 96de3a4fd4adbbc0d443620f0c53f397823a1cad | refs/heads/master | 2021-09-24T16:44:05.305313 | 2018-10-12T02:41:18 | 2018-10-12T02:41:18 | 95,190,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,751 | py | #
# This computer program is the confidential information and proprietary trade
# secret of Anuta Networks, Inc. Possessions and use of this program must
# conform strictly to the license agreement between the user and
# Anuta Networks, Inc., and receipt or possession does not convey any rights
# to divulge, reproduce,... | [
"sebastien.pouplin@tatacommunications.com"
] | sebastien.pouplin@tatacommunications.com |
f8e0b084d4c69b8d8c7bd6530b3429b49114ddd8 | ddabf67eb3b1fc996e98b41fcebfbc605f204a60 | /stepwise_mol_bio/reverse_transcribe.py | b139f8e49e8c83fceab3e2cefabe24a612e99e12 | [
"MIT"
] | permissive | kalekundert/stepwise_mol_bio | 0f9f7154eb81cf8696ac3abf43efc82a0a25962b | 6d699933405e266edf0f8fd05b64f7dfd16c9b2c | refs/heads/master | 2022-12-21T12:55:45.984257 | 2022-12-20T17:08:36 | 2022-12-20T17:08:36 | 247,542,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,615 | py | #!/usr/bin/env python3
import stepwise
import byoc
import autoprop
from stepwise import (
StepwiseConfig, PresetConfig, Reaction, Reactions,
iter_all_mixes, format_reaction, pl, ul, before,
)
from stepwise_mol_bio import (
App, Bindable, UsageError,
bind, group_samples,
)
from stepwise... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
d4d98087653712e9fcd891ab6bb3bbb1c2f31baa | c46515f86db0e36f8eb7276d3aa8c5b9ced6f0a1 | /disintegrating_plug/alternative_approach.py | abc7f6c41a45f9306a3a9afa51c48dc2e048abb6 | [
"MIT"
] | permissive | bolverk/disintegrating_bullet | 63e9e7b78576868840bbb75a4631d103581f295f | 676bd2f575a70497ee0bebee801405f59df7bc9a | refs/heads/master | 2022-01-24T06:36:05.231779 | 2022-01-23T17:11:32 | 2022-01-23T17:11:32 | 109,408,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,615 | py | from box import Box
import sympy
from probe import show
from rhd import (psi, p, eta, c, t, r, nu)
from riemann_invariant import (
calc_planar_riemann_invariant,
calc_spherical_riemann_invariant
)
from my_logging import logger
from caching import memory
from equation_of_motion import alpha
def acceleration... | [
"almog.yalin@gmail.com"
] | almog.yalin@gmail.com |
5b6c04aa591db9d8cb2167890a99aa0967e2659b | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/counting_20200622230814.py | 361e416c5aa16e50da9614bce0b62e3f72c61ca1 | [] | 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 | 878 | py | def counting(str):
str = str.split('-')
hour1 = int(convertTo24(str[0]).split(':')[0])
print('hour1',hour1)
hour2 = int(convertTo24(str[1]).split(':')[0])
print('hour2',hour2)
minutes1 = int(convertTo24(str[0]).split(':')[1])
print('min1',minutes1)
minutes2 = int(convertTo24(str[1]).sp... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2f860618c91ddd2790cbf9ab5a23363af82c9ded | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/matplotlib/backends/backend_wxagg.py | 106578e7e14b4f64bcb6da6b5c7266b950eda808 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 2,916 | py | import wx
from .backend_agg import FigureCanvasAgg
from .backend_wx import (
_BackendWx, _FigureCanvasWxBase, FigureFrameWx,
NavigationToolbar2Wx as NavigationToolbar2WxAgg)
class FigureFrameWxAgg(FigureFrameWx):
def get_canvas(self, fig):
return FigureCanvasWxAgg(self, -1, fig)
class FigureCan... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
de73adfef01a5eb652a4762d51d7cfb9bf96153f | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/marvel.py | 41030e82a8664c8f7f95379d78cc3def72f97fea | [] | 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 | 1,746 | py | ii = [('BentJDO2.py', 1), ('LyelCPG2.py', 1), ('RogePAV2.py', 5), ('CoolWHM2.py', 2), ('KembFFF.py', 4), ('RogePAV.py', 3), ('SadlMLP.py', 2), ('FerrSDO3.py', 1), ('WilbRLW.py', 1), ('WilbRLW4.py', 3), ('RennJIT.py', 7), ('CookGHP.py', 25), ('MartHSI2.py', 1), ('LeakWTI2.py', 1), ('KembFJ1.py', 5), ('WilbRLW5.py', 1), ... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
3425b8c8ddf35688b63bf676318fca670772fb43 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/intentions/PyInvertIfConditionIntentionTest/generalElse_after.py | bacc624e28d8fa6434622dc25954bb227f670b97 | [
"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 | 119 | py | def func():
value = "not-none"
if value is not None:
print("Not none")
else:
print("None") | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
6eb5d6f21a0f8cb5ea2bf73c210ca1f46ca447bf | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /large_case.py | 277a782fa6b80b12aba0b6d2cd3f37a72636cccd | [] | 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 | 232 | py |
#! /usr/bin/env python
def problem_or_right_thing(str_arg):
world(str_arg)
print('number')
def world(str_arg):
print(str_arg)
if __name__ == '__main__':
problem_or_right_thing('see_same_problem_from_government')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
50f67d2b8da211228e3524f48d533e48fb1471d2 | bbec348efb79c6588a4cb6bb565c813fe3fe86ad | /pyVpx/tests/hbrServer.py | 9c521e7a53bb553cdf059ed14d5ffd65b7efd55d | [] | no_license | free-Zen/pvc | 2be60fdc0fd0345039219c802223f987fce3b113 | 8428a84481be319ae739dfbb87715f31810138d9 | refs/heads/master | 2022-02-24T12:13:31.599398 | 2019-10-14T07:49:13 | 2019-10-14T07:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,195 | py | #!/usr/bin/python
#
# hbrServer.py
#
# Simple regression tests for the HBR server
#
# XXX Rename hbrsrvTestAlone.py? XXX something better than that?
#
#
# To Use this script:
#
# (1) You must build the "vmodl-hbr-py-build" target.
# (2) Use the vim/py/py.sh wrapper script to run this:
# bora/vim/py/py.sh bora/vim... | [
"liuzhen@vmware.com"
] | liuzhen@vmware.com |
f9899a02fbb389cfb24430cb2d5568571f7d1eee | 53c91272444bfab92e7e89e0358047b27eab1125 | /03.代码/豆瓣评论/scrapydouban/scrapydouban/main.py | 14e98c156d8afabc0ee0c2f3618ec95177b648b0 | [] | no_license | MrFiona/python_module_summary | 2bbf9f30e0fbfe302e7e6c429754fa7bf4bfc411 | 4e36f6f5f6abed10fc06b16b0ed7c12cde7746d0 | refs/heads/master | 2021-01-20T03:54:38.105298 | 2019-01-07T07:28:36 | 2019-01-07T07:28:36 | 101,373,212 | 2 | 0 | null | 2018-04-15T05:56:45 | 2017-08-25T06:28:52 | Jupyter Notebook | UTF-8 | Python | false | false | 231 | py | #!/user/bin/python
#-*- coding:utf-8 -*-
'''
@author: 创客▪榕
@contact: chentianhao0510@126.com
@file: main.py
@time: 2017/5/15 15:01
'''
from scrapy import cmdline
cmdline.execute('scrapy crawl DoubanBooksDetail'.split())
| [
"1160177283@qq.com"
] | 1160177283@qq.com |
95a6fd239a4a0467a1839ba2bd9e0c8e5ff51381 | d31991e464835225abd17340b41b409d180ff639 | /noetikon/files/managers.py | e2cf975193736189a24c10c04ed0e067db568a8b | [
"MIT"
] | permissive | webkom/noetikon | c6de7dd2c4cffc84ae4746561ac1da8019eda1f5 | 0fcede2d63a79b51bc29ea4b62d9cbc4ba993180 | refs/heads/master | 2021-01-16T23:57:31.425562 | 2016-09-12T18:20:37 | 2016-09-12T18:20:37 | 29,366,121 | 4 | 0 | null | 2017-03-01T14:51:59 | 2015-01-16T20:17:19 | Python | UTF-8 | Python | false | false | 782 | py | from basis.managers import PersistentModelManager
from django.db.models import Q
class DirectoryManager(PersistentModelManager):
def permitted(self, user):
if user.is_superuser:
return self
query = Q(id=-1)
query |= Q(users_with_access=user)
for group in user.groups.al... | [
"me@rolflekang.com"
] | me@rolflekang.com |
d2c049e4b584b0d9ea9fe5ab855eaf54a61e1407 | 6de622e922361beac91e3cfc4cd67829451bc095 | /wyzepal/integrations/irc/irc-mirror.py | 3201a3ce7e0af7f254b1668150be83d0bdc59548 | [] | no_license | WyzePal/api | fd1f1771aa9e1bfeb5d5de102b3f525d905fae29 | 8646c90148885b1c4286557bd62cfcf844b9d107 | refs/heads/master | 2020-03-23T15:25:53.559240 | 2019-03-08T23:54:00 | 2019-03-08T23:54:00 | 141,747,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | #!/usr/bin/env python
#
# EXPERIMENTAL
# IRC <=> WyzePal mirroring bot
#
# Setup: First, you need to install python-irc version 8.5.3
# (https://github.com/jaraco/irc)
from __future__ import print_function
import argparse
import wyzepal
import sys
import traceback
if False:
from typing import Any, Dict
usage = "... | [
"dannym@wyzepal.com"
] | dannym@wyzepal.com |
815b2adb791ec629b2fa794c0b5dd51d44c86c89 | c5420cee98aae008cb404ace7b8d21dcdf205a69 | /backend/app/constants/bank_config_list.py | 823cef03626c97aace26977fb26471be31ba3636 | [] | no_license | LyanJin/check-pay | 2aeb81f430a26410964e979b63d20c9d5aa7d46e | ff36deb73e667de16a73b1666bbeaf28f993f944 | refs/heads/master | 2023-01-14T03:38:00.907488 | 2019-11-04T09:29:27 | 2019-11-04T09:29:27 | 219,446,460 | 0 | 0 | null | 2023-01-04T16:14:10 | 2019-11-04T07:55:33 | Python | UTF-8 | Python | false | false | 59,843 | py | BANK_CONFIG_LIST = [
{
"bankName": "中国邮政储蓄银行",
"bankCode": "PSBC",
"patterns": [
{
"reg": r"/^(621096|621098|622150|622151|622181|622188|622199|955100|621095|620062|621285|621798|621799|621797|620529|621622|621599|621674|623218|623219)\d{13}$/g",
"... | [
"aken.jin.33@gmail.com"
] | aken.jin.33@gmail.com |
d3a121fca276e1c24ca96cb517a01a0a8faf1b75 | 633b695a03e789f6aa644c7bec7280367a9252a8 | /samplepy/6-03_student_card.py | 123c709227e82e443dfc704cb4af4d119033367a | [] | no_license | tnakaicode/PlotGallery | 3d831d3245a4a51e87f48bd2053b5ef82cf66b87 | 5c01e5d6e2425dbd17593cb5ecc973982f491732 | refs/heads/master | 2023-08-16T22:54:38.416509 | 2023-08-03T04:23:21 | 2023-08-03T04:23:21 | 238,610,688 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | class StudentCard:
def __init__(self):
print('初期化メソッド内の処理です')
self.id = 0
self.name = '未定'
a = StudentCard()
b = StudentCard()
print(f'a.id:{a.id}, a.name:{a.name}')
print(f'b.id:{b.id}, b.name:{b.name}') | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
c82d7fe7d81d9549ba5139768d173c9cd11899a2 | a99e86146150aae97cd36311c3a90d95c272125a | /config.py | d36f3783d1440ab2f467cb67b9645c96fa0176eb | [] | no_license | mutaihillary/userapp | 017ac68124e72b559ddb5a1e81f60fd0006ffb30 | 0da93766967c37e7c203e995765321eecdd3ac7e | refs/heads/master | 2021-01-19T01:05:43.369086 | 2016-08-19T05:45:40 | 2016-08-19T05:45:40 | 65,550,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from flask_sqlalchemy import SQLAlchemy
from flask import Flask
import os
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] ='sqlite:///' + os.path.join(basedir, 'userapp.db')
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
app.config['SQLALCHEMY_COMMI... | [
"mutaihillary@yahoo.com"
] | mutaihillary@yahoo.com |
161381b413380795aca8c929268f18b4c212f395 | b5d87f3fbe5ae84522c9391040a51145966ed226 | /yelp/basic_python/client.py | a407ecbde4dc0b02fc7be7b2e20205d64bfbbe52 | [] | no_license | oliverhuangchao/algorithm | f8b17743436c7d2e92b0761deafbf6af93ef922f | 858885bc2b6b7070b5536695214c915106d56f8c | refs/heads/master | 2021-01-10T05:54:41.181112 | 2015-07-09T19:55:04 | 2015-07-09T19:55:04 | 36,044,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import socket
s = socket.socket()
host = socket.gethostname()
port = 12345
s.connect((host,port))
print s.recv(1024)
s.close()
| [
"chaoh@g.clemson.edu"
] | chaoh@g.clemson.edu |
64d29f78ae1643a4169e7455dbbc3beeb67c6dbd | 676f6f2d02db6aeeaa1bb0b28ab49e8c73923d0e | /venv/Lib/site-packages/neuralcoref/utils.py | 333ad28bbab947b38a586275274aca661ffe68f6 | [
"Apache-2.0"
] | permissive | vrian/orsen | ce34f74ea3a14c95d37ffa5c694b7c66725925df | 9c10148aba62868fad4b679a4b9b717829586e96 | refs/heads/master | 2023-01-21T21:47:06.210918 | 2018-06-23T04:46:26 | 2018-06-23T04:46:26 | 120,284,869 | 1 | 0 | Apache-2.0 | 2023-01-09T09:39:16 | 2018-02-05T09:44:03 | Python | UTF-8 | Python | false | false | 2,946 | py | # coding: utf8
"""Utils"""
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import print_function
from concurrent.futures import ThreadPoolExecutor, as_completed
import numpy as np
from tqdm import tqdm
DISTANCE_BINS = list(range(5)) + [5]*3 + [6]*8 + [7]*16 +[8]*32
de... | [
"jbryanalburo@gmail.com"
] | jbryanalburo@gmail.com |
3b383bca73c7c19fda1fe4eea52bb0918a5d55c5 | 16cb8cc18d92d4018f9ee3044565cf22d4daef70 | /Lab0/Python/7_Loops.py | 0e44f466e1bfeb11cff40ae4017307015a92b838 | [] | no_license | zx-joe/Computational-Motor-Control-for-Salamandar-Robot | c13ac105d73b283ac86c00a00a7b25b28e3713af | c66d23fb8365e4b12263bb4115a30d708d42dbb2 | refs/heads/master | 2022-12-12T12:23:57.573980 | 2020-09-08T09:05:28 | 2020-09-08T09:05:28 | 256,481,679 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | #!/usr/bin/env python3
"""This script introduces you to the usage of Loops in Python.
Loops are useful to repeatedly to do a task over and over again.
Here we look at for and while loops in particular"""
import farms_pylog as pylog # import farms_pylog for log messages
### FOR LOOPS AND WHILE LOOPS ###
pylog.info... | [
"xiao.zhou@epfl.ch"
] | xiao.zhou@epfl.ch |
c5b9bd010de9df17ce44d3ced4ccf69cf11a0deb | 2071325c958baeccf009fd63803d459b809ec435 | /tadh/index.py | d59a7b735c6e3205ca9be63cac5931a1f68b0441 | [] | no_license | timtadh/codegolf | fd18eccaadf1a9d6c5c93026d28bee6914993268 | 434bc3fdc3881a993184ce54042b074b134ce440 | refs/heads/master | 2021-01-18T10:53:51.397524 | 2012-04-24T06:16:34 | 2012-04-24T06:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | import collections, os, re, sys, json, timeit, time
from tst.suffix import SuffixTree
from tst import TST
stop = {'a', 'an', 'the', 'their', 'my', 'me', 'mine', 'my', 'i', 'am', 'but',
'is', "isn't", 'was', "wasn't"}
index = SuffixTree()
reviews = dict()
results = dict()
def clean(text):
return (
text... | [
"tim.tadh@gmail.com"
] | tim.tadh@gmail.com |
42836521a575f8c077b4bfebb8d8e2419be572af | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4051/527004051.py | 8c9efc8520e73dc4035dfeae8878f979b3e8fff1 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,610 | py | from bots.botsconfig import *
from records004051 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MD',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BR', MIN: 1, MAX: 1},
{ID: 'G62', MIN: 0, MAX: 5},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
a12e797795097cab3d075cf3d0e2a595af7d24c8 | 4fc9cb4cf01e41c4ed3de89f13d213e95c87dd33 | /angr/procedures/definitions/win32_tokenbinding.py | c8f0611d8f6b05290788ee3f32ec70edc73bc914 | [
"BSD-2-Clause"
] | permissive | mborgerson/angr | ea5daf28576c3d31b542a0e229139ab2494326e9 | 8296578e92a15584205bfb2f7add13dd0fb36d56 | refs/heads/master | 2023-07-24T22:41:25.607215 | 2022-10-19T19:46:12 | 2022-10-20T18:13:31 | 227,243,942 | 1 | 2 | BSD-2-Clause | 2021-04-07T22:09:51 | 2019-12-11T00:47:55 | Python | UTF-8 | Python | false | false | 7,224 | py | # pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | [
"noreply@github.com"
] | mborgerson.noreply@github.com |
5eda38602c9897aa34ee18f8b6a594549d4df83c | 4719f3ef5a0d40c4426a4ac8c9307fc4631b8eea | /tests/test_borda.py | 36de3d7b168b9e3a7a42fd7fafbb598650240d4c | [
"MIT"
] | permissive | ozcan-durak/elsim | 08104b9c8820e412d93e9cc91b5e0179151cbec5 | 3e0e53adc1579ba1ab9c429d05d772dad2c6eb5b | refs/heads/master | 2022-12-05T13:23:23.200159 | 2020-08-18T01:09:52 | 2020-08-18T04:25:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,681 | py | import random
import numpy as np
import pytest
from hypothesis import given
from hypothesis.strategies import integers, lists, permutations
from elsim.methods import borda
def collect_random_results(method, election):
"""
Run multiple elections with tiebreaker='random' and collect the set of all
winners.
... | [
"endolith@gmail.com"
] | endolith@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.