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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e848dbcd393d04149e44c247f5a4581502207f3c | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/chnjea007/question3.py | 0bc5afd1bdca7889b5168b1f137bc1c573eb5d55 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # Assignment 3 question 3
message = input("Enter the message:\n")
repeat = eval(input("Enter the message repeat count:\n"))
thickness = eval(input("Enter the frame thickness:\n"))
for r in range (thickness):
print("|" * r,"+", "-" * ((len(message) + 2) + (thickness * 2) - 2 - r * 2), "+", "|" * r, sep = "")
for r i... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
2b2d0ae0edba4a1583fff16fce9629c63291e3dc | 520b9a66a71e16c77beeaa28d9bc59a03cf77e79 | /shop/models.py | 92ecbc32c3cb702262f8b6657c6672214f313b16 | [] | no_license | gmachielsen/MadebyLoni | 0e40a6cc970a6ef7cc414e6e1f9e640dcbba5076 | e13706e7d61780ac0b1af9f6f8caf7f908d9ace3 | refs/heads/master | 2022-12-10T18:37:25.522641 | 2020-02-04T21:48:55 | 2020-02-04T21:48:55 | 238,231,154 | 0 | 1 | null | 2022-12-08T03:33:22 | 2020-02-04T14:52:57 | JavaScript | UTF-8 | Python | false | false | 2,476 | py | from django.db import models
from django.urls import reverse
from django.conf import settings
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=250, unique=True)
slug = models.SlugField(max_length=250, unique=True)
description = models.TextField(blank=True)
image = models.... | [
"g.machielsen@gmail.com"
] | g.machielsen@gmail.com |
6d2be8063c9baf1a1d101e3bc3a6370ab68af4a9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class941.py | b998894584f82c1b8d88727a51595834cf9c1b86 | [
"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 | 3,927 | py | # qubit number=5
# total number=37
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as np
import networkx as ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
826f136ed78cf1861b035cddfa114d9947177a7a | 39fa403d46a4456a07c761e1aaa8af2d418c5f87 | /apps/data_taking_scripts/2015-10-jpl-park/sweep_and_stream_at_min_s21_two_groups.py | 8cc78c9c3ad1e76c37429bd861fd77636dfed4a8 | [
"BSD-2-Clause"
] | permissive | vapor36/kid_readout | 72d94d96e964d6a2eef3aa57ed6fc814946cfe46 | 07202090d468669200cab78297122880c1c03e87 | refs/heads/master | 2020-12-12T13:32:47.267337 | 2018-11-11T15:36:40 | 2018-11-11T15:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,481 | py | __author__ = 'gjones'
import time
import sys
import numpy as np
from kid_readout.roach import heterodyne
from kid_readout.utils import data_file, sweeps
from kid_readout.equipment import hittite_controller, lockin_controller
hittite = hittite_controller.hittiteController(addr='192.168.0.200')
lockin = lockin_contro... | [
"glenn.caltech@gmail.com"
] | glenn.caltech@gmail.com |
6c0a86308a5a8a1586671cc3b900cc1e6306f8d9 | 028d788c0fa48a8cb0cc6990a471e8cd46f6ec50 | /Python-Web/pythons/pythons/pythons_auth/forms.py | 37236c9031fdea32b32534fdb04a213e7b4490ee | [] | no_license | Sheko1/SoftUni | d6b8e79ae545116f4c0e5705ad842f12d77a9c9d | a9fbeec13a30231b6a97c2b22bb35257ac1481c0 | refs/heads/main | 2023-07-13T15:39:48.826925 | 2021-08-21T12:51:02 | 2021-08-21T12:51:02 | 317,266,200 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.forms import AuthenticationForm
from django.core.exceptions import ValidationError
class LoginForm(AuthenticationForm):
user = None
username = forms.CharField(
max_length=150
)
password = forms.Cha... | [
"martinkypar@gmail.com"
] | martinkypar@gmail.com |
92e841ff0bf1be4e124ac812dc415c948c1bca8e | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/04_Plot/heatmap/heatmap1.py | a737755c2ee0a26831af3838ed9931f17c38f058 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.patches as mpatches
import matplotlib.cm
import pylab as pl
data = pl.random((25,25)) # 25x25 matrix of values
fig = plt.figure()
ax = fig.add_subplot(111, xlim = (0,3), ylim = (0,3))
pl.pcolor(data)
pl.colorbar()
pl.show() | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
550f9a58d50db74c3fb57272a3a0564aca4205a3 | 3c52eda991b4a37e2b807dd1e05f07139637c758 | /examples/client_server.py | 080e7b03ea846b1f8525127d5609ed971d3c8e54 | [
"Apache-2.0"
] | permissive | pgiri/pycos | ebea05b045f15f505eff5cf175798c0cf2b4a1db | 6594c311a02490ae0701fa741b508c335f305816 | refs/heads/master | 2022-12-25T21:53:15.091319 | 2022-12-18T17:27:05 | 2022-12-18T17:27:05 | 91,977,091 | 52 | 9 | NOASSERTION | 2020-02-19T01:47:09 | 2017-05-21T17:58:23 | Python | UTF-8 | Python | false | false | 888 | py | #!/usr/bin/env python
# client and server tasks communicating with message passing
# (asynchronous concurrent programming);
# see https://pycos.sourceforge.io/pycos.html for details.
import random
import pycos
def server_proc(task=None):
task.set_daemon()
while True:
msg = yield task.receive()
... | [
"pgiri@yahoo.com"
] | pgiri@yahoo.com |
daea595ccbb9c88ee865036583ea376a5607127f | 00e804d17f4882e10c192bccebc6f90d60a78162 | /test/verif.py | 1762cadff3a340214e58ca062096aac3f716d3b7 | [] | no_license | devnandito/dataProcess | 2b57006b5f39c47b292e18293db9bdecdfee0744 | b5da91184bf6d8702f74cabbef46e2b4b25b16ac | refs/heads/master | 2023-02-16T21:03:07.412468 | 2021-01-18T21:32:26 | 2021-01-18T21:32:26 | 324,022,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,499 | py | import pandas as pd, json, csv, re, os, sys
from datetime import datetime, timedelta
if __name__ == '__main__':
now = datetime.now()
ihour = now.hour
iminute = now.minute
isecond = now.second
start = timedelta(hours=ihour, minutes=iminute, seconds=isecond)
BASE_DIR = os.path.dirname(os.path.di... | [
"fhersa@gmail.com"
] | fhersa@gmail.com |
40c97a61ac24b8475ed30e89689f8f2dea1aff73 | 1aa94863e9c2667ab937ebc23bcbe467c1c17424 | /homeworks/hw_op_1/parentheses.py | 306f3a5a08bf894fce5a98212565cfb7a0f29036 | [] | no_license | cyr1z/learn_python | 9d6648f10a1babd3bcff7cb3e19e63942518953a | 188ae51737f3b47e9acaaebf9a91530b2fa60194 | refs/heads/master | 2022-12-09T05:24:53.494187 | 2020-09-05T20:17:20 | 2020-09-05T20:17:20 | 281,864,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # 3. Write a Python class to find validity of a string of parentheses, '(', ')', '{', '}', '[' and '].'
# ' These brackets must be close in the correct order, for example "()" and "()[]{}" are valid '
# but "[)", "({[)]" and ' '"{{{" are invalid.
class Parentheses:
open_list = ["[", "{", "("]
close_list = ["]"... | [
"cyr@zolotarev.pp.ua"
] | cyr@zolotarev.pp.ua |
c0a93e368941fa37baddd6151ac2f3deaa92f650 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/rpkg/nipals.py | 75d104e2c794d340891ef8ba4750caa91d159918 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | from .base import RPackageBase
from ..base import SourceMixin
class NipalsRecipe(RPackageBase):
def __init__(self, *args, **kwargs):
super(NipalsRecipe, self).__init__(*args, **kwargs)
self.sha256 = 'bae93f8254166ee62ced3ae372c25271' \
'3945f5fc51f8303ba574744264ed3241'
... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
0c5af194c9baa72bf561be3829d0c96e8dfe3a76 | a67a987ed078da0a1de2908c8c0e08070dee65b1 | /genice/lattices/Struct57.py | 8ab6ddccad2875c664059d05fa3fe325fbd074fa | [] | no_license | Python3pkg/GenIce | ef1ce7ee2997c10e08dde75ac36050a653cd4fc5 | 1e9458b7bf8e0fd2ad5d0c4f8987cea0ae7ca0b0 | refs/heads/master | 2021-01-21T17:31:51.595858 | 2017-05-21T14:09:32 | 2017-05-21T14:09:32 | 91,962,047 | 0 | 0 | null | 2017-05-21T14:09:28 | 2017-05-21T14:09:28 | null | UTF-8 | Python | false | false | 6,675 | py | """
Data source: Dutour Sikirić, Mathieu, Olaf Delgado-Friedrichs, and Michel Deza. “Space Fullerenes: a Computer Search for New Frank-Kasper Structures” Acta Crystallographica Section A Foundations of Crystallography 66.Pt 5 (2010): 602–615.
Cage composition:
(12,14,15,16) = (12,12,0,4,)
"""
pairs="""
8 79
132 124
... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
0a1d6f058d79fafc887ca3d6f1ded85f8244d634 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /tools/md_browser/gitiles_ext_blocks.py | b1a53795e1750d12737e6a32144106c9d9ba5cac | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"APSL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"MIT",
"Zlib"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 2,797 | py | # Copyright 2015 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.
"""Implements Gitiles' notification, aside and promotion blocks.
This extention makes the Markdown parser recognize the Gitiles' extended
blocks notation. T... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
54a3fad2138ebacedcf8939c0b6196bb4d9b3dbb | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/problem-google-code-jam/2018_b.py | 98699ff0f46a03da210a2e0def950bde3e33e108 | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 804 | py | # https://blog.naver.com/ndb796/221247631646
class Solution:
def troubleSort(self, inp):
if inp is None or 0 == len(inp):
return []
idx = len(inp) - 1
while 0 < idx:
tmpIdx = idx
while 1 < tmpIdx and inp[tmpIdx - 2] > inp[tmpIdx]:
inp[t... | [
"morpheus.0@kakaocorp.com"
] | morpheus.0@kakaocorp.com |
ff7a09345bd02f4ebdab16d53b8302d3dce3e7ee | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2453/60870/282722.py | 88542fe2fc3834eef30ed5e16b8c623fc16f52c9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | array = input().split(',')
array = [int(x) for x in array]
num = int(input())
if num in array:
print('True')
else:
print('False') | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cb485c661040f1cf200e0437e69f0fea29343ef5 | caa175a933aca08a475c6277e22cdde1654aca7b | /tests/test_version.py | e7294ded840af2ff9d2315172936d70b828d4787 | [
"MIT"
] | permissive | simonsobs/acondbs | 01d68ae40866461b85a6c9fcabdfbea46ef5f920 | d18c7b06474b0dacb1dcf1c6dbd1e743407645e2 | refs/heads/main | 2023-07-07T04:33:40.561273 | 2023-06-28T22:08:00 | 2023-06-28T22:08:00 | 239,022,783 | 0 | 1 | MIT | 2023-06-26T20:36:39 | 2020-02-07T21:07:46 | Python | UTF-8 | Python | false | false | 139 | py | import acondbs
def test_version() -> None:
'''test if the version string is attached to the module'''
assert acondbs.__version__
| [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
fa497cff7ed5d5a4a2209a08b49b728ff7acf821 | 855501a4cb8a54e0c977d53e6f5d76d8938f99cb | /Quicksort 2 - Sorting.py | 299b80349cb57d654b3016753c09c626f9a9cdef | [] | no_license | Beowulfdgo/HackerRank | 3d7713f68a595af76d857ac9955ae55565b8391f | e4384253f27eee296e0cad39a402cadf47c90164 | refs/heads/master | 2023-05-31T05:30:21.425792 | 2021-06-29T08:47:11 | 2021-06-29T08:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | def quicksort(ar):
if len(ar) < 2:
return ar
lt, eq, rt = [], [], []
for item in ar:
if item < ar[0]:
lt.append(item)
elif item > ar[0]:
rt.append(item)
else:
eq.append(item)
sub = quicksort(lt) + eq + quicksort(rt)
print(' '.join([... | [
"54479676+CormacKrum@users.noreply.github.com"
] | 54479676+CormacKrum@users.noreply.github.com |
a7b4e3f4a3f9ff40a6a3bb1db9cfec26f6dbcff9 | 0e083f405af00029c9ec31849f0f7f81c56844b5 | /demo/python/pipeline.py | f949a910f602bf36b5b2c010c68e3d8b50f4771f | [
"Apache-2.0"
] | permissive | open-mmlab/mmdeploy | 39b9e7b611caab2c76a6142fcb99f0bf1d92ad24 | 5479c8774f5b88d7ed9d399d4e305cb42cc2e73a | refs/heads/main | 2023-09-01T21:29:25.315371 | 2023-08-31T09:59:29 | 2023-08-31T09:59:29 | 441,467,833 | 2,164 | 605 | Apache-2.0 | 2023-09-14T10:39:04 | 2021-12-24T13:04:44 | Python | UTF-8 | Python | false | false | 1,952 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import json
import cv2
from mmdeploy_runtime import Context, Device, Model, Pipeline
def parse_args():
parser = argparse.ArgumentParser(
description='Demo of MMDeploy SDK pipeline API')
parser.add_argument('device', help='name of device,... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
7dc37255f0bda7cbe80a39dbbbb19e810041493e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03049/s443206428.py | 3f28d62a3383c1b8d8566f4abf3168dd0e4cec49 | [] | 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 | 745 | py | N = int(input())
count_ab = 0
count_start_b = 0
count_finish_a = 0
count_start_b_finish_a = 0
for i in range(N):
s = input()
count_ab += s.count('AB')
# print(s, s[0], s[-1])
if s[0] == 'B' and s[-1] == 'A':
count_start_b_finish_a += 1
elif s[0] == 'B':
count_start_b += 1
elif s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a68101804a74608cbce1f189b3552132caaf3b5 | e95236dd5ca3c39c39586b5cafeacd06d923e20b | /models/btcmodel.py | e516c93d630307aa632512597fdf051e994c708a | [] | no_license | raoden1/Minotaur | 14bc7e56ca2437af3ec4d6af3c85fc1062bade65 | 8787244cc6ac9cd6347e84705a2908026ec78f25 | refs/heads/master | 2020-04-26T11:42:16.314463 | 2019-02-02T19:20:30 | 2019-02-02T19:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,455 | py | import datetime
from binance.client import Client
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
# Instanciate Bi... | [
"merwanedr@gmail.com"
] | merwanedr@gmail.com |
1d6acadc9d5be41109f9aa503af6f638f48eb0fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02963/s382016550.py | b17e4a66ac52bc376bdd76a24fac8abb77cb2820 | [] | 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 | 197 | py | S=int(input())
if S<10**18:
X1,Y1=0,0
mod=10**9
X2=mod
Y3=S//mod + 1
Y2=1
X3=mod-S%mod
else:
X1,Y1,X2,Y3=0,0,0,0
Y2=10**9
X3=10**9
print(X1,Y1,X2,Y2,X3,Y3)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1d99f2aa5cd3ff105870bfab76919d26926ef28b | c29b838371729ac04744b40d486f0b55212990b6 | /Spider-Learn/Spider/scrapyuniversal/scrapyuniversal/spiders/china.py | 9e6f76e736b259561061cc615cecc85c5d0e24cc | [] | no_license | Sugarsugarzz/PyPractice | 93c3155a94d162c9eabf0d1a641d28bc6d639c22 | d91b7d6ca996792fe409c08862fa9da5b1dc319b | refs/heads/master | 2023-02-13T01:51:24.909947 | 2021-01-20T02:57:22 | 2021-01-20T02:57:22 | 163,177,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from scrapyuniversal.items import NewsItem
from scrapyuniversal.loader import ChinaLoader
class ChinaSpider(CrawlSpider):
name = 'china'
allowed_domains = ['tech.china.com']
... | [
"406857586@qq.com"
] | 406857586@qq.com |
0f2ffe38ae9cf44d15befe3270fbe6ca5ee63422 | 3bda0851de1224b524fbcddece1f502a67e9def9 | /test/test_markdown_blank_lines.py | 695aea9b92244d67e2b23590352def8d0c3975e2 | [
"MIT"
] | permissive | jtprince/pymarkdown | 65b3f3b06c88bc0d4652a990bd134ef6996bcc15 | 17304b3ef580ec71678c450ab6c2a1e669b4e90a | refs/heads/main | 2023-04-29T15:51:05.761440 | 2021-05-16T22:55:11 | 2021-05-16T22:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | """
https://github.github.com/gfm/#paragraphs
"""
import pytest
from .utils import act_and_assert
@pytest.mark.gfm
def test_blank_lines_197():
"""
Test case 197: Blank lines at the beginning and end of the document are also ignored.
"""
# Arrange
source_markdown = """\a\a
aaa
\a\a
# aaa
""... | [
"jack.de.winter@outlook.com"
] | jack.de.winter@outlook.com |
8b2c1d35e6d1eb3c36cb9ae0333b23f8507f3f4f | 44b3d66dce1b8b87ed7a20b9f2a57d5c40a6c010 | /enso/utils/__init__.py | 22ab49ca975d091327f74789edc96e9100955cdf | [
"BSD-2-Clause"
] | permissive | blackdaemon/enso-launcher-continued | 0b203567c9670d5a6fa95b546d7edf64953ee94c | 346f82811e77caf73560619cdeb16afabfbf1fce | refs/heads/master | 2020-06-03T16:29:31.579370 | 2019-05-22T22:39:32 | 2019-05-22T22:39:32 | 30,513,152 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | import traceback
from contextlib import contextmanager
try:
from contextlib import suppress
except ImportError:
@contextmanager
def suppress(*exceptions):
"""Provides the ability to not have to write try/catch blocks when just
passing on the except.
Thanks to Raymond Hettinger fr... | [
"pavelvitis@gmail.com"
] | pavelvitis@gmail.com |
1778e5aef03806c0b569aea2e647ba4dd0beba08 | 786de89be635eb21295070a6a3452f3a7fe6712c | /CalibManager/tags/V00-00-77/src/NotificationDBForCL.py | db374f5242f2d042a61fa4e7d4602826bf1f6928 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module NotificationDBForCL.py...
#
#------------------------------------------------------------------------
"""
This software was developed for the SIT project. If you use all or
p... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
a98f0fb1c4d3a3e117fcdbeb3051d91faf064b7e | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/models_20201113162142.py | c210c05a528dd41d08ad9cbd4d2ed524b38985db | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | from django.db import models
import re
class UserManager(models.Manager):
def basic_validator(self, postData):
errors = {}
if len(post_data['first_name']) < 3:
errors['first_name'] = "First name must be 3 characters"
if post_data['first_name'].isalpha() == False:
e... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
9a4a00470f775aab477c5809d1cbada4f45d60c0 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_3_1/kochkarash/rc1.py | 1bb08aa5d72a0c470695223cde3bfcb31d8173c2 | [] | 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 | 815 | py | import sys
fileinput = sys.stdin
import StringIO
#fileinput = StringIO.StringIO(inputstr)
from heapq import *
import string
A=string.ascii_uppercase
A=[a for a in A]
T=int(fileinput.readline().strip())
for t in range(T):
N=fileinput.readline().strip()
N=int(N)
P=fileinput.readline().strip().split()
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
2fba65138dedfa05ac5795d0149d804b47a9398c | 6846a0469efc79b89edc8f856944d5a8005d7244 | /id_0017.py | c70e7b4a000fac5e79b162fb6191d28364c95eea | [] | no_license | CGenie/project_euler | 42cb966e13645339490046eb44a729660ae0c092 | cc90edd061b0f4d9e076d5a684b842c202a6812a | refs/heads/master | 2020-06-05T00:41:49.266961 | 2014-01-13T19:11:31 | 2014-01-13T19:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | #!/usr/bin/python2
# #####################################################################
# id_0017.py
#
# Przemyslaw Kaminski <cgenie@gmail.com>
# Time-stamp: <>
######################################################################
def write_number(n):
numbers = {1: 'one',
2: 'two',
... | [
"cgenie@gmail.com"
] | cgenie@gmail.com |
8071aa8e26876969192138ed0b63995bbe14ae2b | cf1476710c4117865fe459f0d698520321810c56 | /cerveceria/migrations/0005_cerveza_nombre.py | 2677cbe9dfe5211b057f198c9021030bc0cb6a9b | [] | no_license | BoiwkoMartin/boiwkosbeers | 42b6ab47573ee1b282bbfbe915b17a449c9b8038 | 74f6ec93d684badc80a8c62844479fc978548acd | refs/heads/main | 2023-04-09T03:36:00.812684 | 2021-04-15T23:55:59 | 2021-04-15T23:55:59 | 358,417,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.1.7 on 2021-03-05 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cerveceria', '0004_remove_cerveza_nombre'),
]
operations = [
migrations.AddField(
model_name='cerveza',
... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
6c103c6cdb892cf317c59775a2c53c3c793c326b | 3ee1bb0d0acfa5c412b37365a4564f0df1c093fb | /keras/keras40_mnist2_cnn.py | 9b67f325ca5a78b12e49628a58edede98eb0bff1 | [] | no_license | moileehyeji/Study | 3a20bf0d74e1faec7a2a5981c1c7e7861c08c073 | 188843c6415a4c546fdf6648400d072359d1a22b | refs/heads/main | 2023-04-18T02:30:15.810749 | 2021-05-04T08:43:53 | 2021-05-04T08:43:53 | 324,901,835 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py |
# 실습
# 지표는 acc (0.985 이상)
# 응용
# y_test 10개와 y_pred 10개를 출력하시오
# y_test[:10] = (???)
# y_pred[:10] = (???)
import numpy as np
import matplotlib.pyplot as plt
# 1. mnist 데이터 셋
from tensorflow.keras.datasets import mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()
print(x_train.sh... | [
"noreply@github.com"
] | moileehyeji.noreply@github.com |
2673e7c0021d9a2293deb9d460d04ff8919609da | cbf0f5dbbbea5be1c46d777c939eb21f0a65c434 | /Repository/w13/ex3_w13.py | 7bcaadf3064d7c137b19e7663533186fce898a0b | [] | no_license | ARBaranov/Third-semester | 2c128ceee257bcee1bb96c7a65b3f388898db8d5 | 9128f8eab9a73d8d8439e4727b3f499df049bec6 | refs/heads/master | 2023-08-11T03:25:28.266061 | 2021-09-18T23:34:35 | 2021-09-18T23:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # 1 a 1 2 b ---> a, b
# z 2 y ---> z, y
REGEXP_1 = ''
# aaa bbb ccc ---> aaa, bbb, ccc
# ddd eee fgh ---> ddd, eee, fgh
# a1b c2d e3f ---> a1b, c2d, e3f
REGEXP_2 = ''
# a aa aaa ---> aa, aaa
# b bb bbb ---> bb, bbb
# a bb aaa ---> bb, aaa
REGEXP_3 = ''
# 1.1.1.1 aaaa bbbbb ---> 1.1.1.1
# a.a.a.a bbbb 2.2.2.... | [
"123"
] | 123 |
96d3df244cea79335053732ec879dd09d42ceb26 | 0613b082bd90462e190bc51943356ce6ce990815 | /attendance/migrations/0004_worksheet.py | 5180b56f06b1064cd4bee92effa57a857c9d7479 | [] | no_license | Hamidnet220/salary | 1068aac4bc921436c03b627899370a86ca5e99be | 4dc1f32dfa1d990e6c9f527b4a8d0e1df939262a | refs/heads/master | 2020-05-04T18:09:24.086491 | 2019-04-22T20:22:32 | 2019-04-22T20:22:32 | 179,342,004 | 0 | 1 | null | 2019-04-11T10:43:29 | 2019-04-03T17:53:36 | Python | UTF-8 | Python | false | false | 1,008 | py | # Generated by Django 2.2 on 2019-04-19 06:03
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('wage', '0007_auto_20190415_1650'),
('baseinfo', '0006_auto_2... | [
"kiani.hamidreza@gmail.com"
] | kiani.hamidreza@gmail.com |
4fc606787313fb230101c49ae628fcb273a6111f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02997/s386871412.py | 7432b9652080f5697617f98cbfca83378aa831a4 | [] | 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 | 436 | py | N, K = map(int, input().split())
if K>N*(N-1)//2-(N-1):
print(-1)
exit()
is_ban = [[False]*N for _ in range(N)]
for i in range(1, N):
for j in range(i+1, N):
if K==0:
break
is_ban[i][j] = True
K -= 1
ans = []
for i in range(N):
for j in range(i+1, N):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8e36788a9166458db4757af09f813273790f05c5 | 0af29dc561a34a8191f456ec24f6a77bea104b89 | /recurrent-neural-networks/neural-language-models/character-language-model-generator/modelv2.py | ed3cb95374e52c5f2969993e62ddb2fd3467ca76 | [] | no_license | cheeyeo/Machine_learning_portfolio | c4eea8390b2540706d9b8e9df0b491f3f434494b | 927cc9eb3de394dcaa00a4178d873df9798921e4 | refs/heads/master | 2020-05-04T11:16:22.188024 | 2019-05-25T14:18:58 | 2019-05-25T14:18:58 | 179,104,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from keras.models import Sequential
from keras.layers import LSTM, Dense, TimeDistributed
from keras.optimizers import Adam
# Defines a seq2seq model
def define_model_v2(seq_len, vocab_size):
model = Sequential()
model.add(LSTM(100, input_shape=(seq_len, vocab_size), return_sequences=True))
model.add(TimeDistrib... | [
"ckyeo.1@gmail.com"
] | ckyeo.1@gmail.com |
a15f6c7f7005994b341fad929657892042159151 | e9dc0573d42ee003c563c12ba5e4241a70e88b29 | /old_documents/lms_app/migrations/0005_auto_20210823_1009.py | 131277a5649cc235bf712d562e2fff3d6ec21ab3 | [] | no_license | kamaliselvarajk/aspire | 279eed753db940d8feb3066e0885896d98549d3e | 3b61bad965a11877c4b63a7b93ea5f76f24ac96f | refs/heads/main | 2023-08-24T12:25:08.927712 | 2021-10-14T17:22:17 | 2021-10-14T17:22:17 | 383,044,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | # Generated by Django 3.2.5 on 2021-08-23 04:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('lms_app', '0004_leavereq... | [
"kamali.selvaraj@aspiresys.com"
] | kamali.selvaraj@aspiresys.com |
3bbf1c97245dd0a764aca70754af6b208acc406d | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/secondaires/navigation/masques/point_visible/__init__.py | a2b98c97ed671cc44f4f3eb9ca4d18ccd338fba7 | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2012 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | [
"kredh@free.fr"
] | kredh@free.fr |
4a9e98c8b6df75b5063e618920505c559fb5d06e | 417448ce51e21233736c2f5eab7a0960c8cdcb3f | /Selenium/Tutorial/Amazon_Script.py | 3bafb73cafc9bed749ffec6917175a393dd3ddb3 | [] | no_license | ravalrupalj/Small_Projects | dcfd4da5a2e3dab4ccb16c693da7ecfd28c30312 | 89e0232503049468e181b387391abfbc523933a0 | refs/heads/master | 2022-12-25T04:18:06.296291 | 2020-10-08T01:58:13 | 2020-10-08T01:58:13 | 268,957,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | from selenium import webdriver
driver= webdriver.Chrome(executable_path='C:\\Users\\raval\\Documents\\chromedriver_win32\\chromedriver.exe')
driver.get('https://www.amazon.ca/')
driver.maximize_window()
driver.implicitly_wait(5)
driver.find_element_by_id("twotabsearchtextbox").send_keys("ashlin wallet")
driver.find_el... | [
"63676082+ravalrupalj@users.noreply.github.com"
] | 63676082+ravalrupalj@users.noreply.github.com |
1600aa38bd05891af088262a94401d768b4f2f10 | 5e64335865c817eec677a2236709f3e73eb3ca9f | /utilities/tests/TestProject/pythonScripts/RunTests.py | e76fb6ce23b5a196337e2ea6d76fa93d94e7a562 | [] | no_license | Neurosim-lab/osb-model-validation | 3631ede96d811006fcc5f381faf1739f3e72a3e0 | d661b96682d7229ec94778380dd7978be254bb60 | refs/heads/master | 2020-03-28T11:15:13.957592 | 2018-09-10T19:20:37 | 2018-09-10T19:20:37 | 148,193,132 | 1 | 0 | null | 2018-09-10T17:29:54 | 2018-09-10T17:29:54 | null | UTF-8 | Python | false | false | 2,538 | py | #
#
# File to test current configuration of project.
#
# To execute this type of file, type 'nC.bat -python XXX.py' (Windows)
# or './nC.sh -python XXX.py' (Linux/Mac). Note: you may have to update the
# NC_HOME and NC_MAX_MEMORY variables in nC.bat/nC.sh
#
# Author: Padraig Gleeson
#
#
import sy... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
22fb6522d48eab678fbf0b4989078a87265c6b77 | e91f477713556f14b288b89ecce89754d4bd93f7 | /ML/rl/rl_utils.py | 7566686d6b7a40292181a9ba78acee9e48bc8b65 | [
"MIT"
] | permissive | PepSalehi/algorithms | 715603ad16c320c0f1d32c544062b71b11814263 | 1c20f57185e6324aa840ccff98e69764b4213131 | refs/heads/master | 2020-12-28T23:24:39.542742 | 2019-02-01T05:17:56 | 2019-02-01T05:17:56 | 14,173,271 | 0 | 0 | MIT | 2019-02-01T05:17:57 | 2013-11-06T13:27:34 | Python | UTF-8 | Python | false | false | 2,462 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Utility functions for Reinforcement Learning."""
# core modules
import logging
import os
# 3rd party modules
import yaml
# General code for loading ML configuration files
def load_cfg(yaml_filepath):
"""
Load a YAML configuration file.
Parameters
--... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
f1654e6ae542ec6bf12b305385f26c7ef3610381 | 964c83b67a45717874292468ded6d85ed69c2c9f | /reg_sign_in_out/views.py | 361b417c0ba82d171eab42791f39bc27ad0eb7b3 | [] | no_license | deshiyan1010/Colabratory | bddf6d8a21a568b33827ce3ca8763930764f7197 | 9edce90ba993e06d1e5f1cdef268d33af51f1dd5 | refs/heads/master | 2022-12-17T19:28:33.328936 | 2020-09-21T17:29:43 | 2020-09-21T17:29:43 | 281,600,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | from django.shortcuts import render
from reg_sign_in_out.models import *
from . import forms
from django.contrib.auth import authenticate,login,logout
from django.http import HttpResponseRedirect, HttpResponse
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from django.views.... | [
"vinayakamikkal@gmail.com"
] | vinayakamikkal@gmail.com |
9d6644181164a6acae72a68b2658055bb2528631 | 0ca7c7bdb297439554777e126ae8a2999962b7fe | /venv/Lib/site-packages/gevent/tests/test__refcount.py | d3c3430105bc53cd5a82709d8d68fb2181c48835 | [] | no_license | YazLuna/APIExpressJobs | 6c0857f63180bf5163d11fa9d1a411e44a4ba46f | cd52bc8d0d60100091637ef79f78cc79d58a1495 | refs/heads/master | 2023-06-13T02:50:57.672295 | 2021-06-18T14:57:53 | 2021-06-18T14:57:53 | 367,244,876 | 0 | 1 | null | 2021-06-18T14:57:53 | 2021-05-14T04:05:43 | Python | UTF-8 | Python | false | false | 6,028 | py | # Copyright (c) 2008 AG Projects
# Author: Denis Bilenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | [
"ale_200200@hotmail.com"
] | ale_200200@hotmail.com |
08971a923b58b73eb2808bccbadaaf7dcaaaa8e1 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /前端笔记/thirtysecondsofcode/python/python的typings/15_可变元组.py | 388a8783be183c592d8de18c96e96c90e7e186e7 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from typing import Tuple
def f(t: Tuple[int, str]) -> None:
t = 1, 'foo' # OK
# t = 'foo', 1 # Type check error
# as immutable, varying-length sequences
# 元组也可以用作不变的、可变长度的序列
def print_squared(t: Tuple[int, ...]) -> None:
for n in t:
print(n, n ** 2)
print_squared(()) # OK
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
d56d529290d5fca12af0043705c03bfcf41f290b | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/DSView/modules/shell.py | 9debe00a7baf593cae3782bd4eeda236c0d7d023 | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 1,225 | py | #!/usr/bin/python
##################
# shell.py
#
# Copyright David Baddeley, 2011
# d.baddeley@auckland.ac.nz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, ... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
b7a1cf6a73df1281ceebfdd3a8392fd02d8d3f68 | 01c39e5ac5398658f56e069a1f4c0142496a07f9 | /master/serializer.py | 17a5718aad1cbe8914485af00a9935eb95682aa7 | [] | no_license | vshaladhav97/first_kick | f95c0f402e7f0e869c05c1abf58404bb9a7b7863 | 367cccca72f0eae6c3ccb70fabb371dc905f915e | refs/heads/master | 2023-08-21T05:25:33.211862 | 2021-10-12T11:04:56 | 2021-10-12T11:04:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | from django.db.models import fields
from rest_framework import serializers
from .models import (Company, AddressDetail, Location, AgeGroup, Months, PlayingSurface,
CourseType, EventType, WeekDay, ClassStatus, Ages)
class AddressDetailSerializer(serializers.ModelSerializer):
class Meta:
... | [
"adhavv0@gmail.com"
] | adhavv0@gmail.com |
83441941cb7936a690cd4274636b264724009523 | a6a27234bb623c047fe86e91c720a50ba6ab641f | /sctt/sctt/calibration/first_cracking_stress.py | ce27bff06a658a7fad9fc085cab9aabb124fabbf | [] | no_license | liyingxiong/sctt | 4f87b1bdeb09eafb2831e699fd82b4a0d9db9099 | f3f9af2be80d39a70668a8bbf9f1e1458ee0fbc3 | refs/heads/master | 2021-01-23T03:28:17.314156 | 2018-12-11T11:18:33 | 2018-12-11T11:18:33 | 20,015,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | '''
Identify the first cracking stress according to the derivatives of the stress-strain diagram.
@author: Yingxiong
'''
import numpy as np
from scipy.interpolate import interp1d, UnivariateSpline
from matplotlib import pyplot as plt
from scipy.optimize import curve_fit
from lmfit import minimize, Parameters, Parameter... | [
"rostislav.chudoba@rwth-aachen.de"
] | rostislav.chudoba@rwth-aachen.de |
4dc6e3283fd599472b323f22fc8998f493be658c | 215e491c9962f2e199f7f84a5743196f21da0332 | /week-01-unit-testing/examples/calculator/calculator_test.py | 722e6f3bf9e8548430069e813b522daf6f74fe24 | [] | no_license | kstager/Python300-SystemDevelopmentWithPython-Fall-2014 | dd07190e6a55470c44bbb366cb95a1d716b86866 | 7e85ef68bc59d311ec748b333e0bad9357b88855 | refs/heads/master | 2020-12-31T06:32:20.948094 | 2014-11-12T01:34:56 | 2014-11-12T01:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import unittest
import calculator_functions as calc
class TestCalculatorFunctions(unittest.TestCase):
def setUp(self):
self.x = 2
self.y = 3
def test_add(self):
self.assertEqual(calc.add(self.x, self.y), 5)
if __name__ == "__main__":
unittest.main()
| [
"joseph.sheedy@gmail.com"
] | joseph.sheedy@gmail.com |
a5551807162c6a3b053a0c940419c974b142c505 | 4db29e0d5f2e050d21bbf67042c713d8fa0421b0 | /com/mason/redis/part_two/chapter06/chapter0612.py | 0320f31d7421bb54908fed4b9d89d3079f14ce83 | [] | no_license | MasonEcnu/RedisInAction | 80e5556554c7e390264edd391042b09271cbfca4 | 710fd0316c6aee857acd350a092b657465096ed1 | refs/heads/master | 2020-07-08T17:24:39.540181 | 2019-09-30T04:14:49 | 2019-09-30T04:14:49 | 203,731,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 通讯录自动补全
# 我们将把有序集合里面的所有分值都设置为 0 — 这种做法使得我们可以使用有序集合的
# 另一个特性:当所有成员的分值都相同时,有序集合将根据成员的名字来进行排序;而当所有成
# 员的分值都是 0 的时候,成员将按照字符串的二进制顺序进行排序。
import bisect
import uuid
import redis
from redis import Redis
from com.mason.redis_client import redisClient
valid_characters = "`abc... | [
"364207187@qq.com"
] | 364207187@qq.com |
b22f9dbd128e6619dfe9a6447d989c2eb3054788 | c15a28ae62eb94dbf3ed13e2065195e572a9988e | /Cook book/src/8/how_to_define_an_interface_or_abstract_base_class/example.py | 2d4af5f1e99b6b30415fd216144a85ceba321fa2 | [] | no_license | xuyuchends1/python | 10798c92840a1a59d50f5dc5738b2881e65f7865 | 545d950a3d2fee799902658e8133e3692939496b | refs/heads/master | 2021-01-25T07:07:04.812140 | 2020-02-28T09:25:15 | 2020-02-28T09:25:15 | 93,647,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # Defining a simple abstract base class
from abc import ABCMeta, abstractmethod
class IStream(metaclass=ABCMeta):
@abstractmethod
def read(self, maxbytes=-1):
pass
@abstractmethod
def write(self, data):
pass
# Example implementation
class SocketStream(IStream):
def read(self, m... | [
"xuyuchends@163.com"
] | xuyuchends@163.com |
9769824aa87397a44d261ff48b366b0009967fbf | fa6fa9e154a205d575eda6615e8b62f4cce77a3d | /office365/sharepoint/permissions/permission_kind.py | 699fa02451b6d9b81eba7759583a17ab35a9b527 | [
"MIT"
] | permissive | beliaev-maksim/Office365-REST-Python-Client | 7f94b7b40227de1192bfc0cb325107482caf443c | b2fd54701d83cc91eb5ba3a0ec352a93ded24885 | refs/heads/master | 2023-08-14T20:47:51.972883 | 2021-09-05T12:44:47 | 2021-09-05T12:44:47 | 283,984,055 | 0 | 0 | MIT | 2020-07-31T08:30:48 | 2020-07-31T08:30:48 | null | UTF-8 | Python | false | false | 1,026 | py | class PermissionKind:
"""Specifies permissions that are used to define user roles."""
def __init__(self):
pass
EmptyMask = 0
ViewListItems = 1
AddListItems = 2
EditListItems = 3
DeleteListItems = 4
ApproveItems = 5
OpenItems = 6
ViewVersions = 7
DeleteVersions = 8
... | [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
4e725d904e1ecd922e7eecc433b83b4e5488f4c2 | cb882d5bc1a22b6d22a2d18a4ece8ec362f81b4b | /app/migrations/0004_product_user.py | 7ff7069f9a12115a709a07f6048c77bcabccd0b3 | [] | no_license | Vazimax/simple_djangoapp | 076806ac70f136f2a964db068b7b904f9429073e | 08e0f3f4b3830c6b1cde6bea69849775bd7ba578 | refs/heads/main | 2023-05-24T09:08:30.191567 | 2021-06-08T14:03:31 | 2021-06-08T14:03:31 | 375,030,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # Generated by Django 3.1.7 on 2021-06-07 19:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0003_female_male'),
]
operations = [
migrations.CreateModel(
name='Product',
... | [
"aboubakr.elhabti@gmail.com"
] | aboubakr.elhabti@gmail.com |
761e15410951d9ff18fef66225b3b1ca4c4188ec | 940a0f48027eefbfe028f2116aeb9702e7122f05 | /setup.py | 094555fbf31f039650d3781c5d1435c39416c7e2 | [] | no_license | umeboshi2/useless | 1d0f67335fad0897619859a2095fd32e649b0994 | 630c7491cfb7a70765878779f8496046d6ac18df | refs/heads/master | 2021-01-02T08:21:14.679866 | 2013-01-22T21:44:00 | 2013-01-22T21:44:00 | 7,497,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | import sys
from distutils.core import setup
PACKAGES = ['base', 'debian', 'sqlgen', 'db', 'kdebase', 'kdedb']
package = None
if sys.argv[1] in PACKAGES:
package = sys.argv[1]
del sys.argv[1]
pd = {'' : 'src'}
if package is not None:
packages = ['useless/'+package]
if package == 'base':
pac... | [
"umeboshi@70758ab2-d2f7-0310-a994-9f7f813c4004"
] | umeboshi@70758ab2-d2f7-0310-a994-9f7f813c4004 |
089a86f2514e7fdb5dd0bfdb50fbb19280ef6f2f | d81dc8eda4aed1e66a2275ddd7463eaa90789ff4 | /Gesture Recognition/Video.py | 894fa066f68358ce312358d9fced5003a5219204 | [] | no_license | ai3DVision/BlendedJointAttention | c01b8b6b0c33923e2e7c6719765c427c1c5e5439 | 2bf9445d7749c9f138df950aea9dd101c8713ff4 | refs/heads/master | 2020-03-15T23:42:18.307922 | 2016-08-25T13:26:53 | 2016-08-25T13:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | import cv2
import sys
# Defining cascade variables
faceCascade1 = cv2.CascadeClassifier('../haarcascades/haarcascade_frontalface_alt2.xml')
nosecascade = cv2.CascadeClassifier('../haarcascades/haarcascade_mcs_nose.xml')
# Video capture via webcam
cam = cv2.VideoCapture(-1)
cam.set(3,640)
cam.set(4,480)
video_capture ... | [
"agarwalsoumitra1504@gmail.com"
] | agarwalsoumitra1504@gmail.com |
c9ee57c779cbb050035f866898ceb6d98ee4abdf | bac7a7507933ac5bb38b41bbe2a587764da3cf94 | /snappy_wrappers/wrappers/erds_sv2/merge_genotypes/wrapper.py | 96047b855627a47db6f2ddbbcfd18ed4f895f093 | [
"MIT"
] | permissive | Pregelnuss/snappy-pipeline | 923b0f36117a2f55ee52f9a8564ed3bb82a8be16 | 31200eba84bff8e459e9e210d6d95e2984627f5c | refs/heads/master | 2023-06-19T07:24:04.736033 | 2021-05-27T07:24:05 | 2021-05-27T07:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # -*- coding: utf-8 -*-
"""Wrapper for running ERDS+SV2 merge genotypes step
"""
from snakemake.shell import shell
__author__ = "Manuel Holtgrewe"
__email__ = "manuel.holtgrewe@bihealth.de"
shell(
r"""
# -----------------------------------------------------------------------------
# Redirect stderr to log file b... | [
"manuel.holtgrewe@bihealth.de"
] | manuel.holtgrewe@bihealth.de |
56c7e189b97621aba5e9156b2624bb12ef4c9007 | 0fcc6353edee4eed7a1ea4b1c89a00bfcf03e851 | /PythonFunctions/venv/Scripts/easy_install-3.7-script.py | cc2142893207f4e9d244ff35fbb13add41769553 | [] | no_license | GANESH0080/Python-Practice-Again | 81d8048c23d338a99bb17fa86a9f87b3057bfe52 | 6565911d14a22d0f33a41b417026c31a0a066be5 | refs/heads/master | 2020-09-20T03:40:45.462869 | 2019-11-27T07:19:24 | 2019-11-27T07:19:24 | 224,368,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!D:\PythonPracticeAgain\PythonFunctions\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"ganusalunkhe@gmail.com"
] | ganusalunkhe@gmail.com |
a7386795586d024e974682a2c99a5f99c1659a8f | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/show_members_detail_request.py | d11649680f2ceb7aa7e1af032ed7496f05cb6aa0 | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,919 | py | # coding: utf-8
import pprint
import re
import six
class ShowMembersDetailRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
fb9b2f8ef498d54f9d568b07bf798b3b11b828e0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/1/usersdata/66/180/submittedfiles/formula.py | e164e5a9a7884303cf825c60c1229245d2385105 | [] | 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 | 176 | py | # -*- coding: utf-8 -*-
from __future__ import division
p=input("digite p")
i=input("digite i")
n=input("digite n")
v=(P*((1+I)**N)-1)/T
print ( "o valor de v eh: %.2f" %V)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d95fc2686d35f61aa399c1c3f823176e317ea474 | 699a43917ce75b2026a450f67d85731a0f719e01 | /12_int_to_roman/interger_to_roman.py | e51bac0b5257bb65541b113406b145206f685e01 | [] | no_license | wusanshou2017/Leetcode | 96ab81ae38d6e04739c071acfc0a5f46a1c9620b | c4b85ca0e23700b84e4a8a3a426ab634dba0fa88 | refs/heads/master | 2021-11-16T01:18:27.886085 | 2021-10-14T09:54:47 | 2021-10-14T09:54:47 | 107,402,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | class Solution:
def __init__(self):
self.dic_roman={"I":1,"V":5,"X":10,"L":50,"C":100,"D":500,"M":1000}
self.dic_int2roman={ value:key for key,value in self.dic_roman.items()}
def int2roman(self,target):
res =""
if target//1000>0:
m=target//1000
target=tar... | [
"252652905@qq.com"
] | 252652905@qq.com |
bb3c3e3539618a84d358090da571b392a03cf637 | 6730aab6ed416937cc1ed96ae87f86d7761c8129 | /src/calc_parse.py | 9dc2b8937e0ec016416c724205099b4f3f25e54b | [] | no_license | vrthra/miner | 3c4adcd1db9b5583354d665ec169c47c38f1faa1 | 4b55999eedb97c607024ff04575b0f09b499d58a | refs/heads/master | 2020-05-02T22:54:43.393084 | 2019-05-02T17:07:37 | 2019-05-02T17:07:37 | 178,266,349 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | #!/usr/bin/env python3
import string
from helpers import scope
def parse_num(s,i):
n = ''
while s[i:] and s[i].in_(list(string.digits)):
with scope('while_1', 0):
n += s[i]
i = i +1
return i,n
def parse_paren(s, i):
assert s[i] == '('
i, v = parse_expr(s, i+1)
if... | [
"rahul@gopinath.org"
] | rahul@gopinath.org |
2ee60026988f1846551704ad15e993f1cd397d43 | 6aa7e203f278b9d1fd01244e740d5c944cc7c3d3 | /airflow/providers/docker/hooks/docker.py | bae0e7f5a046ff578796c98cc623b63dec42f3c3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | laserpedro/airflow | 83fc991d91749550b151c81876d9e7864bff3946 | a28afa8172489e41ecf7c381674a0cb91de850ff | refs/heads/master | 2023-01-02T04:55:34.030935 | 2020-10-24T15:55:11 | 2020-10-24T15:55:11 | 285,867,990 | 1 | 0 | Apache-2.0 | 2020-08-07T15:56:49 | 2020-08-07T15:56:49 | null | UTF-8 | Python | false | false | 3,265 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | laserpedro.noreply@github.com |
5e106deb5aff07fd69b809c2d354e681e3d84798 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /AtCoder_Virtual_Contest/tessoku-book/ec/main.py | 09c1be3745ae6e29b841ff506af698a7664a78cd | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 3,200 | py | # -*- coding: utf-8 -*-
import random
import string
import traceback
# See:
# https://atcoder.jp/contests/abc284/submissions/37841742
class RollingHashWithRange:
def __init__(self, parent, left, right) -> None:
self.parent = parent
self.left = left
self.right = right
def __getitem__... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
87f6e6bf13f60d03cd3b263df93b4e6feaef5cdb | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_008_20180622142549.py | a755b1bc64831da70f2eb0c38aca219723cf4bcb | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,605 | py | from random import randint
import copy
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6, 3, 1],
... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
da80db2eab0104cf95159207871265764239feb7 | 67d8173a716da10a7350213d98938aae9f2115ce | /ProgrammingCourses/CS61A/lab/lab09/tests/split-at.py | 8aeb6433d36caff342936185c794ff632ff506c2 | [] | no_license | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 1,127 | py | test = {
"name": "split-at",
"points": 0,
"suites": [
{
"type": "scheme",
"scored": True,
"setup": """
scm> (load 'lab09)
scm> (load 'lab09_extra)
""",
"cases": [
{
"code": """
scm> (car (split-at '(1 2 3 4 5) 3))
(1 2 3)
... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
888b859b9f5faab436ba29ab2a12e06acbd44125 | 72dc7d124cdac8f2dcab3f72e95e9a646154a6a0 | /byceps/services/news/models/channel.py | 00229d0acddd28bb9c310a03e564d0e9b3135b06 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | m-ober/byceps | e6569802ee76e8d81b892f1f547881010359e416 | 4d0d43446f3f86a7888ed55395bc2aba58eb52d5 | refs/heads/master | 2020-11-30T23:31:33.944870 | 2020-02-12T23:53:55 | 2020-02-12T23:56:04 | 40,315,983 | 0 | 0 | null | 2015-08-06T16:41:36 | 2015-08-06T16:41:36 | null | UTF-8 | Python | false | false | 1,022 | py | """
byceps.services.news.models.channel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from ....database import db
from ....typing import BrandID
from ....util.instances import ReprBuilder
from ..transfer.models import ChannelID
c... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
b0f5e5106a95baf291b263f728fbb921336b5e00 | 512f48fdcfa78e322526cf47163110009b84bf73 | /test/test_update_settings.py | 86dfd6e0e237c110a37851d41b45c214ddc85ca8 | [
"MIT"
] | permissive | confluentinc/vm-console-client-python | 9a0f540c0113acf68ee9dc914715bc255e4d99f4 | ccbd944a0e0333c73e098b769fe4c82755d29874 | refs/heads/master | 2023-07-18T10:33:58.909287 | 2021-09-02T20:52:20 | 2021-09-02T20:52:20 | 402,559,283 | 0 | 0 | MIT | 2021-09-02T20:49:56 | 2021-09-02T20:49:56 | null | UTF-8 | Python | false | false | 851 | py | # coding: utf-8
"""
Python InsightVM API Client
OpenAPI spec version: 3
Contact: support@rapid7.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.update_settings import Up... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
99c3e5aa620113bd9066d530f9fa040ebaa93d0b | 7136e5242793b620fa12e9bd15bf4d8aeb0bfe7a | /examples/adspygoogle/dfp/v201103/update_ad_units.py | e6cac253cc32b39005e61ae41624aad51c441c81 | [
"Apache-2.0"
] | permissive | hockeyprincess/google-api-dfp-python | 534519695ffd26341204eedda7a8b50648f12ea9 | efa82a8d85cbdc90f030db9d168790c55bd8b12a | refs/heads/master | 2021-01-10T10:01:09.445419 | 2011-04-14T18:25:38 | 2011-04-14T18:25:38 | 52,676,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | #!/usr/bin/python
#
# Copyright 2011 Google Inc. 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 b... | [
"api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138"
] | api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138 |
d59a1e58246c961c72fe4f4d523b4df4fa88e7c2 | 87040e6a11f28e9e6bfe19abf2bf912a5c5ea286 | /raccoon_dataset/train.py | 0394928fbd2e0cc153ea193ed052a892fa66b090 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | HoboQian/Deep-Learning | f2b788d64c290ab025ae4e09e1cef494b8204536 | 4d335ffebded266647bd853b138c15d8b9a8694a | refs/heads/master | 2020-03-11T07:24:20.303608 | 2017-12-05T02:27:24 | 2017-12-05T02:27:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,445 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"lee.x.a90@gmail.com"
] | lee.x.a90@gmail.com |
6e30b513864fb38e0ac1557595002b2ba7e2682e | 09ba5ae2edc51f3fd812b9205188b1b01e6bea77 | /src/CPMel/__init__.py | 3c84ac72d9fa33794d013bdd7ec8fadd8a93a212 | [] | no_license | cpcgskill/Maya_tools | c6a43ad20eab3b97e82c9dfe40a1745b6098e5c4 | 93f9e66e5dc3bb51f33df0615415a56a60613ff1 | refs/heads/main | 2023-02-26T16:20:52.959050 | 2021-01-28T06:12:18 | 2021-01-28T06:12:18 | 325,512,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | #!/usr/bin/python
# -*-coding:utf-8 -*-
u"""
:创建时间: 2020/5/18 23:57
:作者: 苍之幻灵
:我的主页: https://www.cpcgskill.com
:QQ: 2921251087
:爱发电: https://afdian.net/@Phantom_of_the_Cang
:aboutcg: https://www.aboutcg.org/teacher/54335
:bilibili: https://space.bilibili.com/351598127
* 获得路径模块
* PATH : CPMel所在路径
* MAYAPLUG : C... | [
"www.cpcgskill.com"
] | www.cpcgskill.com |
6b371890aaa3ffd72c30d16c8b286448df3d5f9d | 1fddb12ae9b7db260b9161983a726f1528ece940 | /Part_01/Cap_09/Classes9.7.py | 4b3c0876b7328f323d06eda1b9b9514537c724e0 | [] | no_license | davicosta12/python_work | aecf642bbbf2a007fba159f305b4ab21ff00503f | 5df62d3ced25b7e04cda71846fd07862dda39b4c | refs/heads/master | 2023-04-23T09:49:31.923211 | 2021-04-27T00:31:42 | 2021-04-27T00:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | class User():
def __init__(self, first_name, last_name, age, sex, situacao, login_attempts):
self.first_name = first_name
self.last_name = last_name
self.age = age
self.sex = sex
self.situacao = situacao
self.login_attempts = login_attempts
def describe_user(self):
print("\n Informações sob... | [
"deadspace24@hotmail.com"
] | deadspace24@hotmail.com |
492e9832c721c5e23652772a639a4d59fc4457f1 | d5af5459d0a68d8934219cdd516a23d73c7c52fb | /labs/greek.py | 308315866e2f731924c244567a5e77a0b20f5e03 | [] | no_license | flathunt/pylearn | 1e5b147924dca792eb1cddbcbee1b8da0fc3d055 | 006f37d67343a0288e7efda359ed9454939ec25e | refs/heads/master | 2022-11-23T23:31:32.016146 | 2022-11-17T08:20:57 | 2022-11-17T08:20:57 | 146,803,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py |
greek = ['Alpha','Beta','Gamma','Delta','Epsilon','Zeta','Eta','Theta',
'Iota','Kappa','Lamda','Mu','Nu','Xi','Omicron','Pi','Rho',
'Final Sigma','Sigma','Tau','Upsilon','Phi','Chi','Psi','Omega']
#Format required:
# The hex value of the character
# The character name (cname)... | [
"porkpie@gmail.com"
] | porkpie@gmail.com |
d15786b8e34263c55d3ab8ca58d919ff88dbdc42 | d22634a6101cafc75dde63f48882e29b0312388c | /master/python/swagger_client/models/fiat_dep_data.py | 06bd3229631ff1bc9dccbb05577149cc1209133d | [
"Apache-2.0"
] | permissive | rajdeep225/plugins | e4cf16bc612ceec160c6ea4bae9ffd47012e0b0a | 6f62aac931e15b844431b08858303cac53b9a5ca | refs/heads/master | 2020-12-24T05:40:05.313004 | 2016-08-21T19:00:00 | 2016-08-21T19:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,087 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
24d3c36c02a4b47b41d98818cf1b47b210c12c13 | 72b1035d1589d3b77c721c7be4e248bce8cde185 | /pythonapi.py | 9dc0ac5dff54962fc86678d02bdebc952576d5b4 | [] | no_license | marciopocebon/fast2sms | 2632f5c0594392604302b2d9a20f005ddecde58a | 617124b86fc46526d8312c43f27cdaa6afaec5f9 | refs/heads/master | 2020-09-14T06:09:54.435634 | 2019-04-14T16:26:19 | 2019-04-14T16:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | import requests
import json
def forward_to_api(url,mobile,message,api_key,flash,count):
payload = {'senderId': 'FSTSMS', 'mobile': mobile, 'message': message, 'flash': flash}
headers = {'Authorization': api_key}
print '\n-- Trying to send SMS via API ['+str(count)+'] --'
response = requests.request("POST", url, ... | [
"noreply@github.com"
] | marciopocebon.noreply@github.com |
790d12fdd35a10bb8f4f501ba6b96fef01d9ee64 | bc441bb06b8948288f110af63feda4e798f30225 | /resource_monitor_sdk/model/inspection/collector_pb2.pyi | fd9fb083c6ce2a16e062f751d97be2910a5a5a97 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
b2e93e0c9728d11d1d9ffc5ba84b45a1de565b61 | 7238e16c65051cafd41d6a973bd440598589b10c | /cella/migrations/0002_recoding.py | 5c0c82b92bbeb5515555233f5600befb9aa1de9f | [] | no_license | mnogoruk/TraductorCella | 06ff28b422d3fcc86be216a23ae311d8082f36a7 | 21ee676dc8d3c467454872436bee5df5c023beb6 | refs/heads/master | 2023-03-15T09:43:43.874227 | 2021-03-23T17:08:10 | 2021-03-23T17:08:10 | 330,973,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | # Generated by Django 3.1.5 on 2021-03-18 10:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('authentication', '0001_initial'),
('cella', '0001_initial'),
]
operations = [
migrations.CreateMode... | [
"lionless072@gmail.com"
] | lionless072@gmail.com |
c298d73d0f66373ea5e1201d026b6b041489e7c5 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/form_20190914124144.py | 51f49dd87c243928340315bdc38c041086f3c49f | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 875 | py | from django import forms
from .models import DVD, Customer
class DocumentForm(forms.ModelForm):
class Meta:
model = DVD
fields = ('Title','year','genre','InStock','Synopsis','BookingPickup' ,'NumOfTimesRented','ImageDVD')
class customerForm:
class Meta:
model= Customer
#user =... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
513eb3ce39cc001993bc72f82d1bb7c5faaf1a94 | a9063fd669162d4ce0e1d6cd2e35974274851547 | /swagger_client/models/tsp_accounts_list1.py | 413e6c2c8c5b80d3ab26a0e7afdb03ee2977b8fb | [] | 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,034 | 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 |
6080401306f6ff3f3b2e6b26eefa0f58cc359af8 | ef1f62cf4e53f856bf763ac0dee73f054518530d | /Week_09/115.Distinct_Subsequences.py | 018e3a33c7c7d88cdacda79eb2ae627bdde78904 | [] | no_license | ZHHJemotion/algorithm008-class01 | 3338af3619d8e1754a62af6a852f517b47298d95 | 5bb7d2b74110df0b5788b94c69582552d711563a | refs/heads/master | 2022-11-12T09:26:24.941738 | 2020-06-30T15:29:20 | 2020-06-30T15:29:20 | 255,102,230 | 0 | 0 | null | 2020-04-12T14:39:17 | 2020-04-12T14:39:17 | null | UTF-8 | Python | false | false | 1,702 | py | # Given a string S and a string T, count the number of distinct subsequences of
# S which equals T.
#
# A subsequence of a string is a new string which is formed from the original s
# tring by deleting some (can be none) of the characters without disturbing the re
# lative positions of the remaining characters. (ie, "... | [
"zhhjemotion@hotmail.com"
] | zhhjemotion@hotmail.com |
302200b67c6ff46459d3cbb1afd4dd9ccceda468 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/healthinsights/azure-healthinsights-cancerprofiling/setup.py | 661aee6d571a51ce540e6ca8bc4357451c10400c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,517 | py | # coding=utf-8
# --------------------------------------------------------------------------
# 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 Microsoft (R) Python Code Generator.
# Changes may ca... | [
"noreply@github.com"
] | Azure.noreply@github.com |
363ccaf11d04a765dfe123aa8108c5efc179a7a3 | fb78fd824e904705fb1ee09db8b3c20cc3902805 | /django-react-app/leads/models.py | 17a10418f8e0184ed0c4e0904cc1bf8146d137be | [] | no_license | Roderich25/mac | 8469833821ac49c539a744db29db5a41d755ad55 | 4f7fe281c88f0199b85d0ac99ce41ffb643d6e82 | refs/heads/master | 2023-01-12T05:55:12.753209 | 2021-11-26T01:16:24 | 2021-11-26T01:16:24 | 207,029,750 | 0 | 0 | null | 2023-01-07T11:49:23 | 2019-09-07T21:51:53 | Jupyter Notebook | UTF-8 | Python | false | false | 277 | py | from django.db import models
class Lead(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField(max_length=100, unique=True)
message = models.CharField(max_length=500, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
| [
"rodrigoavilasolis@gmail.com"
] | rodrigoavilasolis@gmail.com |
fddd9876f7cba4560371eeb94013cf83c23decbe | d9da91e23cb394f4f1622755098717840715be23 | /python/jittor/utils/polish.py | a03b8ed03942ed06fcd290bcfa8dfa556ec73ba0 | [
"Apache-2.0"
] | permissive | yezi05/jittor | 4af5e857575aca28c2b0f7dbfb4d8b717ee659ff | 03e8253a363aa74ce68e707ccf1726f30d9d64c5 | refs/heads/master | 2023-02-06T03:01:59.934523 | 2020-12-22T13:58:52 | 2020-12-22T13:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,577 | py | #!/usr/bin/python3
# ***************************************************************
# Copyright (c) 2020 Jittor. Authors: Dun Liang <randonlang@gmail.com>. All Rights Reserved.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# *************... | [
"randonlang@gmail.com"
] | randonlang@gmail.com |
efe621adfaa9b8a93bd44ee3a70caffb919035cf | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/share/pyshared/desktopcouch/pair/__init__.py | fc4788fa401ce96d02d912686bae79f0a5eedc4b | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # Copyright 2009 Canonical Ltd.
#
# This file is part of desktopcouch.
#
# desktopcouch is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# desktopcouch is distributed in the hope that it wil... | [
"root@xinli.xinli"
] | root@xinli.xinli |
ec29664e79ce885956b357da822230d58ef90bff | cf088e68e93981292270905c983378288c4bbd66 | /backend/chat/migrations/0001_initial.py | 2fb31cf4d731520bfec0e757eea48934675de7d1 | [] | no_license | crowdbotics-apps/test-27314 | 92f91f9e3bc3cfe508338cd71b8d29df8de1927d | e436c8d0f0b346b23b26b90ea698c3ad0020711e | refs/heads/master | 2023-04-21T01:55:47.441435 | 2021-05-24T10:39:51 | 2021-05-24T10:39:51 | 370,310,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | # Generated by Django 2.2.20 on 2021-05-24 10:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('chat_user_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0f3033d9f66cd33138abf1898e4ac25f24abc2f5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/101585/submittedfiles/jogoDaVelha.py | ceb9986c93fca04e49a3a98db4789eb815024b33 | [] | 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 | 459 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
print('Bem vindo ao JogoDaVelha do grupo 8 [Iara, Ingrid, Luiz Otávio, Tatiane]')
nome = str(input('Qual seu nome? '))
s = str(input('Qual símbolo você deseja utilizar no jogo? (X ou O) '))
while s != X or s != O:
print('I... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7f485812412727f8eec54250a2717de3c9cc38c6 | c0e1d9ab5c5fae94f988e03ead37337cd283e012 | /earth461/ass1/q1b.py | 9c0c57dc3f730e8c0738ef34cbfc4ba6e4f27518 | [] | no_license | BruceJohnJennerLawso/turbulence-chain | 114dafd19fa00f6e0af7113cdaa8d603a62dfc66 | 767786368c08e8ca3ba0fbc2896cb6cc9908ebdb | refs/heads/master | 2016-09-01T05:15:48.650177 | 2015-12-07T01:49:46 | 2015-12-07T01:49:46 | 45,279,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | ## q2.py #######################################################################
## log log conductivity by ppm again, this time with different values ##########
## depending on temperature ####################################################
#############################################################################... | [
"johnnybgoode@rogers.com"
] | johnnybgoode@rogers.com |
9bf0b8872faffa3a20d8a64810b284909a28af6b | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-ci/connectors/metadata_service/orchestrator/tests/test_dagster_helpers.py | 13d92550f51ddd6f46330b65e3966c660c1ef658 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 1,358 | py | from orchestrator.utils.dagster_helpers import string_array_to_hash
def test_string_array_to_hash_is_deterministic():
strings = ["hello", "world", "foo", "bar", "baz"]
assert string_array_to_hash(strings) == string_array_to_hash(strings)
def test_string_array_to_hash_ignores_repeated_strings():
strings ... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
2d59dda3daae2055f815f55af8792090bb339bf3 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ_16_2/16_2_1_Mike_Xiao_q1.py | f1ab7c431a32948cb0d5c6ff6318219a81209fcd | [] | 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 | 855 | py | filename = "A-large"
fin = open(filename + ".in", "r")
fout = open(filename + ".out", "w")
casenum = int(fin.readline())
for ite in range(casenum):
in_str = fin.readline()
dignums = [0,0,0,0,0,0,0,0,0,0]
dignums[0] = in_str.count('Z')
dignums[2] = in_str.count('W')
dignums[4] = in_str.count... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
286e5b54ffddc08cced75a5f8c14d1b7d58eb735 | 04c06575a49a3f4e30e4f3f2bf2365585664d2e8 | /python_leetcode_2020/Python_Leetcode_2020/204_count_primes.py | 92cf09def1c8409654aad00245651ec1aa15c81e | [] | no_license | xiangcao/Leetcode | 18da3d5b271ff586fdf44c53f1a677423ca3dfed | d953abe2c9680f636563e76287d2f907e90ced63 | refs/heads/master | 2022-06-22T04:45:15.446329 | 2022-06-17T13:03:01 | 2022-06-17T13:03:01 | 26,052,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | """
Count the number of prime numbers less than a non-negative number, n.
Example 1:
Input: n = 10
Output: 4
Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7.
Example 2:
Input: n = 0
Output: 0
Example 3:
Input: n = 1
Output: 0
"""
class Solution:
def countPrimes(self, n: int) -> int:
... | [
"xiangcao_liu@apple.com"
] | xiangcao_liu@apple.com |
6cc9e1b159a966897cb04e871047b58e49c391ed | 83cf642504313b6ef6527dda52158a6698c24efe | /scripts/addons/fd_scripting_tools/autocompletion/suggestions/dynamic/_bpy_fake/__private__/motionpath.py | 0f8b705595927dd286be09273a493ff5ba911c2d | [] | no_license | PyrokinesisStudio/Fluid-Designer-Scripts | a4c40b871e8d27b0d76a8025c804d5a41d09128f | 23f6fca7123df545f0c91bf4617f4de7d9c12e6b | refs/heads/master | 2021-06-07T15:11:27.144473 | 2016-11-08T03:02:37 | 2016-11-08T03:02:37 | 113,630,627 | 1 | 0 | null | 2017-12-09T00:55:58 | 2017-12-09T00:55:58 | null | UTF-8 | Python | false | false | 1,020 | py | from . motionpathvert import MotionPathVert
from . struct import Struct
from . bpy_struct import bpy_struct
import mathutils
class MotionPath(bpy_struct):
@property
def rna_type(self):
'''(Struct) RNA type definition'''
return Struct()
@property
def points(self):
'''(Sequence of... | [
"dev.andrewpeel@gmail.com"
] | dev.andrewpeel@gmail.com |
583762e669d9ed831762240fab8c3d9d18bf4965 | 7b5f6c72fa6427a9d9350d1c9007f346161b3866 | /portfolio/views.py | 8c90e48160b005931e983f557f6ad67693646031 | [
"MIT"
] | permissive | GoWebyCMS/portfolio | a15daf8f553e7ddb92154c60e7b57b4383fa2a44 | 1ed5c20f6fe280388ff0876ca6a5b5129cf6b3f2 | refs/heads/master | 2020-06-25T22:33:46.298359 | 2017-07-17T10:44:46 | 2017-07-17T10:44:46 | 96,993,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views.generic import ListView
from django.utils import timezone
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models import Project, ProjectCategory, Skill
# Create your views here.
# TODO: Find o... | [
"kkampardi@gmail.com"
] | kkampardi@gmail.com |
2f6e304d6d3a22932ae14069516b6f656a244924 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/LeetCodeWeekly/327_c.py | 255919176b616b224096bbcb0e64767e7e69ba66 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | from typing import List, Tuple, Optional
from pprint import pprint
from collections import deque, defaultdict
list_lower = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
class Solution:
def isItPossible(self, word1: str, wo... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
d343f2bf7825fe6d38f60fa6dc2ccb045815be2a | 15d05b24ab8086ac84757c4d596372fd7801b827 | /.ycm_extra_conf.py | d083fa69a8d6ce218a149a5a10a224238cb5081b | [] | no_license | wqx081/mpr_base | 5d410720728b3e1a720a36087226979763ac538b | fb1526856898954420673807eef50a5478382c38 | refs/heads/master | 2021-01-11T14:28:24.249395 | 2017-02-10T03:43:21 | 2017-02-10T03:43:21 | 56,306,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | # This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that rec... | [
"you@example.com"
] | you@example.com |
410cb4081e89dc3eb59cc3fbda59b68ae7844275 | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.autoscaling.Group.mixed-instances-policy-python/__main__.py | 2c3d5382d28b5d51dfca25f592d0fd7afc8785c2 | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import pulumi
import pulumi_aws as aws
example_launch_template = aws.ec2.LaunchTemplate("exampleLaunchTemplate",
image_id=data["aws_ami"]["example"]["id"],
instance_type="c5.large",
name_prefix="example")
example_group = aws.autoscaling.Group("exampleGroup",
availability_zones=["us-east-1a"],
desir... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
ab019ff8f44d3ba691aebdc11c86e282acb76fe4 | 1fc45a47f0e540941c87b04616f3b4019da9f9a0 | /src/sentry/api/endpoints/project_release_commits.py | ee4a0f82aea772d83f6c1a4e66e53739b4b45f9a | [
"BSD-2-Clause"
] | permissive | seukjung/sentry-8.15.0 | febc11864a74a68ddb97b146cc1d2438ef019241 | fd3cab65c64fcbc32817885fa44df65534844793 | refs/heads/master | 2022-10-28T06:39:17.063333 | 2018-01-17T12:31:55 | 2018-01-17T12:31:55 | 117,833,103 | 0 | 0 | BSD-3-Clause | 2022-10-05T18:09:54 | 2018-01-17T12:28:13 | Python | UTF-8 | Python | false | false | 1,641 | py | from __future__ import absolute_import
from sentry.api.base import DocSection
from sentry.api.bases.project import ProjectEndpoint, ProjectReleasePermission
from sentry.api.exceptions import ResourceDoesNotExist
from sentry.api.serializers import serialize
from sentry.models import Release, ReleaseCommit
class Proje... | [
"jeyce@github.com"
] | jeyce@github.com |
8b110ee3b6013db04f1448091c8518136433b53e | 7d800b5d51e47bf59ef5788bd1592d9c306d14c3 | /orders/migrations/0023_order.py | acac20f5ce2afce9ee8126e02bb1517ca7612693 | [] | no_license | paulitstep/cafe-website | 2e28e5a218f58c491cd65c6dc2deee22158765e2 | 29d077b1924871941ef95d5715412ae64ff4e892 | refs/heads/master | 2020-04-19T04:06:02.902468 | 2019-02-11T11:08:54 | 2019-02-11T11:08:54 | 167,953,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # Generated by Django 2.1.1 on 2018-11-13 20:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cart', '0015_cart_cartitem'),
('orders', '0022_auto_20181113_2242'),
]
operations = [
migrations.Cr... | [
"pasha-mo1@rambler.ru"
] | pasha-mo1@rambler.ru |
4590727dcc68468074628fc79b7672369506aef3 | 4f5675d7d1cdb9dfb42cabcb9b154f08ed4f92e6 | /sensor/manage4.py | 19f8fd405b6dd84beea27a75322d39a9f510f808 | [] | no_license | block1b/twisted_rpc | 674934a85313761fabc48d8529f326a7f6958a29 | 5fa8f0f8ce07f99a280c4f8d81362532a443440a | refs/heads/master | 2020-03-19T18:07:02.738900 | 2018-06-10T06:54:16 | 2018-06-10T06:54:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | # coding=utf-8
from init_pro import ConnectionFactory, ConnectionProtocol, Connector
import sys
from twisted.internet import reactor
from twisted.python import log
import random
import json
import datetime
log.startLogging(sys.stdout)
class CreateConnection(object):
"""
创建主动的长连接
"""
def __init__... | [
"1115064450@qq.com"
] | 1115064450@qq.com |
971f11bd2b61abcdffd848b6073412f022007d3a | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/retinanet/retinanet_r101_caffe_fpn_mstrain_3x_coco.py | 21352a07ca8f6642d491dc9a5b683b2b4483d2d5 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 853 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
40af72dc5ee87cc11f60cf3e10c57cc8617d2fbf | 8d2e5b5ea408579faa699c09bdbea39e864cdee1 | /ufora/util/TypeAwareComparison.py | ec50d2969a9792de4b1a5196ed0ac3933d706cc9 | [
"dtoa",
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | iantuioti/ufora | 2218ef4c7e33c171268ce11458e9335be7421943 | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | refs/heads/master | 2021-01-17T17:08:39.228987 | 2017-01-30T16:00:45 | 2017-01-30T16:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Copyright 2015 Ufora 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 or agreed to i... | [
"braxton.mckee@gmail.com"
] | braxton.mckee@gmail.com |
11723a0259f19eee03f62469fb9728c3ae122d34 | ef02d3f3c5dbb2f1bf1b5a8b419d44efc9eb9cf1 | /src/scraping/migrations/0006_auto_20210227_1647.py | 99f1ec19ef18215e8c6e4f0d0c9e3b87564d93d2 | [] | no_license | Kirill67tyar/scraping_service | d0e60c1a07e1455b007b80908a0145ac26c38ba4 | e1c8ed8275d20e104e912e48bbc3d2b3a4e889ff | refs/heads/master | 2023-03-23T00:49:11.641175 | 2021-03-05T14:49:57 | 2021-03-05T14:49:57 | 335,295,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Generated by Django 3.1.6 on 2021-02-27 13:47
from django.db import migrations
import jsonfield.fields
import scraping.models
class Migration(migrations.Migration):
dependencies = [
('scraping', '0005_auto_20210224_1842'),
]
operations = [
migrations.AlterField(
model_name... | [
"50547951+Kirill67tyar@users.noreply.github.com"
] | 50547951+Kirill67tyar@users.noreply.github.com |
bbd30238c51b35c915d81fddbe1772cad0af452e | 97bd006a2a9885f1733bead1fcb6cb59b7779c43 | /experiments/naive_bayes/rbf_if/parameterization.py | 04084965224f5451e61ed1fff97b8b3fa8453c45 | [] | no_license | foxriver76/master-thesis-rslvq | d3524176d05e553b7cca5a37f580ef2cf9efc805 | 00a6c0b4bc3289fe30ead7d7c4e1ae41984dcf8b | refs/heads/master | 2022-03-07T03:55:19.244161 | 2018-10-15T08:28:41 | 2018-10-15T08:28:41 | 139,425,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 14 08:34:18 2018
@author: moritz
"""
from sklearn.model_selection import GridSearchCV
from rslvq_stream import RSLVQ
import json
from skmultiflow.data.random_rbf_generator_drift import RandomRBFGeneratorDrift
"""Subset of 30k"""
stream = RandomRBF... | [
"moritz.heusinger@gmail.com"
] | moritz.heusinger@gmail.com |
ca20ef76e3f12077d99b30818c4300e8d0ed1e2b | e6f02bafae8842cae7b45efc2d4719c1a931f68d | /python/scripts/serve_dir_single_file.py | 92b87c034eb909ca4638e839c4e3aca61ae2d15f | [] | no_license | minhhoangcn4/nuxt-dashboard-template | 71d7f54462edb96ddb09667fee9c5a4ea76583ca | 7f15e1c79122ad45e398cc319d716d2a439b8365 | refs/heads/master | 2022-04-18T05:43:56.254971 | 2020-04-19T16:52:32 | 2020-04-19T16:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py |
import os
import build_frontend as bf
here = os.path.dirname(os.path.abspath(__file__))
folder_root = os.path.join(here, '..', '..')
c = bf.ServeSingleFile(folder_root=folder_root,
port=8080)
c.run()
| [
"olivier.borderies@gmail.com"
] | olivier.borderies@gmail.com |
283c78dd3f670c65171d58c2b10825d443747d41 | 71fa0d6b0cf81dcd68fb4b5f43bb9fb7026df170 | /code/lamost/mass_age/paper_plots/write_paper_table.py | d7d649c0c8413ca2e487c363c9867f887718c740 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | aceilers/TheCannon | 31354db3df2495cea1e938090079f74f316a5bbf | c140a0c9555bb98956b013d1a9d29eb94ed4c514 | refs/heads/master | 2020-12-25T22:29:57.147937 | 2017-07-18T08:22:46 | 2017-07-18T08:22:46 | 64,823,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,707 | py | import pyfits
import numpy as np
from sigfig import round_sig
def ndec(num):
dec = str(num).split('.')[-1]
return len(dec)
def fmt_id(id_val):
split_val = id_val.split('_')
return split_val[0] + "\_" + split_val[1]
inputf = pyfits.open("/Users/annaho/Data/LAMOST/Mass_And_Age/Ho2016b_Catalog.fits")
da... | [
"annayqho@gmail.com"
] | annayqho@gmail.com |
f5ddb3679e63a10e89433aa31c76875a957f6882 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /9sN5tvXZjYCsKb4Mx_10.py | 87730daea0cefa4298f4002d9ce77ce7bf826233 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
Create a function that takes the volume of a cube and returns the length of
the cube's main diagonal, rounded to two decimal places.
### Examples
cube_diagonal(8) ➞ 3.46
cube_diagonal(343) ➞ 12.12
cube_diagonal(1157.625) ➞ 18.19
#### Notes
Use the `sqrt` function in the math module.
""... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.