blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbd4dff58fb534940486ad7a745bc32cfa732058 | e268832c9a5ecd465851347fc870ccf92e073309 | /Top_Interview_Questions/48._Rotate_Image/solution.py | 0c0c4d7037d1b48406cc887ceb7c12e888dc1f8c | [] | no_license | hkim150/Leetcode-Problems | a995e74ecca6b34213d9fa34b0d84eea649f57c2 | 1239b805a819e4512860a6507b332636941ff3e9 | refs/heads/master | 2020-12-04T08:06:42.981990 | 2020-10-03T00:20:29 | 2020-10-03T00:20:29 | 231,688,355 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
# we can first transpose and then reverse the row
if not matrix:
return
l = len(matrix)
if l <= 1:
... | [
"hkim150@illinois.edu"
] | hkim150@illinois.edu |
afa2880ef7c9ad5d7d0c8b552c93ec596a1567aa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02712/s236119093.py | 71fea111b5f86f505bae1ae0688f57fdca6fed08 | [] | 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 | 144 | py | import sys
input = sys.stdin.readline
N = int(input())
ans = 0
for i in range(1,N+1):
if i%3 != 0 and i%5 !=0:
ans += i
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fd423a0b542b090db684de0a6a6f97329d80eeda | 129ea5d4b576639da63cf94dd3d1adb27422aa03 | /ceshi.py | 77dff77147c176733aea9a6bd577b26228b2cbda | [] | no_license | lianzhang132/bookroom | 55392db40bdf4bfd4d49c33d4dfb60947f954061 | 2bebdbd90be3fc356efdb6514688d1b6c7cb3c48 | refs/heads/master | 2020-07-11T01:29:03.630781 | 2019-08-26T07:21:45 | 2019-08-26T07:21:45 | 204,419,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import unittest
from run import app
import json
# # 可以借助于 urllib,requeset 发送请求
# import urllib
# import requests
# 登录测试
class LoginTest(unittest.TestCase):
# 测试用户名,密码 为空的测试方法
def setUp(self):
app.testing = True
# 调用测试代码之前一定会执行
# 初始化的代码 执行 放在这里
self.client = app.test_client()
... | [
"2327431669@qq.com"
] | 2327431669@qq.com |
1ba0240b2c151da511245d602901fc5f66aeb582 | e91a030ed90ef06fb861729a173d6f77ecf5a3e8 | /prahaApp/places/views.py | 3eda96b75ce36ca323c8915323e2f5b06a88ee8f | [] | no_license | snjope/prahaApp | 0517657fcc08739dd01a504f7f8c75dde44fbca4 | aef953c0f8379898cdbb93bd0088a8cc6298cdbc | refs/heads/master | 2021-05-01T20:26:48.547811 | 2017-01-17T17:17:13 | 2017-01-17T17:17:13 | 79,244,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("Hei kusipäät. Täällä voi lisätä mestoja.") | [
"joonas.peuralinna@aalto.fi"
] | joonas.peuralinna@aalto.fi |
cb83aa5000ddae05ad0d2cabf7459748dda5da7f | f48e82679edf65792ab06d4f6e332ff3fa232c86 | /apps/characters/migrations/0001_initial.py | 80a01685469bea8dec44b6932e27ea441c663267 | [] | no_license | rofklaw/dnd | ac7d824922cf40ac961ce1042a989b574bb3a033 | 2c861e03bddc1af42cd5ebe4944e23a040a2076c | refs/heads/master | 2021-01-23T06:44:53.064510 | 2017-09-08T22:23:19 | 2017-09-08T22:23:19 | 86,395,166 | 2 | 0 | null | 2017-03-30T23:01:03 | 2017-03-27T23:51:56 | Python | UTF-8 | Python | false | false | 3,110 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-31 19:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('logreg', '0001_initial'),
]
op... | [
"briggs.mcknight@gmail.com"
] | briggs.mcknight@gmail.com |
b6cdd4ac57903c57644fd5839156cb699231f3e1 | 82c4b842f806502991d932bf06b3b925b371049a | /iterative_sorting/test_iterative.py | 95bee262e58d74f39c46251aa5c01b2de10b96e1 | [] | no_license | MadisonViaLux/PythonNotes | 9bfdea380d9bfdf9853040aa5550ed6c13f9a927 | 20d83f8b419e1975dde9cf901cadcd175ea8f27b | refs/heads/master | 2023-06-09T06:50:04.794492 | 2020-08-06T19:34:15 | 2020-08-06T19:34:15 | 281,484,506 | 0 | 0 | null | 2020-08-06T19:34:17 | 2020-07-21T19:20:29 | Python | UTF-8 | Python | false | false | 991 | py | import unittest
import random
from iterative_sorting import *
class IterativeSortingTest(unittest.TestCase):
def test_selection_sort(self):
arr1 = [1, 5, 8, 4, 2, 9, 6, 0, 3, 7]
arr2 = []
arr3 = [0, 1, 2, 3, 4, 5]
arr4 = random.sample(range(200), 50)
self.assertEqual(select... | [
"madison.s.mckown@gmail.com"
] | madison.s.mckown@gmail.com |
ffb47844aa469d4c90867e905b871c95d71323e5 | bf7871f516bd9dd5a39bef41d58a3e26072d79bd | /app/reservation/__init__.py | 141b71dc564db5374253b0bdbc10f52bcba5c503 | [] | no_license | patromi/SensoPark.v2 | 11fe193c5d0e7b3b0781c3ee02050abbff6d6904 | ba00b1e22fc1a3efa18302507fca1313c2dea282 | refs/heads/main | 2023-08-05T07:44:11.648847 | 2021-09-26T15:19:36 | 2021-09-26T15:19:36 | 355,197,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from flask import Blueprint
reservation = Blueprint('reservation', __name__)
from . import views
| [
"noreply@github.com"
] | patromi.noreply@github.com |
5c581662b4dd5c362aae88507f12843821c76bc9 | c1ca214c27832c461775737e86c9c150d64d0c84 | /mapreduce/hooks.py | 20a5c757f0762e472112b6e1a1d50c9b93ec3c1c | [] | no_license | agualis/AOS2012 | 348a882a59e518c18d6ccc0af84fdf27e9d04880 | 99af591167514de64bfa2212c0659bd1a941787c | refs/heads/master | 2021-03-12T22:14:23.915585 | 2012-06-23T13:51:30 | 2012-06-23T13:51:30 | 3,416,875 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | #!/usr/bin/env python
#
# Copyright 2010 Google 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 law o... | [
"agualis@gmail.com"
] | agualis@gmail.com |
3b7a1f1b87e2d782ff133914ab7fc7467d0a30b3 | fec00348ab62d9539955f91f707291f8b09ecbd8 | /chainer_/chainercv2/models/irevnet.py | 0a86f6a43e3e4bd058b0b08765e3a0d0aaa6b1b9 | [
"MIT"
] | permissive | raijinspecial/imgclsmob | 192cae6cd5021f8ff951371d641e5f222cfe3068 | c5d3ab207a6304f1343e4394f0467bdc7403a72a | refs/heads/master | 2020-04-08T03:27:05.031453 | 2019-03-08T04:28:13 | 2019-03-08T04:28:13 | 158,976,223 | 0 | 0 | MIT | 2019-03-08T04:28:14 | 2018-11-24T21:47:08 | Python | UTF-8 | Python | false | false | 15,483 | py | """
i-RevNet, implemented in Chainer.
Original paper: 'i-RevNet: Deep Invertible Networks,' https://arxiv.org/abs/1802.07088.
"""
__all__ = ['IRevNet', 'irevnet301']
import os
import chainer.functions as F
import chainer.links as L
from chainer import Chain
from functools import partial
from chainer.serialize... | [
"osemery@gmail.com"
] | osemery@gmail.com |
fd4c566533abd145d2dda3e620a145553cd6a382 | 721ba9724a60997b4b4761b3a3c8931ae3a949a9 | /ipfs_video_index/ipfs_indexer/__main__.py | a165cc293f084a1974b318c9e3a74a4b2af9a33e | [] | no_license | bneijt/ipfs-video-index | f058416e45ff2f8e9877e81fd88200281bf0bafb | 555c5d25fe95456dd4e5aa9ca0b04aa8736633e2 | refs/heads/main | 2023-07-26T02:24:40.108876 | 2021-08-21T20:22:54 | 2021-08-21T20:22:54 | 395,742,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | import argparse
import time
from dqp.queue import Project
from loguru import logger
from ipfs_video_index.ipfs_indexer.procs import pipeline
def main():
parser = argparse.ArgumentParser(description="Process some integers.")
parser.add_argument(
"--loop", action="store_true", help="Loop processing th... | [
"bram@neijt.nl"
] | bram@neijt.nl |
9f2e29e63a60fddec858f933a2b29d20252cd2ff | dd766645d0706f8cd2430288f8dbb8c9026f284c | /weather/forms.py | ff5b7f2543bbefb23bbbbf9ca81b2d09394e387b | [] | no_license | krishnadevkar/Weather-App-Using-Django-and-Python | b465bbef182076277c748cb935bbaaf57df2c70b | 5342cc78d567096d5269ecfec3bf08f91ec6ecf7 | refs/heads/main | 2022-12-26T16:01:57.742725 | 2020-10-13T13:19:52 | 2020-10-13T13:19:52 | 303,709,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.forms import ModelForm, TextInput
from .models import City
class CityForm(ModelForm):
class Meta:
model = City
fields = ['name']
widgets = {'name': TextInput(attrs={'class':'input','placeholder':'City Name'})} | [
"72792579+krishnadevkar@users.noreply.github.com"
] | 72792579+krishnadevkar@users.noreply.github.com |
9ac072a2202de51e2724dde17e37fd47ab045be3 | c3243f9b925324fcc036b11125233f4b634e19ee | /config.py | 41e7de63a4f6029163ee6234398affa2b0c646d7 | [] | no_license | jacksonschwarz/socnet-project | b237dadde5e72d8b9f852d83061fa1e3ea6b2876 | 09196c66c57dc984766198ecc48e49adb8d268a1 | refs/heads/master | 2020-06-26T02:33:02.320915 | 2019-07-29T17:39:16 | 2019-07-29T17:39:16 | 199,499,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | class keys():
consumer_key="8IOO5WAeQExvzpHBhLFV2V1eK"
consumer_secret="rjnxXnu2mfUdDY1bf5RdeyDNgJzka0WsXuLcKuCCmOjIRBJ4mS"
access_token="399061958-kr8PAZVPkzeH2AHxkzK7l3HVrPUXfnbLjYgCdhs9"
access_token_secret="t1cHMQvCU9wfifevxKnbhTGqKD3qGLqWwWnDOjiqmFZFX" | [
"jackson.schwarz0@gmail.com"
] | jackson.schwarz0@gmail.com |
f453a36bcee504e1fc87eb4a16f5709e38556740 | 415a8a4315e6331b2a157de8a1429fe0562729f8 | /python/TryCatch.py | 75b958f68079d3ef596723ff8107b476c5de2643 | [] | no_license | alfaceor/programming-examples | 784690dd1104e4adbdf958e4163b3b462f635881 | abea970a54cfab0eacc5280ae62383495e9e6eeb | refs/heads/master | 2022-05-04T23:14:30.503114 | 2022-04-29T10:11:45 | 2022-04-29T10:11:45 | 36,015,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python
import numpy as np
for i in range(4):
try:
data = np.loadtxt("NoExiste.dat")
except IOError as e:
print "Oops!"
pass
for i in range(5):
try:
data = np.loadtxt("NoExiste.dat")
except IOError as e:
print "NO PASS!"
break
print "Fuck U!!!"
| [
"alfaceor"
] | alfaceor |
cbdb2c29d50802280c7f7b520ddb6e0fc8def24b | 04b07645b8f9bf9e7cddf831f97c91fa241f4fca | /exploits/OpenRedirect03.py | a187db31912d6dac1aa834798ad488b412058341 | [] | no_license | kowshik-sundararajan/Assignment-3 | 2248db4c4e93d78c07e9049da02aff1096d19530 | b1c8014315d0e89abf535be024046cbddd186ff6 | refs/heads/master | 2020-03-15T06:21:59.476645 | 2018-04-24T14:17:21 | 2018-04-24T14:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import os
import time
chromedriver = "/usr/lib/chromium-browser/chromedriver"
os.environ["webdriver.chrome.driver"] = chromedriver
browser = webdriver.Chrome(ch... | [
"anusha.anandan@gmail.com"
] | anusha.anandan@gmail.com |
28764e6985747a21ef890844cef47baaea2ac122 | 9d77c2434b0e804af2ecaf4a4ea6d99f6ac6d96d | /preprocessing/tf_image.py | b84b4284cb4af7ec6da652d92872d7f69efdf48a | [
"MIT"
] | permissive | UpCoder/ISBI_LiverLesionDetection | cce7c118601548eef8bfeeedfe4f50d88411a7df | e21ce360e55092a16acc4d147a1418a53545d562 | refs/heads/master | 2022-12-12T12:57:50.299718 | 2019-04-03T03:49:43 | 2019-04-03T03:49:43 | 179,206,267 | 8 | 1 | MIT | 2022-12-08T16:02:31 | 2019-04-03T03:49:00 | Python | UTF-8 | Python | false | false | 17,125 | py | # Copyright 2015 The TensorFlow Authors and Paul Balanca. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | [
"546043882@qq.com"
] | 546043882@qq.com |
3fb518dd7c6ff02dc92ef2aab9f585d679d2e42e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/HUAWEI-MIRROR-MIB.py | aa7dce312e3994d2b844631d194be929f967ddd7 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 26,682 | py | #
# PySNMP MIB module HUAWEI-MIRROR-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MIRROR-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:35:05 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
901fa07849d22ed8b30cf47e067a33598d238cf6 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/api/management/commands/save_blackbuck_data.py | ef02a5eccb3223c25f6cb6c0b3b3b085eb722b2e | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 303 | py | from django.core.management.base import BaseCommand
from api.blackbuck import fetch_blackbuck_data
class Command(BaseCommand):
args = 'Arguments not needed'
help = 'Django admin command to save blackbuck data'
def handle(self, *args, **options):
fetch_blackbuck_data(clean=True)
| [
"mani@myhost.local"
] | mani@myhost.local |
22b5a918e455a0575dea2511baf43c39ae5f6df4 | 409b77fa3d52e396f45a2126178732cbccfa32ec | /budget/expenses/views.py | eabe7e4ee2059a08d5f3178ed7757f10db4b4384 | [] | no_license | Venkatessankarthitk/montlybudget | 2bd652d7e5f9e0383d73d1c0155dcf6f5845aa2b | 107719c348e382d85a4a94e3f4acab3e5f851659 | refs/heads/master | 2020-03-23T09:37:20.341798 | 2018-07-23T06:15:29 | 2018-07-23T06:15:29 | 141,399,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | import json
import datetime
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.core import serializers
from django.http import HttpResponse
from expenses.models import purchasing_items, expenses_details
from django.core import serializers
from django.views.generic... | [
"noreply@github.com"
] | Venkatessankarthitk.noreply@github.com |
373c763944c135c4d62fd1b09bab3072d1e6cd84 | e79888cd68177e7ec5125270cdc52f888e211e78 | /hwichan/chapter06/knock52.py | d96472faf4e538c6afb9d7c120f1e680ac6703fb | [] | no_license | cafenoctua/100knock2019 | ec259bee27936bdacfe0097d42f23cc7500f0a07 | 88717a78c4290101a021fbe8b4f054f76c9d3fa6 | refs/heads/master | 2022-06-22T04:42:03.939373 | 2019-09-03T11:05:19 | 2019-09-03T11:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | import re
import snowballstemmer
def sentence_extraction():
pattern = re.compile(r'''
(
^.*? # 非貪欲
[\.|;|:|\?|!] # . or ; or : or ? or !
)
\s # 空白
(
[A-Z].* # 英大文字
)
... | [
"2mmhwichan@gmail.com"
] | 2mmhwichan@gmail.com |
ca8bebbb101f6f0a7ea337d1d0365016720fb6b6 | cf09d6430e37b5460d7208d6cae6d3af0fa15925 | /jsonbot/jsb/lib/config.py | 87dc5bc6d9858b7446409e090713d466ea5d113e | [
"MIT"
] | permissive | Lujeni/old-projects | 2bbf0ff89852a3e4a9677475a615d2ee4b07d635 | 657304c8b017a98935de9728fc695abe8be7cc4f | refs/heads/master | 2021-03-12T23:08:34.054777 | 2014-10-16T23:10:15 | 2014-10-16T23:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,266 | py | # jsb/lib/config.py
#
#
""" config module. config is stored as item = JSON pairs. """
## jsb imports
from jsb.utils.trace import whichmodule, calledfrom
from jsb.utils.lazydict import LazyDict
from jsb.utils.exception import handle_exception
from jsb.utils.name import stripname
from datadir import getdatadir
from er... | [
"julien@thebault.co"
] | julien@thebault.co |
e7d358ae2ca583464f854ea25d0791bc92dfc215 | 4181ae5cb29ea85457070aff76c6b7fcd0708b3c | /chapter_08/series_exponential_log.py | 08f3b154f691b5e29cb7d134b860fddc4781546f | [] | no_license | bgbutler/TimeSeriesBook | f2ff2ac820d9becee274ac88da42077d10dd7cae | c44ff4389d2586fb5ca91fd57db8ae3c3b1e425b | refs/heads/master | 2020-06-08T04:20:38.914960 | 2019-06-21T20:41:49 | 2019-06-21T20:41:49 | 193,156,798 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # log transform a contrived exponential time series
from matplotlib import pyplot
from math import exp
from numpy import log
series = [exp(i) for i in range(1,100)]
transform = log(series)
pyplot.figure(1)
# line plot
pyplot.subplot(211)
pyplot.plot(transform)
# histogram
pyplot.subplot(212)
pyplot.hist(transform)
pypl... | [
"noreply@github.com"
] | bgbutler.noreply@github.com |
a1ea1cd0c4454fea650614ef561225696796a60d | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-organizations/huaweicloudsdkorganizations/v1/model/tag_resource_req_body.py | f43bc9df67f8aa35a1f1ec41372a38258bee7053 | [
"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 | 3,188 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class TagResourceReqBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
afe52020807529d3d426f1f80748977c241334c4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_137/548.py | 6499377835513cc99a4e2110302f4abf9f61a149 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | data = open('minesweeper.txt')
mines = {}
while True:
line = data.readline()
line = line.split()
if len(line) == 0:
break
R = int(line[0])
C = int(line[1])
M = int(line[2])
line = data.readline().strip()
if line == 'Impossible':
mines[(R, C, M)] = 'Impossible'
else:... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
dd54c49f97d052f3d01d460d92b0d7b59506280b | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /tools/cygprofile/patch_orderfile.py | 071861e53b11cf764d6c45f7196291be77777555 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.1-only",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 16,496 | py | #!/usr/bin/env vpython
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Patch an orderfile.
Starting with a list of symbols in a binary and an orderfile (ordered list of
sections), matches the symbols i... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
0e224f6a0ff6149cf70f6a426a50cdc40b769be9 | 8d1ceed7720e374691829d78007ea146a9030e4f | /arkestra_clinical_studies/lister.py | 5905346c3c39dba5232bfa745f6c1a2ba387225d | [
"BSD-2-Clause"
] | permissive | gonff/arkestra-clinical-studies | 25ef186207781bbc979f7f12bdef194802d9c71c | d75540e006a5d8b1ccb6d05a8253eba9c9fb0a79 | refs/heads/master | 2021-01-18T05:10:23.067652 | 2014-05-21T11:19:03 | 2014-05-21T11:19:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,978 | py | from django.db.models import Q
from django.utils.translation import ugettext_lazy as _
from arkestra_utilities.generic_lister import (
ArkestraGenericLister, ArkestraGenericList, ArkestraGenericFilterList,
ArkestraGenericFilterSet
)
from arkestra_utilities.settings import MULTIPLE_ENTITY_MODE
from .models... | [
"daniele@vurt.org"
] | daniele@vurt.org |
8bd0766d2f6563738282d6a6113ab378a44ded93 | d6d42869ea400e434618b4289cb254f32bcc0ca3 | /autorecord/core/models.py | fd9032f6989a0cea97e01712fcd8113c63271629 | [] | no_license | Diverso-NVR/autorecord | 227538bd4e20ba4e9d19179f984dd0112b9d5d0e | 7caa5ba9f69204f933c37072ce7366a206cd33a2 | refs/heads/master | 2023-04-23T16:56:29.449049 | 2021-05-12T18:49:00 | 2021-05-12T18:49:00 | 235,286,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | class Room:
def __init__(self, room_dict):
self.__dict__.update(**room_dict)
@property
def sources(self):
return self._sources
@sources.setter
def sources(self, sources_list):
self._sources = []
for source_dict in sources_list:
self._sources.append(Sourc... | [
"dakudryavcev@gmail.com"
] | dakudryavcev@gmail.com |
f2852368a7d8c04e5cdcb07120a99934cf4f1b4c | 430fcb1b9103f4d26986a00f7ce60d507bcd13c9 | /sdsparser/errors.py | f553bae797ce9435deb213663d6b064b1f2b0b83 | [
"MIT"
] | permissive | astepe/sds_parser | 49f7c91a79a1970017616bcd7046343881464c97 | 129935f7876f8ddeec7771689d4bbc50059b13ca | refs/heads/master | 2023-03-31T22:45:29.375447 | 2023-03-16T18:17:58 | 2023-03-16T18:17:58 | 160,744,163 | 13 | 5 | MIT | 2022-11-22T11:36:25 | 2018-12-06T23:13:24 | Python | UTF-8 | Python | false | false | 561 | py |
class FileMatchNotFound(Exception):
def __init__(self, file_name, target_directory):
Exception.__init__(self, f'No matching .txt file found for {file_name} in {target_directory}')
class TextDirectoryDoesNotExist(Exception):
def __init__(self, target_directory):
Exception.__init__(self, f'No ... | [
"arisstepe@gmail.com"
] | arisstepe@gmail.com |
5a308f6b7f9ceacdf803dead7dbd5a2dfc85628e | 9aa1885bfd666b5d3719c29334c9769bbe88d3e0 | /bin/cache-purge-consumer.py | d1bd99303ae097493edde7eadcd860165b207716 | [] | permissive | praekelt/django-ultracache | 9c240cfad4660afdb7e679192ca0f4b05bab1831 | 476eb8a4935043f4fc6901ed3541ececed1664bf | refs/heads/develop | 2022-01-27T18:20:00.062349 | 2020-05-29T09:58:01 | 2020-05-29T09:58:01 | 38,880,711 | 32 | 4 | BSD-3-Clause | 2022-01-06T22:24:32 | 2015-07-10T13:02:45 | Python | UTF-8 | Python | false | false | 3,973 | py | """Subscribe to RabbitMQ and listen for purge instructions continuously. Manage
this script through eg. supervisor."""
import json
import traceback
from multiprocessing.pool import ThreadPool
from optparse import OptionParser
from time import sleep
import pika
import requests
import yaml
class Consumer:
channe... | [
"hedleyroos@gmail.com"
] | hedleyroos@gmail.com |
5b5318e9339850b6265dc415340e362ff7e63894 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/diameter-of-binary-tree.py | 2f8d44152f1d1d7bc911f4df55398ee39e93ccf0 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 501 | py | # Time: O(n)
# Space: O(h)
class Solution(object):
def diameterOfBinaryTree(self, root):
"""
:type root: TreeNode
:rtype: int
"""
return self.depth(root, 0)[1]
def depth(self, root, diameter):
if not root:
return 0, diameter
... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
4b270fa9d701f65ef4e79353a53e22d43df8424f | ad9782856ec2f860fccbefa5e75a896691b8e1cc | /MonteCarlo/test/opt6s3l/crab_step2_VBF_HToBB_OT613_200_IT4025_opt6s3l.py | 8031794a20b9cb961ae352984ee3b6e5b3a772d7 | [] | no_license | OSU-CMS/VFPix | 7fe092fc5a973b4f9edc29dbfdf44907664683e5 | 4c9fd903219742a4eba1321dc4181da125616e4c | refs/heads/master | 2020-04-09T05:52:05.644653 | 2019-01-09T13:44:22 | 2019-01-09T13:44:22 | 30,070,948 | 0 | 0 | null | 2018-11-30T13:15:54 | 2015-01-30T12:26:20 | Python | UTF-8 | Python | false | false | 944 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'VBF_HToBB_14TeV_step2_923_PU200_OT613_200_IT4025_opt6s3l'
config.General.workArea = 'crab'
config.General.transferOutputs = True
config.General.transferLogs = True
config.JobType.pluginName = 'Analysis'... | [
"juliette.alimena@cern.ch"
] | juliette.alimena@cern.ch |
3b15efcd4c58e73f9d4c0135da5f36a883347fa3 | d170efa06e6e682c71961fe1213298e5a68193c3 | /python/python/rotate/test_rotate.py | fc39d304949523ec047f2d1eddf13bc3a777fc50 | [
"MIT"
] | permissive | iggy18/data-structures-and-algorithms | 45b9ebf3c0820968bda62c0ebd90a9cfd65b3902 | 700ef727ca7656724120a1873af4bd4bce5962f4 | refs/heads/main | 2023-02-27T04:45:12.535801 | 2021-02-08T22:41:28 | 2021-02-08T22:41:28 | 300,975,693 | 0 | 0 | MIT | 2021-02-12T18:39:18 | 2020-10-03T20:42:08 | JavaScript | UTF-8 | Python | false | false | 232 | py | from rotate import rotate
def test_rotate():
assert rotate
def test_rotate_works_properly():
x = [[1,2,3], [1,2,3], [1,2,3]]
actual = rotate(x)
expected = [[1,1,1], [2,2,2], [3,3,3,]]
assert actual == expected
| [
"seth.mcfeeters@gmail.com"
] | seth.mcfeeters@gmail.com |
5b3970c02a50e16d0ceabd306e7e4a70ec1fff8e | 1e38de9c5761d7917db3338c3d49477ee001618d | /airbridge/builder.py | d5b1361f2aedbc336b53b6063a2390faff77614f | [
"Apache-2.0"
] | permissive | yonglehou/airbridge | ef7b61de7e0abcea5eb6470c9dcb9d825f615fea | 55e97f61dbff11cc9380010885febd8a1c12c4d6 | refs/heads/master | 2021-01-15T18:30:47.504796 | 2015-07-09T02:27:33 | 2015-07-09T02:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # -*- config:utf-8 -*-
"""
Copyright 2014 Airbridge
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 applic... | [
"lucasboscaini@gmail.com"
] | lucasboscaini@gmail.com |
367b2fcba0f5c8e7622ab91e4e2e199f84f863e7 | fb9ee00025b9e4b19bd7c9d009094d088f481125 | /google-code-jam/Google Code Jam 2011 - Qualification Round/ProblemA.Bot_Trust-file.py | 705fb0901075a0742bab075a8446e713c1fee8ee | [] | no_license | wonjohnchoi/competitions | e382e3e544915b57e48bbb826120ef40b99b9843 | 4ba5be75a5b36b56de68d4a4ab8912d89eb73a0e | refs/heads/master | 2021-01-16T00:28:33.446271 | 2015-09-12T16:53:25 | 2015-09-12T16:53:25 | 2,786,296 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py |
class Robot:
def __init__(self):
self.status = 'waiting' #waiting, moving, pushing, idle (no more command)
self.pos = 1
self.dest = -1
self.idx = -1
def find(c,commands, f):
for i in range(f, len(commands)):
if commands[i][0]==c:
return i
r... | [
"wonjohn.choi@gmail.com"
] | wonjohn.choi@gmail.com |
bf743c6551b46c870314090cfe6cba4a96f5797a | d912186b9806f67a1ee744bf8848a1f9fd11bcee | /Keras_Framework_TensorRT/flower_photos/test.py | 9cd4433375b8c2db35ad6ee2ad6fbe6c0eb616d1 | [] | no_license | HangJie720/TensorRT_Tensorflow_Keras | 89297aa12f58b6dfcc2ef29cf9f6a9bc44a49b0c | 8032a9347929098c8d38ee40e35c538274d7363a | refs/heads/master | 2020-03-19T03:17:30.590481 | 2018-06-01T12:26:57 | 2018-06-01T12:26:57 | 135,714,075 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py | from tensorrt.lite import Engine
from PIL import Image
import numpy as np
import os
import functools
import time
import cv2
import matplotlib.pyplot as plt
PLAN_single = '/tmp/keras/flower_photos/engine/keras_vgg19_b1_fp32.engine' # engine filename for batch size 1
PLAN_half = '/tmp/keras/flower_photos/engine/keras_v... | [
"hangjie@hangjiedeMacBook-Pro.local"
] | hangjie@hangjiedeMacBook-Pro.local |
e966083dfa346bd6ad2fe9466ac0dd52e26279d8 | 84f67171337704d4fc10542a2705af892ebce1b2 | /blog/views.py | 18cf7c69ef3b66d183b6f50cc65d644096285c35 | [] | no_license | ZahedAli97/my-first-blog | 64acef6aebf8de8e7e239e12143dcb0a5f699ea5 | e5c05bac1125c79ad4b6d56a53be0bfeb1b8cc9d | refs/heads/master | 2020-04-25T01:41:29.329528 | 2019-03-05T16:26:26 | 2019-03-05T16:26:26 | 172,415,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from .models import Post
from .forms import PostForm
from django.shortcuts import redirect
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()
... | [
"zahedmiralirh@gmail.com"
] | zahedmiralirh@gmail.com |
e71ad573a5ef2e637afd4b895e4543e24ac20f06 | eb69c111ac9f0f77d1cf9636f66b9309cb295178 | /遗漏的知识点/python中的数据结构/testTwoList.py | f136ba0e192e64660b4d3d40e649525e97601313 | [] | no_license | zyp19/leetcode1 | f7984ff4f74c399d2f7c1f059e193505341993ba | 6f0338e6c11b497a1ab21cf00997b8eeb56703fb | refs/heads/main | 2023-06-17T08:11:51.092801 | 2021-05-13T03:58:57 | 2021-07-11T09:24:15 | 384,907,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | # 1.二维数组的遍历方式
"""
第一种方式:类似于MATLAB中的二维数据索引,比较直观,容易理解
首先,定义了一个二维列表list2d.然后利用一个两层循环遍历这个二维列表.利用range函数限制循环次数,利用len函数获得列表的行数和列数.
注意这两者的不同.
评价:这个方式不够好:
首先,Python中列表和MATLAB中不同,不需要每行的列数相同
利用行列下标索引方式,则必须要求,每行的列数相同.
"""
list2d = [[1,2,3],[4,5,6]]
sum = 0
for i in range(len(list2d)):
for j in range(len(list2d[0])):
#... | [
"zuoyiping@163.com"
] | zuoyiping@163.com |
0508fff314281a130e0521271cb6a91d6bc8ca58 | 3b3741229af1dee887495bab1bc7af1363969f9c | /axioms/migrations/0001_initial.py | 2b7bdf3654ea3460de507402ca7d4fb61e7ee073 | [] | no_license | chadpalmer/django_api_sample | 3ba26aebc840eb75966cc6b99fd80e0fe082647f | 06b4fac412f6a5871214c9b92e216b58091483b2 | refs/heads/master | 2021-09-23T10:34:42.504173 | 2020-01-23T22:32:34 | 2020-01-23T22:32:34 | 232,022,693 | 0 | 0 | null | 2021-09-22T18:20:44 | 2020-01-06T04:17:35 | Python | UTF-8 | Python | false | false | 980 | py | # Generated by Django 3.0.2 on 2020-01-04 23:49
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),
]
ope... | [
"chadpalmer@Chads-MacBook-Pro.local"
] | chadpalmer@Chads-MacBook-Pro.local |
541814fce90ea9c146f892f9ecf241d6d2ec4278 | 45fbf26618ef3b1fd93bca267032754b8f96603e | /src/Server/API/python/offer_passageid.py | 5398b9441dfeef6019d18f29576c35edb3e74f7c | [] | no_license | EricDeng1001/LS | d76f53edec08fd35b0856ba1c03f2dd83074275c | da4209bffdd9aaffa846c662c594f0065c51341f | refs/heads/master | 2021-09-15T02:12:26.388130 | 2018-05-24T06:27:05 | 2018-05-24T06:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # coding=utf-8
from __future__ import division
import json
import MySQLdb
import time
import datetime
import urllib
import json
from urllib import urlencode
from urllib import quote
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def offer_passageid(user_name):
conn = MySQLdb.Connect(host = '... | [
"gantinus@gmail.com"
] | gantinus@gmail.com |
7ef82813296454bbe47997f3438cf9311b31267a | c1488f29f165d65005464a8e0583ec9edf1735b7 | /test script/deleteNodes.py | baef77798df99485f605c10f044475e3a07c167c | [] | no_license | KensonN/ground-dash | a5fad69f3e77367448b9b0f35fa51549de0a4df3 | b7ace79d6d83dacf5331d6c4d33a3bb10ad4c2bb | refs/heads/master | 2023-01-06T13:38:20.733628 | 2020-10-31T23:19:14 | 2020-10-31T23:19:14 | 286,333,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | #import serial
import pyrebase
import random
from time import time, sleep
from datetime import datetime
config = { #firebase authentification
"apiKey": "AIzaSyDEfkwr7Zl5WucXFluMxB8VIlngUnp7aDM",
"authDomain": "smv-daq.firebaseapp.com",
"databaseURL": "https://smv-daq.firebaseio.com",
"projectId": "smv-... | [
"kenson.nguyen3@gmail.com"
] | kenson.nguyen3@gmail.com |
057557a86accb533d99a88d08a903f4a4422eb9b | 6d659cdae13a89c2d2e84b750ba7628e871df846 | /control.py | 088e6317a167e5b140b58e239be9f1bec1e09e5a | [] | no_license | FosDos/leechybird | 8bcd545aa5e6151b7ff62347462f691548ac4302 | ef83761ab1c7113db31540ead35704c4c440cd6f | refs/heads/master | 2022-11-24T23:47:30.519667 | 2020-07-29T17:09:00 | 2020-07-29T17:09:00 | 116,117,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # Author: Foster C. Williams
# Email: fosterclarksonwilliams@gmail.com
#github: github.com/fosdos
import time
import datetime
class twitter_timer(object):
start_time = None
user_screen_name = None
def __init__(self, user_screen_name):
self.start_time = datetime.datetime.now()
self.user_screen_name = st... | [
"fosterclarksonwilliams@gmail.com"
] | fosterclarksonwilliams@gmail.com |
a28f99427e7b585a4de577169e2d4afd3ab4e90e | 618522a8ffed585e27701b9acb1a1171e3c5c924 | /salience_sum/module/encoder.py | 845e220e59a1dd02f3abb3eeec33d31e13a09aba | [] | no_license | blodstone/Salience_Sum | 9795c2a1c03c86218a8c4560ba65f7d1ff5f65e8 | ce2e9e316a68c18bd523ba9e3d1e3ea286bbf068 | refs/heads/master | 2020-08-29T11:49:40.695618 | 2020-01-21T16:17:18 | 2020-01-21T16:17:18 | 218,023,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | import torch
from allennlp.modules import Seq2SeqEncoder
from allennlp.nn.util import get_lengths_from_binary_sequence_mask
from torch.nn import LSTM, Linear, Sequential, ReLU
from typing import Dict, Tuple
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
@Seq2SeqEncoder.register('salience_en... | [
"hardy.oei@gmail.com"
] | hardy.oei@gmail.com |
96fd3506464c392a8fd723e5f4d4aeaf7d0ba1cc | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/libtbx_refresh.py | b1206d46a3f922f73066f670596a7b7a0ef8f24f | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,790 | py | from __future__ import absolute_import, division, print_function
import os
from libtbx.utils import warn_if_unexpected_md5_hexdigest
if self.env.is_ready_for_build():
message_template = ' Generating C++ files in:\n "%s"'
# eltbx
from cctbx.source_generators.eltbx import generate_henke_cpp
from cctbx.sourc... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
aa4e6b7443d288d9d0895517c5a524596bd8b3e4 | f6b5d818d58506d6de7429528fab9c1ab059fb15 | /HW5/Melnychuk/hw5_1.py | d47acd47e39d0e882a0aba9587525b393a1d72ee | [] | no_license | kolyasalubov/Lv-585.2.PythonCore | 8381931bbeab17eee74142d2fbbe45fb025a1c5e | a18ee1180262a641c19806c4d9dd59e537096e14 | refs/heads/main | 2023-04-10T10:05:44.114639 | 2021-04-29T13:46:40 | 2021-04-29T13:46:40 | 349,162,354 | 1 | 3 | null | 2021-04-29T13:46:41 | 2021-03-18T17:30:57 | Python | UTF-8 | Python | false | false | 445 | py | numbers_div_2 = []
numbers_div_3 = []
other_numbers = []
for number in range (1, 10):
if number % 2 == 0:
numbers_div_2.append(number)
elif number % 3 == 0:
numbers_div_3.append(number)
else:
other_numbers.append(number)
print(f"Numbers that are divisible by 2: {numbers_div_2}")
pr... | [
"melny4uk.d@gmail.com"
] | melny4uk.d@gmail.com |
2ceaf54794a3cce04452020476266a759c4a6b1f | 0a86abffabe7ab55071b845245aa66bfeca0ad60 | /tf_lib/__init__.py | 28eed73f3d6307efe7580438326d12c14281fefe | [] | no_license | lttsh/CVAE | 93018a9e80567f18bf0e971484fe769f6630c6bd | 55044ff9953e69e39c8481d0cfcb630fbb450e0d | refs/heads/master | 2022-02-24T02:13:13.659972 | 2019-08-22T01:15:30 | 2019-08-22T01:15:30 | 202,025,368 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | import tf_lib.datasets
import tf_lib.loaders
import tf_lib.trainer
import tf_lib.utils
| [
"lshao2@slb.com"
] | lshao2@slb.com |
76aae7edbb8a6a7cd3df5d256f19454db1a5fb83 | 368a74e5c1a748242e945b3bc03244d9f63ad376 | /cosmos_flask_server-master/새태그KStars/domain/KFilePath.py | 2b2c82b46ab7b8138142ea9135f209b7f66de18f | [] | no_license | lee82762/cosmos_flask_server-master | e8c78274d18f7c4cc243c964a279498bef7dda88 | 37a5bb9dcc056d8bd6e55209b9e326a7465229ee | refs/heads/master | 2023-04-22T21:58:59.497161 | 2021-05-06T10:00:14 | 2021-05-06T10:00:14 | 364,494,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | class KFilePath:
def __init__(self):
self.projectFilePath = ""
self.audioFilePath = ""
def initData(self):
self.projectFilePath = ""
self.audioFilePath = "" | [
"cjdrn0208@naver.com"
] | cjdrn0208@naver.com |
5d0ee6b0dc39b9f92bdb2eef54ed35b8d54a32c9 | 696e35ccdf167c3f6b1a7f5458406d3bb81987c9 | /content/test/gpu/gpu_tests/gpu_integration_test.py | 9f991d50206a63aaaaa763e1e5b49a5a4108a461 | [
"BSD-3-Clause"
] | permissive | mgh3326/iridium-browser | 064e91a5e37f4e8501ea971483bd1c76297261c3 | e7de6a434d2659f02e94917be364a904a442d2d0 | refs/heads/master | 2023-03-30T16:18:27.391772 | 2019-04-24T02:14:32 | 2019-04-24T02:14:32 | 183,128,065 | 0 | 0 | BSD-3-Clause | 2019-11-30T06:06:02 | 2019-04-24T02:04:51 | null | UTF-8 | Python | false | false | 10,996 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from telemetry.testing import serially_executed_browser_test_case
from telemetry.util import screenshot
from gpu_tests import exception_form... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
2a9bf81297de2e77ef26a208ce9dd789aafb71d2 | 40248f9e5ed813fbb966df515ece9193cebf889d | /exapi/request_creators/hitbtc/market_data/interface.py | a1dc6f761c714843d5db467ba83515a00f5001a5 | [
"MIT"
] | permissive | astsu-dev/exapi1 | 29bc22e0949e835d6ea6887e9c52288584a095eb | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | refs/heads/main | 2023-05-08T20:08:18.435247 | 2021-06-02T11:25:11 | 2021-06-02T11:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,161 | py | """Has interface for hitbtc market data request creator."""
from typing import Optional, Protocol
from exapi.request_creators.request import Request
from exapi.typedefs.hitbtc import (CandlesPeriod, Currencies, Currency,
IntervalValue, SortBy, SortDirection,
... | [
"you@example.com"
] | you@example.com |
7337e654a102bc58ed6a403e7e5a2baafed31204 | 4da30c339d64989d0b92587ea059d9bb462ceec0 | /backend/reframery/migrations/0011_auto_20210222_1447.py | 9b11ee18ad98b1d1643fb4853babb83976c517ab | [] | no_license | Danielwu9226/community-currency-reframery | 876973f296268a6d6c4449b5e590dcde53161721 | b863c84d2b2bab1122f114bf0cfcd6faf2cdc7ef | refs/heads/master | 2023-04-07T18:00:29.501122 | 2021-04-01T07:05:30 | 2021-04-01T07:05:30 | 300,325,079 | 1 | 0 | null | 2021-02-22T02:12:19 | 2020-10-01T15:18:38 | Python | UTF-8 | Python | false | false | 862 | py | # Generated by Django 3.1.5 on 2021-02-22 14:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reframery', '0010_auto_20201229_2325'),
]
operations = [
migrations.CreateModel(
name='Wallet',... | [
"imtiaza@mcmaster.ca"
] | imtiaza@mcmaster.ca |
e7a93d4b82e4218fcdd25cd67933e675a3c21dfd | f363b0405df50ec6fa2292a928c2b448cc049831 | /main/chapter2/itemcf.py | aa6ca73765dbdcbefda72de6bec11d36ae9e3867 | [] | no_license | CJuanvip/Practice_Recommender_System | ccb711a03cadd1db6f00dc67e6122c334057ce9a | 8f5d1c06deed6714fcfb61da06dee73f98dbff54 | refs/heads/master | 2023-01-19T19:33:44.234923 | 2020-11-29T20:46:53 | 2020-11-29T20:46:53 | 316,509,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | #!/usr/bin/python3
# coding=utf-8
'''
Created on 2018年6月15日
@author: qcymkxyc
'''
from main.chapter2 import UserCF
from collections import defaultdict
import math
from operator import itemgetter
import sys
from main.util.utils import load_file, save_file
class ItemCF(UserCF):
"""基于物品的协同过滤矩阵"""
def __init__(... | [
"e0253722@u.nus.edu"
] | e0253722@u.nus.edu |
ad33747c00bc3429bacdc1bf31667c00daab67fc | 5f09c2581c28751589871068d1faa9297859d2f3 | /insert_banco.py | 737b50ad7286cc87824d9969603d863b81f055e2 | [] | no_license | fandrefh/curso-python-e-django-senac | f68b4b4ce7071ac78034afdaf63251ed0422fa56 | 8a418a7d9acd12c3ca8820c5589d5d02476d3d0c | refs/heads/master | 2021-01-20T20:28:53.311346 | 2016-08-27T20:48:44 | 2016-08-27T20:48:44 | 65,097,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import sqlite3
conn = sqlite3.connect("clientes.db")
cursor = conn.cursor()
cursor.execute("""
INSERT INTO cad_clientes (nome, idade) VALUES ('Regis', 35);
""")
cursor.execute("""
INSERT INTO cad_clientes (nome, idade) VALUES ('Aloisio', 87);
""")
cursor.execute("""
INSERT INTO cad_clientes (nome, idade) VALUES (... | [
"fandrefh@gmail.com"
] | fandrefh@gmail.com |
9517ed06bde725ef78093612d14e7ddf41d86c4a | 681e8ba7417edafb02e7a8708748c02e0a5c5fad | /dev_builds/oto2016_11_23/OTO_vue_souris.py | 5944ef77bb34af2adfc4c4ccb159b47130c6ad78 | [] | no_license | Akiro78960/Intelli-Car | 3987f3bdcc36d3a7d920baaaa013512b6224c87c | 78a1125c4eca77f290ed6ec82bbffa1db1480749 | refs/heads/master | 2021-01-19T14:15:56.128755 | 2016-12-07T14:38:51 | 2016-12-07T14:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py |
import bge
#import time
import bgui
#lg=bge.logic
#rd=bge.render
#rd.showMouse(1)
def mainSouris():
obj=bge.logic.getCurrentController()
if obj.sensors["Mouse"].positive and obj.sensors["Mouse1"].positive:
pass
#print(obj.sensors)
#print("OK",obj.sensors["Mouse"].hitPositi... | [
"evan.brosky@gmail.com"
] | evan.brosky@gmail.com |
75f027c569ffff1f16c7bb74496f8f376e04a6b1 | 9a2593b422605d6254553b3f003d136fd0104514 | /exercise-submission/day2/Dalyo_OURBA.py | be74e506d194fab813f986ec639bd2f9618bcb3a | [] | no_license | sokharsamb/AIMS2019-Dakar-BigDataCourse | c577a327e78b536c678dd7789422011270c75d6b | 0733272c568e6dabac02f8815465411be5999f15 | refs/heads/master | 2021-11-24T23:58:22.303402 | 2021-11-04T18:46:50 | 2021-11-04T18:46:50 | 196,364,855 | 2 | 1 | null | 2019-07-11T09:37:25 | 2019-07-11T09:37:25 | null | UTF-8 | Python | false | false | 9,095 | py | """
GENERAL INSTRUCTIONS
WARNING: For Python beginners:
the instructions here will only make sense after you have gone through and
completed the training materials.
1. WHICH PART TO CHANGE?: Uncomment every line with [YOUR CODE HERE] and replace it with your code.
Please don't change anything else other than these li... | [
"dmatekenya@gmail.com"
] | dmatekenya@gmail.com |
e2cdd67804b10dbb8d7efd074a76bbc88d419696 | 4dba84f7fad05cb5b83bad50833612489de3ac08 | /arrow_pattern.py | f12cf46ab2902af62523a210263ea564dda63da9 | [] | no_license | abhi55555/Hello-world | 806deb5c235093b991c9e61555c9323e20deba9a | a27841742b133996fdab8b5c503ca0efeaef4638 | refs/heads/master | 2020-04-23T17:19:06.738510 | 2019-05-31T12:19:16 | 2019-05-31T12:19:16 | 171,327,492 | 0 | 0 | null | 2019-02-20T20:25:31 | 2019-02-18T17:33:59 | Python | UTF-8 | Python | false | false | 462 | py | n = 20
t = n // 2
for i in range(1, t + 1, 2):
print(' ' * ((t - i) // 2) + '*' * i)
for i in range(n // 4 - 1):
print(' ' * ((t - 1) // 2) + '@')
for i in range(n // 4 + 1):
print(' ' * ((t - 1) // 2) + '@' + ' ' * (t - 1) + '*' * i)
print(' ' * ((t - 1) // 2) + '@', end='')
for i in range(n // 2 - 1):... | [
"33001714+abhi55555@users.noreply.github.com"
] | 33001714+abhi55555@users.noreply.github.com |
7fda0ad362d063c3c2f53573555b544d534b230e | e9dd23f575a9d3e3eb72fd20b155ad8b93a1a6fd | /SHCHGui/CalendarUI.py | 4e91d8c91b4031aec5d04cf98fa15d282fe0caf5 | [] | no_license | xiangyuw123/SHCH_BDF_Tools | ca3677a70e772a1bedcfee8703a40dc6d6e194ec | d244075b2a90a4236716b1dea67238e2843a9ff2 | refs/heads/master | 2022-12-04T13:56:12.923137 | 2020-08-28T08:11:25 | 2020-08-28T08:11:25 | 290,937,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,973 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 8 14:13:05 2020
@author: 123
"""
# -*- coding: utf-8 -*-
import calendar
import tkinter as tk
import tkinter.font as tkFont
from tkinter import ttk
datetime = calendar.datetime.datetime
timedelta = calendar.datetime.timedelta
class calendarWidget:
def __init__(s,... | [
"xiangyuw@umich.edu"
] | xiangyuw@umich.edu |
fd9a779ee31d4fad10c81bbf51d610bf3c2ed530 | 0b96015603d709b37dbd522ebae0a3b367e8e82f | /Tags/heads/80.png.py | a945a0b029e4b2ef8c456fb24ee9cb955f148741 | [] | no_license | AWilcke/ClariFight | ccbbfec08192b029ce13ed11fc6967550ede74ce | d1689025c5087c70f2c33ad80d8417b45b4ebd01 | refs/heads/master | 2021-01-11T11:17:27.446503 | 2016-03-10T19:32:00 | 2016-03-10T19:32:00 | 53,609,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | {"profile": "0.974092483521", "hair": "0.91241133213", "hairstyle": "0.996788263321", "fashion": "0.997870385647", "jewelry": "0.93635571003", "curly": "0.955452501774", "people": "0.993453621864", "dress": "0.908811211586", "individuality": "0.916719317436", "one": "0.99091988802", "glamour": "0.992386758327", "girl":... | [
"arthur.wilcke@gmail.com"
] | arthur.wilcke@gmail.com |
264b62e7d0d2651cf9ec655cdfb6fafd32babdd4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2701.py | 4dfd25441bfd296e14ceefcf2861b262d56462e9 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import math
def get_stall(arg):
l = []
arg.sort()
for p1, p2 in zip(arg, arg[1:]):
diff = abs(p1 - p2)
if not l:
l.append(diff)
l.append(p1+(diff//2))
l.append(p1)
elif l[0] < diff:
l.clear()
l.append(diff)
l.a... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5777394da90b2decc1962dac71b63847e4a0847c | bef13bdcfdcccb7c77944a1591c1d333efbf6c08 | /HW1/String/Alphabet Rangoli.py | 47d72ed7056d848ed7fe7474bd397cf2137b346b | [
"MIT"
] | permissive | danial1371/ADM-HW1 | a18cb0f5d14c557b9d7050c20134f803bb2d2911 | 30c8b7879b14d29dddf6e20192f7e0fea2466cf9 | refs/heads/main | 2023-01-01T02:05:54.115347 | 2020-10-25T22:15:52 | 2020-10-25T22:15:52 | 306,909,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import string
def print_rangoli(n):
alpha = string.ascii_lowercase
L = []
for i in range(n):
s = "-".join(alpha[i:n])
L.append((s[::-1]+s[1:]).center(4*n-3, "-"))
print('\n'.join(L[:0:-1]+L))
if __name__ == '__main__':
n = int(input())
print_rangoli(n) | [
"noreply@github.com"
] | danial1371.noreply@github.com |
230d4677c465eea7cfbd8f9c140668c97d6c6b4a | dd5a81524d533a7030c164931d6fb03ba721657a | /Hack assembler/assembler.py | 1ac2b1c4398e8f39acd666f2958315afebdec293 | [] | no_license | RakibRyan/nand2tetris-1 | 5e159757e8b88a9c26ca16d609ec64c3b0dc6a24 | 02904220dadb41a450e7d60d5cdd8191ff76ed90 | refs/heads/master | 2022-02-09T03:27:29.607433 | 2019-07-13T17:07:57 | 2019-07-13T17:07:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | #!/usr/bin/python3
"""
Hack machine language assembler
https://www.nand2tetris.org
@author: shubham1172
"""
import sys
import argparse
from parser import Parser
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument('path')
args = arg_parser.parse_args()
file, data = None, None
try:
file = open(args.path... | [
"shubhamsharma1172@gmail.com"
] | shubhamsharma1172@gmail.com |
71f8e48ac7187f8012e3da7093cb4d2d812e2023 | 00fbdd922ffa68ac67bcb99a6dd8450065769cc1 | /ba2-104-7.py | 9295606efc705ba727e1b2c2a5ec35168f5a4a20 | [] | no_license | lukewang7/bioinfo | f083077f2d1ca24b7ccf5b62ea645c67ddfbfa30 | cf5081f435e98bfe355b09ef8ae21efd6493be40 | refs/heads/master | 2021-01-20T09:00:37.684765 | 2015-06-21T00:02:58 | 2015-06-21T00:02:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,174 | py | import sys
from collections import Counter
minval = 57
maxval = 200
cyclos = {}
scores = {}
spectrum = Counter()
elements = []
leaderboard = [()]
leader_peptide = [()]
leader_score = 0
max_weight = None
N = 0
M = 0
#runs a convolution of spectrum to get M most frequent elements
def get_M(M, spectrum):
allweights =... | [
"anachesa@gmail.com"
] | anachesa@gmail.com |
47ec0b8daf1be246726bb38689c9967a2047b1d3 | 76050b0002dac757866a9fb95dc199918da665bb | /acme/utils/iterator_utils_test.py | ebe21f3a602dbf5b91ce2fc5ab468a73080be58f | [
"Apache-2.0"
] | permissive | RaoulDrake/acme | 2829f41688db68d694da2461d301fd6f9f27edff | 97c50eaa62c039d8f4b9efa3e80c4d80e6f40c4c | refs/heads/master | 2022-12-29T01:16:44.806891 | 2022-12-21T14:09:38 | 2022-12-21T14:10:06 | 300,250,466 | 0 | 0 | Apache-2.0 | 2020-10-01T11:13:03 | 2020-10-01T11:13:02 | null | UTF-8 | Python | false | false | 1,249 | py | # Copyright 2018 DeepMind Technologies Limited. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
36e916c8090b3c04f5c332984140f1c1e3aa7642 | 98c590e21c004225dd6095a1ae925b7da6bdb627 | /meal_prep_app/migrations/0035_auto_20210615_1658.py | a0656b825dd8dbffe2d873b9f42df34d2d073562 | [] | no_license | xwosic/meal_prep_project | 10abdc2f1b140b10eda71e023085b1c851854036 | 72f53a02992694e3a5d0235b278e9224ed5cf4cd | refs/heads/master | 2023-06-15T21:08:37.965948 | 2021-07-14T11:57:59 | 2021-07-14T11:57:59 | 385,912,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.1.7 on 2021-06-15 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('meal_prep_app', '0034_remove_shoppinglist_amounts'),
]
operations = [
migrations.AlterField(
model_name='shoppinglist',
... | [
"mcisow@gmail.com"
] | mcisow@gmail.com |
2b149a759936616df7de6403e9ccee147214a654 | 7025bda64ac1e9d472bc8bfe40981c517e3c1e46 | /Password_Cracker.py | 1f3692bad9bbaa3e4634a4c1944032e626315523 | [] | no_license | SzymoRatajczak/PasswordCracker | aeb642b845def52eb8a14ff77c7e66446651dfbd | c4cf45967aa97229bc4d9d689fe41bcea692ecbb | refs/heads/master | 2020-09-16T03:08:16.484551 | 2019-11-23T18:03:34 | 2019-11-23T18:03:34 | 223,631,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import crypt
def crack(pas):
salt=pas[:2]
wordlist=open('usr/share/wordlist.txt','r')
for word in wordlist:
word=word.strip('\n')
enc=crypt.crypt(word,salt)
if(enc==pas):
print('Password was cracked:'+word)
else:
print('Password cannot be c... | [
"noreply@github.com"
] | SzymoRatajczak.noreply@github.com |
eb1c93b1147d8ab10aef657ea6ff65381154bc2d | 4530ee48b594bb7ecd6832fd8de08115d94c2cfc | /pytest.py | c2b6a689de5f696743364e5f9790cdc573f0d8ae | [] | no_license | SeananTQ/bbq-server | 186e6a8126269a2ef750849b73c8742262235fbf | 90ab7bb5d1b6f654e09d981640f56fe76da169f2 | refs/heads/master | 2020-03-10T02:06:05.332300 | 2018-04-29T17:10:11 | 2018-04-29T17:10:11 | 129,127,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import json
class Group:
def __init__(self, aa, bb):
self.aa = aa
self.bb = bb
temp = Group("aaaa", "bbbb")
print(temp) | [
"38140149+SeananTQ@users.noreply.github.com"
] | 38140149+SeananTQ@users.noreply.github.com |
5b683b99c44e491339df51fa623bbbc58b8347c9 | 553b5806d7fd69258e699d1eddefa005e5e9f3bd | /Algorithms/Tuples.py | 435009038fcc8d62c5bf4ff9e244f581c42b9be2 | [] | no_license | ShaftesburySchoolDorset/PythonIntroAlevel | 7c2c8d9c7c0091e8721fbcad158b994f19d16811 | 47aaf0d6905495046e1ef9f0e0503ea6de234338 | refs/heads/master | 2021-01-24T08:48:58.140811 | 2017-05-02T10:48:41 | 2017-05-02T10:48:41 | 69,012,638 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #!/usr/local/bin/python3
ta = 1, 2, 3, 4
tb = (1, 2, 3, 4)
print(ta)
print(tb)
print(ta[0])
#ta[0] = 12
print(ta + tb)
def squares():
values = []
for i in range(1, 21):
values.append(i ** 2)
return tuple(values)
print(squares())
| [
"gcomplin@gmail.com"
] | gcomplin@gmail.com |
c160dbc7cf0935e7f921ffa2272c88e9e446b3ea | 2489e59412d6a2d128d41d396a0e583ac8282c61 | /InsertionSort.py | d8bb3def437483ff5a5e832f8c7a115893a6e2b1 | [] | no_license | crb8v2/3130algs_proj2 | bd27084095b097d0008ed1e085fa30505729ca72 | 8b63004dc228ae5d4f326a3fd83b8cd34d81281e | refs/heads/master | 2020-04-01T19:08:18.256907 | 2018-10-24T00:19:43 | 2018-10-24T00:19:43 | 153,537,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py |
# http://interactivepython.org/courselib/static/pythonds/SortSearch/TheInsertionSort.html
from random import *
from timeit import default_timer as timer
import random
def insertionSort(alist):
for index in range(1,len(alist)):
currentvalue = alist[index]
position = index
while position>0 and ali... | [
"connor@admin.com"
] | connor@admin.com |
74bc60d0e44d130fdca4152fa6528656aeb5e24c | d3bf647ba8c99c3ff13c0cf66e03d5c2f52e26a5 | /dsa/temp.py | ee23c59fb9463e778a491b8047847ae0c65a155f | [] | no_license | jyale/blackbox | 8d9ce11ca97087f7e03e39b2c85aea2e2df4d0f1 | 975c853a69154e58f037cf041d6c2d513f148796 | refs/heads/master | 2020-03-28T01:05:00.332105 | 2013-06-20T20:14:37 | 2013-06-20T20:14:37 | 10,828,404 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py | from Crypto.Random import random
from Crypto.PublicKey import DSA
from Crypto.Hash import SHA
################################
# LINKABLE RING SIGNATURE CODE
################################
key = DSA.generate(1024)
p = key.p
q = key.q
g = key.g
# generate private keys
x1 = random.StrongRandom().randint(1,q-1)
x2 = ... | [
"jyale@---.com"
] | jyale@---.com |
bdb18e3f32676784b2de62e0014c030128a9383d | ea31a366cd897b2aa1d286a26dcd9c8e10e72c25 | /airflow/plugins/kaggle_elt/kaggle_dbt_source.py | d81bece33f752898d83f2fd8519f5f6eb8cbbd14 | [] | no_license | Beetelbrox/accident-information-challenge | d533468c628e1a6453ef0ceffe257480434d2239 | 4e6594013eedf8a73f0edc4e4cc7420a19bff829 | refs/heads/main | 2023-06-18T12:37:50.184600 | 2021-07-16T22:02:18 | 2021-07-16T22:02:18 | 385,966,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,428 | py | import os
import yaml
from typing import Dict, Any
class KaggleDbtSourceTableColumn:
"""A class representig a dbt source column, enriched with the kaggle metadata"""
def __init__(self, dbt_yaml: Dict[str, Any]):
"""Constructs all necessary attributes for the object from a parsed dby .yml file"""
... | [
"9376816+Beetelbrox@users.noreply.github.com"
] | 9376816+Beetelbrox@users.noreply.github.com |
46b615398d8bcde373699b18aa5c12cde8c97045 | aa84cae5ab53d7f426c86cd0cf0df3e288fd1e8d | /hsm/migrations/0014_datetest.py | 2f7867b8edab5ed9d703beb57407c46e96e85051 | [] | no_license | ali-man/AppReception | 6603dfec85cb1ff792c69cf2bb060f671a237c17 | 734669fcda4f0643c5f30d6da7d59a7a87c7de9a | refs/heads/master | 2020-05-04T21:33:50.194166 | 2019-06-12T14:35:42 | 2019-06-12T14:35:42 | 179,481,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 2.2 on 2019-04-16 11:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hsm', '0013_auto_20190414_2002'),
]
operations = [
migrations.CreateModel(
name='DateTest',
fields=[
(... | [
"aliman.fsd@gmail.com"
] | aliman.fsd@gmail.com |
bdb0d8ac61f3466c665fc80a84a453800a648b70 | 631a48a47b969a211364baae450f9dfc4af7a5f3 | /CVRP_Skenario_4.py | bd3c79bf8c70b21653a0a9b67d871e99687c3376 | [] | no_license | Rierii/VRPManTrans | 52fdedc07a79f4df8afb8a3cddf8fa9294e8a089 | 304c10a2cb02b3dff2807c558beae9c92e5bf1b7 | refs/heads/main | 2023-01-23T03:34:59.204126 | 2020-12-11T11:35:23 | 2020-12-11T11:35:23 | 318,479,781 | 0 | 0 | null | 2020-12-11T11:35:24 | 2020-12-04T10:21:36 | Python | UTF-8 | Python | false | false | 4,866 | py | """SKENARIO 4"""
# Kapasitas 120, Jarak 35
from __future__ import print_function
from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp
def create_data_model():
"""Stores the data for the problem."""
data = {}
data['distance_matrix'] = [
[
... | [
"audreyrizki@gmail.com"
] | audreyrizki@gmail.com |
e0484f2e58aab4de9e567907b0778dc57f18cc34 | 574d7955a32116e2fa315b5f75f124863ca70614 | /blog/admin.py | ee30581a5a79496780dd1cb38aa3d14fd815c3c0 | [] | no_license | harunurkst/django_course_04 | b15cb8e52a821b1157e1ac4dbe56b89fdebce848 | 5d93290cbee0f47795b6c9ecef8d33d8afe859d1 | refs/heads/master | 2022-11-22T20:48:36.196279 | 2020-07-26T17:20:37 | 2020-07-26T17:20:37 | 278,904,995 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from django.contrib import admin
from .models import Post, Author, Category, Comment
class PostAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("title",)}
admin.site.register(Post, PostAdmin)
admin.site.register(Author)
admin.site.register(Category)
admin.site.register(Comment) | [
"harun1393@gmail.com"
] | harun1393@gmail.com |
c4fdac06da50ef0fa06741cf8c8cfa9c834776fb | bf6cf5e55349e414ccca0fc674f721f589e06e8f | /src/forum/migrations/0005_auto_20170610_2010.py | c9a5282f5b3c56db1765f20b66b71acfa3144eaf | [
"MIT"
] | permissive | shashankmohabia/gymkhana-master | cc7e3db4847edc2f91fc752da2fc35ad055f237d | a0d399d781797a2f63fb81a1ae287714213d068b | refs/heads/master | 2021-05-03T10:29:29.596959 | 2018-02-06T23:27:16 | 2018-02-06T23:27:16 | 120,535,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-10 14:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('forum', '0004_auto_20170610_2006'),
]
operations =... | [
"shashankmohabia27@gmail.com"
] | shashankmohabia27@gmail.com |
e3e6ba2f90be69ce473c4e202b7654e7116b46be | 97fbecfb57cb605114f50fccdbdf79ec2420d8ff | /osf/migrations/0080_add_abstractprovider.py | 2c2bab38453a9b4ecfdbf84fc5b3437b05e4dfbf | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | pattisdr/osf.io | ffa259465304beb4212c42f26a8811743b3cdf24 | 2a8bdf358bb67f0ad5a9e7bb7ac9a329b98e8825 | refs/heads/develop | 2020-12-26T01:13:56.958648 | 2019-06-11T13:39:00 | 2019-06-11T13:39:00 | 35,900,874 | 1 | 1 | Apache-2.0 | 2019-10-30T13:49:15 | 2015-05-19T18:33:09 | Python | UTF-8 | Python | false | false | 9,581 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-02-15 19:48
from __future__ import unicode_literals
import dirtyfields.dirtyfields
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import osf.models.base
impor... | [
"maf7sm@virginia.edu"
] | maf7sm@virginia.edu |
bb1cdd39e5a42df923644cd0545ed8af6c329188 | 5de1aecd976ce222efc4d86b1efd65185eaa4f46 | /TD3.py | 6120bcc1b72e8028e779a22c1947d47f0db3df1a | [] | no_license | THBUer-yw/DOIL | cb093d164ecc79a4f15045c9b3d25b521dfc40e2 | d5cc75a356d67e65e1e09c9ca02db15e23313eb3 | refs/heads/master | 2023-05-14T14:22:09.156903 | 2021-05-31T08:22:16 | 2021-05-31T08:22:16 | 324,306,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,146 | py | import copy
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
# Implementation of Twin Delayed Deep Deterministic Policy Gradients (TD3)
# Paper: https://arxiv.org/abs/1802.09477
class Actor(nn.Module):
def __init__(self, state_dim, action_dim, max_action, num_hidden_layers):
su... | [
"13261059591@163.com"
] | 13261059591@163.com |
a7952a9685c8a7d0c16b7e21cba095dabb0d61bd | 23da3316b2ad2cbd0b3b8091458c262e6173ce24 | /cod/test_collection_4_dict.py | 70e6f3b438802d8818a6d3241e7ff86f32023742 | [] | no_license | babelcodes/python | 6d3dd9100aed98a37e77129794b3af11c8f89e55 | 86b306c0416e371a3a8f37a3a5d3fec42ce448df | refs/heads/master | 2020-04-13T12:49:10.383718 | 2019-01-02T08:15:54 | 2019-01-02T08:15:54 | 163,212,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | import unittest
class TestDict(unittest.TestCase):
"""A dictionary (or hashmap) is a class for key / value representation"""
def setUp(self):
self.occurances = dict(a=5, b=6, c=8)
def test_create(self):
self.assertEqual(self.occurances, dict(a=5, b=6, c=8))
def test_create_with_func... | [
"jacques@2ia.net"
] | jacques@2ia.net |
60f85b79ba416594b640d3e783cafbb958ce74b0 | cfd6d3c89e684cd233efa61d07e79316d243b66a | /Code/Fake Blog/This.py | dfae5241ec1b4d07126309006df12af16ea53d1f | [] | no_license | Jabungu/python | d8fc6ab8f671df5f2f947edb9564ca87bac4ea1a | fed591a29c44606f5274c5adc8f226d115dd3136 | refs/heads/master | 2023-03-22T13:56:56.137768 | 2021-03-08T20:23:58 | 2021-03-08T20:23:58 | 297,374,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | print('try')
| [
"joboderoh15@gmail.com"
] | joboderoh15@gmail.com |
33479b018326b141432225a386b4a3eaf5c3298a | e9ed5c06e172b939461c2b6b594adc8d4601bbda | /LPythonB/shorten_url/controller.py | f6a77c89df4271b1e3220d16eb204d0475fbd507 | [] | no_license | Qiong/ycyc | e65bd4a882a0ba10dcc6b95648fb3fc19f110239 | df3805aa6ac1b13e8707b8b49f8171d18eed8202 | refs/heads/master | 2016-09-06T14:21:21.066282 | 2015-06-06T21:44:29 | 2015-06-06T21:44:29 | 19,927,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | # Redirect function is used to forward user to full url if he came
# from shortened
# Request is used to encapsulate HTTP request. It will contain request
# methods, request arguments and other related information
from flask import redirect, render_template, request, Flask
from werkzeug.exceptions import BadRequest, ... | [
"qiongfei.seas@gmail.com"
] | qiongfei.seas@gmail.com |
96a43ae78f3ba03b1c8502952406d7f35f3535b6 | a45f64b5bbbb4ba3321ad171288afd62e969e630 | /Contact-Management -System/Contact-Management -System/Contact-System.py | 5275042ce4b58a80896fc927ce5d3e3a8dc2e36d | [] | no_license | shivam-mahato/test | 8c6374817646075e7f0a3fe66124dc539c3213aa | f15dd498fba2dfb0e69e976d37c06ccb1fd4451c | refs/heads/master | 2023-05-05T06:36:14.238717 | 2021-06-01T04:42:39 | 2021-06-01T04:42:39 | 372,701,677 | 0 | 0 | null | 2021-06-01T04:42:39 | 2021-06-01T04:35:00 | Python | UTF-8 | Python | false | false | 16,486 | py | # This
from tkinter import *
import sqlite3
import tkinter
import tkinter.ttk as ttk
import tkinter.messagebox as tkMessageBox
root = Tk()
root.title("Contact System")
root.geometry("700x400+0+0")
root.resizable(0, 0)
p1 = PhotoImage(file='images/icon.PNG')
root.iconphoto(True, p1)
root.config(bg="dark gray")
# VA... | [
"shivam-mahato"
] | shivam-mahato |
ac7c12faf572165f8d8a4344ba7869bb8ca61cc8 | 6c7322cdbe9189bf51b4a7c7394ea5b181df2328 | /dev/IA/gauss_noise.py | bd1fce83801b9e7a55a802466e2b3be0411388af | [] | no_license | StenbergSimon/scanomatic | 4683f7f2c1330cc9cc998d1f83bed73afbe05e83 | db5dd2e8501d9db8fb0fd8fbf5c9ddd652ae8fdf | refs/heads/master | 2020-06-11T13:35:52.036072 | 2016-10-03T09:19:40 | 2016-10-03T09:19:40 | 75,655,065 | 0 | 0 | null | 2016-12-05T18:38:03 | 2016-12-05T18:38:03 | null | UTF-8 | Python | false | false | 610 | py | import numpy as np
class SigmaError(Exception): pass;
def gauss_noise(im, sigma):
if sigma <= 0:
raise SigmaError(
"Sigma ({0}) is not larger than 0".format(sigma))
return None
v = np.zeros(im.shape)
G = im.max()
theta = np.random.random(im.size)
r = np.random.rand... | [
"martin.zackrisson@gmail.com"
] | martin.zackrisson@gmail.com |
64ec23c48be93c3136600c02443e4ac2a6a55ecc | d69ed5cfab7bdcc4125f9f4f4d3531ce00a94fce | /codes/rosenbrockfunction.py | fae2567587c1825fc91f6af8dd7d2f46fd814373 | [
"BSD-2-Clause"
] | permissive | hanzhuowei/deeplearningliterature | 1f84b081377f74f07bae0dfa09aaa22a0e7b610c | e9f58b7edf1e76850c91e2a868752f40f5fae37b | refs/heads/master | 2021-01-01T20:48:02.124811 | 2015-04-08T13:03:35 | 2015-04-08T13:03:35 | 25,296,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 6 14:37:17 2015
@author: d1143
"""
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.colors import LogNorm
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = Axes3D(fig, azim = -128, elev = 43)
s = .05
X = np.ara... | [
"d1143@pc226.(none)"
] | d1143@pc226.(none) |
8f1d9b9c7f0d83582637adb178f4567c71ee05ee | 9ebbe3fedeb1ca31603bc555fcce87b883781052 | /7. Data Structures/graph.py | 902ca0ced6ce9128ea76b1f33c26cb501cb32790 | [] | no_license | TMJUSTNOW/Algorithm-Implementations | 5db118756de998460a91e09217b9b84ac235bae9 | 552a98c86840ce5876ad516677bb0dafcc7f257e | refs/heads/master | 2021-06-02T06:49:04.105530 | 2016-09-30T05:22:45 | 2016-09-30T05:22:45 | 105,765,850 | 0 | 1 | null | 2017-10-04T12:30:14 | 2017-10-04T12:30:14 | null | UTF-8 | Python | false | false | 13,126 | py | # TODO: Convert Dijkstra processed dictionary to array
# A set of data structures to represent graphs
from queue import Queue
from heap import MinHeap
import sys
class Node(object):
def __init__(self, name):
self.name = str(name)
def getName(self):
return self.name
def __str__(self):
... | [
"mdsalerno@gmail.com"
] | mdsalerno@gmail.com |
5c3b3f6888d640338b4b8142484c0632a9ddf488 | 710eb4463c6e7c49d3d64c1409557a885f0585bd | /Easy/1103_分糖果||/main.py | aab9b69889f701c4683b74aa74fe0c3f25a94b24 | [] | no_license | mintdouble/LeetCode | 8324d2eac2592542e84551dc740d17efc9859764 | 29b1cf8ce6fd883818c3f092dbcbfd435e54b8f3 | refs/heads/master | 2020-08-27T08:00:41.545474 | 2019-11-22T08:55:43 | 2019-11-22T08:55:43 | 217,292,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # 思路:找到每个人每轮获得糖果的通项公式,根据通项公式得到求和公式,就可以根据分发轮数一次性得到该人最终获得的糖果总数
import math
class Solution:
def distributeCandies(self, candies: int, num_people: int) -> List[int]:
max_people = int(math.sqrt(2*candies+0.25)-0.5)
remain_candies = candies - (max_people*(max_people+1)) // 2
epoch = max_people // ... | [
"noreply@github.com"
] | mintdouble.noreply@github.com |
3157e2a88e41bb79673664c7282c66fc1660f782 | 54838734dd8a1a9b7ac329118081163b4b3a6892 | /src/utils/static_params.py | 707afb540e433ebda242a9ca7ac08fcc3843a404 | [] | no_license | pyliaorachel/SeqGAN-paraphrase-generation | b8e0e6a84e16571d02490739ab2e835dcd464fc3 | 8babe2b16dd1a495f7be2c07d40d57a79501eedc | refs/heads/master | 2020-03-25T03:57:11.079929 | 2019-07-28T20:44:02 | 2019-07-28T20:44:02 | 143,369,844 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import torch
DEBUG = False # Run for fewer iterations/epochs/steps
LIGHT_VER = False # Light version of dataset
NO_SAVE = False # Save model
START_TOKEN = '<S>'
END_TOKEN = '<E>'
PAD_TOKEN = '<P>'
CUDA = torch.cuda.is_available()
TRAIN_SIZE = 53000
TEST_SIZE = 3000
VALID_SET_SIZE_RATIO = 0.1
dataset_path = './dat... | [
"pyliao@stanford.edu"
] | pyliao@stanford.edu |
e131f4ceced2b0d9f4007477785d44916f46a583 | 50272366e3d57aeb0cfc91a69dbd080b234647bd | /Users/views.py | 7946a226eaf36c74bd1a8c9562b8712a89a42dba | [] | no_license | Saumyaa27/Disease-prediction-and-patient-management-webapp | fb0fa5f9f77f968092c1df06d5abfcbaccadcff9 | ec08ece69a6d085a801316a9ec220a472aef02fb | refs/heads/master | 2023-01-03T07:48:28.244851 | 2020-10-27T12:23:31 | 2020-10-27T12:23:31 | 307,931,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,981 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from django.contrib.auth import authenticate, login, logout
from django.db import IntegrityError
from django.contrib.auth.decorators import login_required
from .models import User,Patient,Doct... | [
"mahajanparth19@gmail.com"
] | mahajanparth19@gmail.com |
21ea6f623d63c27d406333f8b1c81b7bf7634102 | d247d0eae00007902a737840b1acb3347fe83c41 | /age.py | c04a2321936446426e66a2ea03af2d1732303ed9 | [] | no_license | vincentvmarshburn/example-repo-2 | 746b3c269ef6fc8d860f4b9c4850effdc1d6ee32 | 999d4eb4306f70e6f2c84cc089787a697c0a1a53 | refs/heads/master | 2022-09-03T16:23:07.363026 | 2020-05-29T18:30:52 | 2020-05-29T18:30:52 | 267,906,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | __author__ = 'noomatik'
from datetime import datetime
YEAR = datetime.now().year
name = input("What is your name? ")
birth = input("What is your year of birth? ")
age = YEAR - int(birth)
print("Hello %s! You are about %s years old." % (name, str(age)))
| [
"vmarshbu@mdc.edu"
] | vmarshbu@mdc.edu |
5ae45e5f638e154d0d9da7e58147b5cd60fd3360 | 05a1ea9da06020fd737e6e4bc1a370f253c47cf2 | /input/kinetics/families/Intra_R_Add_ExoTetCyclic/groups.py | cf6b8d5e594afb263a0eb949f220c3062362d10d | [] | no_license | alaraen/RMG-database | f16e8375b850f9e25885726fc2da4914e68963ca | cd9e2d27d9fe8a43e44de41ba482ee6dfeb12cf0 | refs/heads/master | 2021-01-18T08:55:56.859791 | 2014-06-17T02:33:27 | 2014-06-18T02:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77,137 | py | #!/usr/bin/env python
# encoding: utf-8
name = "Intra_R_Add_ExoTetcyclic/groups"
shortDesc = u""
longDesc = u"""
"""
template(reactants=["R1_rad_R2_R3"], products=["R1_R2_Cycle", "R3_rad"], ownReverse=False)
reverse = "Ring_Open_Rad_Addition"
recipe(actions=[
['BREAK_BOND', '*2', 'S', '*3'],
['FORM_BOND', ... | [
"r.west@neu.edu"
] | r.west@neu.edu |
130a442d803e3f5aac86c565cd413cffa54efff7 | 56220461c0cf341a938be63b0f836626d4d86cab | /apivue/views.py | e9363d24e0539dd85522fd06cf2c4ba772af9827 | [
"MIT"
] | permissive | granith/productdevelopment | 68a79399cb1775b6f5339dbd8f696b6510cd0601 | 3b750d186092b95ea7f8c36aa19f6a9606727372 | refs/heads/master | 2020-03-29T02:27:23.037595 | 2018-09-25T15:04:02 | 2018-09-25T15:04:02 | 149,437,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.contrib.auth.models import User
from rest_framework import viewsets
from apivue.serializers import UserSerializer
class UserViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows users to be viewed or edited.
"""
queryset = User.objects.all()
serializer_class = UserSerializer
| [
"ghoda@designvox.com"
] | ghoda@designvox.com |
74dda792922704aaaf898ddd4475c618ca61ec5c | 28cc34a7b9e77c3044768ff1ee6266b39f521932 | /cookiespool/db.py | b9f07e0dd81a97acff6a397b8699819319470f4e | [] | no_license | Foxgeek36/CookiesPool | 1d99267e78b6721709aa45635fdc1838efa57abb | 9088a29cc76368a570013211b431983b461239cd | refs/heads/master | 2020-07-09T16:50:47.339321 | 2019-08-25T06:30:17 | 2019-08-25T06:30:17 | 204,026,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # coding=utf-8
import random
import redis
from cookiespool.config import *
'''
[redis存储模块]
'''
class RedisClient(object):
def __init__(self, type, website, host=REDIS_HOST, port=REDIS_PORT, password=REDIS_PASSWORD):
"""
初始化Redis连接
:param host: 地址
:param port: 端口
:param pas... | [
"1002301246@qq.com"
] | 1002301246@qq.com |
a7a5392cbe81404976148b44c2ac223acab5bdc2 | c8be480ca49549048defae246309edd4771f929e | /tests/test_lzf.py | 33c3860c4955e5ad8865dc3a8c851edf0cb37915 | [
"MIT"
] | permissive | darcyg/rdbtools3 | da79cc74218eaa22bd2884bc4f1450a86f57f7a8 | 7c92768299c35f18a479930335011e1b47f408ff | refs/heads/master | 2021-01-16T22:19:32.078545 | 2014-02-13T15:12:02 | 2014-02-13T15:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | import unittest
from io import BytesIO
from rdbtools3.lzf import unpack_lzf
from rdbtools3.exceptions import RDBValueError
class TestLZF(unittest.TestCase):
def test_simple(self):
data = BytesIO(b'\x04ABCDE')
ret = unpack_lzf(data, 6, 5)
self.assertEqual(b'ABCDE', ret)
def test... | [
"alexey.popravka@horsedevel.com"
] | alexey.popravka@horsedevel.com |
5e2be6a66278427ebc2e1b6afcf0da997df8679c | 2a435bb6ecc2b3d2df0bca62aa990312b313ff8d | /pointer/urls.py | c6f3cd054e4c7e31dc6a8cea3c5bf4f5e6dd8f5f | [] | no_license | singlasahil221/My-CGPA | 331809e2343989556c6b208fb3414f9039551afd | c651956de4973be1057f3f15dd04a4334a40ff66 | refs/heads/master | 2022-12-12T14:55:36.755727 | 2018-02-16T05:40:27 | 2018-02-16T05:40:27 | 120,011,982 | 0 | 1 | null | 2022-05-25T00:25:35 | 2018-02-02T17:42:20 | Python | UTF-8 | Python | false | false | 173 | py | from django.conf.urls import url
from django.contrib import admin
from calc import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.home),
]
| [
"singlasahil221@gmail.com"
] | singlasahil221@gmail.com |
e7f7098869934c8e98d694a44382c6cb60479ac5 | 717e0190612c20b9f5d26fec77e293c9b53f0e17 | /numpywren/binops.py | cc74dd808794dfddd673758ef5304f701452777c | [
"Apache-2.0"
] | permissive | cloudbutton/lithops-array | 8336e16cf9b80e8745ba9c63256294d2d7206a1c | 5e74b881c7db95eccdccf986f1e3b0dc44603889 | refs/heads/main | 2023-04-23T08:15:42.450676 | 2021-04-06T13:40:15 | 2021-04-06T13:40:15 | 344,418,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,962 | py | import numpy as np
from .matrix import BigMatrix
from .matrix_utils import chunk, generate_key_name_binop
from . import matrix_utils
import concurrent.futures as fs
import os
import lithops
import time
from . import lambdapack as lp
from . import job_runner
def _gemm_remote_0(block_pairs, XY, X, Y, reduce_idxs=[0], ... | [
"josep.sampe@gmail.com"
] | josep.sampe@gmail.com |
2c4021079c1f87e0901a6b63792636763cca4222 | 71fbc701cf090716b213b4025e0d96e73f452aa1 | /thonny/plugins/micropython/bare_metal_backend.py | e2c05ea6a3bf2167e2930a0585828115101b1047 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | bosige/thonny | 678f3ab05185dbead41b0a04c2db025834008fc9 | 78317670d1ec8e8cd39f4bb2e5c6a2927fedd7b3 | refs/heads/master | 2022-12-11T12:25:49.484079 | 2020-09-16T12:48:55 | 2020-09-16T12:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,084 | py | import binascii
import datetime
import logging
import os
import queue
import re
import sys
import time
from _ast import Not
from textwrap import dedent, indent
from typing import BinaryIO, Callable, Optional, Tuple, Union
from thonny.backend import UploadDownloadMixin
from thonny.common import (
BackendEvent,
... | [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
a6dcca2939618af8c91bc0e748a3952d91efa375 | d1d5818a3c85a92529d01e39e72cb46700a2ae66 | /weather/weather/urls.py | f700317356c93cfd4cadb50d6444b763c4f9b1ae | [] | no_license | spenrob/weather | c5fca0924c78f9a4cfa71fd389f91f844755520f | 553cf39062f4a9366869637c950f84e3ddb89d36 | refs/heads/master | 2021-01-23T21:01:43.927335 | 2017-05-08T20:38:04 | 2017-05-08T20:38:04 | 90,670,013 | 0 | 0 | null | 2017-05-08T20:38:05 | 2017-05-08T20:33:31 | null | UTF-8 | Python | false | false | 882 | py | """weather URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-ba... | [
"noreply@github.com"
] | spenrob.noreply@github.com |
bb17b14f9cc0eaaeb740793ec62035edb8637a1f | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/lib/surface/privateca/subordinates/activate.py | f9f73fb40b0bb8a564338a2a28bed7e1e5cf84c6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 3,547 | py | # Lint as: python3
# -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | [
"guanzhi97@gmail.com"
] | guanzhi97@gmail.com |
51e877e96f8a2a6aafafcea65468e4ae5512e5a6 | 71ae741529cab7c174997d0b0ff3f1968ff9e809 | /InsAndSel_Time.py | b9b0394083612b591e3af881e50529604a1c1c3e | [] | no_license | Sdancy/Database_stress_testing_for_mysql | 6200676b23059b21151702eec6cdcc81e562ee47 | cd08ca13d7f0dbe4dadf8a56e8e1d3a21ccbc7a3 | refs/heads/master | 2023-01-25T01:08:52.479964 | 2020-12-07T13:38:31 | 2020-12-07T13:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | import pymysql
import time
import random
import string
connect = pymysql.connect(
host='127.0.0.1',
user='root',
port=3306,
passwd='000606',
db='short_video_platform',
use_unicode=True
)
def SelectTime():
begintime=time.time()
cur=connect.cursor()
sql="SELECT ID,NAME FROM users " \
... | [
"785565314@qq.com"
] | 785565314@qq.com |
da8bf2b9c61541005f63641740d9613f6612a029 | 77afbf0a99d958fe497567c5fb03074e66cfa3d5 | /batch/weather.py | 680003d60fadbfbc20de78db5106524d3b41f93c | [] | no_license | tmkokumura/smarthouse | c402a2e0eca727734707f6849c54983da168e781 | b3b3b6d7d1cbed50fc7a3dc7becbbbd99e6108d3 | refs/heads/master | 2020-03-30T07:32:35.331574 | 2018-10-31T12:40:49 | 2018-10-31T12:40:49 | 150,947,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | # -*- coding: utf-8 -*-
from datetime import datetime
import time
import json
import requests
import logging
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from util import db_utils
log_fmt = '%(asctime)s %(levelname)s %(name)s :%(message)s'
logging.basicConfig(level=logging.DEBUG... | [
"tmkokumura@gmail.com"
] | tmkokumura@gmail.com |
b5d120899fc051df048d8bcf9537e1aa5cfe2f87 | aa69f3a171e44eb245dd18739c2691b35c31eee7 | /sort.py | a8a478a78633497ed9153bd8cca4b59ebb904245 | [] | no_license | marjoriehoegen/sort_log | 094ed8b3bc7cfa54ee4bf67b9f6d235be70f899b | 29238c90089113b60e05da90a199c7544057d50f | refs/heads/master | 2020-03-29T20:58:16.170094 | 2018-09-26T00:00:30 | 2018-09-26T00:00:30 | 150,341,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | import os
import glob
from heapq import merge
from itertools import count, islice
from contextlib import ExitStack
filenames = []
# open file
with open('huge_dummy.log') as input_file:
for file_number in count(1):
# read in next 20k lines and sort them
sorted_file = sorted(islice(input_file, 2000... | [
"marjoriehoegen@gmail.com"
] | marjoriehoegen@gmail.com |
d7f8652cf41ebb2091d7a5b13cabad387a52e6f3 | fbf005bcb1193a7701682b690b660337ac8055d8 | /client.py | ad979610ed308a92fe549857c7478b1b20c40820 | [] | no_license | ZubnayaFeya/messenger | ede708f2a98fb6ca559334094345146662f7e93c | 095f2a4744cd9ab022587841fdc0e8c786eaabb3 | refs/heads/master | 2021-09-10T16:31:30.437000 | 2018-03-29T10:18:36 | 2018-03-29T10:18:36 | 125,897,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | import socket
import json
import argparse
#from time import ctime
from type_msg import *
import jim
class CClient():
def __init__(self):
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock.connect(('localhost', 7777))
def prepare_data(self):
type_data = f_presence(... | [
"danilal@mail.ru"
] | danilal@mail.ru |
338cee3b8aec81de8bf5fd76d3dca9945f54b52e | 796dd05d84c56d0873797b29be58247b1be782c6 | /spotseeker_server/migrations/0002_auto_20181029_2244.py | 31696e5f9941b7a353b9fb758f10d5ac5badbae7 | [
"Apache-2.0"
] | permissive | uw-it-aca/spotseeker_server | 039e65824887a8303f12a3f07e730ca061bab2d5 | 5f21a58b4084d798b1c4f87721b63bad01ac4f36 | refs/heads/main | 2023-08-16T08:53:38.124987 | 2023-04-14T21:41:34 | 2023-04-14T21:41:34 | 11,489,866 | 6 | 7 | Apache-2.0 | 2023-08-15T22:45:30 | 2013-07-17T23:18:17 | Python | UTF-8 | Python | false | false | 1,081 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('spotseeker_server', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='spacereview',
... | [
"cstimmel@uw.edu"
] | cstimmel@uw.edu |
279f22bf4622f6f3548b87e1904bd5ff49efb3c1 | 3e7bc64d26f60db3755abed956598ff6279dfc90 | /Utilities/slidesPlot3D_test.py | 64e7d3e30f452f305bbcec31b55e3e84dee6b1cd | [] | no_license | medford-group/surrogate_functionals | 88fcf1be3fc4e5b1f2a4a8c5fd736b2627f47973 | a4382a4cf0ed4318bcf885f51331aabc9bcc6afc | refs/heads/master | 2020-05-16T18:51:29.578192 | 2017-05-13T03:06:56 | 2017-05-13T03:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,912 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 27 16:19:26 2017
@author: ray
"""
"""
slice3.py - plot 3D data on a uniform tensor-product grid as a set of
three adjustable xy, yz, and xz plots
Copyright (c) 2013 Greg von Winckel
All rights reserved.
Permission is hereby granted, free of charge... | [
"xlei38@gatech.edu"
] | xlei38@gatech.edu |
0b06190e016241e069caff14b930d190e7d5f83f | 00d1856dbceb6cef7f92d5ad7d3b2363a62446ca | /djexample/images/forms.py | dce42d13b42c6f5dec509f69a49c66092513e4b3 | [] | no_license | lafabo/django_by_example | 0b05d2b62117f70681c5fc5108b4072c097bc119 | 3cf569f3e6ead9c6b0199d150adf528bd0b2a7c5 | refs/heads/master | 2020-12-29T17:54:12.894125 | 2016-06-04T10:35:22 | 2016-06-04T10:35:22 | 58,313,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | from django import forms
from .models import Image
from urllib import request
from django.core.files.base import ContentFile
from django.utils.text import slugify
class ImageCreateForm(forms.ModelForm):
class Meta:
model = Image
fields = ('title', 'url', 'description')
widgets = {
'url': forms.HiddenInput
... | [
"lazyfatboy@ya.ru"
] | lazyfatboy@ya.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.