blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
883a6c20e7944bbab06ab0137f5b161f3a652d38 | 9f5bc6d70835e32a02364766b406d0cc08e45692 | /hello_dj/music/views.py | 986db014c229efe440662c4a77e9f5c3b977a2c1 | [] | no_license | zx490336534/learn_django | f206f13901a4c177bc78629b839da0b947764927 | 78274ccdb5d97b0576fa893a119dc60369300be2 | refs/heads/master | 2020-04-03T16:39:07.325023 | 2018-11-23T13:59:38 | 2018-11-23T13:59:38 | 155,413,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'music/music_index.html',
context={'str': 'LIST',
'format_string': '%Y年%m月%d日 %H:%M:%S',
'ls': [1, 2, 3],
'tp... | [
"490336534@qq.com"
] | 490336534@qq.com |
9a99affd9330d2197cca6838b31c5b0ee9a601f9 | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/quest/q38997s.py | 70187343f30d734e3f2f0de50048ea1ff1017575 | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 906 | py | # 410000002
MOONBEAM = 3002100
sm.setSpeakerID(MOONBEAM)
sm.sendNext("Let's start with #b[Fox Trot]#k. If you really do have ears, perk them up for this!")
sm.sendSay("#b[Fox Trot]#k is super helpful when you want to move quickly or get close to an enemy. You're way too slow to catch prey, so you need all the help you... | [
"mechaviv@gmail.com"
] | mechaviv@gmail.com |
1fef7a4826a9cfda2ae498faf73994059b0b0e6c | 097dda217c3d31b69cb309369dc0357fe0f229ab | /app/customadmin/mixins.py | 2a50cfaa427fe7b145bd481d88229b25ee87aa49 | [] | no_license | Jaycitrusbug/book-python | 57a96ee343eee5b63ca5f7ee2461db82426321b5 | b5a4de74c9114546ee03b8aa5de1381719ddf74e | refs/heads/master | 2023-06-20T01:52:29.484415 | 2021-07-16T13:06:05 | 2021-07-16T13:06:05 | 386,638,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,461 | py | # -*- coding: utf-8 -*-
from django.contrib import messages
from django.contrib.auth import get_permission_codename
from django.core.exceptions import ImproperlyConfigured
from django.shortcuts import redirect
# -----------------------------------------------------------------------------
class SuccessMessageMixin(... | [
"jay.citrusbug@gmail.com"
] | jay.citrusbug@gmail.com |
ab44c61a08bafb6bc721cd98b410a587695b4f8f | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_MovingAverage_Seasonal_Second_ARX.py | c958c960f5731fcc823ea172e5b07cbf2c2a8f40 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 166 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Anscombe'] , ['MovingAverage'] , ['Seasonal_Second'] , ['ARX'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
aceb6eae41948f7ba22172a460aa667e1dff7b03 | 4656c9b22bee48b4156eb3524bab3215a1993d83 | /packages/gui/assets_widget/assets_item.py | 1d0fb14b51071fdc41de479eeca1fa77a8ee7819 | [] | no_license | mikebourbeauart/tempaam | 0bc9215de0d967788b3c65b481a5fd3c7153dddc | c2582b5cc1fc45042c5b435f703786d7c04a51a2 | refs/heads/master | 2021-03-27T10:35:43.378899 | 2018-09-06T04:46:18 | 2018-09-06T04:46:18 | 120,359,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from Qt import QtWidgets
class AssetsItem(QtWidgets.QTreeWidgetItem):
def __init__(self, *args):
QtWidgets.QTreeWidgetItem.__init__(self, *args) | [
"borbs727@gmail.com"
] | borbs727@gmail.com |
7bee31495c45a466373e68c775248f9c546b3a6c | d1b3c9e1055bc759f5fba8379570ddc20cf4caa5 | /Saver.py | 778690ec07d95b39c92c0776b8afd32ca1b8562c | [] | no_license | woolpeeker/bet365_data | 309b38245c77d9f9387c7d946dbb8410c4c84bc6 | 4cb920095f98faf220c74125d39ccdfe84229ee3 | refs/heads/master | 2020-03-29T22:48:40.234365 | 2018-12-14T03:41:42 | 2018-12-14T03:41:42 | 150,441,477 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,069 | py | import datetime
import traceback
import pymysql
from utils import get_logger
sql_cmd = {
'create_table': "CREATE TABLE inplay ( \
id int NOT NULL AUTO_INCREMENT, PRIMARY KEY (id),\
insert_time datetime NOT NULL, \
crawler varchar(255), \
fp char(255) NOT NULL, \
league char(255), date Date NOT NULL, \
team_... | [
"luojiapeng1993@gmail.com"
] | luojiapeng1993@gmail.com |
cc82fb1b7b8286a21e86fe57bd1cbeba056b0bbe | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/algo_cases/第9章/9_4.py | 1b8b02fc6a55727dfa928a539382f6f384f9e3db | [
"CC-BY-NC-SA-4.0",
"Apache-2.0"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 1,001 | py | class Solution:
def findnum(self, nums):
def func(low,high):
if low==high:
return nums[low]
mid=low+(high-low)//2
head=func(low,mid)
tail=func(mid+1,high)
if head==tail:
return tail
head_count=sum(1 for i... | [
"hudalpf@163.com"
] | hudalpf@163.com |
4fce15cbe97195207d61da778af98e7e72d75477 | e3a25b40812b6b70f10b52a6f66f9348dcc251a6 | /algorithm/0327야자/장기.py | 5c72cba9ab087f171a914be70dab9629329ed05f | [] | no_license | yoonwoo123/python101 | 75643cb5dcf411c9ddcf988bf09bb88e4523206c | 637dce64a6320a6f46eb941e33e8e9f6ee41c910 | refs/heads/master | 2020-04-14T11:30:43.018126 | 2019-07-25T08:28:31 | 2019-07-25T08:28:31 | 163,815,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import sys, collections
sys.stdin = open("장기_input.txt")
dx = [-2, -1, 1, 2, 2, 1, -1, -2]
dy = [1, 2, 2, 1, -1, -2, -2, -1]
def BFS(x, y, cnt):
global res
que = []
que.append([x, y, cnt])
arr[x][y] = 1 # 방문체크
while que:
x, y, cnt = que.pop(0)
cnt += 1
for i in range(8):
... | [
"lkkjasd@korea.ac.kr"
] | lkkjasd@korea.ac.kr |
df6ab93663cc3b77221a50587f2e67a918d035eb | a977365234cad283d9f3edc022976a70501c1c41 | /API-Auto/testCase/salesman/test6_20case.py | 2c0fd2d7a472932f5ba3de597609b5174e6782ca | [] | no_license | quqiao/hezongyy | 849f2b9c8a4db562bde5e415ef012ff29c704fd8 | cde6805ada979afe0b24911f8c5d0977cfd92e5a | refs/heads/master | 2021-08-16T10:20:12.618268 | 2020-07-23T09:09:07 | 2020-07-23T09:09:07 | 205,772,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,687 | py | import json
import unittest
from common1.configHttp import RunMain
import paramunittest
import geturlParams
import urllib.parse
# import pythoncom
import time
import readExcel
# pythoncom.CoInitialize()
# url = geturlParams.geturlParams().get_Url1_3() # 调用我们的geturlParams获取我们拼接的URL
login_xls = readExcel.readExcel().ge... | [
"553248560@.com"
] | 553248560@.com |
d3f0da288b31dd9c16b761b157afff6e6a2e560e | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_Reckon_sheep.py | 53fe372642f8e0798c770f04c5611f190c3b4e98 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 502 | py | def count_sheep(n):
if n == 0:
return "INSOMNIA"
all_digits = set()
for i in range(0,10):
all_digits.add(i)
digits = set()
total = 0
prev = 0
while digits != all_digits:
prev = total
total += n
for i in str(total):
digits.add... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
fc995d5b1e327ff5d62745113f22f6ee8701faf7 | 57db61160494659af43ee255d1e6ab2af6617114 | /ultron-api/advantages/migrations/0001_initial.py | 4896f942309121a367273a44dde8b46f7ed02bb3 | [] | no_license | gloompi/ultron-studio | fc667d563467b386a8dec04a6079e7cdcfedc5a7 | ec2ae8051644df2433b931c7e0228e75eaf20990 | refs/heads/master | 2023-06-25T19:22:45.119315 | 2019-12-08T05:53:02 | 2019-12-08T05:53:02 | 226,545,035 | 0 | 0 | null | 2023-06-10T00:22:15 | 2019-12-07T16:44:16 | JavaScript | UTF-8 | Python | false | false | 1,345 | py | # Generated by Django 2.2.3 on 2019-08-01 16:57
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AdvantagesSectio... | [
"gloompi@gmail.com"
] | gloompi@gmail.com |
3f48495450dbab8a40f102e8fcf7f50b74aa16e7 | f8777c76ec7c8da686c72a2975c17bbd294edc0e | /eden/integration/fsck_test.py | 25fa242bb4141942126412262227e4313e8399cf | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | jmswen/eden | 3a8e96bf0fbbf6c987f4b17bbd79dcbe0964c033 | 5e0b051703fa946cc77fc43004435ae6b20599a1 | refs/heads/master | 2020-06-06T06:08:28.946268 | 2019-06-19T04:45:11 | 2019-06-19T04:45:11 | 192,659,804 | 0 | 0 | NOASSERTION | 2019-06-19T04:43:36 | 2019-06-19T04:43:36 | null | UTF-8 | Python | false | false | 6,885 | py | #!/usr/bin/env python3
#
# Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f29c393fb5d26ef7471da24846610d659313a979 | 44c29ed593d91919752ba251eb328330cfa8ea79 | /logstash/urls.py | f2d42066d18134332b2391b397b6f446f7ef8507 | [
"MIT"
] | permissive | Azimut-Prod/azimut-gestion | 51b21732815a6f9dbe1d15baef746c777469c601 | fafb30599a26cd89cbe34bbf53179c2cfe0d5cb7 | refs/heads/master | 2020-12-24T14:26:51.160788 | 2014-10-02T17:34:15 | 2014-10-02T17:34:15 | 13,557,198 | 0 | 2 | null | 2014-06-20T07:56:43 | 2013-10-14T09:21:32 | Python | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
urlpatterns = patterns(
'logstash.views',
url(r'^$', 'file_list'),
url(r'^(?P<pk>[0-9]*)/show/$', 'file_show'),
url(r'^(?P<pk>[0-9]*)/edit/$', 'file_edit'),
url(r'^(?P<pk>[0-9]*)/delete/$', 'file_delete'),
url(r'^(?P<name>.*... | [
"maximilien@theglu.org"
] | maximilien@theglu.org |
4b4294d9cc6ed233881c46938df6a8a067bee583 | e146d44875fb44a13b3b004604694bccaa23ddf2 | /docs/Amadeus-master/pactravel-master/python-client/test/test_restricted_rate.py | 477739ad7b3413811f0c07b2ffdbd8a05be8093f | [] | no_license | shopglobal/travel | 8d959b66d77f2e1883b671628c856daf0f3b21bb | 0c33467cd2057da6e01f9240be2fd4b8f5490539 | refs/heads/master | 2022-12-23T00:13:02.597730 | 2017-09-26T06:03:15 | 2017-09-26T06:03:15 | 104,405,869 | 0 | 0 | null | 2022-12-08T00:35:36 | 2017-09-21T22:43:23 | PHP | UTF-8 | Python | false | false | 951 | py | # coding: utf-8
"""
Amadeus Travel Innovation Sandbox
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
imp... | [
"president@worldvaporexpo.com"
] | president@worldvaporexpo.com |
1638e7347594a5b77e8ede5907e8984e480a8384 | 320bd873b6cf5db2fc9194cc4ad782a49373d6ee | /page/base_page.py | 7753eaa01b0d7f8d3fee1fec5a4453ad2c0757e7 | [] | no_license | donniezhanggit/AppiumDemo8_Android | 7b0aed903969e2101330b5da4e89c39e3d591723 | 7a2ed3be27ed6cb27bd4e30e13d48cc8f34aa654 | refs/heads/master | 2020-09-13T17:35:33.749237 | 2019-03-10T10:04:46 | 2019-03-10T10:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | from appium.webdriver import WebElement
from appium.webdriver.common.mobileby import MobileBy
from lxml.html import Element
from selenium.webdriver.common.by import By
from driver.Appium import Appium
from lxml import etree
class BasePage(object):
def __init__(self):
pass
@classmethod
def byAndr... | [
"seveniruby@gmail.com"
] | seveniruby@gmail.com |
913718a80453266c1a4049cef48c9a4760dc651f | 0fd92b7d882a1edb5542f6600bb177dcad67ed50 | /powerful104/1003.py | 37f52fb9dbd627a8706e69ccc3234286a7f874e4 | [] | no_license | alpha-kwhn/Baekjun | bce71fdfbbc8302ec254db5901109087168801ed | f8b4136130995dab78f34e84dfa18736e95c8b55 | refs/heads/main | 2023-08-02T11:11:19.482020 | 2021-03-09T05:34:01 | 2021-03-09T05:34:01 | 358,347,708 | 0 | 0 | null | 2021-04-15T17:56:14 | 2021-04-15T17:56:13 | null | UTF-8 | Python | false | false | 340 | py | def fibo(n):
fn = 0
fn1 = 1
ans = fn1
for _ in range(n - 1):
ans = fn + fn1
fn = fn1
fn1 = ans
return ans
num = int(input())
for _ in range(num):
n = int(input())
if(n==0):
print(1,0)
elif(n==1):
print(0,1)
else:
prin... | [
"noreply@github.com"
] | alpha-kwhn.noreply@github.com |
136b32274f21e8d126ad13eadf2f5747cf24e7c9 | 99ef323acf05ae8c76f8ade8d2fe03d455c00302 | /tmp/fast_sufarr.py | 2ecb40e3773710a7258987394d63227cc5d35d3f | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | kcarnold/suggestion | b166fd3d986eace138a9d6c877ee4f71d94a796a | 27650cbf724b77361f8f4e609774ecb9bcf9e3c9 | refs/heads/master | 2021-01-13T15:24:43.195938 | 2018-12-21T23:02:31 | 2018-12-21T23:02:31 | 76,397,078 | 1 | 0 | null | 2017-02-21T16:19:02 | 2016-12-13T20:48:02 | Python | UTF-8 | Python | false | false | 5,235 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 20 14:48:33 2017
@author: kcarnold
"""
import numpy as np
from suggestion import suggestion_generator
import kenlm
import tqdm
#%%
def sizeof_fmt(num, suffix='B', units=None, power=None, sep='', precision=2, sign=False):
prefix = '+' if sign and num > 0 else ''
... | [
"kcarnold@alum.mit.edu"
] | kcarnold@alum.mit.edu |
87f02715b690985909049acdc08e8c98984300e1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_259/ch89_2020_05_06_17_38_05_834845.py | e551edeb3e60c84128b1bced37b853fd9b3307c6 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | class Circulo:
def __init__(self,centro,raio):
self.centro = p1
self.raio = numero
def Contem(self,ponto):
if ((self.centro.x-ponto.x)**2+(self.centro.y-ponto.y)**2)**0.5 < self.raio:
return True
return False | [
"you@example.com"
] | you@example.com |
250a4740724dde3382658dc89f01f5972e1f4cd5 | 8b5e9766ca9e2a3457e921f8fda0649b4f4019b5 | /src/pytest_benchmark/histogram.py | 99ed4eacc97952485d642a06d049181befa89fde | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | stanislavlevin/pytest-benchmark | b53b111c20a32f8d8bc4d32a3556740ed0012d96 | e6d9b63468319ec87504f6c81592826ee242887b | refs/heads/master | 2020-04-12T09:58:10.103228 | 2018-11-23T15:45:59 | 2018-11-25T04:03:23 | 162,414,447 | 0 | 0 | BSD-2-Clause | 2018-12-19T09:30:34 | 2018-12-19T09:30:33 | null | UTF-8 | Python | false | false | 3,478 | py | from collections import Iterable
import py
from .utils import TIME_UNITS
from .utils import slugify
try:
from pygal.graph.box import Box
from pygal.style import DefaultStyle
except ImportError as exc:
raise ImportError(exc.args, "Please install pygal and pygaljs or pytest-benchmark[histogram]")
class C... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
fe32a7e6d3393931c7e334cc368e537008db42c1 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/securityinsight/azext_sentinel/aaz/latest/sentinel/entity_query/template/__cmd_group.py | 91049c1fe8f891761c3c334396713083e30a9df8 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 648 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
fd0fee403e8525c2faf6875daec96b184ed9db55 | 3f658c0098a66015840bd9d631987e6b937bb300 | /53.Flask_CafeWifi/main.py | 3e74bc359eee40baaa9c1fc79e03690a38a78d0a | [] | no_license | RohitPr/PythonProjects | 4cf7ec37cfba60afecc88ae542cc4155b72f4098 | 7dd807a45cd86cf0851cb95a1b1433805891f990 | refs/heads/main | 2023-06-01T06:42:40.147968 | 2021-06-13T00:57:05 | 2021-06-13T00:57:05 | 337,298,986 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | from flask import Flask, render_template, redirect, url_for
from flask_bootstrap import Bootstrap
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, DateField
from wtforms.fields.core import SelectField
from wtforms_components import TimeField
from wtforms.validators import DataRequired... | [
"bladekiller95@gmail.com"
] | bladekiller95@gmail.com |
46a2c839cd2adda1f78de52d264f9c9633dcced1 | eeeb97414f4182c373ba95e53353adb187bd3b0e | /app/main/views.py | 7272292e11c4878121ddde53a29021f4db377abc | [
"MIT"
] | permissive | tharcissie/pitchapp | 02ad1aad01a751c6bc3ddaa32e1c7bc7fd511e92 | c5c734694f7b68342db5e07e6312ed8605696263 | refs/heads/master | 2023-02-07T07:41:15.065913 | 2020-12-21T06:50:56 | 2020-12-21T06:50:56 | 316,588,283 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,124 | py | from flask import render_template, redirect, url_for,abort,request
from . import main
from flask_login import login_required,current_user
from ..models import User,Pitch,Comment,Upvote,Downvote
from .form import UpdateProfile,PitchForm,CommentForm
from .. import db,photos
@main.route('/')
def index():
pitch = Pitc... | [
"tharcissieidufashe@gmail.com"
] | tharcissieidufashe@gmail.com |
458015465088494352355186a88764a734c45216 | 234886b79094aa9905a4d44a5167b748c88e7961 | /nod32-2.py | 9777fd2516a205c1bf934bb15f489c493c391919 | [] | no_license | rurigeo/python | 929d3bde7dc90e38ce396831de8d6d016e5a9828 | 31a46533020fb716673e2464f573b2e15f364116 | refs/heads/master | 2021-01-01T17:42:05.071824 | 2015-01-05T03:56:42 | 2015-01-05T03:56:42 | 28,733,277 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #! /usr/bin/env python
# coding=utf-8
import urllib2
response = urllib2.urlopen('http://www.nod32jihuoma.cn/')
html = response.read()
with open('test','wb') as f : f.write(html)
f = open('test','rb')
for line in f:
#print line.decode('utf-8').rstrip()
if line.rstrip().startswith('<p>用户名'):
pri... | [
"you@example.com"
] | you@example.com |
b7eb06bd358d82f342e1a9fdbfe3a27e4a171857 | 494b763f2613d4447bc0013100705a0b852523c0 | /dnn/ex05_overfittingCheck.py | 9a0575cd56b68bdd68c4c397529f18b80d6362aa | [] | no_license | DL-DeepLearning/Neural-Network | dc4a2dd5efb1b4ef1a3480a1df6896c191ae487f | 3160c4af78dba6bd39552bb19f09a699aaab8e9e | refs/heads/master | 2021-06-17T05:16:22.583816 | 2017-06-07T01:21:39 | 2017-06-07T01:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | #-*- coding: utf-8 -*-
''' Import theano and numpy '''
import theano
import numpy as np
execfile('00_readingInput.py')
''' set the size of mini-batch and number of epochs'''
batch_size = 16
nb_epoch = 50
''' Import keras to build a DL model '''
from keras.models import Sequential
from keras.layers.core import Dense A... | [
"teinhonglo@gmail.com"
] | teinhonglo@gmail.com |
2b6473bd7bb963c995ddf41427e148de56526422 | a59ec95fddc064ea9a554ad41e4ac8e82376701a | /xadmin/demo_app/repurchasearea/migrations/0002_sale.py | 02ff589f4ecd5b0fac9b11243a3304b878169813 | [
"BSD-3-Clause"
] | permissive | Nicholas86/PythonDemos | 449c08713c7c03633719a4ae7287b127783d7574 | 4f06639cc65a5e10cc993335d3d34e2d60aac983 | refs/heads/master | 2021-01-22T21:07:11.457179 | 2017-08-18T06:40:44 | 2017-08-18T06:40:44 | 100,681,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-17 10:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0007_address_user_id'),
('repurchasearea', '0... | [
"970649831@qq.com"
] | 970649831@qq.com |
bb73d12a82c820135bba274b472bb02a2b25b8f0 | 9262e23dcff032dbbd05d724435d473778f47417 | /pywind/ofgem/StationSearch.py | cbb1acba5bd013e9b00481dfeda6c4be303982cf | [] | no_license | mseaborn/pywind | c825bd6c32db226a10a1389a6fd9e1e28656438a | ca89a305cdcfd56891afce33a0613208f1080ead | refs/heads/master | 2020-07-10T05:37:36.666758 | 2016-01-03T17:04:28 | 2016-01-03T17:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | # coding=utf-8
#
# Copyright 2013-2015 david reid <zathrasorama@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"zathrasorama@gmail.com"
] | zathrasorama@gmail.com |
3ae79867f0f0711e57ceb1c0cedc23de74baf1d0 | 54277288865f738e44d7be1d6b41b19c63af267e | /pyvrl/datasets/frame_samplers/uniform_sampler.py | e5263cac4c5dfcdf043d1b756c2e3cb0057d981c | [] | no_license | scenarios/SR-SVRL | 7b41d29e16cff3020f333efc28a624d85bba4537 | 26e89ecb29355635b10a355f2f16f1b5db9c4e9b | refs/heads/master | 2023-02-26T06:16:13.314491 | 2021-01-30T16:30:57 | 2021-01-30T16:30:57 | 307,295,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import numpy as np
import random
from typing import List, Union
class UniformFrameSampler(object):
def __init__(self,
num_clips: int,
clip_len: int,
strides: Union[int, List[int]],
temporal_jitter: bool):
self.num_clips = num_clips
... | [
"zyz0205@hotmail.com"
] | zyz0205@hotmail.com |
bef650bd59c2153082ed917c021d96d1a21834a3 | 786232b3c9eac87728cbf2b5c5636d7b6f10f807 | /Leetcode/medium/130.py | f3efee7f4cf1148a224934ce604343805b35df73 | [] | no_license | luoyanhan/Algorithm-and-data-structure | c9ada2e123fae33826975665be37ca625940ddd4 | fb42c3a193f58360f6b6f3b7d5d755cd6e80ad5b | refs/heads/master | 2021-12-22T15:45:28.260386 | 2021-12-02T03:08:35 | 2021-12-02T03:08:35 | 251,007,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | class Solution:
def solve(self, board) -> None:
if not board:
return
rows = len(board)
cols = len(board[0])
def dfs(board, i, j):
if i < 0 or i >= rows or j < 0 or j >= cols or board[i][j] != 'O':
return
board[i][j] = '#'
... | [
"707025023@qq.com"
] | 707025023@qq.com |
9be1ccf4fb9057ff69eb200527dba9ac9462a585 | 6b9888a32733bc9d67f290cd006fb4dca84bcaf1 | /users/admin.py | ad1d88cde2247208a9212ee198fc22f718c790b8 | [] | no_license | Shatki/TanyaSite2.7 | a2008257a63134411139594c54473e88f21df8c0 | 69c7d6516d3d28dbe9370d94aacce0ac04070822 | refs/heads/master | 2020-04-30T02:31:10.274659 | 2019-03-27T19:41:59 | 2019-03-27T19:41:59 | 176,562,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import forms
from .models import User, Feedback
class UserCreationForm(forms.UserCreationForm):
class Meta:
model = User
fields = (
'user... | [
"Shatki@mail.ru"
] | Shatki@mail.ru |
509047a9ed74a663ba2172533a3ff084bfe7d217 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/list_image_tag_request.py | 90185a5e2726fddf941f3db5190f683b70ee737d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,316 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListImageTagRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribut... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8ee63e735b089b79918fd1a7e922e8c9e2efe5dd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_017/ch19_2020_09_30_19_20_44_293987.py | ddb89c04d24c9ab8a2235c3a4071ba046f6c3af0 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | def classifica_triangulo(a,b,c):
if a == b and b==c:
return "equilátero"
elif a == b and a != c or a==c and a!= b or b==c and b!=a:
return "isósceles"
else:
return "escaleno"
| [
"you@example.com"
] | you@example.com |
d2ffd9a8a0f8818b36082eb7be20047d65ee079e | 309556112e15b2b79c2e857d495d3f363a9f8c69 | /Python/GA_Class/6_logreg/example_logreg.py | d585a00b18074293f31e9f2431aeda4d7a7daddb | [] | no_license | karoljohnston/data-analysis-examples | 0aeefd8bc0780c0cc6135352a79605ac68484afd | fbd46483072bf544102bc5c02917743c5a3bb976 | refs/heads/master | 2023-03-17T15:09:29.290959 | 2016-03-22T12:15:53 | 2016-03-22T12:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | """ Logistic Regression is a type of probabilistic statistical classification
model used to predict a binary response from a binary predictor
* We use Linear Regression for a response that is continuous and binary for
one that is 0 and 1's, like alive or dead
* Used for predicting the outcome of a categorical... | [
"William.Q.Liu@gmail.com"
] | William.Q.Liu@gmail.com |
c015ef847a2a849a4f5d0fbfe324e61baf9638bf | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1071.004-1.py | 6a6eff49b2d77503a64c7522e67acc60bc7209ce | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'CommandControl/T1071.004-1'
self.controller_type = ''
self.external_id = 'T1071... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
c345aa80414650ac554092489ed0ab72952bae22 | eef659a707d87e979741cc11ad59344c911790f5 | /cc3/billing/migrations/0039_auto_20160907_1252.py | 99d7ee5b8028f8e281c4179cfbb988998ba510f3 | [] | no_license | qoin-open-source/samen-doen-cc3 | 1e5e40a9b677886aa78f980670df130cbbb95629 | 8b7806177e1e245af33b5112c551438b8c0af5d2 | refs/heads/master | 2020-05-04T02:26:07.039872 | 2019-04-02T21:19:54 | 2019-04-02T21:19:54 | 178,926,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billing', '0038_auto_20160907_1132'),
]
operations = [
migrations.AlterModelOptions(
name='transactionparams',
... | [
"stephen.wolff@qoin.com"
] | stephen.wolff@qoin.com |
b1789fc9bfd8eb03b63cd55618176bb3246ad504 | 8e90afd3f0dc945d9ebd6099a60094807c0067cf | /Kangho/pro_four_rules_calculation.py | 152ba821a381a63c190ada513f227f36378c3783 | [] | no_license | Deserve82/KK_Algorithm_Study | ffa109e02f1c9297597c9e07c7c3006628046740 | d3ec01b66d6e3852b7d68adaa8ba87c7e9617e24 | refs/heads/master | 2021-11-10T00:23:30.711422 | 2021-10-23T02:37:04 | 2021-10-23T02:37:04 | 231,358,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | def solution(arr):
mx = [[None for i in range(len(arr))] for j in range(len(arr)) ]
mi = [[None for i in range(len(arr))] for j in range(len(arr)) ]
def mxdp(a, b):
if a == b:
mx[a][b] = int(arr[a])
mi[a][b] = int(arr[a])
if mx[a][b] != None:
return mx[a][... | [
"noreply@github.com"
] | Deserve82.noreply@github.com |
d261be900134a7888155a860a7ba078f36751b08 | 9efe15e39ffda8391abd5a63b95e441648ba57c2 | /event_service/app.py | b02fd16c6784654ca29e61e272a3ad7fd1c15105 | [] | no_license | TechAcademy-Azerbaijan/mini_microservice_app | 3af2f80047b9a945f07ac1d4c7dd5a01980169e0 | b06c13a7feac4b9f46ab1d3bed19e36a7de3cd4e | refs/heads/master | 2023-08-15T19:49:22.058966 | 2021-10-22T08:21:40 | 2021-10-22T08:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from flask import Flask
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
from routers import *
if __name__ == '__main__':
app.run(port=5002, debug=True) | [
"idris.sabanli@gmail.com"
] | idris.sabanli@gmail.com |
129bfd5b719f491ee5efb2dd5d38136c3627af9c | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/system_wide_roles/admin/forms.py | 7b0f8b93b9a1abffa55e9db24a5a78a83f9d01e9 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 180 | py | """
Forms used for system wide roles admin.
"""
from edx_rbac.admin import UserRoleAssignmentAdminForm
class SystemWideRoleAssignmentForm(UserRoleAssignmentAdminForm):
pass
| [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
3e071265284220746e3abe9cf746007211033a47 | fef0991726dad837245b206c1720cf8da894ef53 | /TestWindow/testExample.py | 584e5edfee3c325f2ad42403555dc4ea96cd8fd2 | [] | no_license | TianD/TianDao-git-Test | 95dfbc644e9802b548c8c95201400fce7acd9e19 | 99cfbb742acf04c242a34657495bfa67bcbb68cd | refs/heads/master | 2020-04-15T19:10:57.386454 | 2014-07-04T15:08:35 | 2014-07-04T15:08:35 | 21,501,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 359 | py |
#coding=utf-8
import sys
from PyQt4 import QtCore, QtGui
class MyWindow( QtGui.QMainWindow ):
def __init__( self ):
QtGui.QMainWindow.__init__( self )
self.setWindowTitle( "PyQt" )
self.resize( 300, 200 )
app = QtGui.QApplication( sys.argv )
mywindow =... | [
"tiandao_dunjian@sina.cn"
] | tiandao_dunjian@sina.cn |
68c58fbec15f59c374e2ad7ea1ea5561ce6410d6 | 885d3e4017d96ed9fd56545d95ad63895e6dc01d | /rootpy/utils/tests/test_cpp.py | 24e5b87907e9d4dfe79ad31dbfa0cee3d658cc29 | [
"BSD-3-Clause"
] | permissive | rootpy/rootpy | c3eb7f70d29e4779a0bda8356fb96922bb95537f | 3926935e1f2100d8ba68070c2ab44055d4800f73 | refs/heads/master | 2021-01-17T04:08:51.330059 | 2019-01-05T17:05:50 | 2019-01-05T17:05:50 | 3,276,014 | 159 | 60 | BSD-3-Clause | 2019-12-08T12:35:08 | 2012-01-26T18:05:37 | Python | UTF-8 | Python | false | false | 1,191 | py | from __future__ import print_function
import sys
from ROOT import MethodProxy
import inspect
from rootpy.utils.cpp import CPPGrammar
from rootpy.utils.extras import iter_ROOT_classes
from nose.plugins.attrib import attr
@attr('slow')
def test_cpp():
i = 0
num_methods = 0
for cls in iter_ROOT_classes():
... | [
"noel.dawe@gmail.com"
] | noel.dawe@gmail.com |
19ee67b228a24979c31aff0bd9900dd58e0f1895 | 23545a102f6f937d59d39f95c682235113599096 | /main/models.py | 13076268296cd7d4b761496e8643fb26509001f6 | [] | no_license | Adi19471/vsu-rating-2021 | 11e6204d86e28320ad505bdf77150011fd041ff9 | 3360abf7b024058c60ce4a8d80f98300048e4a2d | refs/heads/main | 2023-07-13T18:56:02.395628 | 2021-06-24T06:17:01 | 2021-06-24T06:17:01 | 379,822,363 | 0 | 0 | null | 2021-08-29T09:58:45 | 2021-06-24T06:11:43 | JavaScript | UTF-8 | Python | false | false | 1,209 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Movie(models.Model):
# fields for the movie table
name = models.CharField(max_length=300)
director = models.CharField(max_length=300)
cast = models.CharField(max_length=800)
description = models... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
313ef19914bc291335c072fdcf2d2a678887d9ff | 6c69b3229dc01621561330b67dca894799ea3804 | /PlantillaOpenGL.py | e479b259ec479cc2f03c41449ddd829dfdb32e91 | [] | no_license | DamianBurboa/PracticaCasa | 484cd86afd3890288c83c216cf24ceaee6afafa2 | 83222060594f0ff76d212a5214f0358387d22d71 | refs/heads/master | 2023-02-24T11:42:43.524122 | 2021-01-28T01:30:50 | 2021-01-28T01:30:50 | 333,610,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,207 | py | from OpenGL.GL import *
from glew_wish import *
import glfw
from math import *
def dibujarPasto():
glColor3f(0.427,0.819,0.321)
glBegin(GL_QUADS)
glVertex3f(-1.0,-0.6,0)
glVertex3f(1.0,-0.6,0)
glVertex3f(1.0,-1.0,0)
glVertex3f(-1.0,-1.0,0)
glEnd()
def dibujarSol():
glColor3f(0.921,0.89... | [
"you@example.com"
] | you@example.com |
afdd4a96f7bf490989dfa4d5e783bff6701247fa | 4d3999e06a63989cd4dc7fe928940e0ca533cbd4 | /test/test_inline_response20011.py | d78bbabcdfd3fc665194d388445a31299edf971d | [] | no_license | ribaguifi/orchestra-client-python | c8f1c4b9760c2df173222bb5bcaf73b231d2b4bb | a211f7f6c0353f4476176c6c2fed11a2be553db8 | refs/heads/main | 2023-06-03T00:28:57.108274 | 2021-06-22T12:22:28 | 2021-06-22T12:22:28 | 379,258,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import sw... | [
"santiago@ribaguifi.com"
] | santiago@ribaguifi.com |
50ba1c7ef8fbb7d9a24a7636649bee002763c5fa | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/validate_binary_search_tree/solution.py | 4b027255c5de04c726d305a51e41b228bcb44e00 | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def isValidBST(self, root: TreeNode) -> bool:
stack = []
prev_node = float('-inf')
w... | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
4974c067418ad8b5e155e0a7dcd40cd94d0f920c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_259/ch147_2020_04_08_17_39_35_490926.py | 1cb72ae4df13990fa8e046149c2139db0e4e5da0 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | def mais_frequente(lista):
ocorrencias = {}
for i in lista:
ocorrencias[i] = 0
for i in lista:
if i in ocorrencias:
ocorrencias[i]+=1
contadores = occorencias.values()
max = 0
for i in contadores:
for j in contadores:
if i>j:
max = ... | [
"you@example.com"
] | you@example.com |
6a5bce666dbf467bf0894436cd1fcb1414585edc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03127/s858089481.py | 6247fc003f271e8077da902951482327a7e441e4 | [] | 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 | 166 | py | n=int(input())
a=list(map(int,input().split()))
def gcd(x,y):
if y==0:
return x
return gcd(y,x%y)
ans=a[0]
for i in a:
ans=gcd(ans,i)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
063a2ab6fefbfe29cb136d4ed2c17a6cb71ffe90 | 5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e | /1094.py | fc044748f63df33ff98d34ab4b9de72e8658f50b | [] | no_license | junyang10734/leetcode-python | 035b12df3f7d9fc33553140d1eb0692750b44f0a | eff322f04d22ffbc4f9b10e77f97c28aac5c7004 | refs/heads/master | 2023-07-22T11:16:38.740863 | 2023-07-14T00:22:00 | 2023-07-14T00:22:00 | 189,197,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # 1094. Car Pooling
# Array / 差分数组
# 差分数组
# time: O(n)
class Solution:
def carPooling(self, trips: List[List[int]], capacity: int) -> bool:
maxD = 0
for n,f,t in trips:
maxD = max(maxD, t)
diff = [0 for _ in range(maxD+1)]
for n,f,t in trips:
diff[f... | [
"48000364+junyang10734@users.noreply.github.com"
] | 48000364+junyang10734@users.noreply.github.com |
d7e6712811fdf092b1950a8d0880765d318b7cd9 | 4e308e8bb7056f1fd6914777b38d98b18254867f | /DECOMPYLED/LV2_LX2_LC2_LD2/Params.py | a509f673e5d1e85d5e6b3c414e982b62497335bd | [] | no_license | bschreck/cuttlefish | 165aae651bf58c1142cc47934802a7a3614e39da | 0f44ccca0ebf1a6f78165001586fcb67b98b406a | refs/heads/master | 2020-05-19T23:07:11.520086 | 2014-02-25T05:26:18 | 2014-02-25T05:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # emacs-mode: -*- python-*-
AUTO_FILTER_PARAMS = {'LFO Sync Rate': 'LFO Synced Rate'}
AUTO_PAN_PARAMS = {'Sync Rate': 'Synced Rate'}
BEAT_REPEAT_PARAMS = {'Decay': 'Damp Volume',
'Pitch Decay': 'Damp Pitch',
'Volume': 'Wet Level',
'Repeat': 'Instant Repeat'}
EQ_FOUR_PARAMS = {'1 Filter On A': '1 Filter On',
'1 Freq... | [
"bschreck@mit.edu"
] | bschreck@mit.edu |
b844fe2134f61d12924df1dbdb2e53f8a9063706 | 6fbda2fa7d0741813b5141dfbae7fec76a471fc9 | /modal/popup/urls.py | ccd86b0fcb72169d2e0d2ea843b8b97b17ac1fc7 | [] | no_license | innotexak/Popup-in-Django | f31d1bb9539d38a6bba3b29b7a9e41c7a0187125 | bfefd0feb24eb7729de1cdc3aa4c23cdf75273c7 | refs/heads/master | 2023-03-09T13:56:38.891788 | 2021-03-01T14:36:09 | 2021-03-01T14:36:09 | 343,439,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from . import views
urlpatterns = [
path("", views.home, name ="home"),
path('signup/', views.SignUpView.as_view(), name='signup'),
path('login/', views.CustomLoginView.as_view(), name='login'),
]+ st... | [
"akuhinnocent2016@gmail.com"
] | akuhinnocent2016@gmail.com |
573e0d1262f5d6af7cbc0a4e35a0616f147502be | 2bb633b7b0590d64a1055fb9bf6fcd0e22701ef5 | /main/drive_MTM_study.py | 860ef499307487a32d38c12b2d05a12dd79a69a4 | [] | no_license | nag92/haptic_mtm | 2df0ed46ce284e6726d9352b89d7ba5f9d4b31e6 | 503858d98a395e7465ec12f46657586453d25c53 | refs/heads/master | 2022-04-07T06:29:39.937383 | 2020-02-28T00:02:08 | 2020-02-28T00:02:08 | 241,441,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,953 | py | from Tkinter import *
import rosbag
from datetime import datetime
import subprocess
import signal
import shlex
import rospy
from std_msgs.msg import Time
from std_msgs.msg import Empty
from geometry_msgs.msg import Pose, PoseStamped
import time
import os
import threading
class MTM_DRIVER:
def __init__(self):... | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
af8d982fa9c11c8549511d906334edf7a27dc55f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/284/109078/submittedfiles/minha_bib.py | 225e6592cfde216e2fee7b7f14605137fb56fb8b | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py |
import random
def solicitaSimboloDoHumano():
letra = 0
while not (letra == 'O' or letra == 'X'):
print('Qual símbolo você deseja utilizar no jogo? (X ou O) ')
letra = input().upper()
if letra == 'X':
return ['X','O']
else:
return ['O','X']
def sorteioPri... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e8f2a8f39ca3eda6c2fbc091779c75346d7c82a4 | 7bd9be7f25be80791f9220b62025f06170273293 | /front-plugins/mstatuses/src/event.py | 0a8fbb59dc5cf9f9aff2be3263775c0b94367aed | [] | no_license | cerebrohq/cerebro-plugins | ab46b4844adcb12c51d14e21f2c0d8b758b0bb57 | e2e0f97b548ef22957e13d614200027ba89215e0 | refs/heads/master | 2021-11-12T16:25:48.228521 | 2021-10-22T11:25:58 | 2021-10-22T11:25:58 | 143,178,631 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | # -*- coding: utf-8 -*-
import cerebro
import datetime
from cerebro.aclasses import Statuses
from cerebro.aclasses import Users
from cerebro.aclasses import AbstractMessage
report_status_name = 'pending review' # status after posting Report
review_status_name = 'in progress' # status after posting Review
client_revie... | [
"41910371+cerebroSupport@users.noreply.github.com"
] | 41910371+cerebroSupport@users.noreply.github.com |
0f92e21e1cee1331ff57006aa1afe38de3ff9f3d | 286769965e3f4a63753d96fb0bda6e1d85b0c569 | /harvest.py | 8ce22843f11462a883170a1151bbb1b4a0230cb2 | [] | no_license | Krysioly/Harvest-Lab | 2cf64829995c72eb798d31313b0567fc77307cee | b912a97b22c5fc2d2996cf7e75e1b3025fbcd13f | refs/heads/master | 2020-03-28T16:23:58.129249 | 2018-09-13T19:51:04 | 2018-09-13T19:51:04 | 148,690,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | ############
# Part 1 #
############
class MelonType(object):
"""A species of melon at a melon farm."""
def __init__(self, code, first_harvest, color, is_seedless, is_bestseller,
name):
"""Initialize a melon."""
self.pairings = []
self.code = code
self.fi... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
33643977282d87b0b7f0d9e84435de680a12464a | ab621c65fc91f5194c4032d68e750efaa5f85682 | /account_budget_activity/models/account_budget_summary.py | c0293bb5ce21aaffd2c726edb10d045d2fc83b59 | [] | no_license | pabi2/pb2_addons | a1ca010002849b125dd89bd3d60a54cd9b9cdeef | e8c21082c187f4639373b29a7a0905d069d770f2 | refs/heads/master | 2021-06-04T19:38:53.048882 | 2020-11-25T03:18:24 | 2020-11-25T03:18:24 | 95,765,121 | 6 | 15 | null | 2022-10-06T04:28:27 | 2017-06-29T10:08:49 | Python | UTF-8 | Python | false | false | 2,378 | py | # -*- coding: utf-8 -*-
from openerp import tools
import openerp.addons.decimal_precision as dp
from openerp import models, fields, api
class BudgetSummary(models.Model):
_name = 'budget.summary'
_auto = False
budget_id = fields.Many2one(
'account.budget',
string="Budget",
)
budge... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
ea9f1d44be60e436552ebd6088b3a92204b02381 | f8d5c4eb0244c4a227a615bc11c4c797760c3bec | /log/REINFORCEMENT_2017-11-23 01:19:24.645036/REINFORCE_cart_pole.py | c9cc30fc771a980cf4d433f5a4d099bed1fa9fbf | [] | no_license | SamPlvs/reinforcement_learning_pytorch | e9b84659f870d938814177f1288fa4a2eb152599 | ffb9e53eeff011c4d3d5933a60c2b65fdbb18e2a | refs/heads/master | 2020-03-23T04:08:51.778325 | 2018-01-16T22:36:48 | 2018-01-16T22:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | import torch
import gym
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
# import datetime
from REINFORCEAgent import REINFORCEAgent
# import random
# from torch.autograd import Variable
import signal
import utils.util as util
import os, sys, datetime, shutil
import utils.logger as logger
from date... | [
"kebai0624@gmail.com"
] | kebai0624@gmail.com |
0291a73ff7e829012f8dfc0c270e4538dbf177bd | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R3/benchmark/startQiskit_QC683.py | 68124f75e75ac6a9cc3004e511f0837184c87a77 | [
"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,662 | py | # qubit number=3
# total number=15
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f7cda2f1394a3ee632aec0355cfbb9862944735b | ec78979fd8479e884ab93d723360744db5152134 | /file-move-task1.py | 82398d6af3c6f1287df01f3e489cb86e09123314 | [] | no_license | xushubo/learn-python | 49c5f4fab1ac0e06c91eaa6bd54159fd661de0b9 | 8cb6f0cc23d37011442a56f1c5a11f99b1179ce6 | refs/heads/master | 2021-01-19T17:00:05.247958 | 2017-09-03T03:22:28 | 2017-09-03T03:22:28 | 101,032,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import os
from datetime import *
print('当前时间:', datetime.today())
dir_file = input('请输入所查路径:')
print('文件名 ','大小 ','修改时间 ', '创建时间')
for x in os.listdir(dir_file):
full_dir_file = os.path.join(dir_file, x)
mod_time = os.path.getmtime(full_dir_file) #获取文件修改时间
cha_time = os.path.getctime(full_dir_file) #获取文件创建时... | [
"tmac523@163.com"
] | tmac523@163.com |
b9eec62397c7f79c955d49c0b46f8fd41ced3917 | e7031386a884ae8ed568d8c219b4e5ef1bb06331 | /processor/migrations/0002_auto_20180913_1628.py | 45d0290b0812897f75230932fc52f99dfa1e0a97 | [] | no_license | ikbolpm/ultrashop-backend | a59c54b8c4d31e009704c3bf0e963085477092cf | 290fa0ecdad40ec817867a019bff2ce82f08d6fe | refs/heads/dev | 2022-11-30T21:49:17.965273 | 2020-09-24T10:16:12 | 2020-09-24T10:16:12 | 147,561,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Generated by Django 2.1.1 on 2018-09-13 11:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('processor', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='processor',
name='integrated_graphi... | [
"ikbolpm@gmail.com"
] | ikbolpm@gmail.com |
ef3543e6c47ae443673e0966415707b5c7a18f6c | 5f2103b1083b088aed3f3be145d01a770465c762 | /162. Find Peak Element.py | d52a25826c9f187eb02642488362b2153d4a0352 | [] | no_license | supersj/LeetCode | 5605c9bcb5ddcaa83625de2ad9e06c3485220019 | 690adf05774a1c500d6c9160223dab7bcc38ccc1 | refs/heads/master | 2021-01-17T17:23:39.585738 | 2017-02-27T15:08:42 | 2017-02-27T15:08:42 | 65,526,089 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # A peak element is an element that is greater than its neighbors.
#
# Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
#
# The array may contain multiple peaks, in that case return the index to any one of the peaks is fine.
#
# You may imagine that num[-1] = num[n] = -∞.
#... | [
"ml@ml.ml"
] | ml@ml.ml |
db9cd50f3aadca1b7aa8743f04df52bb8500e648 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_ragging.py | caeac9f2b2bb16f84f6163f1ccab0b4105891c5f | [
"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 | 223 | py |
from xai.brain.wordbase.nouns._rag import _RAG
#calss header
class _RAGGING(_RAG, ):
def __init__(self,):
_RAG.__init__(self)
self.name = "RAGGING"
self.specie = 'nouns'
self.basic = "rag"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
242fe20624e3d8037961ba02bdb58f7f241e70f3 | 487487954ce7b34b97a904be4082e5da5cfacec2 | /111 - [Dicionários] Dicionário ao Quadrado.py | 196171116d337553c2a4b528249b5ec6029ee31c | [] | no_license | rifatmondol/Python-Exercises | 62eae905793e4f747a51653fd823fe7aba49a3c3 | 5b5f3fa6bf34408ca9afa035604a79cf19559304 | refs/heads/master | 2022-01-19T02:07:10.940300 | 2018-12-26T18:07:17 | 2018-12-26T18:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | #111 - Define a function which can print a dictionary where the keys are numbers between 1 and 20
# (both included) and the values are square of keys.
#Hints:
#Use dict[key]=value pattern to put entry into a dictionary.
#Use ** operator to get power of a number.
#Use range() for loops.
dic = dict()
for i in range(... | [
"astrodelta14@gmail.com"
] | astrodelta14@gmail.com |
8d0ce9b1ef5e3b6c693faf33f8dbac726b2e6695 | d69361c62ba587b9666f39829afdc9ad8ed9e420 | /svm/svm.py | cc339ecafd0e26cb2994ff4a348ca8775d626ce9 | [] | no_license | ienoob/noob_ml | cd7dc184460344e1029631efd34ded0965e2bb48 | 6998d6e4e181e44ad3f0ca7cf971f16638d04ce4 | refs/heads/master | 2021-07-04T10:27:40.006224 | 2020-07-27T15:17:31 | 2020-07-27T15:17:31 | 129,582,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
svm 可以转化为二次规划问题,因此我们使用cvxopt, 优化计算包
hard margin
"""
import numpy as np
from cvxopt import matrix, solvers
A = matrix([[-1.0, -1.0, 0.0, 1.0], [1.0, -1.0, -1.0, -2.0]])
b = matrix([1.0, -2.0, 0.0, 4.0])
c = matrix([2.0, 1.0])
sol = solvers.lp(c,A,b)
print(sol['... | [
"jack.li@eisoo.com"
] | jack.li@eisoo.com |
72fa7896536b8eb0c0e4ac68879b393b1d8eb55e | c3432a248c8a7a43425c0fe1691557c0936ab380 | /21_06/21318_피아노 체조.py | 2ac7ef5cc09f9db10fd4aaedd83e2750eab32bd7 | [] | no_license | Parkyunhwan/BaekJoon | 13cb3af1f45212d7c418ecc4b927f42615b14a74 | 9a882c568f991c9fed3df45277f091626fcc2c94 | refs/heads/master | 2022-12-24T21:47:47.052967 | 2022-12-20T16:16:59 | 2022-12-20T16:16:59 | 232,264,447 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import sys
input = sys.stdin.readline
N = int(input())
arr = [0] + list(map(int, input().split()))
count = [0] * (N + 1)
for i in range(1, N + 1):
if arr[i - 1] > arr[i]:
count[i] = count[i - 1] + 1
else:
count[i] = count[i - 1]
for _ in range(int(input())):
x, y = map(int, input().split()... | [
"pyh8618@gmail.com"
] | pyh8618@gmail.com |
b84e4f89e4a5a239ea8d712e0f74b8bef791e17c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/14a30f4e97714ddc8d4a087e3b3fe203.py | 2df8a4dced86b19360b6f8f44dbe4d2408d9e2e4 | [] | 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 | 1,677 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(what):
""" exercise bob """
stating_something = ('Tom-ay-to, tom-aaaah-to.')
shouting = ('WATCH OUT!')
asking_a_question = ('Does this cryogenic chamber make me look fat?')
asking_a_numeric_question = ('You are, what, like 15?')
talking... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
5366df88285235633e44287a3950189650d383b1 | 2d9cea7839a900921850f2af1ccafc623b9d53b9 | /websecurityscanner/google/cloud/websecurityscanner_v1alpha/types.py | 594571c6551b0c0557820428c4ec53212cbc344e | [
"Apache-2.0"
] | permissive | smottt/google-cloud-python | cb28e8d59cc36932aa89e838412fe234f6c4498c | 2982dd3d565923509bab210eb45b800ce464fe8a | refs/heads/master | 2020-03-31T21:12:02.209919 | 2018-10-10T18:04:44 | 2018-10-10T18:04:44 | 152,571,541 | 0 | 1 | Apache-2.0 | 2018-10-11T10:10:47 | 2018-10-11T10:10:47 | null | UTF-8 | Python | false | false | 2,175 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | smottt.noreply@github.com |
691659c96bf52e69564c6ecb6e45aef25c446dad | ab0deb25919bcc71c1314a817097429063009364 | /tests/conftest.py | 5a05b92c97189d95238ceb1c91c9ae4ff89cb1b0 | [
"MIT"
] | permissive | spiritEcosse/panda | babecf3b4c72b3ddf78d967336547f1ce8728f40 | f81284bfd331a3eb24ce6e5a8adbaf9922fa07e2 | refs/heads/master | 2020-07-29T09:45:33.123744 | 2020-02-06T12:24:31 | 2020-02-06T12:24:31 | 201,935,610 | 0 | 0 | MIT | 2019-08-12T14:09:28 | 2019-08-12T13:26:57 | Python | UTF-8 | Python | false | false | 1,461 | py | import os
import warnings
import uuid
import django
location = lambda x: os.path.join(
os.path.dirname(os.path.realpath(__file__)), x)
def pytest_addoption(parser):
parser.addoption(
'--deprecation', choices=['strict', 'log', 'none'], default='log')
def pytest_configure(config):
os.environ.setde... | [
"shevchenkcoigor@gmail.com"
] | shevchenkcoigor@gmail.com |
2950e13658a7f32171eb003a46a7e20312cf93e7 | c85ec51b920350e095b6fc67435a490352cef1f4 | /goods/migrations/0011_auto_20171123_1905.py | c64ad543bd44f19a496033c50db30be361e4f006 | [
"Apache-2.0"
] | permissive | huachao2017/goodsdl | 195dbc959d424248982b61f2fe2c22dbc4347746 | 3616d53b90696a97a5d56a064e2a14d484b821d7 | refs/heads/master | 2021-06-11T01:55:16.235507 | 2019-09-24T07:49:08 | 2019-09-24T07:49:08 | 109,931,837 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-23 19:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0010_actionlog_traintype'),
]
operations = [
migrations.AlterField... | [
"21006735@qq.com"
] | 21006735@qq.com |
99fa6952d27fe8543059eb0ba864ec39c86bcbd7 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_3094.py | fbce41b739b90bf7443909681aa9ce1029fc56ab | [] | 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 | 167 | py | # How can I get 'urlpatterns = __import__(<string_name>)' to work like a normal import statement?
urlpatterns = __import__(project_urls).whateversubmodule.urlpatterns
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
284762867cc565f2e98d0cd20d8e708a667b0cbd | 8dfb45ef6c142bb25183339e6a13e06a14a86dbe | /kansha/comment/comp.py | 71e725244c85f4652c5b1310caff84edf4185a08 | [] | no_license | blugand/kansha | 04be2581fa0bf9d77898bc26f668e2febb78dac4 | 227d834596bd66b03c2fc78f7f65dee04116668a | refs/heads/master | 2021-01-15T10:35:52.144198 | 2015-11-24T09:29:21 | 2015-11-24T09:29:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | # -*- coding:utf-8 -*-
#--
# Copyright (c) 2012-2014 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
#--
import datetime
from nagare import component, security
from nagare.databas... | [
"romuald.texier-marcade@net-ng.com"
] | romuald.texier-marcade@net-ng.com |
807e79a4a73a139395c2af3d8c63d99759a161d1 | e7dd22eb03b914b1be39c0e46799857fac1d3f8a | /tests/log_generator.py | dae9a56cf64769986c40651a02254901a8875048 | [] | no_license | O-Swad/PyLog | f6d774636e059939fd449daaebe5f8e807ccb1cd | 360d86ef13b40622f7fb83eaf0c2dbea77d5dbc5 | refs/heads/main | 2023-06-03T20:38:04.986515 | 2021-06-26T16:41:47 | 2021-06-26T16:41:47 | 374,059,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | import time
import random
hours = 2
now_time = int(time.time()*1000)
last_time = now_time - 3600 * 1000 * hours # one day of data in milliseconds
hosts = ['everest', 'annapurna', 'lhotse', 'manaslu', 'dhaulagiri']
separator = ' '
counter = 0
with open('test-log-file.txt', 'a') as log_file:
for log_timestamp in r... | [
"="
] | = |
7ddbc340eb0394d89d0c8a87e6b760b2066eff80 | 65d9e2e2919554af3d84f63006ce7baa9f5b0213 | /oops/class method.py | 82902983f9b732c20f372e10b6324e2014989def | [] | no_license | quintus2020intern/PM_Basic_Python | 538e970f9a416691a229a594ffadfb18f28084a7 | 4891967490f068c7dd2d86df0519d852f066046f | refs/heads/master | 2020-12-11T08:24:09.987816 | 2020-03-30T10:45:03 | 2020-03-30T10:45:03 | 233,799,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # class Test:
# count = 0 # static variable
#
# def __init__(self):
# Test.count = Test.count + 1
#
# @classmethod
# def getNoOfObject(cls):
# print("no of object", cls.count)
#
#
# t1 = Test()
# t1.getNoOfObject()
# class Test:
# @classmethod
# def df(cls):
# print(id... | [
"pragayanparamitaguddi111@gmail.com"
] | pragayanparamitaguddi111@gmail.com |
90fae8edfd4aa80e595fc01abed64323bf71279f | fe0017ae33385d7a2857d0aa39fa8861b40c8a88 | /env/lib/python3.8/site-packages/sklearn/cluster/__init__.py | 04fcee55d143f04403e2a52690a0d6b07eb1a638 | [] | no_license | enriquemoncerrat/frasesback | eec60cc7f078f9d24d155713ca8aa86f401c61bf | e2c77f839c77f54e08a2f0930880cf423e66165b | refs/heads/main | 2023-01-03T23:21:05.968846 | 2020-10-18T21:20:27 | 2020-10-18T21:20:27 | 305,198,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | """
The :mod:`sklearn.cluster` module gathers popular unsupervised clustering
algorithms.
"""
from ._affinity_propagation import affinity_propagation, AffinityPropagation
from ._agglomerative import (ward_tree, AgglomerativeClustering,
linkage_tree, FeatureAgglomeration)
from ._bicluster i... | [
"enriquemoncerrat@gmail.com"
] | enriquemoncerrat@gmail.com |
9e23232fb9f4b9c0dfab6d79764b757d42dd29e1 | 52580a60f1f7b27655a2543b1aa4c92a56053ead | /migrations/versions/824086b2abe3_bookmarks_table.py | 63851c4dfd9eb9032d2371364c2bc96f09fa116f | [] | no_license | nitin-cherian/personal_blog | 4d42a886e527dabecbfc82d30d3125c07d428192 | f3ef365ff0a5d9004c6b5407912aa93af2f0f855 | refs/heads/master | 2021-04-09T15:18:09.855063 | 2018-03-25T11:39:51 | 2018-03-25T11:39:51 | 125,714,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | """bookmarks table
Revision ID: 824086b2abe3
Revises: 9c5d6731465a
Create Date: 2018-03-25 16:32:09.932871
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '824086b2abe3'
down_revision = '9c5d6731465a'
branch_labels = None
depends_on = None
def upgrade():
... | [
"nitin.cherian@gmail.com"
] | nitin.cherian@gmail.com |
76ca7e8409c7d796eb9fd1e95f6eabb2688c03f6 | f9e50b7c9079c5994b9f9f1b661c6259c3ff7510 | /video_sub/settings.py | 646fdabba6d3920d27a94c5b3564da09fdf1575a | [] | no_license | njokuifeanyigerald/video-subscription | 6598f9ec3a677ec1bcb031aa5499f546fed97bf3 | 5e479f142306f149d0d9aa3169bfeeba0953d6c2 | refs/heads/master | 2022-11-16T07:15:27.780389 | 2020-07-08T12:39:17 | 2020-07-08T12:39:17 | 277,650,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | """
Django settings for video_sub project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"brainboyrichmond@gmail.com"
] | brainboyrichmond@gmail.com |
08f4d070632ee86bad8a064fde41cbfb19aeb520 | e17e40dbb6ed8caaac5c23de29071b403637f5ae | /transformers_keras/transformer/point_wise_ffn.py | 317f811c72b207e769dbb52cc0c3d75b49867c4c | [
"Apache-2.0"
] | permissive | Linessiex/transformers-keras | cb739075c8daab39d52dc6cd6bafe5e45f8259be | 0bb576db356f575390815dc64840b78b8ecf6227 | refs/heads/master | 2020-11-25T05:58:09.448200 | 2019-09-23T09:13:59 | 2019-09-23T09:13:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | import tensorflow as tf
class PointWiseFeedForwardNetwork(tf.keras.Model):
def __init__(self, d_model, dff):
super(PointWiseFeedForwardNetwork, self).__init__(name='ffn')
# self.d_model = d_model
self.dense_1 = tf.keras.layers.Dense(dff, activation='relu')
self.dense_2 = tf.keras.... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
4415658f3a51da55638037244704972110642216 | bb6bc5929b463c6d8564e0d2045b25402e855041 | /graphutils/graphClusterSampler.py | 4af5dbcd62721ee1fd740f2f85707126c18a34a8 | [] | no_license | xjtuwgt/ContrastiveKGE | e6560fc7c8ddacb1bfd8118fe9c4f1112f234a18 | 15e2f58b4bef527fe49e0b2a817c4b7ab706d03b | refs/heads/main | 2023-07-20T13:04:36.780926 | 2021-09-07T02:17:19 | 2021-09-07T02:17:19 | 348,168,386 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | import os
import dgl
import torch
from graphutils.partition_utils import get_partition_list
import numpy as np
class ClusterIter(object):
'''The partition sampler given a DGLGraph and partition number.
The metis is used as the graph partition backend.
'''
def __init__(self, dn, g, psize, batch_size):
... | [
"guangtao.wang@jd.com"
] | guangtao.wang@jd.com |
6a4e0c9277e2d77ad14e7fd67a40cff6e71e563c | b4eb1cd674580ef0136d1d5452cc039b295ecc6c | /tests/test_middleware.py | df774ee26a644c82aa55d405a7c4aca0dcde8b3f | [
"MIT"
] | permissive | jrobichaud/django-groups-cache | e0689c276adc8db93b0babb9245d65aa1896d2bb | cf219753f1e9d8f10437ce11671a246327431598 | refs/heads/master | 2020-04-30T09:31:18.855358 | 2018-01-06T13:57:12 | 2018-01-06T13:57:12 | 176,749,747 | 0 | 0 | null | 2019-03-20T14:18:18 | 2019-03-20T14:18:18 | null | UTF-8 | Python | false | false | 2,242 | py | import django
from django.core.cache import cache
from django.contrib.auth.models import AnonymousUser, User, Group
from django.test import TestCase
from mock import Mock
import mock
from groups_cache.compat import is_authenticated
from groups_cache.middleware import GroupsCacheMiddleware
from groups_cache import signa... | [
"castner.rr@gmail.com"
] | castner.rr@gmail.com |
bb042febed8e692192c700d682213ca7c55341eb | 3e7db53009b413d1e9d2631be662487fb1e77117 | /asposetaskscloud/models/timephased_data_type.py | d636d7d383e4b84bb6debe99fdf47c6aa0aed1ca | [
"MIT"
] | permissive | aspose-tasks-cloud/aspose-tasks-cloud-python | d35e318ecc35ee9463fd7602a2e1f4f7dad17e33 | 7b61335d82529020f610bd5ae679244d0cdb83d1 | refs/heads/master | 2022-12-24T23:06:02.336709 | 2022-12-17T12:23:33 | 2022-12-17T12:23:33 | 240,446,905 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,294 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="TimephasedDataType.py">
# Copyright (c) 2020 Aspose.Tasks Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of th... | [
"ivan.andreychikov@gmail.com"
] | ivan.andreychikov@gmail.com |
817f724a608c79e36228a2d083a46f35bbc6f05e | 6abb92d99ff4218866eafab64390653addbf0d64 | /AtCoder/asa/2020/asa1117/c.py | f70e5d0c728ab867d45e89e016167d61880e2a9b | [] | no_license | Johannyjm/c-pro | 38a7b81aff872b2246e5c63d6e49ef3dfb0789ae | 770f2ac419b31bb0d47c4ee93c717c0c98c1d97d | refs/heads/main | 2023-08-18T01:02:23.761499 | 2023-08-07T15:13:58 | 2023-08-07T15:13:58 | 217,938,272 | 0 | 0 | null | 2023-06-25T15:11:37 | 2019-10-28T00:51:09 | C++ | UTF-8 | Python | false | false | 366 | py | n, m = map(int, input().split())
sc = [list(map(int, input().split())) for _ in range(m)]
for i in range(1000):
num = str(i)
d = len(num)
if(d != n): continue
valid = True
for s, c in sc:
s -= 1
if(num[s] != str(c)):
valid = False
break
if(valid... | [
"meetpastarts@gmail.com"
] | meetpastarts@gmail.com |
120e45f76663885b569469fe940f8275dabec8d8 | 31312c4070788c045a35efb29f97da421ca3b1cf | /models/db.py | b89340b82593eea5e256fd3fdc20294991400418 | [
"LicenseRef-scancode-public-domain"
] | permissive | hitesh96db/stopstalk | c530f30335efdc0c8939c640bb1efd9e33565851 | 486b3876a928ba634d245ed9e153e63d54af5820 | refs/heads/master | 2020-12-30T20:56:08.016000 | 2015-10-06T22:22:33 | 2015-10-06T22:22:33 | 43,397,646 | 0 | 0 | null | 2015-09-29T22:15:46 | 2015-09-29T22:15:46 | null | UTF-8 | Python | false | false | 7,246 | py | # -*- coding: utf-8 -*-
#########################################################################
## This scaffolding model makes your app work on Google App Engine too
## File is released under public domain and you can use without limitations
#########################################################################
... | [
"raj454raj@gmail.com"
] | raj454raj@gmail.com |
c80e6023fed108386a207eb74c98d32d92da4a79 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_swellest.py | c1d8de1b1e9a8d50b6af4e00d336f59e34ce7fc6 | [
"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 | 245 | py |
from xai.brain.wordbase.adjectives._swell import _SWELL
#calss header
class _SWELLEST(_SWELL, ):
def __init__(self,):
_SWELL.__init__(self)
self.name = "SWELLEST"
self.specie = 'adjectives'
self.basic = "swell"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d7431e16f379bab0fbe33e2d1a47595816abb9e5 | 5dff0d0bcb6f48085f934dc4ab28f4e55727282d | /server/instruments/reaper.py | 4eff8967fb514f27e40d335884bff3d7c351c998 | [] | no_license | the-fool/hoku | 4d2304d602fc86400687c68c359799569e55effd | 2f53ecf6ef978ea9d75fa3c77e750ec328065add | refs/heads/master | 2018-10-26T09:14:12.214534 | 2018-08-26T22:49:19 | 2018-08-26T22:49:19 | 103,051,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from .base import BaseInstrument
class Reaper(BaseInstrument):
MINI_1_VOL = 9
MINI_1_VERB = 10
MINI_1_DIST = 11
MINI_2_VOL = 15
MINI_2_VERB = 12
MINI_2_DIST = 13
DRUM_VERB = 14
def mini_1_vol(self, value):
self._control(self.MINI_1_VOL, int(value))
def mini_2_vol(self, ... | [
"sketchbang@gmail.com"
] | sketchbang@gmail.com |
4720ddc731d6c1da9f9078fa6bd36c468dff766e | b0b87924d07101e25fa56754ceaa2f22edc10208 | /workspace/python_study/python_gspark/day4-1.py | f83b2699257b4262d3bbda20f3dba246ce56ecb2 | [] | no_license | SoheeKwak/Python | 2295dd03e5f235315d07355cbe72998f8b86c147 | e1a5f0ecf31e926f2320c5df0e3416306b8ce316 | refs/heads/master | 2020-04-02T13:49:58.367361 | 2018-11-23T09:33:23 | 2018-11-23T09:33:23 | 154,499,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | from bs4 import BeautifulSoup
html = """
<html><body>
<ul>
<li>
<a href="http://www.naver.com">naver</a>
</li>
<li>
<a href="http://www.daum.net">daum</a>
</li>
</ul>
</body></html>
"""
soup = BeautifulSoup(html, 'html.parser')
link = soup.find("a")
print(link)
li... | [
"soheekwak728@gmail.com"
] | soheekwak728@gmail.com |
5b359b667dad448b3a80c84e30867c87d641f496 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_get_element-42.py | 890eb44f037c7631688f2cc5967b68b4d12596ca | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | x:str = "abc"
a:str = ""
b:str = ""
c:str = ""
def str_get(s:str, $TypedVar) -> str:
return s[i]
a = str_get(x, 0)
b = str_get(x, 1)
c = str_get(x, 2)
print(a)
print(b)
print(c)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
73aaac7076a35b1339df56a6ec97847718e5b576 | a9063fd669162d4ce0e1d6cd2e35974274851547 | /swagger_client/models/inline_response20037.py | 95fc2cf006de2311defe2c4535c4bd38e08daa3b | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,916 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
473643508173d56ecf3fe8c14b5fb62600047a35 | 4f4ab46092c73b1cfb0a7730bb3ed59b829552a9 | /src/transitive_closure.py | 724181ea557f3b713347230a46afc1f6c3137049 | [
"Unlicense"
] | permissive | kemingy/daily-coding-problem | ab3dcab662593fa9ce15ef49a9105cf962514189 | 0839311ec0848f8f0b4a9edba817ecceb8f944a0 | refs/heads/master | 2020-03-27T06:05:52.028030 | 2019-08-07T03:32:33 | 2019-08-07T03:32:33 | 146,078,162 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | # The transitive closure of a graph is a measure of which vertices are reachable
# from other vertices. It can be represented as a matrix M, where M[i][j] == 1
# if there is a path between vertices i and j, and otherwise 0.
# For example, suppose we are given the following graph in adjacency list form:
# graph = ... | [
"kemingy94@gmail.com"
] | kemingy94@gmail.com |
b92d0a536b3759e0b69960e134bad0a246f04b01 | 641f76328bfeb7e54f0793a18c5b7c00595b98fd | /packages/qcache/store/goods/migrations/0002_goods_version_timestamp.py | 0b0f87ec3a36bf092a87088fbcb5790ff2d77058 | [
"Apache-2.0"
] | permissive | lianxiaopang/camel-store-api | 1d16060af92eb01607757c0423377a8c94c3a726 | b8021250bf3d8cf7adc566deebdba55225148316 | refs/heads/master | 2020-12-29T13:23:18.118617 | 2020-02-09T08:38:53 | 2020-02-09T08:38:53 | 238,621,246 | 0 | 0 | Apache-2.0 | 2020-02-07T14:28:35 | 2020-02-06T06:17:47 | Python | UTF-8 | Python | false | false | 414 | py | # Generated by Django 2.2.7 on 2019-12-02 09:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='goods',
name='version_timestamp',
... | [
"lyh@gzqichang.com"
] | lyh@gzqichang.com |
8f91fa57271dc972b722d8279dc9b614fbfcc268 | baf3996414315ffb60470c40c7ad797bf4e6897f | /02_ai/1_ml/8_ensemble_learning/code/chapter_23/10_tune_learning_rate.py | 8d53a5f6b6e2f205074bced889b430ee25fd1526 | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 1,580 | py | # explore xgboost learning rate effect on performance
from numpy import mean
from numpy import std
from sklearn.datasets import make_classification
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import RepeatedStratifiedKFold
from xgboost import XGBClassifier
from matplotlib import pyp... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
5ca887c236dfdd6747f88e3232427442936668e0 | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /calibrate_CN_histograms.py | f60c6b0dedfab4fd51811d34d1ef3f915ca51ac7 | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,893 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 7 10:33:59 2016
@author: lpsmith
"""
from __future__ import division
import lucianSNPLibrary as lsl
from os import walk
nsamples_min = 21 #Arbitrary value: minimum number of samples we require
nsamples_max = 100000000
binwidth = 0.001
#indir = "CN_calc_log2rs/"
#out... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
f3831fe26da6c678dc2e49829f78175589d64d94 | 37d8802ecca37cc003053c2175f945a501822c82 | /10-贪心算法/0455.py | abdf70825a17b0ff77b8e07df26ed88d679067fd | [
"Apache-2.0"
] | permissive | Sytx74/LeetCode-Solution-Python | cc0f51e31a58d605fe65b88583eedfcfd7461658 | b484ae4c4e9f9186232e31f2de11720aebb42968 | refs/heads/master | 2020-07-04T18:17:24.781640 | 2019-07-30T03:34:19 | 2019-07-30T03:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | class Solution:
def findContentChildren(self, g: List[int], s: List[int]) -> int:
g.sort() # [2,3]
s.sort() # [1,2,3]
# 如果小的饼干满足不了贪心指数最小的小朋友,就放弃这个饼干
gi = 0
si = 0
res = 0
while gi < len(g) and si < len(s):
if s[si] >= g[gi]:
si +=... | [
"121088825@qq.com"
] | 121088825@qq.com |
8e9b01a78a6b4215a07315e90ff3abf14419c6af | fed019ab105b513e935fc9f3f3119db5c212c565 | /algorithm/community_detection.py | 77676a894fcbe29355151a013e612afea50e7a2e | [] | no_license | superf2t/ringnet | d7194d31c22f7d5d1dd1aa46d62fca5c34a6f566 | 322942f47bdf27728bdf17e2d71122d8da13361a | refs/heads/master | 2021-01-24T02:53:44.552344 | 2012-12-25T15:22:48 | 2012-12-25T15:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | '''
Created on Dec 19, 2012
@author: Yutao
Implementation of Girvan-Newman Community Detection Algorithm For Weighted Graphs
'''
import networkx as nx
import pkg_resources
pkg_resources.require("matplotlib")
import matplotlib.pylab as plt
import math
import csv
import random as rand
from metadata import settings
#th... | [
"stack@live.cn"
] | stack@live.cn |
6753857b3ae30e5fc86eb478872920d47de427dc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_nervier.py | 50e82697190213ebc90d28e9ab11efd7627c8f7f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py |
from xai.brain.wordbase.adjectives._nervy import _NERVY
#calss header
class _NERVIER(_NERVY, ):
def __init__(self,):
_NERVY.__init__(self)
self.name = "NERVIER"
self.specie = 'adjectives'
self.basic = "nervy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7165431f6198b23aa6e71561e48cfa8437fcba30 | 55173732ce1f2537a4fd8a6137b2a813f594b250 | /azure-mgmt-logic/azure/mgmt/logic/models/workflow.py | e29da68ee3c7ab95fd4d64e671e2c476bfbbee04 | [
"Apache-2.0"
] | permissive | dipple/azure-sdk-for-python | ea6e93b84bfa8f2c3e642aecdeab9329658bd27d | 9d746cb673c39bee8bd3010738c37f26ba6603a4 | refs/heads/master | 2020-02-26T15:32:39.178116 | 2016-03-01T19:25:05 | 2016-03-01T19:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
abf5cb941fac1874cfb1518b1df89f92c70bdc1b | ae7ba9c83692cfcb39e95483d84610715930fe9e | /jw2013/Leetcode-Py/Word Ladder II.py | f25c932467a340d39233741d56bf9fa9a057abd0 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | class Solution:
def backtrack(self, result, trace, path, word):
if len(trace[word]) == 0:
result.append([word] + path)
else:
for prev in trace[word]:
self.backtrack(result, trace, [word] + path, prev)
def findLadders(self, start, e... | [
"xenron@outlook.com"
] | xenron@outlook.com |
11f8805a3402a80099be4d5d5858bfcfe7aa76e9 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /updated_debug_branch_loop_mcs/interreplay_26_r.3/replay_config.py | 16dc3f2fb2d3bad8277505363a2b8eb9c6866f0c | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pox.py --verbose sts.syncproto.pox_syncer --blocking=False... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
2c0f1cf4b9b357f1424d5f1ef20680b82fdd0856 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /know_problem_over_group/hand_or_young_way/able_case/fact.py | 5e6e5cdadb856652ee5e1124bc52d79def4c99ec | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
#! /usr/bin/env python
def time(str_arg):
get_case_with_case(str_arg)
print('hand')
def get_case_with_case(str_arg):
print(str_arg)
if __name__ == '__main__':
time('week')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
b0b16093569febbff40973724100b76c6c799077 | 79910ec27631b7e1f7f36eef0ab453ab66ebdc1b | /smartcontract/forms.py | 50cf4d81e6f670820991a3be7380302b09af2e5f | [] | no_license | SaurabhAgarwala/VeriBuy | bdbe2d93cff7e5335e09f3946dd1566c82ef599b | f971a21752dfd1c9ca9c143beb2ac30bdfa22b41 | refs/heads/main | 2023-01-13T00:57:10.869994 | 2020-11-04T16:47:58 | 2020-11-04T16:47:58 | 309,657,968 | 0 | 0 | null | 2020-11-03T14:01:19 | 2020-11-03T11:00:02 | Python | UTF-8 | Python | false | false | 290 | py | from django import forms
from . import models
class ProductForm(forms.ModelForm):
class Meta:
model = models.Product
fields = ['name', 'desc', 'retailer']
class EditOwnerForm(forms.ModelForm):
class Meta:
model = models.Product
fields = ['owner']
| [
"saur.agarwala@gmail.com"
] | saur.agarwala@gmail.com |
3cf80b733c974ec0f5aaaa1bc68f553ec0617fcd | 3b239e588f2ca6e49a28a63d906dd8dd26173f88 | /code/dlgo/gtp/play_local.py | cc9bdc1acbc90d702fa98051d9d530a2ce4c61b1 | [] | no_license | Angi16/deep_learning_and_the_game_of_go | 3bbf4f075f41359b87cb06fe01b4c7af85837c18 | ba63d5e3f60ec42fa1088921ecf93bdec641fd04 | refs/heads/master | 2020-03-23T16:02:47.431241 | 2018-07-21T02:57:16 | 2018-07-21T02:57:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,604 | py | from __future__ import print_function
# tag::play_local_imports[]
import subprocess
import re
import h5py
from dlgo.agent.predict import load_prediction_agent
from dlgo.agent.termination import PassWhenOpponentPasses, TerminationAgent
from dlgo.goboard_fast import GameState, Move
from dlgo.gotypes import Player
from d... | [
"max.pumperla@googlemail.com"
] | max.pumperla@googlemail.com |
16a959f9551c63b9e032874c0a95782b2913e825 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1762390/homework02/program01.py | 484371a7177473da3ea507bbb64ce466f2882439 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | '''
I post di un forum sono raccolti in alcuni file che hanno il seguente formato.
Un file contiene uno o piu' post, l'inizio di un post e' marcato da una linea che contiene
in sequenza le due sottostringhe "<POST>" ed "N" (senza virgolette) eventualmente
inframmezzate, precedute e/o seguite da 0,1 o piu' spazi.
"N"... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
a2123dd872e54d5bfb69f05e3c75c3e39798d898 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Google/Contacts/DeleteContact.py | 78bb4c79c9ac5d784d8bf6d9ad842b30e04edc0a | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# DeleteContact
# Deletes a specified contact.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file exce... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
21232647b1233b1d7d6dffa03ced25db2595b0a7 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1_neat/16_1_1_swmuron_a.py | 8645bb1c638b89d9b6e0812c33738dfd700156c8 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 768 | py |
import sys
def solveIt(s):
maxletter = ''
word = ''
index = 0
slen = len(s)
while (index < slen):
print 'm: ' + maxletter + ' s[index]:' + s[index] + ' word: '+word
if (s[index] >= maxletter):
maxletter = s[index]
word = maxletter + word
else:
word = word + s[index]
inde... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.