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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71962d7e86cb76c775309a6190d8d73cdbbb4cf6 | 184bcb482ea5f0f13aa35275847b0e7dd56d8219 | /tests/test_cli.py | 75f2834a1bf6022a049f31136d917db671e85112 | [
"LPPL-1.3c",
"MIT"
] | permissive | svenkreiss/unicodeit | 643a3ead7fc69160eff82099b33c25ba5d01de28 | d7f3f0cb9b7f8c3abf8e47ea6158b2ee1f6cbf05 | refs/heads/main | 2023-08-23T07:44:45.029170 | 2023-03-12T09:21:04 | 2023-03-12T09:21:04 | 10,319,674 | 234 | 34 | NOASSERTION | 2023-07-18T22:48:57 | 2013-05-27T17:52:57 | Python | UTF-8 | Python | false | false | 1,743 | py | import subprocess
import sys
import pytest
PYTHON = 'python3' if sys.platform != 'win32' else 'python'
def test_cli_symbols1():
r = subprocess.check_output([
PYTHON, '-m', 'unicodeit.cli',
'\\Sigma'
])
print(r.decode())
assert r.decode().strip() == 'Σ'
def test_cli_symbols2():
... | [
"me@svenkreiss.com"
] | me@svenkreiss.com |
d368f4a86a6510a5b4544a08552856d776373977 | 202bf6cd78eb19025aa63dea609b40903ce1a735 | /code/library_clusters.py | b159f8a7f9ca23ec704b02c9382692e2679fb567 | [
"MIT"
] | permissive | jbkinney/17_inducibility | 1e4a5943bd680252f19008fb77a0b9bb8cfbdaf6 | cb2ddf984608fba6f85c98711bce0d7e450fba0e | refs/heads/master | 2020-04-06T07:28:02.386966 | 2018-12-05T16:25:35 | 2018-12-05T16:25:35 | 157,273,701 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,247 | py | spacing_constructs={
'51.5':{'ind':'b17B7', 'null':''},
'52.5':{'ind':'b17B9', 'null':''},
'53.5':{'ind':'b17C2', 'null':''},
'54.5':{'ind':'b17C4', 'null':''},
'55.5':{'ind':'b17C6', 'null':''},
'56.5':{'ind':'b17C8', 'null':''},
'57.5':{'ind':'b17D1', 'null':''},
'58.5':{'ind':'b17D3', 'null':''},
'59.5':{'i... | [
"jkinney@cshl.edu"
] | jkinney@cshl.edu |
192e0a22a39afd8de4675f9032f1eaadfbe026fb | 0cb064f4e2f5b27a189b3e7631bb19f7842e150b | /zvt/recorders/eastmoney/dividend_financing/spo_detail_recorder.py | 5afee75a91dc41f48230b292ccc4813ddf9fab99 | [
"MIT"
] | permissive | stellar2016/zvt | 35e514927302cffb3577f3535344e2ca55ec9abd | f6c2c05c136b14c0c0f239960f08f85bcdee7c28 | refs/heads/master | 2021-04-19T13:18:01.020365 | 2020-03-22T14:44:26 | 2020-03-22T14:44:26 | 249,607,341 | 0 | 0 | MIT | 2020-03-24T03:51:06 | 2020-03-24T03:51:05 | null | UTF-8 | Python | false | false | 2,077 | py | # -*- coding: utf-8 -*-
from zvdata.utils.pd_utils import pd_is_not_null
from zvdata.utils.time_utils import now_pd_timestamp
from zvdata.utils.utils import to_float
from zvt.api.api import get_dividend_financing, get_spo_detail
from zvt.domain import SpoDetail, DividendFinancing
from zvt.recorders.eastmoney.common imp... | [
"5533061@qq.com"
] | 5533061@qq.com |
3ed2beb303c28748c85454eea580163c3338d096 | 3ccd3465c241071827ad98bac61f85d8405bffc9 | /test/talkytest/clients/voice/tts/test_osxsay.py | eb28c42d580273e2a2717801aba2380cd9cfccaf | [
"MIT"
] | permissive | keiffster/talk-y | a12e2590f3170af1debb4add9c27fd12adb279fa | dd2bb2a816c868770d9bec8f02ee9f2bbfcbae2a | refs/heads/master | 2021-06-25T08:32:39.020921 | 2020-02-16T17:18:45 | 2020-02-16T17:18:45 | 102,565,196 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import unittest
from talky.clients.voice.tts.osxsay import OSXSayTextToSpeach
from talky.config.sections.client.voice.voice import VoiceConfiguration
class OSXSayTextToSpeachTests(unittest.TestCase):
def test_init(self):
config = VoiceConfiguration()
tts = OSXSayTextToSpeach(config)
self... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
af133b71314acc64bdbd6be37d282d55ba8fde6d | 5b3caf64b77161748d0929d244798a8fb914d9c5 | /Python Excel Examples/WorksheetsApiDemo/background/deleteBackground.py | e5297d90f3031e8342735c46a68eb63f86226e60 | [] | no_license | EiceblueCloud/Spire.Cloud.Excel | 0d56864991eaf8d44c38f21af70db614b1d804b7 | d9845d5cefd15a3ab408b2c9f80828a4767e2b82 | refs/heads/master | 2021-07-20T23:44:39.068568 | 2021-07-15T03:04:49 | 2021-07-15T03:04:49 | 230,225,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import spirecloudexcel
from spirecloudexcel.configuration import Configuration as ExcelConfiguration
appId = "your id"
appKey = "your key"
baseUrl="https://api.e-iceblue.cn"
configuration = ExcelConfiguration(appId, appKey,baseUrl)
api = spirecloudexcel.api.worksheets_api.WorksheetsApi(configuration)
name = ... | [
"noreply@github.com"
] | EiceblueCloud.noreply@github.com |
bfa4bc2ce6ce4fc12f63223c6419c52e683ba101 | 5682e1b9ff4d7387e69c8fcb75fda7c641e68e50 | /LeeJehwan/scraper/1.THEORY/1.6.returns.py | d080dc94f96697dc93d383af081feaeba169bac3 | [] | no_license | daehyun1023/Python | 18b68cd626f8e0f15102eec7280decd773fb84c5 | 99d3c1badd31c3aef2bc9f4fe52296768c5c117e | refs/heads/main | 2023-02-28T08:12:33.314536 | 2021-02-07T23:54:31 | 2021-02-07T23:54:31 | 332,975,801 | 1 | 0 | null | 2021-01-26T04:54:13 | 2021-01-26T04:54:13 | null | UTF-8 | Python | false | false | 69 | py | def plus(a, b):
return a + b
result = plus(2, 4)
print(result)
| [
"wpghks7@naver.com"
] | wpghks7@naver.com |
a8510ed4c832d93162788220a8e618a6ac40439c | 4a09376ef4ddd8cd5752e79bb0f3c18de6906455 | /iHubCrowdSourcing/tmpScripts/GetUniques.py | 9d7f8666fb8302f725b05fcd7aee852179ddeb03 | [] | no_license | GBelzoni/iHub | 33f36500f090fbfd962977ae266117be499b7cb5 | e816954bfca2127fdaaf750aef8b0442b287003c | refs/heads/master | 2021-01-18T14:45:09.589406 | 2013-09-06T22:52:15 | 2013-09-06T22:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | fin =open('modeltree.txt')
lines = fin.readlines()
fin.close()
fout =open('unique.txt','w')
lines2 = [ line.lower() for line in lines]
uniques = set(lines2)
print uniques
fout.writelines(uniques) | [
"patrickhcostello@gmail.com"
] | patrickhcostello@gmail.com |
2a99c1e567547ad471064a62fa5571a65b29f715 | 71324aca11e16d6da17b0440e72d0107f5af6e04 | /todo_vue_restful/todo_with_vue_and_restful/todo/migrations/0001_initial.py | 18a12c83dc377d8c7d800fdd1d51722e1aa0f4de | [
"MIT"
] | permissive | n3k0fi5t/Django_Tutorial | 6bad82a919d1de0162b34f4c7f753cd126b05cc3 | e3953335ca88fe22c68268fd76afb7c4f9bbb55f | refs/heads/master | 2023-02-16T07:56:56.416031 | 2021-01-11T23:17:33 | 2021-01-11T23:17:33 | 291,436,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | # Generated by Django 3.1 on 2020-12-14 00:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"r05922078@ntu.edu.tw"
] | r05922078@ntu.edu.tw |
55011e7d72f18177422f55514b292382081f4dcd | 2caf6885511af24443e22aaa43cd679d694f6f80 | /note/my_note/first_month/day06/demo01.py | 18fab09a906c452f8cebed4af58ddeba84253c43 | [] | no_license | nandadao/Python_note | 7f9ba54a73af05c935b4f7e24cacb728859a6c69 | abddfc2e9a1704c88867cff1898c9251f59d4fb5 | refs/heads/master | 2020-11-25T18:29:50.607670 | 2019-12-19T01:28:02 | 2019-12-19T01:28:02 | 228,793,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | """
猜拳
石头 剪刀
剪刀 布
布 石头
随机产生
"""
# import random
# win = ("石头剪刀", "剪刀布", "布石头")
# same = ("石头石头", "剪刀剪刀", "布布")
# choice = ("石头", "剪刀", "布")
# pc1 = choice[random.randint(0, 2)]
# # pc2 = choice[random.randint(0, 2)]
# pc2 = input("请出拳:")
# print(str(pc1)+str(pc2))
# # if str(pc1)+... | [
"1361335953@qq.com"
] | 1361335953@qq.com |
fb873db4bf3aa718c82d101dda25aca24cd84ce9 | 4edadc6b0c733b208df760e8491b1f1808ed4395 | /image process/plot_loss.py | 9bdbe07e304b8e5f2c385c95b6d5b208c45e8f10 | [] | no_license | RichardcLee/Expression_Transformation | d3f8a1bd0b11071f3f085efe821fabc716e617e6 | ae849789a6c77e4cec0909c0c490305ad13ba06d | refs/heads/master | 2021-04-11T04:51:02.496921 | 2020-09-16T08:21:41 | 2020-09-16T08:21:41 | 248,993,500 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | from matplotlib import pyplot as plt
import re
plt.rcParams['font.sans-serif']=['SimHei'] # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus']=False # 用来正常显示负号
lines = []
with open(r"C:\Users\81955\Desktop\ckpts\face\ganimation\200513_232207\logs.txt", "r+") as f:
lines = f.readlines()
# dis_fake WGAN-GP对抗损失第二项,值... | [
"0yunhow@gmail.com"
] | 0yunhow@gmail.com |
ff2d90b1f5ac7311985425547060f8d42ed0a4e2 | 86100df5db058ea25b1859b6d2d4eafef720bede | /dirWatch.py | f7e991a8815c3efb30907af01c6dd56ae91c92e1 | [] | no_license | SniPE7/MonitorPy | 1afb156d1d8185158012e54bb3c387cfde29c7cd | e3f7aa672a2909abfa080bf3db9b4ff56bd6b97e | refs/heads/master | 2020-12-24T16:42:52.899784 | 2014-12-15T11:32:58 | 2014-12-15T11:32:58 | 28,030,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python
import time
from time import gmtime, strftime
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class Handler(FileSystemEventHandler):
def on_created(self, event):
print strftime("%Y-%m-%d %H:%M:%S", gmtime()), event
def o... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5b0c427c59c3f900fc2f681738a7253d68c9bc70 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Mastering Concurrency in Python/Chapter03/example2.py | 86fd9c8132767986c2d2392ff9d84973ea193f0b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 642 | py | # # ch3/example2.py
#
# ______ _th.. __ thread
# ____ ma__ ______ sqrt
#
# ___ is_prime x
# __ ? < 2
# print('@ is not a prime number.' ?
#
# ____ ? __ 2
# print('@ is a prime number.' ?
#
# ____ ? % 2 __ 0
# print('@ is not a prime number.' ?
#
# ____
# limit _ __. sq ? ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
395326db8f49bcc62b832e19268b8b29aecfb822 | 1b8ae90527e93aab7f80ac7b908a5eefe1b1384e | /Data_Structures/queue_with_max.py | 5423249c1576b9d2c695a000e3a2f44bc7861135 | [] | no_license | Frikster/CodingNotebook | 4cbdff626e2b86fde45223775d27078291d41621 | c371cd43bcbac02cb915a9620b291d013d8fb485 | refs/heads/master | 2020-04-14T22:53:58.725429 | 2019-05-11T21:44:54 | 2019-05-11T21:44:54 | 164,182,563 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | # Implement a queue with #enqueue and #dequeue, as well as a #max API,
# a method which returns the maximum element still in the queue. This
# is trivial to do by spending O(n) time upon dequeuing.
# Can you do it in O(1) amortized? Maybe use an auxiliary storage structure?
import pdb
import unittest
from Data_Structu... | [
"dirk.haupt@gmail.com"
] | dirk.haupt@gmail.com |
91a0fd3c2c049c06e58486ec8a171240d7f057f8 | e748e6d96aace1c9149327f384e0de07d743715a | /challange/largestPlateau.py | 14569e16c073b32674b62202fc1a064fd2c5fbe3 | [] | no_license | jorzel/codefights | cdfc4cb32261b064ffc605bfd927bf237885b5d2 | 28b62a2ae3809f0eb487198044c0fe74be09d4e8 | refs/heads/master | 2022-04-28T06:54:26.170503 | 2022-03-23T22:22:20 | 2022-03-23T22:22:20 | 110,818,719 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | """
Your terraforming crew is busy at work on a mountaintop, but it's time to break for lunch. In order to allow everyone to have lunch together, we'd like to find a plateau on the mountain where everyone can sit.
Given a topographic map in the form of a matrix of integers map, find the area of the largest plateau.
E... | [
"jaroslaw.orzel@emplocity.pl"
] | jaroslaw.orzel@emplocity.pl |
ee60cd02829d54fe8b02d44339527c5b45fa47b4 | 2e47f91e6401eb7f36746e3078b0baac7fd4b9d1 | /silot/sspair_model.py | 3fb03a074b22eeed01b72335f81bba9b4b96c79b | [
"MIT"
] | permissive | lqiang2003cn/silot | fdf7fb9e6ed0d814fb6a9f0630cd7913478a870a | d49a41dde74db62d62bdd9ba5d35ff54c07fd9bc | refs/heads/master | 2023-01-15T19:37:37.276344 | 2020-06-18T15:28:19 | 2020-06-18T15:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,805 | py | import numpy as np
import tensorflow as tf
from collections import defaultdict
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.colors import to_rgb
from dps import cfg
from dps.utils import Param
from dps.utils.tf import RenderHook, tf_mean_sum, tf_shape
from auto_yolo.models.core... | [
"eric.crawford@mail.mcgill.ca"
] | eric.crawford@mail.mcgill.ca |
9d5940b50bb1c85781629bf130b65cdb741c45e3 | 6dc72f5c7a1f802a27cbefdd62f1ac05836c5219 | /PyDemo/DataAnalysisCode/matplotlibTest.py | 8e4a9d085e51d88380970dabe8927a0aa02479f9 | [] | no_license | RockJohnson503/MyDemo | 9e4e5c7b02ee76d5437fd54c36050655fca145fb | dc1062df01cc53eb9a2a1849709d2f88e8b4488c | refs/heads/master | 2022-05-13T22:45:27.051170 | 2020-04-24T07:32:13 | 2020-04-24T07:32:13 | 123,227,439 | 5 | 1 | null | 2022-04-22T21:10:48 | 2018-02-28T04:07:08 | Jupyter Notebook | UTF-8 | Python | false | false | 2,958 | py | # encoding: utf-8
"""
File: matplotlibTest.py
Author: Rock Johnson
"""
import numpy as np
import matplotlib.pyplot as plt
def main():
# Line
"""
x = np.linspace(-np.pi, np.pi, 256, endpoint=True) # 用numpy生成x轴的线
c, s = np.cos(x), np.sin(x) # 用numpy定义正弦和余弦
plt.figure(1) # 绘制第一个图
plt.plot(x, c... | [
"836867547@qq.com"
] | 836867547@qq.com |
014a8aab3305226f095b71f76e73bfc13dc1caa5 | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/19-07-21_20210905224104.py | 016085b1d34f5ea2a80953238ca45e9068b0410c | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | class MENU ():
def __init__(self,titulo,opciones=[]):
self.titulo = titulo
self.opciones = opciones
def menu(self):
print(self.titulo)
for opcion in self.opciones:
print(opcion)
opc=input("Elije opcion [1 ..... {}]:".formato(len(self.opciones)))
ret... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
0b701c732d9ec6fcdb9862d7c4c3919ff3e5e7c8 | 761e3ede4c8eb6ecb08f635cb56303e26a6681c7 | /resnet.py | 2da7db8dc57d107601adcf3c9f3073187691738a | [
"MIT"
] | permissive | zhaobinNF/PSPNet | 09be6a329ffad6f352f486c2a7f5d337d7a78e46 | 8e37762679a9e19fa9ac7adab4b8f5e3bcf1d09d | refs/heads/master | 2022-12-06T20:44:51.154156 | 2020-09-01T11:28:10 | 2020-09-01T11:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,715 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import os
import urllib.request as urllib
from tqdm import tqdm
model_urls = {
'resnet50': {'url': "https://download.pytorch.org/models/resnet50-19c8e357.pth", 'id': 'resnet50-19c8e357.pth'},
'resnet101': {'url': "https://download.pytorch.org... | [
"leaderj1001@gmail.com"
] | leaderj1001@gmail.com |
e2c46e9c3c12ed70166afee419a09e346f651ad9 | 09df89395816834ddf77de620f959c22e74d8c00 | /Bit Manipulation/Single Number.py | 382f244e2e89ffbe38dd4070043ad097ea451177 | [] | no_license | gdh756462786/Leetcode_by_python | c853c4e3de255a8b4016c59944a0d40213a539a7 | 6387543a2a23c30aef1d5d37db54ca72cfb19270 | refs/heads/master | 2020-06-22T11:53:24.758506 | 2018-12-28T03:03:31 | 2018-12-28T03:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # coding: utf-8
'''
Given an array of integers, every element appears twice except for one.
Find that single one.
Note:
Your algorithm should have a linear runtime complexity.
Could you implement it without using extra memory?
'''
class Solution(object):
'''
对数组元素执行异或运算,最终结果即为所求。
由于异或运算的性质,两个相同数字的异或等于0,而任意... | [
"pengshuang92@163.com"
] | pengshuang92@163.com |
eecca24a0adcd29352d7af9f0f13143148db787d | bcc2eadf72d0c2a38e595f973ad4840ac038bd53 | /Valid Palindrome.py | f674e38ffc21634991493803e1287fdb53981cfe | [] | no_license | jke-zq/myleetcode.py | 5841cec144884bcef9f0adadbb10dbe4ed34963f | e0f032f34f7fa8fa4f6e5af65c60b3fe581fdc23 | refs/heads/master | 2020-04-03T23:24:39.657299 | 2016-09-18T14:35:25 | 2016-09-18T14:35:25 | 49,498,500 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | class Solution(object):
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
left, right = 0, len(s) - 1
while left < right:
while left < right and not s[left].isalnum():
left += 1
while left < right and not s[right].isa... | [
"jke0zq@gmail.com"
] | jke0zq@gmail.com |
b777223f076ace65e55bd0c622a6919bce5bd167 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /m9bcZKy4niMmsg3JX_24.py | 53034914b39b9e5514126b1c339d6d3218688fbc | [] | 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 | 637 | py | """
A group of friends have decided to start a secret society. The name will be
the first letter of each of their names, sorted in alphabetical order.
Create a function that takes in a list of names and returns the name of the
secret society.
### Examples
society_name(["Adam", "Sarah", "Malcolm"]) ➞ "AMS"
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3d3d447d47cf4de951fd26d005eab160fee57292 | 2baad3d7ac8df92ac7669bc5226b295f6e572109 | /openstack/horizon-mitaka/openstack_dashboard/dashboards/admin/networks/subnets/tests.py | 7fc01c9ac5f3a691c3aa99508ff482236d4349f6 | [
"Apache-2.0"
] | permissive | naanal/reference | 649d61110c0200718de186012466183c35071399 | e5401ab6d185f9879da4b7fd20dead4823d662cc | refs/heads/master | 2020-04-12T07:33:59.989760 | 2016-12-21T12:26:30 | 2016-12-21T12:26:30 | 57,004,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,953 | py | # Copyright 2012 NEC Corporation
# Copyright 2015 Cisco Systems, Inc.
#
# 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
#
# Un... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
930bdd6c664af3339a2e4cd163054d717ef73e87 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /hr_timesheet_invoice/report/account_analytic_profit.py | 600535ee02795acbe0674bc506d0626bbe7cc93d | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,780 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
c682dbe0c08b2b8188a1f15f8be584ff2944f575 | 0810b308b09e6680b5df2b5f412494d07d02f181 | /1905/month01/code/day11/demo01.py | 6df18b52956cef2cc3a75f7c6d67874f3607f4cf | [] | no_license | 952033053/python3 | d323ecff1bcd208fc81b74e2ab7e0eb9ce31d514 | 29c8fb7f3ca90e18cce1f9a62a27415aac946c46 | refs/heads/master | 2020-06-21T18:19:55.610435 | 2019-07-18T02:57:31 | 2019-07-18T02:57:31 | 197,524,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | class Wife:
def __init__(self, name, age, weight):
self.name = name
# 本质:障眼法(实际将变量名改为:_类名__age)
# self.__age = age
self.set_age(age)
# self.__weight = weight
self.set_weight(weight)
# 提供公开的读写方法
def get_age(self):
return self.__age
def set_age(sel... | [
"lvze@tedu.cn"
] | lvze@tedu.cn |
c5e0b845eec88fe50d7ed7cfda31c0af3417e7a8 | e645ebf3b5177eb0ebedb7f239bd6e1b40bf1b07 | /ups/minuit2.cfg | 53e4d870fb2d8ee6bb0e4e0ceb063982e4b81138 | [] | no_license | lsst-dm/bp | e095cdb7412124fef39bdd8428fce70bbf0f462a | 31c0b65866d06a09575a53d0dd558320e6994a06 | refs/heads/main | 2023-07-22T11:32:48.479329 | 2023-07-10T00:30:32 | 2023-07-10T00:30:32 | 37,212,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | cfg | # -*- python -*-
"""
Dependencies and configuration for minuit2
"""
import os.path
import eups
def _get_root():
"""Return the root directory of the package."""
return eups.productDir("minuit2")
dependencies = {
# Names of packages required to build against this package.
"required": [],
# Names of... | [
"jbosch@git.lsstcorp.org"
] | jbosch@git.lsstcorp.org |
34796e03ad42278148564162c60c8e9b9f5fc4b8 | 56c3cefe1da4731175ee73d90ca2629d79bfe696 | /egs/ptb_chime4test/local/run_trf_nce_cnn.py | 3e8eeb368c4f54c64b8acffe0aafefdd38e84a84 | [] | no_license | wbengine/TRF-NN-Tensorflow | 022a187c80c80293553958c17a267c7eaf81213f | e225829c36043293d092cf8ed620d6dce0abc8f0 | refs/heads/master | 2022-04-16T10:20:46.999159 | 2020-03-05T04:56:20 | 2020-03-05T04:56:20 | 114,067,559 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | import tensorflow as tf
import os
import sys
import time
import numpy as np
import task
from model import wblib as wb
from model import reader
from model import trfbase
from model import trfnce
from model import lstmlm
import run_lstmlm
# [data]
data = reader.Data().load_raw_data([task.train, task.va... | [
"wb.th08@gmail.com"
] | wb.th08@gmail.com |
cad49a464e253ae9342c164c950fd6c0ec78bdcf | d5a32e532fe231c16e52149604f0db34c5f4d2f9 | /binarysearch.io/sum_of_the_deepest_node.py | a7848ee9b46081b4f3607498a2a3079159af306e | [
"MIT"
] | permissive | mishrakeshav/Competitive-Programming | 93705f63337639e8464c1d50f3394434b7422f15 | 00c1bd272646754ca4c260d57989304c8e323838 | refs/heads/master | 2023-07-06T07:32:23.042324 | 2023-06-29T15:27:24 | 2023-06-29T15:27:24 | 216,195,590 | 3 | 3 | MIT | 2020-10-03T07:55:18 | 2019-10-19T11:27:53 | Python | UTF-8 | Python | false | false | 1,288 | py | # class Tree:
# def __init__(self, val, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def solve(self, root):
# Write your code here
nodeLevel = {}
def deepest(root,level=0):
if root is None:
... | [
"mishrakeshav@users.noreply.github.com"
] | mishrakeshav@users.noreply.github.com |
cefa36b71fd4da6c8b37f32c155e0eb34813882b | 0296bc69a0d9608ed826ad7a719395f019df098f | /Tools/semantic_check.py | 7bbe1e264b5436b25ade1ce79adfe0c38466b046 | [] | no_license | jcn16/Blender_HDRmap_render | c0486a77e04c5b41a6f75f123dbdb3d10c682367 | 50e6cdb79fef83081de9830e7105dd425a235a9e | refs/heads/main | 2023-07-19T22:22:53.622052 | 2021-08-20T06:29:10 | 2021-08-20T06:29:10 | 377,757,283 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import os
from tqdm import tqdm
'''
check if semantic_mask is complete
'''
root='/media/jcn/新加卷/JCN/JCN_test_datset/Train_512'
child_dirs=os.listdir(root)
child_dirs.sort()
pbar=tqdm(total=len(child_dirs))
for model in child_dirs:
pbar.update(1)
sub_dirs=os.listdir(os.path.join(root,model))
sub_dirs.remo... | [
"591599635@qq.com"
] | 591599635@qq.com |
5d2e5134e1095e1fd5b25e03a0582d9165899207 | f0e048b2398b42a3c3ec42925ab75f754cd8d214 | /configs/RAChallenge/s2anet_r101_fpn_1x_ms_ra.py | a06a8e7cd56271360518b99aafbdbfc70973c468 | [] | no_license | myknowntime/RIDet | c56535f52ccf76e41bd181faf2bceb2f0e8fbd57 | 96bee9a7089a267855d494fbf9d2f2f78064c54e | refs/heads/master | 2023-08-14T23:46:32.849835 | 2021-10-06T14:29:31 | 2021-10-06T14:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,958 | py | # fp16 settings
# fp16 = dict(loss_scale=512.)
# model settings
model = dict(
type='S2ANetDetector',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
... | [
"mq_chaser@126.com"
] | mq_chaser@126.com |
6d1a989bb6d0863e4392b6b5982cb9a5e2b1b642 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano993.py | 6a4a6c9844658758121f01dd960432ed50dbceed | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
87c6b732826010a09b36dc58caec09f610519427 | 8d946e49d0e9c5e038b6dd5fdfc11c72f64470f9 | /instagram/urls.py | f97803739aafc2feba7d773b1e1fc52f1f78a5e7 | [
"MIT"
] | permissive | gabyxbinnaeah/TwinterApp | bfc955fdf529b5ecce89f62ab6bd4f8ecf9e461e | a0f68527a3e01cd47e49f9a17988ec5095422695 | refs/heads/master | 2023-06-16T01:07:43.531740 | 2021-07-14T08:37:50 | 2021-07-14T08:37:50 | 384,447,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | """instagram URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"gabyxbinnaeh4@gmail.com"
] | gabyxbinnaeh4@gmail.com |
e6f6045cc2fb7e9d2b61ded3d712cc41bf1bd78b | c6e5d5ff2ee796fd42d7895edd86a49144998067 | /platform/core-scheduler/polyaxon/polyconf/wsgi.py | 752f03d7945e907b86cc6786cbdc1116ab7a7e94 | [
"Apache-2.0"
] | permissive | zeyaddeeb/polyaxon | f4481059f93d8b70fb3d41840a244cd9aaa871e0 | 1f2b236f3ef36cf2aec4ad9ec78520dcc9ef4ee5 | refs/heads/master | 2023-01-19T05:15:34.334784 | 2020-11-27T17:08:35 | 2020-11-27T17:08:35 | 297,410,504 | 0 | 0 | Apache-2.0 | 2020-09-21T17:20:27 | 2020-09-21T17:20:26 | null | UTF-8 | Python | false | false | 995 | py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, Inc.
#
# 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 ... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
9e9a78685cf9219df7db2543b3cb31fc4e86d42d | 4524c4940d7fa830c23e4dc8e1144d5eec74365b | /ex15.py | 75842d887ad14a1f8b08026f86360c2596f8855c | [] | no_license | AmyShackles/LearnPython3TheHardWay | ef493209a181f62bfa45ff3ec456ae0fd2c3e8a9 | 4e175d58dfe8c7295ebfbee3947e944b35e52f8c | refs/heads/master | 2020-03-23T03:49:53.052976 | 2018-07-27T21:14:30 | 2018-07-27T21:14:30 | 141,051,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from sys import argv
# assigns arg[0] to the variable script and argv[1] to the variable filename
script, filename = argv
# assigns the function for opening the file to the variable txt
txt = open(filename)
# prints the string 'Here is your {value of variable filename}'
print(f"Here's your file {filename}:")
# print... | [
"amyshackles@gmail.com"
] | amyshackles@gmail.com |
0cdac74013d1815fdcf40dc9165e35d850ef2673 | 7b252f0c1b8ba7c9a35ead166482efbb4d804413 | /mysite/books/views.py | aad9117e9fbeb9c02c506f754902dff380645397 | [] | no_license | gzpgg3x/PythonExample | 191024f04796a13106b46f4f00a59185c33af91b | c64563f91cd5188b6d3d01688d8184a37ded46eb | refs/heads/master | 2021-01-10T19:38:53.325169 | 2013-04-11T22:36:29 | 2013-04-11T22:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,682 | py | # Create your views here.
# from django.shortcuts import render_to_response
# from django.http import Http404, HttpResponse
# def search_form(request):
# return render_to_response('search_form.html')
# def search(request):
# if 'q' in request.GET:
# message = 'You searched for: %r' % request.GET['q']
... | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
04d9ad1e786f05e26021f6185659f3aae41db9f9 | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /tests2/tests/fuji/test_sensor.py | 1d54acae68dd7d60074e321cc3d4aa4b3266471c | [] | no_license | facebook/openbmc | bef10604ced226288600f55248b7f1be9945aea4 | 32777c66a8410d767eae15baabf71c61a0bef13c | refs/heads/helium | 2023-08-17T03:13:54.729494 | 2023-08-16T23:24:18 | 2023-08-16T23:24:18 | 31,917,712 | 684 | 331 | null | 2023-07-25T21:19:08 | 2015-03-09T19:18:35 | C | UTF-8 | Python | false | false | 13,978 | py | #!/usr/bin/env python3
#
# Copyright 2020-present Facebook. All Rights Reserved.
#
# This program file 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; version 2 of the License.
#
# This program is distributed ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3805406d7d67e5a498dfff6b970543445e2a268e | 1fb55ab2c082348eb51263357563d20e1fd50b7d | /commons/c2cgeoportal_commons/alembic/main/29f2a32859ec_merge_1_6_and_master_branches.py | e92c014cbf7e91b379db31f2314f86152fee5f02 | [
"BSD-2-Clause-Views"
] | permissive | nstoykov/c2cgeoportal | 40876bf577cc2ed1877affa9f307acef94d86daa | 42c3aab09e0c44a20d0162a85c51c6a9ca0ff95e | refs/heads/master | 2020-12-06T03:27:00.330795 | 2020-01-07T09:25:07 | 2020-01-07T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2019, Camptocamp SA
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
#... | [
"stephane.brunner@camptocamp.com"
] | stephane.brunner@camptocamp.com |
d2f817ce547020deb24980787d61a4775fe21557 | 0f6f95af209ff9192702c2176c4513cb28929ba5 | /syd/commands/base.py | ff759bd373fea19e05e2ad6b670aa903bdbfd1e8 | [] | no_license | SD2E/aliases-cli | 87a03f83cbbed5f5860e77457718f7eb6121a311 | c634012a2623b975b8eeb6e210fabe51fe53a6ab | refs/heads/master | 2020-03-10T19:33:47.852609 | 2018-04-18T22:27:40 | 2018-04-18T22:27:40 | 129,550,330 | 1 | 0 | null | 2018-04-17T19:55:08 | 2018-04-14T20:01:52 | Python | UTF-8 | Python | false | false | 425 | py | """The base command."""
from agavepy.agave import Agave
from .reactors import alias
class Base(object):
"""A base command."""
def __init__(self, options, *args, **kwargs):
self.options = options
self.args = args
self.kwargs = kwargs
self.store = alias.AliasStore(Agave.restore()... | [
"vaughn@tacc.utexas.edu"
] | vaughn@tacc.utexas.edu |
63df08aefaa3c1c7cab07d65e38a0de2816880ca | a0801d0e7325b31f0383fc68517e208680bb36d6 | /Kattis/commercials.py | fe78e87a705a79461a41b0c9e1c0aa6f1c6b0f44 | [] | no_license | conormccauley1999/CompetitiveProgramming | bd649bf04438817c7fa4755df2c2c7727273b073 | a7e188767364be40f625612af3d16182f2d8d4de | refs/heads/master | 2023-05-14T13:19:32.678134 | 2023-05-11T16:07:33 | 2023-05-11T16:07:33 | 179,089,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | n, p = map(int, input().split())
vs = list(map(int, input().split()))
for i in range(n):
vs[i] -= p
mx = -10e8
mxh = 0
for i in range(n):
mxh = mxh + vs[i]
mx = max(mx, mxh)
mxh = max(mxh, 0)
print(mx)
| [
"conormccauley1999@gmail.com"
] | conormccauley1999@gmail.com |
52bac37037d550c2a2aae038c7e551a45f41832d | 91da8a59561d6f2c7852c0548298434e0ede2ac7 | /Linked list/sort_a_linkedList.py | a0ff4d4ccaf23fb3e9297409fbd6d52413ca3256 | [] | no_license | prashant97sikarwar/leetcode | 6d3828772cc426ccf53dad07edb1efbc2f1e1ded | e76054e27a5d4493bd1bcef2ebdeb21d257afb63 | refs/heads/master | 2023-08-23T05:06:23.181869 | 2021-10-28T18:19:10 | 2021-10-28T18:19:10 | 286,057,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | """Sort a linked list in O(n log n) time using constant space complexity."""
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def sortList(self, head: ListNode) -> ListNode:
if head is No... | [
"prashant97sikarwar@gmail.com"
] | prashant97sikarwar@gmail.com |
e5755a3d897e49d3a0ef501d254813c4afb0c40e | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/bgp/ctxafdef.py | d649b8e14aa620c77367e3c7b8b845e9914a019b | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 6,835 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
ba390262491d2b85c1a086e78fde731a173b1ef6 | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118152650.py | 71f2c0cb3e667e65dce164fea2e7b4e149d01c27 | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 82,147 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
197d249f49a3bf0f4bbe8e5c1e093ff2fd5d13c1 | 6f23adb3da803dda89e21cfa21a024a015ec1710 | /2020/16-2.py | 8883ed2bc121687d8e600f19d5385f5a9769ba9f | [] | no_license | Remboooo/adventofcode | 1478252bcb19c0dd19e4fa2effd355ee71a5d349 | 5647b8eddd0a3c7781a9c21019f6f06f6edc09bd | refs/heads/master | 2022-12-15T10:21:29.219459 | 2022-12-13T23:02:03 | 2022-12-13T23:02:03 | 226,883,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | from argparse import ArgumentParser
from collections import defaultdict
from functools import reduce
from itertools import islice, count
from pprint import pprint
from util import timed
def parse_rules(f):
rules = {}
for line in f:
line = line.strip()
if line == "":
break
... | [
"rembrand.vanlakwijk@nedap.com"
] | rembrand.vanlakwijk@nedap.com |
d9488e55773f53b084a0d709450f00dfefd69089 | 299fe2ca879e509798e95c00b7ba33914031f4a7 | /eruditio/shared_apps/django_wizard/wizard.py | dbfab0dcfbd21b9bc03b532bad0f2afd2d52e2e6 | [
"MIT"
] | permissive | genghisu/eruditio | dcf2390c98d5d1a7c1044a9221bf319cb7d1f0f6 | 5f8f3b682ac28fd3f464e7a993c3988c1a49eb02 | refs/heads/master | 2021-01-10T11:15:28.230527 | 2010-04-23T21:13:01 | 2010-04-23T21:13:01 | 50,865,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | from django_wizard.models import ConfigOption, ConfigFixture, DefinedConfigOption
from django.core.exceptions import ObjectDoesNotExist
class ConfigIndex(object):
def __init__(self):
self._registry = {}
def register(self, configuration):
if configuration.__class__ == ConfigOption and not (... | [
"genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb"
] | genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb |
81bd2b2a328a6e4dd44b19fdd29ef301958ada2c | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/timeseriesinsights/v20210630preview/reference_data_set.py | 5b350da438874cbf3ea8e7b7b52d7935a1a141be | [
"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 | 16,422 | 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 |
17c32a613daa0e013bfcaad2caa72d86e7343183 | 53b47cbfea75afd22f37a2a9c8af4573165a0515 | /Week5/Assessment 1/algorithm/algo.py | aa58e2a50fecb31c7a089d08f9c8950556523934 | [] | no_license | bmolina-nyc/ByteAcademyWork | d757ed04033e23a4ec7aa8d09283f65b4cebcb17 | b7a6790c2905afc9532b348149b730b7ea71de44 | refs/heads/master | 2022-12-06T19:17:02.164451 | 2019-03-11T15:31:10 | 2019-03-11T15:31:10 | 169,432,884 | 0 | 1 | null | 2022-11-18T15:08:12 | 2019-02-06T16:00:41 | Python | UTF-8 | Python | false | false | 679 | py | def sorting(MyList):
zero_count = MyList.count(0)
list_check = MyList.count(0)
check = []
while zero_count > 0:
check.append(0)
zero_count -= 1
while True:
for el in MyList:
if el == 0:
idx = MyList.index(el)
pop = MyList.pop(idx)
... | [
"bruce.molina.81@gmail.com"
] | bruce.molina.81@gmail.com |
01893f13d23f63efc4f427a9eb781cbc09388785 | dee345b10c7dc29dd6b0cac04677beef14f2d64f | /tests/test_manual_quality_merging.py | 35dc41c621fefe22e33d69b77f397f562e697051 | [
"MIT"
] | permissive | richard-shepherd/calculation_graph | fcd0df6b0d4fc598586ee67c129ccc90b9cac383 | 647b1f13544e3525068c8b3b83a7eed3f7e473bd | refs/heads/master | 2016-09-05T19:46:14.567122 | 2015-05-21T10:58:14 | 2015-05-21T10:58:14 | 31,436,445 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,491 | py | from graph import *
class SourceNode(GraphNode):
"""
A data source. Just a value with data-quality.
"""
def __init__(self, source_name, *args, **kwargs):
super().__init__(*args, **kwargs)
self.source_name = source_name
# The value provided by this source...
self.value ... | [
"richard.s.shepherd@gmail.com"
] | richard.s.shepherd@gmail.com |
2e2aa42191565859e305c671773a20d93e459e04 | 615ce4f7790057c92d93f43a5f0cab9ba018fbd6 | /pathological/atomics/strings/evaluatable.py | 29efa6a5e4aceb5c95b7ef7a0bd4d68ee5b533fd | [
"MIT"
] | permissive | OaklandPeters/pathological | 20e88fac7216eebfe735a018449813f956c69484 | c561eb30df8cdcc0f277a17cd08a03cf173e312f | refs/heads/master | 2021-01-10T16:00:54.798667 | 2016-03-07T14:47:54 | 2016-03-07T14:55:20 | 53,332,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | """
SQL
Python code
Python eval
Javscript
Javascript eval
C
"""
| [
"oakland.peters@gmail.com"
] | oakland.peters@gmail.com |
b8124490b623a6c5b281a10cce0cc972f2334d95 | 9017f217abe077aff77f64938a988fcc4a292e40 | /plate/common/syntax_highlighting.py | aa0484c12f2fad1de5134b9f34f2332e331f0d6d | [
"Apache-2.0"
] | permissive | gogit/plate | c8c47d47de2b11d5c7b4840106181bb177b50c88 | 2e5fdb1ddfad560986b429cf2ff92aed4d35e56c | refs/heads/master | 2021-01-18T07:18:52.770779 | 2016-04-08T11:45:00 | 2016-04-08T11:45:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | # -*- coding:utf-8 -*-
def syntax_highlight(lang, code):
"""
code highlighting HTML Format
:param lang: programming language
:param code: code
:return: highlighted code
"""
from pygments import lexers
from pygments import highlight
from pygments.formatters import HtmlFormatter
... | [
"sh84.ahn@gmail.com"
] | sh84.ahn@gmail.com |
cf778af0af1dddef7a128d1e74c241f6d5102ed0 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/e5f4987a8fe1b2a1907436c11e0c5ae9ae6b12b3-<mandatory>-fix.py | a5a74f66992fb6dfef2b09ed691874a499fea364 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | def mandatory(a):
from jinja2.runtime import Undefined
' Make a variable mandatory '
if isinstance(a, Undefined):
if (a._undefined_name is not None):
name = ("'%s' " % to_text(a._undefined_name))
else:
name = ''
raise AnsibleFilterError(('Mandatory variable %s... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
b32201fe4bcba5b5044dd43bd63144b156758276 | 8f5c7f28703b274163c2832f6511025e37b4295f | /helloworld.com/reviews/migrations/0001_initial.py | 98cc1576bfc65b810dcb3c4f295628f97c64f0c6 | [] | no_license | reinaaa05/portfolio | 159dc4d48b3e215bfb6c7115cd39b7f63ee2418a | e93189e3aa027e57bac490d8874519dd7f717620 | refs/heads/main | 2023-05-15T09:56:30.741402 | 2021-06-12T13:46:44 | 2021-06-12T13:46:44 | 307,375,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # Generated by Django 3.1.7 on 2021-03-19 05:50
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ReviewsConfig',
fields=[
... | [
"Reinaaa0555@gmail.com"
] | Reinaaa0555@gmail.com |
aec91a9ce7f35dfa47aaf32a2ca1c5960d6a0f98 | fbf82e9a3d6e7b4dbaa2771eed0d96efabc87b3b | /platform/storage/storage/ceph/ceph/manager/cephmon_manager.py | 1a1d68c8581d61a22a5d18d91845d4a99f3ac9e9 | [] | no_license | woshidashayuchi/boxlinker-all | 71603066fee41988108d8e6c803264bd5f1552bc | 318f85e6ff5542cd70b7a127c0b1d77a01fdf5e3 | refs/heads/master | 2021-05-09T03:29:30.652065 | 2018-01-28T09:17:18 | 2018-01-28T09:17:18 | 119,243,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,801 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: YanHua <it-yanh@all-reach.com>
import uuid
from common.logs import logging as log
from common.code import request_result
from ceph.driver import ceph_driver
class CephMonManager(object):
def __init__(self):
self.ceph_driver = ceph_driver.CephDriv... | [
"359876749@qq.com"
] | 359876749@qq.com |
4ba863c2665be91eec065ed4c30766c4093d1eee | ce61d882ab402283c60580cd6b99ac74eb6e3644 | /sixdegrees/random_geometric_api.py | 21de8f64714697adfd352a786159f4126ce9aec3 | [
"MIT"
] | permissive | benmaier/sixdegrees | f4a6c54cce8021cc4f55a832fbe629e8e22b0cb2 | 6fee5a4f81d91ec2ce92c8767add67b701651a85 | refs/heads/master | 2022-12-11T00:10:42.210563 | 2020-09-15T21:58:18 | 2020-09-15T21:58:18 | 216,598,531 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,459 | py | # -*- coding: utf-8 -*-
"""
This module provides convenient wrapper functions for
the C++-functions sampling from all random geometric
small-world network models.
"""
import numpy as np
from _sixdegrees import (
_random_geometric_small_world_network_coord_lists,
_random_geometric_small_world_network,
... | [
"benjaminfrankmaier@gmail.com"
] | benjaminfrankmaier@gmail.com |
a255456d0a019eb574c9d471d675d371ed409336 | c971cefa15391eb5bfc661b61791aa641089ff71 | /Term 2/9/problem.py | a23dfbc6292d27e54b1f0f46a5e555232a0c0e39 | [] | no_license | theseana/ajil | d8816be35b7ee56d9bc6899587b71c664a455f5f | 3fcda909dae50394120c7c05d530ad905b05da0c | refs/heads/master | 2023-02-23T23:28:23.529531 | 2021-01-26T10:07:11 | 2021-01-26T10:07:11 | 305,970,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | # ssssssss
# iiiiiiii
# nnnnnnnn
# aaaaaaaa | [
"info@poulstar.com"
] | info@poulstar.com |
314be4571818499b9133b733908fa91faf720aad | 896b79a235796da67cdabd52e88d8b218882c3fe | /src/aioquic/quic/recovery.py | dae3712bc63d32f253ebceca8c49e3dc11109ba0 | [
"BSD-3-Clause"
] | permissive | LautaroJayat/aioquic | b9b84b59c849a3dc4cfc3a986b679dd0723ddbf7 | b1ecd8a1dd9089fa536b7d62ab06d7127d768e8d | refs/heads/main | 2022-10-27T01:30:04.846852 | 2020-06-16T01:04:25 | 2020-06-16T01:04:25 | 272,577,005 | 0 | 0 | BSD-3-Clause | 2020-06-16T01:04:27 | 2020-06-16T01:01:58 | null | UTF-8 | Python | false | false | 17,096 | py | import math
from typing import Callable, Dict, Iterable, List, Optional
from .logger import QuicLoggerTrace
from .packet_builder import QuicDeliveryState, QuicSentPacket
from .rangeset import RangeSet
# loss detection
K_PACKET_THRESHOLD = 3
K_GRANULARITY = 0.001 # seconds
K_TIME_THRESHOLD = 9 / 8
K_MICRO_SECOND = 0.... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
afc502fd894e0319fb56f6217f21a3b934829d0c | e4045e99ae5395ce5369a1374a20eae38fd5179b | /db/add_emp.py | 07ba831ed9d733fb43393f8841ade51ce422921f | [] | no_license | srikanthpragada/09_MAR_2018_PYTHON_DEMO | 74fdb54004ab82b62f68c9190fe868f3c2961ec0 | 8684137c77d04701f226e1e2741a7faf9eeef086 | refs/heads/master | 2021-09-11T15:52:17.715078 | 2018-04-09T15:29:16 | 2018-04-09T15:29:16 | 124,910,054 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | import sqlite3
try:
con = sqlite3.connect(r"e:\classroom\python\hr.db")
cur = con.cursor()
# take input from user
ename = input("Enter name :")
salary = input("Enter salary : ")
dept = input("Enter dept id :")
# get next emp id
cur.execute("select max(empid) + 1 from emp")
empid = ... | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
19bf93fb7f263d11e77e96002fe5f58d107ffb35 | 382e308f433dd3b2c2601568f480be30a704e7d7 | /Django 실습/sample_community/board/views.py | 94525375f9d3f0d7adf021b9bb0a2d913286ea95 | [] | no_license | 5d5ng/LACUC-capstone1 | 29240f4109d397ceab3ad7bb771cbcdf69cb944c | 01b0a1136dab592b778ac99c346c318d3c6ed30f | refs/heads/master | 2022-12-03T15:57:55.804687 | 2019-11-18T09:44:04 | 2019-11-18T09:44:04 | 211,851,523 | 0 | 1 | null | 2022-11-17T07:05:21 | 2019-09-30T12:11:32 | Python | UTF-8 | Python | false | false | 453 | py | from django.shortcuts import render
from .models import Board
from .forms import BoardForm
# Create your views here.
def board_write(request):
form = BoardForm()
return render(request, 'board_write.html', {'form': form})
def board_list(request):
boards = Board.objects.all().order_by('-id') # 시간 역순으로 모... | [
"deo1915@gmail.com"
] | deo1915@gmail.com |
ae8e11dbf700e8b547f3301a18102059e7cdabf8 | 54bb9ba6d507cd25b2c2ac553665bc5fc95280d1 | /src/onegov/file/__init__.py | 7cc5a6d0232f51b69f22604b6201246450e833ec | [
"MIT"
] | permissive | href/onegov-cloud | 9ff736d968979380edba266b6eba0e9096438397 | bb292e8e0fb60fd1cd4e11b0196fbeff1a66e079 | refs/heads/master | 2020-12-22T07:59:13.691431 | 2020-01-28T08:51:54 | 2020-01-28T08:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from onegov.file.collection import FileCollection, FileSetCollection
from onegov.file.integration import DepotApp
from onegov.file.models import (
File,
FileSet,
AssociatedFiles,
SearchableFile
)
__all__ = (
'AssociatedFiles',
'DepotApp',
'File',
'FileCollection',
'FileSet',
'Fi... | [
"denis.krienbuehl@seantis.ch"
] | denis.krienbuehl@seantis.ch |
5494da1fde51e2b036cfae84db3b9f33a86c2556 | 931926968461bbe8fc6295d4f5b702c5de99c231 | /paper/plot_cifar10_confusion_diff.py | f9a3028e134b9ca9deca51fdf7202d96223084c2 | [] | no_license | annaproxy/modules | 93315ce684bdda4fb7a34a518ac2154e506a6579 | 771e1fa49edd2f237883842f741ea1d8ce1fccdc | refs/heads/master | 2022-12-27T22:27:39.408250 | 2020-10-06T10:30:22 | 2020-10-06T10:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,606 | py | #!/usr/bin/env python3
import os
import lib
from lib import StatTracker
import torch
import shutil
import matplotlib.pyplot as plt
import numpy as np
import itertools
from mpl_toolkits.axes_grid1 import make_axes_locatable
from lib.common import group
BASE_DIR = "out/cifar10_confusion/"
shutil.rmtree(BASE_DIR, ignore... | [
"xdever@gmail.com"
] | xdever@gmail.com |
74bc86c8f16604ca3cd74876f70d09cfaef95070 | a568e4dc461f71f0ae053fe51e3ddd0fe23bf858 | /development/index_site.py | 1789373a554d1f41d08b10458f9e08a08425dac8 | [
"MIT"
] | permissive | vatlab/sos-docs | 413e344a7581e4e2cef5da3d24345a73f3669c43 | 2b42c280dae0feaeea51161041827c362abe6db0 | refs/heads/master | 2023-06-26T04:30:59.078944 | 2023-06-16T20:26:39 | 2023-06-16T20:26:39 | 105,951,462 | 3 | 15 | MIT | 2023-06-16T20:18:39 | 2017-10-05T23:46:39 | Jupyter Notebook | UTF-8 | Python | false | false | 4,206 | py | #!/usr/bin/env python3
#
# Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center
# Distributed under the terms of the 3-clause BSD License.
#
import os
import glob
import re
import argparse
from bs4 import BeautifulSoup
'''
A simple script to create tipue content by searching for documentation
fil... | [
"ben.bog@gmail.com"
] | ben.bog@gmail.com |
ea2793abe07a25467fb61292b764ddc1f7d4ac4c | 68263c011d12b19d6ff17f0f2420fe497ef28fc2 | /api/tacticalrmm/core/views.py | 93d53c22c421640a769e0772dfab93f3222aa002 | [
"MIT"
] | permissive | bradhawkins85/tacticalrmm | 79ec6f003b559c96d15a5bd0621a2e968d2ea53d | 4371f270569a6eb094dda834f2d1b14ed62af5e4 | refs/heads/develop | 2023-05-21T13:19:47.187899 | 2020-09-02T18:52:40 | 2020-09-02T18:52:40 | 292,421,792 | 0 | 0 | MIT | 2021-05-05T05:55:52 | 2020-09-03T00:06:11 | null | UTF-8 | Python | false | false | 1,723 | py | import os
from django.conf import settings
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
from rest_framework.exceptions import ParseError
from rest_framework.parsers import FileUploadParser
from rest_framework.views import APIView
from .... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
de8074fe4170e2bd14801b70bceb614046f97b3e | 4b68243d9db908945ee500174a8a12be27d150f9 | /pogoprotos/settings/trading_global_settings_pb2.py | d2d9db44611b0f5eebc2b3e22c3a68f670146ab3 | [] | no_license | ykram/pogoprotos-py | 7285c86498f57dcbbec8e6c947597e82b2518d80 | a045b0140740625d9a19ded53ece385a16c4ad4a | refs/heads/master | 2020-04-20T10:19:51.628964 | 2019-02-02T02:58:03 | 2019-02-02T02:58:03 | 168,787,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,630 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/settings/trading_global_settings.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.... | [
"mark@noffle.net"
] | mark@noffle.net |
3dcc56e34644f42ea06d92fb7188107801b668d2 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/YZYQ/yzyq_144.py | 83432d061fadacfc51640039e13e534672cfe407 | [] | 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 | 3,038 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
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 ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
61bc779a1546701f5153a4a6635e4020d619e8cb | 22c5fc7dd52149ebd4338a487ae9ab0db0e43f01 | /tests/test_dynunet.py | 39371c0e1dc31ecb08ea630eefe8443f705fb731 | [
"Apache-2.0"
] | permissive | precision-medicine-um/MONAI-Deep_Learning | 3d3f547dd9815152561a6853f8d4727b0e5ca4c4 | d94c4d3a2c465717ba3fae01b7acea7fada9885b | refs/heads/master | 2022-12-28T07:04:07.768415 | 2020-10-17T13:11:56 | 2020-10-17T13:11:56 | 305,346,962 | 3 | 0 | Apache-2.0 | 2022-12-27T15:44:13 | 2020-10-19T10:30:07 | Python | UTF-8 | Python | false | false | 5,036 | py | # Copyright 2020 MONAI Consortium
# 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, s... | [
"noreply@github.com"
] | precision-medicine-um.noreply@github.com |
762eb5522286793c28ee067dc804473cca9f7b95 | 801f367bd19b8f2ab08669fd0a85aad7ace961ac | /project/experiments/exp_025_pns_start_identity/src/tmp_which_nodes_are_slow_results.py | 2b351dbe039f6593b70e34ad3375078ad22ad97b | [
"MIT"
] | permissive | Wendong-Huo/thesis-bodies | d91b694a6b1b6a911476573ed1ed27eb27fb000d | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | refs/heads/main | 2023-04-17T18:32:38.541537 | 2021-03-12T19:53:23 | 2021-03-12T19:53:23 | 623,471,326 | 1 | 0 | null | 2023-04-04T12:45:48 | 2023-04-04T12:45:47 | null | UTF-8 | Python | false | false | 2,040 | py | import pandas as pd
with open("output_data/tmp/which_nodes_are_slow.txt", "r") as f:
grep_results = f.readlines()
for idx, line in enumerate(grep_results):
if "1785959" in line:
print(grep_results[idx-1])
print(line)
break
# exit(0)
l = len("output_data/tensorboard/")
df_results = pd.... | [
"sliu1@uvm.edu"
] | sliu1@uvm.edu |
98fe52e38140e1691a95e0a3e3e42abfcfd8ead4 | d96289f157e2bbbf6f3560f3cc327e490df84b54 | /exp_configs/__init__.py | c98ed0eabbf9a5cd320bccd9a1242a1ddc6f5ad4 | [] | no_license | IssamLaradji/semantic_segmentation_template | 74e8766ce3265ba7fc9416f9c85811d05dca39f9 | f7286eaafb5d5bc81e2f7d6bb87f6e24db026a08 | refs/heads/main | 2023-08-22T09:53:37.381702 | 2021-10-14T21:45:42 | 2021-10-14T21:45:42 | 417,287,252 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from . import issam_exps, sandra_exps
EXP_GROUPS = {}
EXP_GROUPS.update(issam_exps.EXP_GROUPS)
EXP_GROUPS.update(sandra_exps.EXP_GROUPS)
| [
"issam.laradji@gmail.com"
] | issam.laradji@gmail.com |
f4bff5cd10b131b2a0d7ac0bf7e2d36014f08278 | 6160586aa239eada16e735d40d57970dedbe1dfc | /modules/app_additional/app_customaction/app_customaction_delete.py | c182fad8429e4802d3dfe6058d3c4d97757f8530 | [] | no_license | showgea/AIOT | 7f9ffcd49da54836714b3342232cdba330d11e6c | fe8275aba1c4b5402c7c2c2987509c0ecf49f330 | refs/heads/master | 2020-07-23T10:19:37.478456 | 2019-09-23T12:25:59 | 2019-09-23T12:25:59 | 207,525,184 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | import requests
from config import readcfg
header_Gary = readcfg.header_Gary
header_Jenny = readcfg.header_Jenny
url = readcfg.url
def app_customaction_delete(customActionId):
url_ = url + "/app/v1.0/lumi/app/customaction/delete"
params_ = {
"customActionId": customActionId
}
proxies = {'http... | [
"tangguobing2011@163.com"
] | tangguobing2011@163.com |
d1361e5603dbcad0458945a81f77ece19988ca14 | 4e59c2444334c67e419dbc97a2fd326115f15555 | /db_orm_models/blocking/presence/browsing_intent_snapshot/methods.py | 64c2c313d23e2bb2069b8e73e40c8bdb2a79cfe0 | [
"MIT"
] | permissive | bbcawodu/nav-online-backend | cebf41fd3373606ac880b1fc4935885d13948c86 | 3085ad686b253ea82478eb2fc365f51dda6d9d96 | refs/heads/master | 2021-01-22T04:44:13.105412 | 2018-08-14T16:40:55 | 2018-08-14T16:40:55 | 102,269,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | def filter_query_obj_by_session_id(query_obj, obj_model, rqst_session_id, list_of_ids):
if isinstance(rqst_session_id, unicode) and rqst_session_id.lower() == "all":
query_obj = query_obj.order_by(obj_model.presence_browsing_session_data_id)
else:
query_obj = query_obj.filter(obj_model.presence_... | [
"awodubradley@gmail.com"
] | awodubradley@gmail.com |
0687859952c1036a7b340e2b2af5c0511016df40 | 9f09ecfed34f5014116a1c7afadec2b9c07e9971 | /example_project/some_modules/third_modules/a53.py | 4271b8389a1366db2940c7006acd0fb466cfcb5a | [
"MIT"
] | permissive | Yuriy-Leonov/cython_imports_limit_issue | a04ce73e8c750f3a61d7aaacaf58665273bf4a49 | 2f9e7c02798fb52185dabfe6ce3811c439ca2839 | refs/heads/master | 2020-09-11T23:57:56.677138 | 2019-11-18T17:48:50 | 2019-11-18T17:51:07 | 222,232,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | class A53:
pass
| [
"tavoseg@gmail.com"
] | tavoseg@gmail.com |
fe67cbd2fbdca0fb9203371b298604412056b63b | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1904/py01/day02/game.py | da175d732f5814bc887260e614a5f974e7b8ad95 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 778 | py | import random # 导入random模块
# random.choice()从一个序列对象中随机选择一项
computer = random.choice(['石头', '剪刀', '布'])
player = input('请出拳(石头/剪刀/布): ')
print("Your choice: %s, Computer's choice: %s" % (player, computer))
if player == '石头':
if computer == '石头':
print('平局')
elif computer == '剪刀':
print('You W... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
67711448c51b3aa2c18dbd24c029ab0a57c28569 | 9df89a1652d183d8fc654acd728f9a578d6d1912 | /cli/tests/psym_tests/test_user.py | 400718eaa8635641ddbdad811c5aae5771aba6a4 | [
"BSD-3-Clause"
] | permissive | duranrojasm/symphony | b37d54a134e29093edacb80442e204fc71a37fbe | 55b3d0c20b669374303bafb10e9c96c734647c9c | refs/heads/main | 2023-08-24T02:00:33.433220 | 2021-10-28T20:35:23 | 2021-10-28T20:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | #!/usr/bin/env python3
# Copyright (c) 2004-present Facebook All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import random
import string
from unittest import skip
from psym import UserDeactivatedException
from psym.api.user import (
activ... | [
"jcaroper@everis.com"
] | jcaroper@everis.com |
eb2b9cbc7dcb2e45e3686d9f629a4a03d6867c1d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class841.py | 4f84993699cbd099216e52673eb203502687df81 | [
"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,341 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=24
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9d271bad43590d0385529bc485e0fd4d18fa1faf | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/core/ui/qt/custom_label_editor.py | af48d20e9e521f5da679a7aaf6a049248224d552 | [
"Apache-2.0"
] | permissive | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,405 | py | #===============================================================================
# Copyright 2012 Jake Ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
df5d74665f7e253a5707711a3a7f978bebb10b96 | 50e375bdc8affc1a8c09aa567a740fa19df7d5a6 | /DSBQ/deployment/fixtures_old/test_Oracle_pytest_new.py | cbacf2973495522b4d34ecada22a816bff063a78 | [] | no_license | michTalebzadeh/SparkStructuredStreaming | ca7a257626e251c7b03a9844cfd229fa8ea95af5 | 87ef34ffe52061fcbb4f22fcd97764037717696a | refs/heads/master | 2023-07-13T00:49:10.753863 | 2021-07-12T16:39:50 | 2021-07-12T16:39:50 | 364,826,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | from pyspark.sql import SparkSession
import pytest
from sparkutils import sparkstuff as s
from src.config import ctest, test_url
from src.CreateSampleDataInMysql import extractHiveData, loadIntoMysqlTable, readSourceData, transformData, saveData, readSavedData
"""
@pytest.fixtures_old(scope = "session")
def initParame... | [
"mich.talebzadeh@gmail.com"
] | mich.talebzadeh@gmail.com |
a4a5217a92054490d85cba7f63ef1acb282a4847 | 989bb5d2d3e89db21fcbeac91a1e64967ea6377b | /sagemaker_neo_compilation_jobs/deploy_pytorch_model_on_Inf1_instance/resnet18.py | 9421aea5af6f0bf1ea89a34f99bc2cb5dcbceb35 | [
"Apache-2.0"
] | permissive | araitats/amazon-sagemaker-examples | 7cec9ea5822f0469d5dfabbcf3cab62ce9c0f0d1 | 512cb3b6310ae812c6124a451751237d98a109b1 | refs/heads/master | 2023-04-19T05:54:47.334359 | 2021-04-27T21:04:33 | 2021-04-27T21:04:33 | 338,094,683 | 2 | 1 | Apache-2.0 | 2021-04-27T15:35:14 | 2021-02-11T17:07:39 | Jupyter Notebook | UTF-8 | Python | false | false | 565 | py | def input_fn(request_body, request_content_type):
import torch
import torchvision.transforms as transforms
from PIL import Image
import io
f = io.BytesIO(request_body)
input_image = Image.open(f).convert('RGB')
preprocess = transforms.Compose([
transforms.Resize(255),
transforms.... | [
"noreply@github.com"
] | araitats.noreply@github.com |
cb4bec1c5c9f2e7faae17939c77ca7c5189da426 | 7ede001485ce68aebcd185f9f7b01b1196e8900d | /forex/env-python2/lib/python2.7/site-packages/v20/user.py | 32388c147cd659635b7adaa22c68fbd120b48212 | [
"MIT"
] | permissive | phroiland/forex_algos | 971f04ebceb579a761dca6c1184fc14d1e78f9d1 | 055f51e55c52d6dd5cfd38550a48892a0fb09b0d | refs/heads/master | 2023-05-29T00:28:19.350350 | 2022-05-12T21:16:35 | 2022-05-12T21:16:35 | 92,301,496 | 1 | 0 | null | 2023-05-22T20:44:39 | 2017-05-24T14:28:29 | Python | UTF-8 | Python | false | false | 8,342 | py | import ujson as json
from v20.base_entity import BaseEntity
from v20.base_entity import EntityDict
from v20.request import Request
from v20 import spec_properties
class UserInfo(BaseEntity):
"""
A representation of user information, as provided to the user themself.
"""
#
# Format string used wh... | [
"jon.froiland@gmail.com"
] | jon.froiland@gmail.com |
e4b50200cdcfab029ada56611d23bd13fb829714 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/42e441b34ef3b68f657a5e36027aaa21ff0b4d84-<run_bottleneck_on_image>-bug.py | 8ad0925041a855fb4f37bc20e4557601749d4a45 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py |
def run_bottleneck_on_image(sess, image_data, image_data_tensor, bottleneck_tensor):
"Runs inference on an image to extract the 'bottleneck' summary layer.\n\n Args:\n sess: Current active TensorFlow Session.\n image_data: Numpy array of image data.\n image_data_tensor: Input data layer in the graph.\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
37ba1aa162d25931444ba005344100537f2992fa | 4dfc7fc9b84f76d690e33414610bc59a9b07001a | /bds/views/municipality.py | f7a746ad648d09ab470d311aed22e6dbf6fdd580 | [] | no_license | pythondev0101/-j-natividad-web-billing | e62da9ac943a74d2e1e9416d553fd3baafd3937f | 39f7b0d60d86a08d1c5d40cacf9904b28dc2355c | refs/heads/main | 2023-08-28T00:34:43.435674 | 2021-05-24T12:37:54 | 2021-05-24T12:37:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | from datetime import datetime
from flask import redirect, url_for, request, current_app, flash
from flask_login import current_user, login_required
from app import db
from app.admin.templating import admin_table, admin_edit
from bds import bp_bds
from bds.models import Municipality
from bds.forms import MunicipalityFor... | [
"rmontemayor0101@gmail.com"
] | rmontemayor0101@gmail.com |
327914a84e501df8aa4e30d0ab286a73a37f1b35 | dc75370390e821b857b327100f0d2e9a60f34f89 | /chat/migrations/0001_initial.py | 477def66b7a7e08f361a5435958dcb17e478690a | [] | no_license | DontTouchMyMind/OnlineChat_Udemy | 018e24f6dfe7c1c2d1f37540f219f7b652987666 | 77ee36d89adbf71d07b6f73f9b6757aacabde939 | refs/heads/master | 2023-01-28T16:56:40.070478 | 2020-12-07T11:40:11 | 2020-12-07T11:40:11 | 315,873,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.1.3 on 2020-11-25 07:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Online',
fields=[
('id', models.AutoField(a... | [
"tobigface@gmail.com"
] | tobigface@gmail.com |
2ba938b829b5293d85393bdbabcce4e6f8a94016 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/game_control/AOGAS.py | d7b1cef8d85ccd796edb079ec9bcef0a8e803485 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 8,091 | py | # 2017.05.04 15:21:37 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/game_control/AOGAS.py
import time
import weakref
import BigWorld
import Event
from constants import AOGAS_TIME, ACCOUNT_ATTR
from debug_utils import LOG_ERROR, LOG_DEBUG
from enumerations import AttributeEnumItem, Enumeration
from... | [
"info@webium.sk"
] | info@webium.sk |
73268d8e78be08959b7a0ae204f64a99e367dc91 | ac47074bcf749273941ab01213bb6d1f59c40c99 | /project/multi_factor/alpha_model/exposure/alpha_factor_dividend_12m.py | 578ecd49441115d3a844ec792f25ce7045c363c4 | [] | no_license | xuzhihua95/quant | c5561e2b08370610f58662f2871f1f1490681be2 | c7e312c70d5f400b7e777d2ff4c9f6f223eabfee | refs/heads/master | 2020-05-19T17:04:08.796981 | 2019-04-24T02:50:29 | 2019-04-24T02:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | from quant.stock.date import Date
from quant.stock.stock import Stock
from quant.project.multi_factor.alpha_model.exposure.alpha_factor import AlphaFactor
class AlphaDividend12m(AlphaFactor):
"""
因子说明: 最近12月股息率, 根据最新财报更新数据
披露日期 为 最近财报
表明因子估值能力
"""
def __init__(self):
AlphaFactor.__i... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
49be6f19af78663962e559d4140c0414b52e4836 | b5644b71eade9abd62e3cd8747808b8edeea8ee1 | /movies/admin.py | 25365dac1ee29104521aa3d036714f35d6767529 | [] | no_license | HSx3/project_UBD | 68aa8dd1a3a2bf9c3523967a3c489a51c4bdac04 | fcc2b035dac07376ddb0e6c1eceb4544e3415455 | refs/heads/master | 2020-05-24T06:09:14.730903 | 2019-05-17T00:34:29 | 2019-05-17T00:34:29 | 187,133,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.contrib import admin
from .models import Movie, Genre, Actor, Director, Cast, Score
# Register your models here.
admin.site.register(Movie)
admin.site.register(Genre)
admin.site.register(Director)
admin.site.register(Actor)
admin.site.register(Cast)
admin.site.register(Score) | [
"hs.ssafy@gmail.com"
] | hs.ssafy@gmail.com |
7f23664b7bbc4be12bd5c23a8f685cf41f098106 | f6aac61a48a87743be9c40fecdc24344bae4d263 | /scripts/gfs/gfs2iemre.py | 062adac7a62c91781a649ef342cf23c96977f333 | [
"MIT"
] | permissive | akrherz/iem | 8714d99b371c8818f7cdde73dd24639e9fc7d42b | 178015584b7fb5b585f65be6013eaf16fb6db0c7 | refs/heads/main | 2023-08-19T02:58:24.507782 | 2023-08-18T12:08:31 | 2023-08-18T12:08:31 | 4,253,774 | 118 | 74 | MIT | 2023-09-14T18:28:41 | 2012-05-07T20:32:59 | Python | UTF-8 | Python | false | false | 6,702 | py | """Copy GFS grib data to IEMRE grid...
Run from RUN_50_AFTER.sh
"""
import shutil
import subprocess
import sys
from datetime import date, timedelta
import numpy as np
import pygrib
from pyiem import iemre
from pyiem.util import logger, ncopen, utc
from scipy.interpolate import NearestNDInterpolator
LOG = logger()
... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
875c0f821af2f07ad32cab2bdcedef57dd82e2a5 | a26ecf8a24ed20ed9ee4728fa189cc9168f4416b | /library/__init__.py | 09902a0aa53c4e5e72e8ac4cf82bc0737e8102b8 | [] | no_license | mfa/addition_seq2seq_allennlp | c3cf543c65a939aa33ed7aa74f9bf0457f913530 | e8176b33cd6ce375f13d9e720aa4d92a4f210912 | refs/heads/master | 2020-04-25T23:41:27.294094 | 2019-03-10T13:25:15 | 2019-03-10T13:25:15 | 173,153,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | from library.data import AdditionSeq2SeqDatasetReader
| [
"andreas@madflex.de"
] | andreas@madflex.de |
da325578a57f0f5949a3625ee61b64b1612a13c1 | 04f948d94cf288eafccf2b513078aeed77e3faef | /prof.py | a35159b88b3feed2074e0fcec867c1df8d0ddf85 | [
"Apache-2.0"
] | permissive | jdily/qpth | a9d0e5a662c407e6b6a92a25962040f0a2834ce8 | 296c01775ac82e7890aa688839f39fff6a6cb681 | refs/heads/master | 2021-01-21T12:58:33.373545 | 2017-05-16T15:02:12 | 2017-05-16T15:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,433 | py | #!/usr/bin/env python3
import argparse
import sys
import numpy as np
import numpy.random as npr
import qpth.solvers.pdipm.single as pdipm_s
import qpth.solvers.pdipm.batch as pdipm_b
import itertools
import time
import torch
import gurobipy as gpy
from IPython.core import ultratb
sys.excepthook = ultratb.Formatt... | [
"bamos@cs.cmu.edu"
] | bamos@cs.cmu.edu |
99c86317623eebc3408c6fbd9cbef298f9049dc0 | 7d1bd4868e4a9ef612003ba15e34bf247cf1a42c | /swp/manage.py | be1f3aa4f4e273d633e8263d8119311e124f02cd | [] | no_license | Student-Welfare-Portal/Web-App-Django | 45f7569ce1b5c67deb54231864a49017d2d86831 | f51b791aed2746fe525e4633c9538837a1a35585 | refs/heads/master | 2020-03-31T20:24:37.089227 | 2019-01-20T10:30:58 | 2019-01-20T10:30:58 | 152,539,070 | 0 | 6 | null | 2018-12-11T03:15:51 | 2018-10-11T06:04:02 | HTML | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "swp.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"="
] | = |
dc57e4b3c1c4954f61c5cb315bb48277c0c10ea5 | 42e85e88b8936942eb9e5ed068034c9579384586 | /pipeline_logic/omop/python/schemas.py | 7d87b889016dcae33fda3424b828096f1cafdd78 | [] | no_license | dr-you-group/Data-Ingestion-and-Harmonization | 55b634d8a7abe22cc7f06b3b0bce27467c6720ca | 145aec62daa5df450c94180d5252dd3bc23f0eae | refs/heads/master | 2023-08-25T15:25:59.934816 | 2021-10-07T15:27:07 | 2021-10-07T15:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,408 | py | from collections import OrderedDict
from pyspark.sql import types as T
from pyspark.sql.types import StructType, StructField
def schema_dict_to_struct(schema_dict, all_string_type):
field_list = []
for col_name, col_type in schema_dict.items():
if all_string_type:
field_list.append(StructF... | [
"stephanie.hong@jhu.edu"
] | stephanie.hong@jhu.edu |
3f6e2abacfeac461a57ba7a45a1cf5a7fed12415 | a275c7e4161c89ed3ee6289b75ad1d017634baab | /kontrollbank/pipelines.py | fb4ba7933de52e17d5cffd84c31fac2ff44fb0a5 | [] | no_license | SimeonYS/Oesterreichische-Kontrollbank-AG | c277d179aa41990458fbed76143fb48c0d8346d2 | f2aa83979c1faa52fdc18fb2802222af0de2d0e3 | refs/heads/main | 2023-04-18T01:17:55.803542 | 2021-04-29T06:34:11 | 2021-04-29T06:34:11 | 339,081,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
import sqlite3
class KontrollbankPipeline:
... | [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.com |
5a6eb0cb2eb972dee48c7e91616bf75ba288e65f | 101d866f8e2f84dc8f76181341180c13b38e0ecf | /utils/tes.py | 1937dc4f93ef482fe7fa346571d89d6792137995 | [] | no_license | cming091/autotest | 1d9a6f5f750c04b043a6bc45efa423f2e730b3aa | 0f6fe31a27de9bcf0697c28574b97555fe36d1e1 | refs/heads/master | 2023-06-02T18:22:24.971786 | 2021-06-21T08:52:47 | 2021-06-21T08:52:47 | 378,858,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,257 | py | import json
import requests
import logging
from utils import cfg
def register(warehouse_name):
url = cfg.G_CONFIG_DICT['base.url_base'] + '/tes/api/warehouse/register'
result = 'fail'
warehouseID = ''
try:
data = {
'userID': "111",
'warehouseName': warehouse_name,
... | [
"349152234@qq.com"
] | 349152234@qq.com |
50b9260ebbf8a1f583eaf4f101ca5bb2e43e63f0 | 99f9ecdb35c9927698f3a3e8b5864dd7f5b8aef7 | /thingsboard_gateway/connectors/request/request_uplink_converter.py | fd6b5b3a26888c39d5c2e9274c43f6f01eef19bd | [
"Apache-2.0"
] | permissive | luxiaosu/thingsboard-gateway | 43bd4af5f7944c68a403c8bdb125e7536e202c2b | 646bc6bb64a05aac8710c9a3e736db6ec8d5864b | refs/heads/master | 2023-07-30T13:23:18.783011 | 2021-10-07T15:41:20 | 2021-10-07T15:41:20 | 408,509,478 | 0 | 0 | Apache-2.0 | 2021-09-20T16:01:15 | 2021-09-20T16:01:14 | null | UTF-8 | Python | false | false | 810 | py | # Copyright 2021. ThingsBoard
#
# 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 ... | [
"ibarkov.ua@gmail.com"
] | ibarkov.ua@gmail.com |
19f06cd1078d337384ddc3da7c6e980f4f9cebf3 | 2328a25664cd427f2043164ad815698bbb021c34 | /ProfilerApp/ProfilerApp/__init__.py | 304131b26aa01fa05bbc7b96a95f61758190e504 | [] | no_license | Dishan765/Automated-Cybercrime-Profiling | 7f7f017c8d4614ddffd5f662dc7e279a8d40608e | 31a7f89be7a2ed06444bda7cb0ece52854d4e7e7 | refs/heads/master | 2023-07-04T19:35:07.333739 | 2021-08-21T19:44:41 | 2021-08-21T19:44:41 | 347,069,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from ProfilerApp.config import Config
from flask_mail import Mail
db = SQLAlchemy()
bcrypt = Bcrypt()
login_manager = LoginManager()
login_manager.login_view = 'users.login'
login_manag... | [
"you@example.com"
] | you@example.com |
65cdabf8faee54817569aebc2ce8097e24679139 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03089/s621337044.py | f7964c4a3f01cff6041508b36017d68bb3b4e4ed | [] | 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 | 178 | py | N=int(input())
*A,=map(int,input().split())
ans=[]
for a in A:
if len(ans)<a-1:
ans=[-1]
break
else:
ans.insert(a-1,a)
for x in ans:
print(x) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
40caab98def245cb3c4d05ebd2fc31b31a1ee555 | 8ca52d458dda5b1a557828003240942ed02e19d9 | /4_6_4.py | e5089bcc2e205cbdc7aabdf73f0bfe4462b4cd77 | [
"MIT"
] | permissive | rursvd/pynumerical2 | 48c8a7707c4327bfb88d0b747344cc1d71b80b69 | 4b2d33125b64a39099ac8eddef885e0ea11b237d | refs/heads/master | 2020-04-19T04:15:34.457065 | 2019-12-06T04:12:16 | 2019-12-06T04:12:16 | 167,957,944 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | n = 2
m = 3
for i in range(n):
for j in range(m):
print(i,j)
| [
"noreply@github.com"
] | rursvd.noreply@github.com |
d6ee7fda37973ff33a434afd1575004b50819c0a | 751d837b8a4445877bb2f0d1e97ce41cd39ce1bd | /codegolf/hello-world-rainbow.py | 0e86441c738f717c2150798dc6f368cbd9961c53 | [
"MIT"
] | permissive | qeedquan/challenges | d55146f784a3619caa4541ac6f2b670b0a3dd8ba | 56823e77cf502bdea68cce0e1221f5add3d64d6a | refs/heads/master | 2023-08-11T20:35:09.726571 | 2023-08-11T13:02:43 | 2023-08-11T13:02:43 | 115,886,967 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python
"""
Dealing with colors in non-markup languages often complicates things. I would like to see some variations of how color is used in different languages.
The object of this competition is to output 'Hello World' in the seven colors of the rainbow.
According to Wikipedia, these are the 7 color... | [
"qeed.quan@gmail.com"
] | qeed.quan@gmail.com |
a678ce0647f4fcc50b8dfa7d82c5c516efdabcc1 | 53262ee5b8437d208a80de997a8de5074a92426a | /root_numpy/tmva/__init__.py | 8286f5266882d4967b02669008fcb582b4da83cb | [
"BSD-3-Clause"
] | permissive | scikit-hep/root_numpy | bb2c7280a5e9e15df91c86ff3c6d9bfe3464c754 | 049e487879d70dd93c97e323ba6b71c56d4759e8 | refs/heads/master | 2023-04-07T11:25:50.080999 | 2023-01-06T17:57:30 | 2023-01-06T17:57:30 | 3,823,872 | 87 | 25 | BSD-3-Clause | 2021-02-27T10:02:21 | 2012-03-25T11:40:22 | Python | UTF-8 | Python | false | false | 544 | py | try:
from . import _libtmvanumpy
except ImportError: # pragma: no cover
import warnings
warnings.warn(
"root_numpy.tmva requires that you install root_numpy with "
"the tmva interface enabled", ImportWarning)
__all__ = []
else:
from ._data import add_classification_events, add_re... | [
"noel.dawe@gmail.com"
] | noel.dawe@gmail.com |
458dc8884ad6649d49359f7b856a3c5baf07039e | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /wicd/rev519-537/right-branch-537/wicd/wicd-client.py | 96cef4b2cc9a14ce6f3fefe19abd026d2c623630 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 25,485 | py | """ wicd - wireless connection daemon frontend implementation
This module implements a usermode frontend for wicd. It updates connection
information, provides an (optional) tray icon, and allows for launching of
the wicd GUI and Wired Profile Chooser.
class TrayIcon() -- Parent class of TrayIconGUI and IconConnectionI... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
b34289eaf185e4d32c68ce971ed745443c0712dd | 9c6837404b15c71ef13b0615701dbde49806ffa3 | /app/app.py | 48f35b56eba471c5966b68c407bbd4fabbf14d2f | [
"MIT"
] | permissive | gladunvv/send-messages-service | d43bd68af892aeb268e2f75b91756eaa5eed1976 | a467f2daab77feb5ad9c72e02d5aa12741fc20b7 | refs/heads/master | 2020-09-17T07:10:48.814024 | 2019-12-09T20:25:37 | 2019-12-09T20:25:37 | 224,031,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import flask
import os
app = flask.Flask(__name__)
app.config["DEBUG"] = True
import routes
if __name__ == "__main__":
app.run(debug=True)
| [
"bincha.1997@gmail.com"
] | bincha.1997@gmail.com |
50d49eda3d0f6a9bf8a2664a0489184a0a528b18 | efcd21234f3291e8fc561f49a7c88fc57a63e952 | /tartiflette/execution/nodes/variable_definition.py | d39c40f25262e260c7aa9a9a91e664a5891a9398 | [
"MIT"
] | permissive | tartiflette/tartiflette | 146214a43847d2f423bf74594643c1fdefc746f1 | 421c1e937f553d6a5bf2f30154022c0d77053cfb | refs/heads/master | 2023-09-01T02:40:05.974025 | 2022-01-20T14:55:31 | 2022-01-20T14:55:31 | 119,035,565 | 586 | 39 | MIT | 2023-09-11T07:49:27 | 2018-01-26T09:56:10 | Python | UTF-8 | Python | false | false | 2,799 | py | from functools import partial
from typing import Any, Callable
from tartiflette.coercers.inputs.compute import get_input_coercer
from tartiflette.coercers.literals.compute import get_literal_coercer
from tartiflette.coercers.variables import variable_coercer
from tartiflette.constants import UNDEFINED_VALUE
from tarti... | [
"raulic.maximilien@gmail.com"
] | raulic.maximilien@gmail.com |
0fac912558de9a1141bb62d3223f1aa8fd825e70 | 1b9075ffea7d4b846d42981b41be44238c371202 | /2008/devel/desktop/xfce4/goodies/xfce4-notifyd/actions.py | 0be89f389aad103384a5f9e18a9beb460910be54 | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure('... | [
"MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2"
] | MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2 |
4e078c68276aaed1c1699174d8b734d478bb44ce | ff85002de8fc3e8d38b96753f7358ea1dc8055af | /Infinite_sequence.py | 105c8cc00705bdc188dbf46bca2fbd0d97a61125 | [] | no_license | xlax007/Collection-of-Algorithms | d0ef8277e4f6dd5a27ed2a67bb720c3d867cbec9 | 4fe4d69f60b3b6f49624be135750f074216aacb9 | refs/heads/master | 2022-12-12T23:15:39.991983 | 2020-09-09T23:36:26 | 2020-09-09T23:36:26 | 294,251,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 9 20:27:27 2020
@author: alexi
"""
#https://codeforces.com/problemset/problem/675/A --- Alexis Galvan
def infinite_sequence():
numbers = list(map(int, input().split()))
if numbers[0] == numbers[1] or (numbers[0]+numbers[2]) == numbe... | [
"noreply@github.com"
] | xlax007.noreply@github.com |
ac8d7504a26caa742184cb8d3821d953144997fa | 6847e4c855a76b9d5ed04879394adcebdb0467e1 | /fssp/migrations/0005_remove_request_response.py | 19c9061ec91e08f5c78513c05939bd8d3b7ef84a | [] | no_license | i7ionov/knd | 954227c78043841ac402b76121e0194f608f35b6 | 3f8ecd488454cedea4da3b4f72869c1dbcb24112 | refs/heads/master | 2023-06-04T08:30:22.596221 | 2021-07-02T10:52:35 | 2021-07-02T10:52:35 | 372,376,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # Generated by Django 2.2 on 2021-04-26 12:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fssp', '0004_request_token'),
]
operations = [
migrations.RemoveField(
model_name='request',
name='response',
),
]... | [
"ivsemionov@iggn.permkrai.ru"
] | ivsemionov@iggn.permkrai.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.