blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6d80a10c0149fda0b1fea3828782d1ac2411cf44 | 0cb98b92463ca7187e4c617b5bd634a9946f99b3 | /Arrays/VectorADT/tests.py | 7286c8b0b9a49e05ac1784dee7f62fc30cb911a0 | [] | no_license | Michael-Odhiambo/Data-Structures-And-Algorithms-using-Python | 73e828e1d3ca9cd5a3419cdb945babb6c8a4e54f | 29bdef4a43323bd5ff719a0082226ac11b929b39 | refs/heads/master | 2023-04-14T13:13:15.920594 | 2021-04-21T20:43:31 | 2021-04-21T20:43:31 | 291,930,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py |
list1 = [ 1, 2, 3, 4]
list2 = []
n = len( list1 ) - 1
index = 1
while n >= index :
print( list1[n] )
n -= 1 | [
"odhiambomichaelallan@gmail.com"
] | odhiambomichaelallan@gmail.com |
f7a384c4dd7aed86157ed6c844fbe54c92a49c25 | 221cada2354556fbb969f25ddd3079542904ef5d | /Leetcode/109.py | fb737687d1edaa018d6025e08430617852fcba01 | [] | no_license | syzdemonhunter/Coding_Exercises | 4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d | ca71572677d2b2a2aed94bb60d6ec88cc486a7f3 | refs/heads/master | 2020-05-24T11:19:35.019543 | 2019-11-22T20:08:32 | 2019-11-22T20:08:32 | 187,245,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | # https://leetcode.com/problems/convert-sorted-list-to-binary-search-tree/
# T: O(n)
# S: O(n)
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# ... | [
"syzuser60@gmail.com"
] | syzuser60@gmail.com |
31503b0c217f37c86eff34f3a100b8f183473606 | 8f75f8e91bb379cc05eded1a89a6c2f550bae6e6 | /jumpscale/data/idgenerator/idgenerator.py | dd7046fca43082a6850b88b15924070f380dcd47 | [] | no_license | despiegk/js-ng | 24c09f653ec4abfb1b997811a17c254eede89304 | e796f6ae31363e2f6daadd5ad377b5d3b116f657 | refs/heads/master | 2021-05-23T01:48:17.168454 | 2019-08-28T19:48:05 | 2019-08-28T19:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | import random
import string
import uuid
def random_int(from_, to):
return random.randint(from_, to)
def incrementor_id():
# user redis.incr.
raise NotImplementedError()
def guid():
return str(uuid.uuid4())
def nfromchoices(n, choices):
return "".join([random.choice(choices) for _ in range(n)])
... | [
"xmonader@gmail.com"
] | xmonader@gmail.com |
2af736a948b077e2294b0cb97cf0ee15aeca7972 | 13ea6fa027c8ae33852bde3335846cdaab78ee71 | /DataScienceWithPython/sample_python_code/statistic/stat7.py | d760c7ef157fc2e0048a71b6ec1b276ab8263ddd | [] | no_license | dmonisankar/pythonworks | c98de04b191135451556ca9d1ee513a0a69f2edb | 4f3a14460272ec959c2f2e6975814d9ac43cb90a | refs/heads/master | 2023-03-31T00:36:46.016403 | 2020-06-11T05:39:36 | 2020-06-11T05:39:36 | 271,455,493 | 0 | 0 | null | 2021-03-20T04:19:45 | 2020-06-11T05:00:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,132 | py | import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
def ecdf(data):
"""Compute ECDF for a one-dimensional array of measurements."""
# Number of data points: n
n = len(data)
# x-data for the ECDF: x
x = np.sort(data)
# y-data for the ECDF: y
y = n... | [
"das.monisankar@gmail.com"
] | das.monisankar@gmail.com |
a88f2074bcffc41af125c87593f07202ed0c0cfc | a1c9c55e1520356113a320be18e8fcb31654a944 | /archive/0.9/generated/seaborn-scatterplot-11.py | 7bdecc05f79286cfec7618fec2371fbbf86689a0 | [] | no_license | seaborn/seaborn.github.io | bac12a9255b41c7971e9e94ea393d372ef66ef62 | f70445bc3456f0216169806c2daf03452ca1eba4 | refs/heads/master | 2023-01-06T10:50:10.789810 | 2022-12-30T19:59:55 | 2022-12-30T19:59:55 | 70,731,605 | 16 | 5 | null | 2022-06-28T00:32:07 | 2016-10-12T18:56:12 | HTML | UTF-8 | Python | false | false | 170 | py | markers = {"Lunch": "s", "Dinner": "X"}
ax = sns.scatterplot(x="total_bill", y="tip", style="time",
markers=markers,
data=tips)
| [
"mwaskom@nyu.edu"
] | mwaskom@nyu.edu |
e0471aadbd2d2558d2a7e7a2b9b57fc8388cda46 | f6a24e51b6012b582d76db0b2e1e27950729b7bb | /setup.py | acd29caffd3fcd37f13c6290681e0fec2b0f9b4c | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | mathieubonnet/capsul | 391733a2391c1191b643e6847b5f757cf77c1255 | c9745e339c24fc6a27d0adcc1e0c91b355588cac | refs/heads/master | 2020-04-09T02:54:29.257904 | 2015-03-04T14:36:08 | 2015-03-04T14:36:08 | 31,950,724 | 0 | 0 | null | 2015-03-10T10:11:37 | 2015-03-10T10:11:37 | null | UTF-8 | Python | false | false | 2,326 | py | #! /usr/bin/env python
##########################################################################
# CAPSUL - Copyright (C) CEA, 2013
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
... | [
"antoine.grigis@cea.fr"
] | antoine.grigis@cea.fr |
ea48f51e2344745afe21a09d81054b7b5ad65438 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/create_product_request.py | a8b36ec3e8dd9957b6f1471b71a6f6b4d646caf7 | [
"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,922 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateProductRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribu... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
5e180554a5c3e85632e5b64aed8b28f0e3a7121f | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/pose/alphapose/pytorch/trackers/utils/transform.py | 1017f4807614151a663a8f84628b8d568304a987 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 5,633 | py | # encoding: utf-8
import torchvision.transforms as T
import math
import random
import torch
import cv2
import numpy as np
#from .functional import to_tensor
#from .transforms import *
class RandomErasing(object):
""" Randomly selects a rectangle region in an image and erases its pixels.
'Random Erasing Da... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
4ee955897b4bc2938f504c37b319d2641f545dc6 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano2848.py | 9ab549a8f4b116299be1d6cd38355828910e48c6 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
7d9e4da203e7b0fe44f41edd27aba9153d1d6ac4 | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/pads/pads/smawk.py | 948ab4c241686f0469e09ee2a3ff4dddbd1bbb79 | [
"MIT",
"CC-BY-NC-SA-4.0",
"Apache-2.0"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 7,823 | py | """SMAWK.py
Totally monotone matrix searching algorithms.
The offline algorithm in ConcaveMinima is from Agarwal, Klawe, Moran,
Shor, and Wilbur, Geometric applications of a matrix searching algorithm,
Algorithmica 2, pp. 195-208 (1987).
The online algorithm in OnlineConcaveMinima is from Galil and Park,
A linear ti... | [
"hudalpf@163.com"
] | hudalpf@163.com |
2b9fce0d1039592d118c8db220b31dfeda6b619d | 161fd6370ffa0b35ecd50719d6266224da597ee0 | /Python/Django/ninjaGold/apps/ninjagold/urls.py | 402d56e647982cf8b69ddf3579a56486e220d103 | [] | no_license | ebergstein/DojoAssignments | a30fd8b36442bff2a4253902a591ad11f191fc12 | 3ad9ac65073c733ead32b93ce4be19af5369fccf | refs/heads/master | 2021-06-19T09:48:23.100713 | 2017-06-30T04:24:35 | 2017-06-30T04:24:35 | 82,743,546 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^farm$', views.farm),
url(r'^cave$', views.cave),
url(r'^house$', views.house),
url(r'^casino$', views.casino)
] | [
"ebergstein@sbcglobal.net"
] | ebergstein@sbcglobal.net |
ce7f5d0af87d499a9e90d621f57bd18256c57e02 | b998f07d5be9a339ee9d93f4143209246fc0613e | /docs/histogram/blur1.py | 1a09122fad5db92539484274aed6f898a5adf0d4 | [] | no_license | s-cosseddu/opencv-tutorial | a48c48c08efad2746dc1ff8ca1d9ecd1ef9e80b2 | be6c1da81d1cfaf1b47f1873adf0fdb50a7ab84c | refs/heads/master | 2023-02-07T03:08:29.968456 | 2020-02-09T20:05:02 | 2020-02-09T20:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Blurring
import cv2 as cv
def trackbar(x):
x = cv.getTrackbarPos('blur x','window')
y = cv.getTrackbarPos('blur x','window')
blurred = cv.blur(img, (x, y))
cv.imshow('window', blurred)
cv.displayOverlay('window', f'blur = ({x}, {y})')
img = cv.imread('lego.png')
cv.imshow('window', img)
cv.creat... | [
"raphael.holzer@citycable.ch"
] | raphael.holzer@citycable.ch |
0e1ddf5c4cfad22d936a9c52c81dc25d7c5a267e | ce083b3b29f8218854c5b5171949f257558edfd3 | /raterapi/views/game.py | 7a7a9dd7c41fbd4c9e2f5f4c7dea59ba45095254 | [] | no_license | MarkyAaronYoung/raterproject | 195082d63bfb063b34b65a27850fd5211b47e5cc | 0c6b675f09a786d88f341641fab513c998699ad7 | refs/heads/main | 2023-02-02T20:24:24.581964 | 2020-12-05T18:08:25 | 2020-12-05T18:08:25 | 313,803,061 | 0 | 0 | null | 2020-12-05T18:08:26 | 2020-11-18T02:38:51 | Python | UTF-8 | Python | false | false | 2,275 | py | from django.core.exceptions import ValidationError
from rest_framework import status
from django.http import HttpResponseServerError
from rest_framework.viewsets import import ViewSet
from rest_framework.response import Response
from rest_framework import serializers
from rest_framework import status
from raterapi.mode... | [
"markyaaronyoung@gmail.com"
] | markyaaronyoung@gmail.com |
8fe3baf1366251c0f42785474df76f23f3704ed1 | da96d29b457eb123c01274efea562448df105fc6 | /chapter6/st8.py | 527f6d571dd909e8aa75709b917a4ccdabec9642 | [] | no_license | Alonsovau/sketches | a1336f1a7909ad059744c4613ab992c8361264f5 | dfb072086cc813d7409fa11393ebaad6e26db180 | refs/heads/master | 2021-01-19T22:29:15.827896 | 2017-10-19T15:37:28 | 2017-10-19T15:37:28 | 88,761,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # 与关系型数据库的交互
import sqlite3
stocks = [
('GOOG', 100, 490.1),
('AAPL', 50, 545.75),
('FB', 150, 7.45),
('HPQ', 76, 33.2)
]
db = sqlite3.connect('database.db')
c = db.cursor()
# print(c.execute('create table portfolio (symbol text, shares integer, price real)'))
# db.commit()
# c.executemany('insert into ... | [
"alonsovau@outlook.com"
] | alonsovau@outlook.com |
af0ea6669de535070a72eb729a27acc46e30001c | 12f006a0e5d75ef2349d4ae519c1c9cac5309761 | /Solution_30.py | aba2dee1902b3a33bd33369a0a08ad7a470b376b | [] | no_license | TimothySjiang/leetcodepy | c613db16282eade713e01b7d641c0f5b341ec84b | ef64e46b8833a684b8b0355ce576b767a0e03596 | refs/heads/master | 2020-07-01T14:48:35.953841 | 2020-01-12T06:19:44 | 2020-01-12T06:19:44 | 201,199,810 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | class Solution:
def findSubstring(self, s: str, words: List[str]) -> List[int]:
if not words: return []
dic = collections.Counter(words)
wlength = len(words[0])
res = []
for i in range(wlength):
window = collections.Counter()
count = 0
for ... | [
"shjiang@ucdavis.edu"
] | shjiang@ucdavis.edu |
4c1e3bcd5f2981b511d1a56a5dfeedeb6ff47a50 | 862af34d5a1ebb3eb700e40c5877e394ee845b5f | /src/core/src/tortuga/kit/actions/componentActions.py | 9f4f2300e8bce6ec3981a6041c92e30357532377 | [
"Apache-2.0"
] | permissive | ffxf/tortuga | 4e59617153de92cfc1a9b7bd95f8bae5ea8e1134 | a20ef7d0274be18bdaae6b9fbe879cd0473eaf1b | refs/heads/master | 2021-01-25T13:42:05.809188 | 2018-03-01T20:31:32 | 2018-03-01T20:31:32 | 123,608,729 | 0 | 0 | null | 2018-03-02T17:21:59 | 2018-03-02T17:21:59 | null | UTF-8 | Python | false | false | 11,275 | py | # Copyright 2008-2018 Univa Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"mfrisch@univa.com"
] | mfrisch@univa.com |
ca29c795c51b528698ae8754a089f8d1bed72243 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/compute/image.py | 0916c8433c77edb30f7a0b78e7bd1d983a6103ed | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,809 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
8b5374fa65e8bcdc4bb966337665b01ce2426e3e | 836097c64ed9c1682961351641ab7f8ecf3438cc | /alphastarmini/core/arch/entity_encoder.py | 6df313f0fb4a2bdc680b5ca7a4b9ddfac946fd21 | [
"Apache-2.0"
] | permissive | liuruoze/Raw-vs-Human-in-AlphaStar | 144ac7dd0abf462adb34d526ef72a7a030b37e3e | 99acae772eb5c93000dca87b78d6acdf7699f331 | refs/heads/main | 2023-08-02T18:42:27.006195 | 2021-09-06T02:50:25 | 2021-09-06T02:50:25 | 403,462,800 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,321 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
" Entity Encoder."
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from alphastarmini.lib.alphastar_transformer import Transformer
from alphastarmini.lib import utils as L
from alphastarmini.lib.hyper_parameters import Arch_Hyper_Pa... | [
"liuruoze@163.com"
] | liuruoze@163.com |
8061a30617a92741c6620ee3fc796b7d0247231e | 180a3795a115c0da71078f81efbde45ab2025ca0 | /interview/头条/old/b.py | c64fd56725c2a7169db3defd92ff17ef9da526c9 | [] | no_license | lizhe960118/Machine-Learning | a7593e6788433408bcf072e5e25672debd931ee4 | 2d6fe2373839964645d632895ed2a7dcb9de48b0 | refs/heads/master | 2020-03-31T15:53:57.408037 | 2019-08-18T12:29:11 | 2019-08-18T12:29:11 | 152,355,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | N = int(input())
delay_time = [[int(a) for a in input().split()] for _ in range(N)]
a, b, k = [int(a) for a in input().split()]
def flayAlgoritm(graph):
minDistance = [[0 for _ in range(len(graph[0]))] for _ in range(len(graph))]
N = len(graph)
for i in range(N):
for j in range(N):
m... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
e8de4748c98a1b75a39da0bd735e788a86756223 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/ospf/throttlestats1h.py | 30e8b996096943eca4c650ced3e0c61509c36231 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,269 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
6f35d96d98a3368b68951d18321d0ae5ca68ebb6 | 68cecfdf90585d8fe7a705c10521d2e2cec80b8a | /apps/courses/migrations/0005_auto_20180814_1824.py | d643a4ae760016f9b51d0ae226bd67a23268d94c | [] | no_license | balloontmz/mooc | e3b8759a76879f321c55c98c8e07b1200cd18c9a | 4f01f82445f4b5e85a700793828eb5f969875814 | refs/heads/master | 2020-03-25T11:31:21.953098 | 2018-08-20T05:21:25 | 2018-08-20T05:21:25 | 143,736,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | # Generated by Django 2.0.1 on 2018-08-14 18:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organization', '0006_auto_20180812_1555'),
('courses', '0004_auto_20180813_2135'),
]
operations = [
... | [
"15111171986@163.com"
] | 15111171986@163.com |
544cfca42ef60962f6e782c20d5e90e3cc8a535c | 97f9e29696000f45330fcad4c6a8d26bb8231708 | /good_point.py | 88962fb5d7084ab23b692471fdcd8e1f33284ae5 | [] | no_license | Ceasar/lecture | 5c5419404b08c8cb8f5b37e069db40e9146059b9 | d1143a0405d9dd2432d5c0cf14cf3ac2f9c18441 | refs/heads/master | 2021-01-20T12:20:45.793808 | 2012-02-28T04:08:46 | 2012-02-28T04:08:46 | 3,562,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from math import sin, cos, pi, atan2
class Point(object):
def __init__(self, r, theta):
self.r = r
self.theta = theta
@property
def x(self):
return round(self.r * cos(self.theta))
@x.setter
def x(self, val):
self.r = round(((val * val) + (self.y * self.y)) ** 0.5)... | [
"cbautista2010@gmail.com"
] | cbautista2010@gmail.com |
9baff6f38d64c4d58a9e972830a5bb3cefa44344 | e4e79bb3bc69c89fbc0429df37ef26fef6a49592 | /testproject/testproject/urls.py | 1b2a05bb96c78a88199932a368c18ecf199109ea | [
"Apache-2.0"
] | permissive | jluttine/django-nyt | ee78a4f55fb7109a5e9dca40f3a69cc58ac6a1b6 | 660f9c387cc1c363ab26e3ab2812da098d086876 | refs/heads/master | 2020-12-28T21:17:00.547751 | 2014-10-15T10:33:33 | 2014-10-15T10:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/... | [
"benjaoming@gmail.com"
] | benjaoming@gmail.com |
9efc7e03791547d91a33989077adbe2056566a48 | 1afec7d1d3099138b5afe5fd73dfd3d24ff4eb15 | /test/functional/rpc_invalid_address_message.py | f9149e01f98e473b42a9825372cdf9eb1bccdde4 | [
"MIT"
] | permissive | republic-productions/finalcoin | 5c7c6b0734178fe22db63f0946ec555f59e8d0eb | 7c0f335ded1e5c662034c822ca2c474b8e62778f | refs/heads/main | 2023-09-04T17:04:32.683667 | 2021-10-14T17:45:22 | 2021-10-14T17:45:22 | 417,209,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,867 | py | #!/usr/bin/env python3
# Copyright (c) 2020 The Finalcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test error messages for 'getaddressinfo' and 'validateaddress' RPC commands."""
from test_framework.test_... | [
"republicproductions@protonmail.com"
] | republicproductions@protonmail.com |
013ab9d306c6cde353ef76978b48a2f6e11b8d30 | 1d892928c70ee9ddf66f2a37a8e083d2632c6e38 | /nova/db/sqlalchemy/migrate_repo/versions/076_remove_unique_constraints.py | 971bfbecc2e217ffdbb4d29f36abed2a9970e642 | [
"Apache-2.0"
] | permissive | usc-isi/essex-baremetal-support | 74196c3f1332ee3cdeba9c263faff0ac0567d3cf | a77daf8ef56cf41e38de36621eda25ed3f180156 | refs/heads/master | 2021-05-19T03:12:11.929550 | 2020-07-24T14:15:26 | 2020-07-24T14:15:26 | 4,702,421 | 0 | 1 | Apache-2.0 | 2020-07-24T14:15:27 | 2012-06-18T15:19:41 | null | UTF-8 | Python | false | false | 3,239 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) OpenStack, 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/l... | [
"dkang@isi.edu"
] | dkang@isi.edu |
0b294d1d60dd4bdf4271c352d5336b20def7191a | 6b2e5e0d21601c61a84afb7164125fb1dc16c7aa | /docs/fonts.py | 09b4151ff1b2607cdb65c6d41b344e93565b57f9 | [
"MIT"
] | permissive | KOLANICH-libs/proplot | aa42b7e8bf4df5f425ea19d31fca2afd15d9a11f | a71e4f8fd57410eee96ba4ce701b8290541a3b28 | refs/heads/master | 2023-07-08T16:44:01.227438 | 2021-07-04T20:28:52 | 2021-07-04T20:28:52 | 313,345,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,502 | py | # -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.3.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %% [raw] raw_mimetype="text... | [
"lukelbd@gmail.com"
] | lukelbd@gmail.com |
5ad9089e3a6c24447ab2f79b46959cfe3b4a7c7c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_143/ch27_2020_03_23_13_19_25_574676.py | c03bdeee5a7baf9d85caf9cc133ea720c209e773 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | invalid= True
while invalid:
perg = str(input('Tem dúvidas?')
if perg == não:
invalid= False
print ('Até a próxima')
else:
print ('Pratique mais')
| [
"you@example.com"
] | you@example.com |
f5df3d660900f3cef91489b44b8804976af6e0f4 | e76f47d5e6752b838d5f7e23e22cfef65482b8e1 | /env/bin/gdalchksum.py | 765bd72c6a86cacb639d07cd13700de5e0db7da6 | [] | no_license | AmirIdris/Final-Project | b006adfc4074df6687abaac83942b1b151300a51 | 7b0e28d01b7d5b4e4825d5d8b98ba193bd3f49e8 | refs/heads/master | 2023-06-10T21:13:12.875771 | 2021-07-08T20:23:59 | 2021-07-08T20:23:59 | 362,912,491 | 0 | 1 | null | 2021-07-08T20:24:00 | 2021-04-29T18:34:24 | CSS | UTF-8 | Python | false | false | 333 | py | #!/home/amir/Documents/Projects/FinalProject/env/bin/python3
import sys
# import osgeo.utils.gdalchksum as a convenience to use as a script
from osgeo.utils.gdalchksum import * # noqa
from osgeo.utils.gdalchksum import main
from osgeo.gdal import deprecation_warn
deprecation_warn('gdalchksum', 'utils')
sys.exit(mai... | [
"you@example.com"
] | you@example.com |
43a8958ceb7903ceb9c6b6d5ccebaaebc00206dc | 2db6f646b23c1bdbdf0e6a7b9889725a7eda4e98 | /test/functional/nulldummy.py | d29132890ca14d06c43cfc54ecb99188b66d039a | [
"MIT"
] | permissive | wolfoxonly/bwb | 113964cbce9ae8ce048bfcd81437f7bcfdb22e11 | aae01441cdc171ff7bbdc161b74b4eeb2f1b5a10 | refs/heads/master | 2021-04-30T08:00:28.465159 | 2018-05-21T14:47:53 | 2018-05-21T14:47:53 | 121,363,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 The Bwbcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test NULLDUMMY softfork.
Connect to a single node.
Generate 2 blocks (save the coinbases for later).
G... | [
"415313577@qq.com"
] | 415313577@qq.com |
2994c87a400699c9154a25a17bbe59a61473a769 | dd9f40550afd05192f04d817fa7b31bbe5945f8a | /app_1/migrations/0006_auto_20210921_1828.py | 52d2866997337ab4f915b145c72565b16af42ed8 | [] | no_license | AbdurRahman111/Boomboom-Official-Project---Official | b8c0220c61e204b8482227ffec3fc0f5ebd69f37 | ff00b702494183e13bc00b634ed33a5203536166 | refs/heads/master | 2023-08-19T04:19:48.334410 | 2021-10-11T12:24:53 | 2021-10-11T12:24:53 | 415,915,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | # Generated by Django 3.2.6 on 2021-09-21 12:28
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_1', '0005_auto_20210921_1635'),
]
operations = [
migrations.AlterField(
model_name='campaign_table',
... | [
"mdabdurrahmanchowdhury1122@gmail.com"
] | mdabdurrahmanchowdhury1122@gmail.com |
c91cb1d76c2ecf1d0a7725da338964e214663f33 | 77f7adb86eee479c32fde983996fa35267d76fd5 | /sap/adt/search.py | c7e5462f1c36c16306d91e5e1efe671e65d7702a | [
"Apache-2.0"
] | permissive | jfilak/sapcli | cabd2390de37f70bbe55f0f7e343de123138e8b1 | 2839463fc2e2e2c1f35aa2203e4880d4e54462e7 | refs/heads/master | 2023-08-31T11:15:38.005314 | 2023-08-29T14:03:43 | 2023-08-29T14:30:46 | 158,893,144 | 54 | 26 | Apache-2.0 | 2023-09-11T14:19:10 | 2018-11-24T01:42:11 | Python | UTF-8 | Python | false | false | 809 | py | """Wraps ADT search functionality"""
from sap.adt.objects import ADTObjectReferences
import sap.adt.marshalling
class ADTSearch:
"""ADT Search functionality"""
def __init__(self, connection):
self._connection = connection
def quick_search(self, term: str, max_results: int = 5) -> ADTObjectRefer... | [
"jakub@thefilaks.net"
] | jakub@thefilaks.net |
93800dc28f160d79cf2aae36684a9306099188bd | 1064f70fefad3a49ad75276bc8638310eace6477 | /solution_scripts/serial_scripts/vdns/test_vdns.py | dd713a1d9973e487f10b1b9c3465df220a690380 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | gokulchandrap/contrail-test | d80e1dfe54d191372c2fe9db6bb1ec6997c5022c | 32d6fa43490a3234eb9560839b7d0de06e28b9bb | refs/heads/master | 2021-01-19T10:35:33.821533 | 2017-04-10T21:33:20 | 2017-04-10T21:33:20 | 87,881,182 | 1 | 0 | null | 2017-04-11T02:52:17 | 2017-04-11T02:52:17 | null | UTF-8 | Python | false | false | 4,358 | py | # Need to import path to test/fixtures and test/scripts/
# Ex : export PYTHONPATH='$PATH:/root/test/fixtures/:/root/test/scripts/'
#
# To run tests, you can do 'python -m testtools.run vdns_tests'. To run specific tests,
# You can do 'python -m testtools.run -l vdns_tests'
# Set the env variable PARAMS_FILE to point to... | [
"vageesant@juniper.net"
] | vageesant@juniper.net |
975147c71e42e7af227b9e5cd11ee357d9a537ec | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.12.4/2/1569573746.py | 1174b860f0aa3c2ac736976482becce073bef245 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def is_palindromic(n: int):
if n < 0:
return False
number = str(n)
if number == number[-1::-1]:
return True
else:
return False
################################################... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
1b3e443d285d7eea5a39e9ed896c107b52115972 | ef2c8185e291d3e11df9406c14af78fd0a8b5b9a | /getWeather.py | c68590ead3effc53bb1fde481dcd08077b07951c | [] | no_license | davehedengren/weather | c855df8ee51de195b3fca095e2e059bcebeadc51 | 014ca831eadb12faa515c38328eb60273dff5775 | refs/heads/master | 2021-01-01T18:17:42.493236 | 2014-09-20T02:25:00 | 2014-09-20T02:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | import datetime
import requests
import json
apikey = ""
cdoHeaders = {"token":apikey}
electionDates = []
electionDates.append(datetime.date(1981,3,18))
electionDates.append(datetime.date(1982,9,8))
electionDates.append(datetime.date(1981,10,10))
#r = requests.get("http://www.ncdc.noaa.gov/cdo-web/api/v2/", headers=c... | [
"james.p.campbell@gmail.com"
] | james.p.campbell@gmail.com |
1786a9be17fe0e1ada8ffd21656dc9b7411dd30c | 0a9949a7dbe5f7d70028b22779b3821c62eb6510 | /static/hb_lcd_static/query_date.py | 9b3c22f222e4c2646872d0d2ac59d8ecadaef8c3 | [] | no_license | 744996162/warehouse | ed34f251addb9438a783945b6eed5eabe18ef5a2 | 3efd299a59a0703a1a092c58a6f7dc2564b92e4d | refs/heads/master | 2020-06-04T22:10:14.727156 | 2015-07-03T09:40:09 | 2015-07-03T09:40:09 | 35,603,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | #coding=utf-8
__author__ = 'Administrator'
import datetime
def test():
today=datetime.datetime.now()
t=today.strftime('%Y%m%d')
weekday=today.strftime("%w")
# week=today.isoweekday()
week=today.strftime("%U")
x=today.replace()
print(t,week)
def gt_getWeeklyDate(date=datetime.datetime.now(... | [
"744996162@qq.com"
] | 744996162@qq.com |
aabc77683ae4d1a2e9070b2cfc9c0bca517cae46 | 3b6ba8d4dc4dd8fe572c1419709facc7bdc2274e | /ai4water/postprocessing/explain/utils.py | c75c7956c174298a9e5dcb9027b3612b05ed0729 | [
"MIT"
] | permissive | AtrCheema/AI4Water | fd5bfda1eee530e7bc9ed1b2130ed49dd0d5bf89 | ec2a4a426673b11e3589b64cef9d7160b1de28d4 | refs/heads/master | 2023-09-04T10:59:55.902200 | 2023-02-10T15:55:32 | 2023-02-10T15:55:32 | 284,684,202 | 47 | 17 | MIT | 2023-02-10T15:56:43 | 2020-08-03T11:39:22 | Python | UTF-8 | Python | false | false | 3,465 | py |
from ai4water.backend import sklearn_models
def convert_ai4water_model(old_model, framework=None, explainer=None):
"""convert ai4water's Model class to sklearn/xgboost..etc type model classes
"""
new_model = old_model
model_name = old_model.__class__.__name__
if old_model.__class__.__name__ == ... | [
"ather_abbas786@yahoo.com"
] | ather_abbas786@yahoo.com |
13116bac9d15d4ef5ffee054babf761735154987 | 329f0e8bf63b8ee7fc55ca1c9ea0a3fcc58bbff5 | /app/views/tournament_view.py | 983d33954773dd9de1ce00ca71b7f49646177206 | [] | no_license | pwgraham91/cratejoy-darts | 6be90ead11e6580d1630d1cf95b1402118200d72 | f6e3eb3dd5f47c2c155dcd85a0d3f46b00eee38d | refs/heads/master | 2022-09-21T10:44:51.908579 | 2017-01-01T02:25:44 | 2017-01-01T02:25:44 | 70,245,826 | 0 | 0 | null | 2022-09-16T17:45:43 | 2016-10-07T12:47:36 | Python | UTF-8 | Python | false | false | 1,814 | py | from datetime import datetime
import json
import flask
from flask_login import login_required
from app import app, db
from app.libs.tournament_lib import make_tournament
from app.models import Tournament, User
@app.route('/tournaments', methods=['GET'])
def tournaments():
session = db.session
all_tournament... | [
"pwgraham91@gmail.com"
] | pwgraham91@gmail.com |
9cf53acce71b5556bc2c06b1ab3e397c6972de74 | 11a739cc8dc520c2aa0979236391af43844b4796 | /lti_synchronization/moodle/lti13/auth.py | 7989b7ee4f4dca630b23643626aacab7ba89afab | [] | no_license | antibagr/ncsu-jupyterhub | 872751d8549ee58ebab9a668f22afd835fdffbb0 | 918236870fd95e5ef82ffdf0e3d25cd418b6550e | refs/heads/master | 2023-07-18T01:28:20.971190 | 2021-09-02T19:53:10 | 2021-09-02T19:53:10 | 363,832,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,949 | py | import json
import os
import time
import typing as t
import urllib
import uuid
import jwt
import pem
from Crypto.PublicKey import RSA
from jwcrypto.jwk import JWK
from loguru import logger
from moodle.utils import dump_json
from tornado.httpclient import AsyncHTTPClient, HTTPClientError
async def get_lms_access_toke... | [
"antibagr@yandex.ru"
] | antibagr@yandex.ru |
fa8833eb0e33cf9eddba27b06d19308957a69f7c | 7f92c2fc131ca637d8b7c2a4dbba4b974884e786 | /lab4/plottingScripts/plot2.py | cfaf4f0ad69dc2e50527e08f8c30a7aea145732f | [] | no_license | byronwasti/CircuitsLabs | 2c5694f07a59adedddde361d0a85a690a83e096b | be1227c504ed1a2b81b6d670cbaa45d4b8be8e17 | refs/heads/master | 2020-05-23T11:15:14.853587 | 2017-09-03T18:53:50 | 2017-09-03T18:53:50 | 80,369,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py |
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import csv
FILENAME1 = "../data/experiment1_Transistor1_1.csv"
FILENAME2 = "../data/experiment1_Transistor2_1.csv"
FILENAME3 = "../data/experiment1_Transistor3_1.csv"
FILENAME4 = "../data/experiment1_Transistor4_1.csv"
FILENAMES = [FILENAME1, FI... | [
"byron.wasti@gmail.com"
] | byron.wasti@gmail.com |
735d3bc443ff036ece35936f200ed7336e1323b7 | 230b4ce17bf74ca2d7c054ab124e0f8ca49a99cb | /test/core/test_alarm.py | 3b8ac654c9e45b9ff07fe2daa01555c0573366b2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ulrikpedersen/malcolm | e827e6829881bfa71366231fd7dfe535709b7d4d | e59a095f9fc4be65f931e728a24919843b8f7fa9 | refs/heads/master | 2021-01-16T21:14:35.975923 | 2015-09-14T08:24:28 | 2015-09-14T08:24:28 | 42,232,223 | 0 | 0 | null | 2015-09-10T08:26:40 | 2015-09-10T08:26:39 | Python | UTF-8 | Python | false | false | 686 | py | #!/bin/env dls-python
import unittest
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
from malcolm.core.alarm import Alarm, AlarmSeverity, AlarmStatus
class AlarmTest(unittest.TestCase):
def test_ok(self):
ok = Alarm.ok()
self.assertEqual(ok.status, Alarm... | [
"tom.cobb@diamond.ac.uk"
] | tom.cobb@diamond.ac.uk |
9783a9f8f220edbd0af2839fc5158d88e273bd04 | d700b9ad1e0b7225871b65ce0dafb27fb408c4bc | /students/k3343/practical_works/Nazarenko_Uliana/Pr_3/Django_project_Nazarenko/django_project_Nazarenko/asgi.py | 4d4c025f140af53b821adf407bb5757598fc0b81 | [
"MIT"
] | permissive | TonikX/ITMO_ICT_WebProgramming_2020 | a8c573ed467fdf99327777fb3f3bfeee5714667b | ba566c1b3ab04585665c69860b713741906935a0 | refs/heads/master | 2023-01-11T22:10:17.003838 | 2020-10-22T11:22:03 | 2020-10-22T11:22:03 | 248,549,610 | 10 | 71 | MIT | 2023-01-28T14:04:21 | 2020-03-19T16:18:55 | Python | UTF-8 | Python | false | false | 425 | py | """
ASGI config for django_project_Nazarenko project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefa... | [
"noreply@github.com"
] | TonikX.noreply@github.com |
82d3528e277282de287161d0a34771658023f07d | 78171e8cfbc44c547ee07d6e5a85e595fb7397a1 | /shortener/management/commands/refreshcodes.py | 2c1a193f0de96c390f8ef0d6d8cdbdab70edd8df | [] | no_license | jimpalowski/URLshortener | 37b41a3818679c1e0707f02f57147e87a651063c | f7b8450ce2e858dff1e6fec11f9fd5dfec3d3e26 | refs/heads/master | 2021-09-05T11:44:36.564719 | 2018-01-27T01:59:56 | 2018-01-27T01:59:56 | 118,685,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | from django.core.management.base import BaseCommand, CommandError
from shortener.models import KirrURL
class Command(BaseCommand):
help = 'Refreshes all KirrURL short codes'
def add_arguments(self, parser):
parser.add_argument('--items', type=int)
def handle(self, *args, **options):
return KirrURL.objects.r... | [
"palowskijim@gmail.com"
] | palowskijim@gmail.com |
2ce3692b4eb26443c3c108c0237eac10b20f7cc4 | 9879e2692b74928b0e23e485846f49558cd4b5d2 | /actions/weather/xinzhi_api.py | ecf4fd123da7bdafbefec41514be9acab5da37d0 | [] | no_license | xfzhu2003/Chatbot_RASA | 153f55e09aa737c71b4ec68ad7dd90a4a6bcfa2b | 36ad035b0f0498ec743fbe140caad9e26bb3b8de | refs/heads/master | 2020-06-29T04:32:27.638560 | 2019-07-23T08:43:59 | 2019-07-23T08:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # -*- coding: utf-8 -*-
'''
@Author : Xu
@Software: PyCharm
@File : xinzhi_api.py
@Time : 2019-07-23 14:06
@Desc :
'''
import os
import requests
import json
KEY = 'Sq6NfAburbGs9MGQc' # API key
UID = "" # 用户ID, TODO: 当前并没有使用这个值,签名验证方式将使用到这个值
LOCATION = 'beijing' # 所查询的位置,可以使用城市拼音、v3 ID... | [
"xushengquan@souche.com"
] | xushengquan@souche.com |
ee830c81728b7d10d0a4e70c932b946301afc79d | 3027a838581e2b0778bd6ae40f9a6c72017b3b0d | /cifar10_warm20k.py | b55b2c8dae79894fff67cb7d6084aafea5108696 | [] | no_license | arthur-qiu/robust | 2617adf3be8ea24592990e66b35123d02b0db045 | 3f40b45a740a1d3f2ba81a18e2cb510fe613d616 | refs/heads/master | 2020-12-04T12:08:52.665675 | 2020-02-26T10:37:34 | 2020-02-26T10:37:34 | 231,758,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,349 | py | # -*- coding: utf-8 -*-
import numpy as np
import os
import argparse
import time
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
import torchvision.transforms as trn
import torchvision.datasets as dset
import torch.nn.functional as F
from tqdm import tqdm
from models.allconv import AllConvNet
fr... | [
"Arthur"
] | Arthur |
7cbe2c458a246403bcdf0ad805dd4894b73f157b | 99bb0330d8b3a4c4403dd92d4236a809c55ca084 | /home/migrations/0001_load_initial_data.py | ac20a343b665405d955a91bbc18399a518073928 | [] | no_license | crowdbotics-apps/william-bucks-28639 | 2f329c5186d4214bd0c8fca955d1e66299872cc3 | 153ad30fa5661fb9f64a5312865d724df5f919fa | refs/heads/master | 2023-06-16T08:55:22.588514 | 2021-07-09T02:21:40 | 2021-07-09T02:21:40 | 384,298,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "william-bucks-28639.botics.co"
site_params = {
"name": "william bucks",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ae4c966261d574ffb508b56d8535f538f0a77c37 | 56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a | /applications/CoSimulationApplication/tests/co_sim_io_py_exposure_aux_files/import_export_data.py | 5ff618370c8074b421e087465b78ac9d99e43fa5 | [
"BSD-3-Clause"
] | permissive | KratosMultiphysics/Kratos | 82b902a2266625b25f17239b42da958611a4b9c5 | 366949ec4e3651702edc6ac3061d2988f10dd271 | refs/heads/master | 2023-08-30T20:31:37.818693 | 2023-08-30T18:01:01 | 2023-08-30T18:01:01 | 81,815,495 | 994 | 285 | NOASSERTION | 2023-09-14T13:22:43 | 2017-02-13T10:58:24 | C++ | UTF-8 | Python | false | false | 1,187 | py | from KratosMultiphysics.CoSimulationApplication import CoSimIO
connection_settings = CoSimIO.Info()
connection_settings.SetString("my_name", "impExp")
connection_settings.SetString("connect_to", "ExpImp")
connection_settings.SetInt("echo_level", 0)
info = CoSimIO.Connect(connection_settings)
connection_name = info.Get... | [
"philipp.bucher@tum.de"
] | philipp.bucher@tum.de |
9eebe7b78d3380bc324b10a6f7197509f246cbef | b282fb0da1785a365cbf29bf958fb33287d5e97d | /src/mr/developer/extension.py | 35f0ceb9b172f7b4b175b83ed10acc518cf2d966 | [] | no_license | lelit/mr.developer | cd7cfb9d00f7f696409a0a6cf942ce0339a6f1ec | 9f955b4e0e9dfbf15228a1f03e2df0a6adf5187c | refs/heads/master | 2021-01-18T07:17:57.574740 | 2010-11-14T09:26:57 | 2010-11-14T09:26:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,252 | py | from mr.developer.common import memoize, WorkingCopies, Config, workingcopytypes
import logging
import os
import re
import sys
FAKE_PART_ID = '_mr.developer'
logger = logging.getLogger("mr.developer")
class Source(dict):
def exists(self):
return os.path.exists(self['path'])
class Extension(object):
... | [
"florian.schulze@gmx.net"
] | florian.schulze@gmx.net |
d3aebf637485f84f291c10de24bda836d6fc353d | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/phonenumbers/data/region_SV.py | 980554e3e4441bc01fad20444684d67ad47c5caf | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 1,172 | py | """Auto-generated file, do not edit by hand. SV metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_SV = PhoneMetadata(id='SV', country_code=503, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[267]\\d{7}|[89]\\d{6}(?:\\d{4})?', poss... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
6f7fc741072e85fe7ff40725f2a06199a7566dad | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2429/60755/316888.py | 9b05f45702d6ac80a070303aa58fb869df6cda0a | [] | 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 | 336 | py | a = input()
b = input()
c = input()
d = input()
e = input()
if c =="2 3 10 6 4 8 1":
print(8)
print(2)
elif c =="2 5 9 6 4 8 6" and e == "7 9 5 6 3 2" or c == "2 3 9 6 4 8 1":
print(7)
print(2)
elif c=="2 5 9 6 4 8 6":
print(7)
print(1)
elif c=="2 5 9 6 4 8 1":
print(7)
print(2)
el... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
edf753a3f9d2409c50b3573ba88eaab613dc7cd7 | 22e6dcbebad329b32579e531af8b33bc657088c9 | /AtCoder/ABC059/ProbD.py | 1fb2c332eaf381ba53e463fa90744fdf354c14c5 | [] | no_license | daigo0927/ProgrammingContest | a63b74bb79ece46181b03dc359bf665604b11ea5 | f54aa8f485ebfd30d5ee84fd74fa9e0661c2a7df | refs/heads/master | 2021-06-21T09:26:23.699668 | 2019-06-22T18:51:32 | 2019-06-22T18:51:32 | 132,655,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | x, y = list(map(int, input().split()))
if abs(x-y) > 1:
print('Alice')
else:
print('Brown')
| [
"Daigo@Daigo-no-MacBook-Air.local"
] | Daigo@Daigo-no-MacBook-Air.local |
6d15a624bd2e58101f01b25a91efb3a7eed586f3 | 2e6cc958f1c95a7a698aaf41f8a0454b5d67e933 | /project/settings_example.py | d1a5a507c39e58906b883e7837a4e068d6f7af67 | [] | no_license | greenteamer/sp | aac53970fe77b49d9cac14c90ec3b57cce8585b4 | 93b400e3d92c5e3933a2225c17033f244da65859 | refs/heads/master | 2021-01-01T18:08:00.818208 | 2015-09-03T07:18:42 | 2015-09-03T07:18:42 | 30,750,314 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import os
# File for storing custom settings
CURRPATH = os.path.abspath('.')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'sp',
'USER': 'root',
'PASSWORD': 'balabas',
'HOST': '',
'PORT': '',
'TEST_CHARSET': 'UTF8',
}
}
# DEBUG_... | [
"greenteamer@bk.ru"
] | greenteamer@bk.ru |
e25be79a841a2898e6a9ed529697f15b982b37a6 | ecd630f54fefa0a8a4937ac5c6724f9a3bb215c3 | /projeto/emprestimo/migrations/0041_emprestimo_taxa.py | 006336203fdc426f2b812eb430c7525507c2e35f | [] | no_license | israelwerther/Esctop_Israel_Estoque | 49968751464a38c473298ed876da7641efedf8de | d6ab3e502f2a97a0d3036351e59c2faa267c0efd | refs/heads/master | 2023-01-07T20:21:38.381593 | 2020-11-12T17:35:14 | 2020-11-12T17:35:14 | 258,642,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # Generated by Django 3.0.7 on 2020-11-10 18:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('emprestimo', '0040_taxa_taxa_juros_a_m2'),
]
operations = [
migrations.AddField(
model_name='em... | [
"israelwerther48@outlook.com"
] | israelwerther48@outlook.com |
a577c88596007bb1886c9537651e16277de23926 | 8efe56ee34c455a6b1336897f6d457acbc9c10f9 | /src/metarl/tf/algos/rl2trpo.py | 1cd270c1df4c36602a1c34da1644196bccbf7cf9 | [
"MIT"
] | permissive | neurips2020submission11699/metarl | ab18d11e708bf569d76cb2fab2bcce089badd111 | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | refs/heads/master | 2022-10-15T22:03:09.948673 | 2020-06-11T19:22:55 | 2020-06-11T19:30:58 | 268,410,657 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,244 | py | """Trust Region Policy Optimization for RL2."""
from metarl.tf.algos import RL2
from metarl.tf.optimizers import ConjugateGradientOptimizer
from metarl.tf.optimizers import PenaltyLbfgsOptimizer
class RL2TRPO(RL2):
"""Trust Region Policy Optimization specific for RL^2.
See https://arxiv.org/abs/1502.05477.
... | [
"neurips2020submission11699@gmail.com"
] | neurips2020submission11699@gmail.com |
a06d447e530df7be2ae057e8a8a13cf2100786c7 | 06a2dab18197a13fc3371debd29b476ae99cb01c | /Monotop/python/Selection.py | 8868a7dc5175ea6bffe6870ec897aa76ca92447c | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | PandaPhysics/PandaAnalysis | 397a031f9e8d399be1814ab04dd525d69b41f060 | 3167d106d41dfce58219c3e07d30e201ee823b55 | refs/heads/master | 2021-06-18T13:52:57.650900 | 2019-04-08T17:35:29 | 2019-04-08T17:35:29 | 168,376,672 | 0 | 0 | NOASSERTION | 2019-04-08T17:33:55 | 2019-01-30T16:34:09 | C++ | UTF-8 | Python | false | false | 4,824 | py | from PandaCore.Tools.Misc import *
from re import sub
triggers = {
'met':'(trigger&1)!=0',
'ele':'(trigger&2)!=0',
'pho':'(trigger&4)!=0',
}
metFilter='metFilter==1'
topTagSF = '%f*(fj1IsMatched==1)+%f*(fj1IsMatched==0)'%(1.007,1.02)
ak4bTagSF = 'sf_btag0*(isojetNBtags==0)+sf_btag1*(isojetNBtags==1)+1*(i... | [
"sidn@mit.edu"
] | sidn@mit.edu |
3c945e482069d67f3eaa4d7602f1236c2061ba23 | 11aac6edab131293027add959b697127bf3042a4 | /smallestEqual.py | 6cd1e74db75a34d00ef3d959ad69280557da3d9b | [] | no_license | jdanray/leetcode | a76b3436002b31865967b757b73c85992636383b | fd736af3e79899b86dac89d4d925d5bd985944ad | refs/heads/master | 2023-08-15T01:20:05.110565 | 2023-08-14T00:25:58 | 2023-08-14T00:25:58 | 148,686,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # https://leetcode.com/problems/smallest-index-with-equal-value/
class Solution(object):
def smallestEqual(self, nums):
for i, n in enumerate(nums):
if i % 10 == n:
return i
return -1
| [
"jdanray@users.noreply.github.com"
] | jdanray@users.noreply.github.com |
1a2655fce7a52f99d61f3d7ec9774ac9aaf13d41 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/001_classes/_exercises/_templates/Python_OOP_Object_Oriented_Programming/Section 6/Encapsulation-Abstraction-Code/1 - Car - Public, Protected, Private.py | ac6327da0975cbcd8e5ce6f0771d3bc21e0fccb6 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 206 | py | # c_ Car
#
# ___ - ____ model year id_num engine_serial_num
# ____.? ?
# ____.? ?
# ____._? ?
# ____.__? ?
#
# my_car = ?("Escape", 2006, "44542", "201109048934242")
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
0123805e9d5a28bd98f12d4102161b84729e5a9b | 8802949d027efd1d31113e84adf8ffd28ec61ce8 | /parObj2.py | 59edfffd0d8a35d16b5fa5fe8cec539e87baafc4 | [] | no_license | AraiKensuke/EnDe | 46c006c12de0d498b6ec6e73e60c17384061c404 | 983268c82686ce18cc76c50837db9c0fc654f8e2 | refs/heads/master | 2020-04-15T15:50:23.494375 | 2017-09-17T01:48:17 | 2017-09-17T01:48:17 | 43,001,381 | 1 | 0 | null | 2017-07-17T21:20:46 | 2015-09-23T13:06:40 | Python | UTF-8 | Python | false | false | 945 | py | import numpy as np
import multiprocessing as mp
class Tester:
def __init__(self, tnum=-1):
self.num = tnum
self.num2 = 10*tnum
def modme(self, nn, val2=None):
self.num += nn
if val2 is not None:
print "Got non-None value for val2"
self.num2 = val2
... | [
"kensuke.y.arai@gmail.com"
] | kensuke.y.arai@gmail.com |
6a535746cb62942f89e980cc16df640f99038714 | 7f97814acd76ca96aee877fd70d401380f848fae | /6_training/count_nodes.py | 1b1f2165cfae52f23ecde1341a68c156a04aad7c | [] | no_license | tberhanu/all_trainings | 80cc4948868928af3da16cc3c5b8a9ab18377d08 | e4e83d7c71a72e64c6e55096a609cec9091b78fa | refs/heads/master | 2020-04-13T12:12:21.272316 | 2019-03-16T04:22:20 | 2019-03-16T04:22:20 | 163,195,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | """ 222. Count Complete Tree Nodes
Given a complete binary tree, count the number of nodes.
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def countNodes(self, root):
"""
... | [
"tberhanu@berkeley.edu"
] | tberhanu@berkeley.edu |
4d6ca332d57ff372264ef5ebba8f9d985ca34822 | b5605220c4c890c76ffc9d907fb55d471c0f7aec | /iot/device_api.py | ccbbec3cd529d6c17fd6a73fa4b536d210b12991 | [
"MIT"
] | permissive | dragonxu/frappe_iot | c97aa057ceb674d77f561d40c16f7d27574beea7 | 6ec524498cccaf2f49f7264a3b284a8956bd430c | refs/heads/master | 2023-03-27T02:13:09.099309 | 2021-03-27T10:03:58 | 2021-03-27T10:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,062 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Dirk Chang and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import json
import redis
import uuid
from frappe import throw, msgprint, _
from iot.iot.doctype.iot_device_activity.iot_device_activity impor... | [
"dirk@kooiot.com"
] | dirk@kooiot.com |
8cd50ada5edeea3845d7371bc4bedcfd0a7d7c28 | 32fd04b72bc5a039c11b6bacd98726cdcaec6d2c | /reduce_herschel_spectra/generate_averaged_hifi_spectra.py | 430db14f37cdca8bf50f27be3cf45431a9d60f1d | [] | no_license | tomr-stargazer/reduce_herschel_IRAS16293_spectra | 31657f08d018f71b93b4fee41f7d619b0fe114cf | 9c27e573140cfba2234a545f87b73b75624f9959 | refs/heads/master | 2021-09-07T17:07:58.294477 | 2018-02-26T15:57:54 | 2018-02-26T15:57:54 | 93,404,942 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | from __future__ import division
import os
import shutil
from gunzip_make_hifi import convert_FITS_to_HIFI
from combine_and_average import average_polarizations
list_of_bands = ["1a", "1b", "2a", "2b", "3a", "3b", "4a", "4b", "5a", "6a", "6b", "7a"]
root_directory_of_data = os.path.expanduser("~/Documents/Data/Hersc... | [
"t.rice90@gmail.com"
] | t.rice90@gmail.com |
85dfdf77bfafd920d41772a4e965dcd760afef59 | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/problem-tree/insufficient_nodes_in_root_to_leaf_paths.py | 193b8f01a891a48172b800a9a35adf7b8173daa7 | [] | 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 | 2,595 | py | # https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths
from TreeNode import TreeNode
class Solution:
# runtime; 92ms, 89.61%
# memory; 15MB, 100.00%
def sufficientSubset(self, root: TreeNode, limit: int) -> TreeNode:
if root is None:
return root
def c... | [
"agapelover4u@yahoo.co.kr"
] | agapelover4u@yahoo.co.kr |
cdb1d7dcec9622f8be7364b4bd8e96befbf01c13 | 2937d60b7f5259b4899ba5af08146bd874529a67 | /Assignment 8 q8.py | 0cdfc6c123fbcc437bc575427a7453354fc5e2ef | [] | no_license | gourav47/Let-us-learn-python | 9a2302265cb6c47e74863359c79eef5a3078358a | b324f2487de65b2f073b54c8379c1b9e9aa36298 | refs/heads/master | 2021-06-27T03:33:27.483992 | 2021-01-07T12:26:16 | 2021-01-07T12:26:16 | 204,323,390 | 1 | 1 | null | 2020-07-19T14:25:12 | 2019-08-25T16:53:56 | Python | UTF-8 | Python | false | false | 371 | py | '''compare two tuples, whether they contain the same element in any order or not'''
t1=eval(input("Enter the first tuple: "))
t2=eval(input("Enter the second tuple: "))
if t1==t2:
print("Tuples are same and are in same order")
else:
print("t2 is in t1" if all(e in t1 for e in t2) else "t1 is in t2" if all... | [
"noreply@github.com"
] | gourav47.noreply@github.com |
a49d23cec2e276817964d3b9a70919b502a45d2f | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/_network_profiles_operations.py | 6f81af1e153a236527977189e397d8d21ea8080a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 23,962 | 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) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
c2cdecfaf775fb1dd84f66cbf854dd5bbd4cb548 | 7d8e040cb703e6f6e2d55b5dc64fc9124d85dde8 | /skl2onnx/tutorial/benchmark.py | bcab7e44325c2f7077ac8d948ee6f1d583832bda | [
"MIT"
] | permissive | Global-localhost/sklearn-onnx | fc44aa481a91482f187cfd2307df6061b77742af | a8267e7ba946d8b0596951060e5dca39fec47439 | refs/heads/master | 2023-03-23T00:19:31.474251 | 2021-03-03T19:17:12 | 2021-03-03T19:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | """
Tools to help benchmarking.
"""
from timeit import Timer
import numpy
def measure_time(stmt, context, repeat=10, number=50, div_by_number=False):
"""
Measures a statement and returns the results as a dictionary.
:param stmt: string
:param context: variable to know in a dictionary
:param repea... | [
"noreply@github.com"
] | Global-localhost.noreply@github.com |
52baf0f97da8c5a0336484adf40ba0898bdf3efc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/34/usersdata/134/13382/submittedfiles/moedas.py | 0ccfc61b251ea5f113ad1ed38e1dc047d75fc972 | [] | 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 | 719 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = int(input('Digite o valor de a:'))
b = int(input('Digite o valor de b:'))
c = int(input('Digite o valor de c:'))
R1=c//a
resto1=c%a
if resto1!=0:
R2=resto1//b
resto2=resto1%b
if resto2==0:
print ('%d' %R1)
print ('%d' %R2)
eli... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
be9c1a7e1d4d5c28bfa14b787fd3cfeea8faa8a2 | c863a1349cde0217459fde44d969df7f04c8e57d | /tb/test_axis_xgmii_tx_32.py | 241b2f6ac52fe7748d7bbb423cb68ef3ffb559bb | [
"MIT"
] | permissive | hermixy/verilog-ethernet | 5c09e4cb94590bc858a716ef764fd3776aad693d | b3f50ac2c724763c1c30ed9c33a3489517b7d457 | refs/heads/master | 2020-04-04T20:01:52.758794 | 2018-11-02T07:40:15 | 2018-11-02T07:40:15 | 156,231,015 | 1 | 0 | null | 2018-11-05T14:29:18 | 2018-11-05T14:29:17 | null | UTF-8 | Python | false | false | 10,948 | py | #!/usr/bin/env python
"""
Copyright (c) 2015-2017 Alex Forencich
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, modify,... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
cfe6d5d1035024e2605934b2d542665e6e6325a8 | 09f0505f3ac1dccaf301c1e363423f38768cc3cc | /r_DailyProgrammer/Hard/C310/__init__.py | c1ac81e317ca11c69b3b42f76ea04036d06bf4da | [] | no_license | Awesome-Austin/PythonPractice | 02212292b92814016d062f0fec1c990ebde21fe7 | 9a717f91d41122be6393f9fcd1a648c5e62314b3 | refs/heads/master | 2023-06-21T11:43:59.366064 | 2021-07-29T23:33:00 | 2021-07-29T23:33:00 | 270,854,302 | 0 | 0 | null | 2020-08-11T20:47:10 | 2020-06-08T23:24:09 | Python | UTF-8 | Python | false | false | 63 | py | #! python3
from r_DailyProgrammer.Hard.C310.main import main
| [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
af901048cf5ce50c02868a1d739823f579289574 | 498035301c7f599aa672c609fed068dfcccb459c | /chapter1__OpenCV_Python_and_Basic_Image_Processing/01_Basic_Operations/Utils.py | 635bc51376070ea313f6bf38c0c1e55774750195 | [] | no_license | JinFree/OpenCV_4-install-shell | 2c94910544a16059befd6de83f26c1a3967bfe95 | 1c41ca217d227b98a0bf62f653904710b2bfe84c | refs/heads/master | 2020-06-03T01:09:05.417632 | 2019-07-31T03:14:56 | 2019-07-31T03:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | from ImageUtils import *
from VideoUtils import *
| [
"ytrqwe12@gmail.com"
] | ytrqwe12@gmail.com |
c52253f69c5e40b0e961a6242e56af18848d6134 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_jackhammers.py | 0325943aafb2ceaa43fba5d39c112826adf81ec8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
#calss header
class _JACKHAMMERS():
def __init__(self,):
self.name = "JACKHAMMERS"
self.definitions = jackhammer
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['jackhammer']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a87d15b4256ce780218894d45596a139523ef045 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /q7rHnH9Jhf35NqSjG_5.py | 270b54f35a80dfcaf6b4bbd022cfd2962310a44c | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py |
def trailing_zeros(n):
c=0
while n:
n//=5
c+=n
return c
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e063a88f157531b5e3f0c39b35b443beac632933 | 403a8c7d9ba2956c3f5873d0721921e0d8ae7c65 | /fzfaws/cloudformation/update_stack.py | e03c889a4a90fc58eb5910cbc5768ff5be3ae076 | [
"MIT"
] | permissive | kazhala/fzf.aws | b0c83f0ac47f1b2da0d0b064d6a688ba2e69028c | 4abefb2301f7b489b11ed3f0b303faafa5941d5b | refs/heads/master | 2021-07-05T00:50:12.632284 | 2021-05-25T23:09:51 | 2021-05-25T23:09:51 | 242,327,229 | 68 | 3 | MIT | 2021-03-25T23:42:00 | 2020-02-22T11:09:11 | Python | UTF-8 | Python | false | false | 9,825 | py | """Contains cloudformation update stack operation handler."""
import json
from typing import Any, Dict, List, Optional, Union
from fzfaws.cloudformation import Cloudformation
from fzfaws.cloudformation.helper.cloudformationargs import CloudformationArgs
from fzfaws.cloudformation.helper.file_validation import (
ch... | [
"kevin7441@gmail.com"
] | kevin7441@gmail.com |
70619d037c1670b6c631a93f650fc963cae1ae02 | b8e239b6d75fb88865ade7e355144fae49b4186f | /google-cloud-sdk/lib/googlecloudsdk/command_lib/eventarc/flags.py | 90db15a2b071bbbf007ea6320a995cd4f3159ab1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | pombredanne/gcloud_cli | d6a8b3ed4a28751b3264c7fefb7b43645c024478 | 7ca81d3a3689f41ce51c3c70805e6203f5b8944f | refs/heads/master | 2022-12-07T19:09:35.204462 | 2020-09-02T04:06:46 | 2020-09-02T04:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,485 | py | # -*- 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.0
#
# Unless requir... | [
"actions@github.com"
] | actions@github.com |
c65489868b5614f72efd0a6d89aa72cd8eb91358 | 4e15720afdf1d90540acc38fbbbe26262a3b0842 | /favorite_team/urls.py | 7504e0307f32e294106b61614ffe387a2c6db10d | [] | no_license | rallen0150/bootstrap | 296eca9a2463fe7926c36c6263001197feae16df | f41e5d93af642845b7e5da284ee86b33a127f097 | refs/heads/master | 2021-01-11T00:35:43.341177 | 2016-10-10T23:36:56 | 2016-10-10T23:36:56 | 70,510,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | """favorite_team 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')
Cl... | [
"rallen0150@gmail.com"
] | rallen0150@gmail.com |
4b0bb907945280b9d03a46f3176f94ee15c2bf9d | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_sp_Reorgs_qsplit_noscreen_new/Jobs/C60/C60_cation_neut_inner1_outer0/C60_cation_neut_inner1_outer0.py | ccebde61424c1f946c6e8be6a33acbe7cbdc10b0 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 7,149 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
e8a386bad38ef6cc7d818de97995e643f560c1bd | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/DeviceTradeInfoList.py | cff9f1b8ce1fc1d0899c018d6cbef05ec5c7fbad | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 12,090 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class DeviceTradeInfoList(object):
def __init__(self):
self._biz_tid = None
self._dau = None
self._device_face_trade_dau = None
self._device_face_trade_dau_d_value = Non... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
1f5a76e3f6844a408820537f70abaf3f2edeccb9 | 5643f360a6f57e3d904bed3d63ada7d2eeda20b3 | /unsupervised_learning/PCA.py | a92a707375a6887db188d66628ffab5e4a28df3b | [] | no_license | Abhi551/Machine-learning | 6b0f0530c9b78fa8fdf4c0da5aff680e2f236bf5 | 6f134830d4a0b038698df183f71cd118a93e1844 | refs/heads/master | 2021-10-23T03:16:08.815210 | 2019-03-14T13:10:44 | 2019-03-14T13:10:44 | 125,890,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | ## unsupervised model used for extracting important variable from large set of variables
## in a data set .
## It extracts low dimensinonal set of features from a high dimensinonal dataset
## to capture as much information as possible
## best when 3 or more features are present in dataset
import numpy as np
import ... | [
"abhichauhan551@gmail.com"
] | abhichauhan551@gmail.com |
62a8b9674aef0f3af6fd82b82dbf39558c49f35c | cc7d7f6128b81a959dffaf23627d7dfc95558209 | /ResNet50-2d/resnet.py | 667200d427262fecc78b6fa1025102ef5f07b55c | [] | no_license | abandonsea/M3D | 8fb7a9297789afab74dd3d0bb573583703932325 | 68afe5e79266caad9d9afa45fc9d754033b288d3 | refs/heads/master | 2022-11-23T07:51:34.680151 | 2020-07-22T00:59:33 | 2020-07-22T00:59:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | import torch.nn as nn
import math, torch
import torch.utils.model_zoo as model_zoo
from torch.nn import init
class Bottleneck(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, downsample=None):
super(Bottleneck, self).__init__()
self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=1, bias... | [
"noreply@github.com"
] | abandonsea.noreply@github.com |
974e09555217970e71c0379ec2eb46868bfa5cf8 | 865f4aa69ddd6574267cdde6f8c5dd5c8a6d6f31 | /supportClasses.py | 8c348c0e3bec1c2c2429f10dbb6764e91bb76f07 | [] | no_license | usuaero/PropulsionOptimization | 10fbcfec062f107107a976f0714d77a156087f6b | f637bb230168b5d3415fd78457e854b1e85eb711 | refs/heads/master | 2021-07-08T19:46:10.176858 | 2020-07-17T17:46:05 | 2020-07-17T17:46:05 | 149,319,160 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 17,537 | py | import numpy as np
import copy
from scipy import integrate
import scipy.interpolate as interp
import os
from os import path
import matplotlib.pyplot as plt
import polyFit as fit
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from std_atmos import *
import sqlite3 as sql
from random ... | [
"cory.goates@aggiemail.usu.edu"
] | cory.goates@aggiemail.usu.edu |
cbe42e6c08a217ab9d3f9925b59403483b0cd28e | 929fc8dd47b91c963c8c2f81d88e3d995a9dfc7c | /src/data_structure/hash_table/set.py | 7b7f0026e90534a21d8a0dfa4479732d254fb1b3 | [] | no_license | 1325052669/leetcode | fe7571a9201f4ef54089c2e078810dad11205b14 | dca40686c6a280bd394feb8e6e78d40eecf854b9 | refs/heads/master | 2023-04-01T17:53:30.605822 | 2021-04-10T15:17:45 | 2021-04-10T15:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | from typing import List
# https://leetcode.com/problems/happy-number/
class Solution202:
def isHappy(self, n: int) -> bool:
cycle = set()
while n != 1 and n not in cycle:
cycle.add(n)
n = sum(pow(int(i), 2) for i in str(n))
return n == 1
# https://leetcode.com/pr... | [
"js7995@nyu.edu"
] | js7995@nyu.edu |
88b52c6201b65b5762c9b91a6607157af7bc64bd | 548c18a693e4dd52765dcef0551e928a679aced7 | /practice prgms/prime numbers within an interval-simple program.py | e6d95912529a31cb3a0eed2030c83748d6a32837 | [] | no_license | iamsureshtumu/py-prgms | fd8517cd9f98b8b03bad358ac14f7abe58783428 | 56a619130d588356f9754d85339b6bdc3f645f5a | refs/heads/main | 2023-02-12T03:22:46.164020 | 2021-01-07T04:12:12 | 2021-01-07T04:12:12 | 327,499,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Python program to display all the prime numbers within an interval
start = 50
end = 100
#lower = int(input("Enter lower range: "))
#upper = int(input("Enter upper range: "))
print("Prime numbers between",start,"and",end,"are:")
for num in range(start,end + 1):
# prime numbers are greater than 1
if num > 1:
... | [
"sureshtumu3691@gmail.com"
] | sureshtumu3691@gmail.com |
b605952411c7c518079b629f18a9567374f734d1 | 7f98e3add3d755d81efa5becdf795532f886b119 | /datascraper/2-cleanDataset.py | 0881466924d6aaf19772fe0bf2947f3902cd42e7 | [] | no_license | fgolemo/steamGraph | 4e67d08bb111363def7e26c42ad1201a90ee9e9d | d4bd8e25d345ada6461fe94846ff303367313e66 | refs/heads/master | 2020-12-25T14:33:28.418661 | 2017-06-29T21:38:48 | 2017-06-29T21:38:48 | 67,958,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | import json
from time import strftime
from tqdm import tqdm
nodes = []
edges = []
sids = []
tags = set()
movies = 0
software = 0
total = 0
lowRating = 0
preset = "1k"
gamesToGet = {"1k": 1000, "3k": 3000}
with open('../public/data/steamGraph6k3-170629.json') as data_file:
data = json.l... | [
"fgolemo@gmail.com"
] | fgolemo@gmail.com |
bc85cc771df7166db948934998075f139f7db7fc | 0228b665c61661b634f10afce2f76f2777fa29c2 | /live_examples/create_steam.py | c3c4414aa46621c367578858ab18ba828039c2f8 | [
"MIT"
] | permissive | bernieyangmh/pili-sdk-python | 18c9e99f5dac194228e9d7a40aee556e1db05356 | aeef24ad9629bb2247aa89dd7bcc3b8fb0d6a58c | refs/heads/master | 2021-09-11T09:47:28.859714 | 2018-04-06T13:04:42 | 2018-04-06T13:04:42 | 112,150,168 | 0 | 0 | null | 2017-11-27T05:10:23 | 2017-11-27T05:10:23 | null | UTF-8 | Python | false | false | 482 | py | # -*- coding: utf-8 -*-
"""
https://developer.qiniu.com/pili/api/2515/create-a-flow
创建流
"""
from pili import Mac, Hub
# 替换成自己 Qiniu 账号的 AccessKey
access_key = "..."
# 替换成自己 Qiniu 账号的 SecretKey
secret_key = "..."
hub_name = "..."
stream_name = "..."
mac = Mac(access_key, secret_key)
hub = Hub(mac, hub_name)
re... | [
"berniey@163.com"
] | berniey@163.com |
c5662e9a18a831b4409983cc1f3015092f92fc02 | ed0b963bebae72542eaf7ba4a0c72f3af7341dc3 | /plot.py | 2bb1639643e44a668b38d55853eb952a6063e8e3 | [] | no_license | csayres/aa544 | 791a7ca9ae67fc9e0d1933bdd7b47553f9686a42 | 863a45c6020ca5ac0766a48d66990995bfa16ad3 | refs/heads/master | 2021-01-01T19:42:37.739446 | 2014-06-11T18:08:58 | 2014-06-11T18:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,066 | py | # -*- coding: utf-8 -*-
import numpy
import itertools
import time
import scipy.interpolate
import numpy.fft
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.mlab as ml
import glob
import os
import bisect
import cPickle as pickle
# from matplotlib import rc
# rc('text', usetex=True)
# rc('font', fami... | [
"csayres@uw.edu"
] | csayres@uw.edu |
2b204f0044e3ad68a5f22d8b9018bb35e8deba5b | a5bbf6ece66a39f92706c807874870cc048391d9 | /menus/migrations/0001_initial.py | e56c6c147d99f7baa19af7351230107558d4bc78 | [] | no_license | IsaacMorzy/wagtailblog | f96e921c1d07522fe2519f33daa5b19c3facbadb | ef372b85daed423431a4283fa8b5859512b97979 | refs/heads/master | 2022-12-15T02:22:09.366893 | 2020-05-13T10:44:34 | 2020-05-13T10:44:34 | 225,391,854 | 1 | 0 | null | 2022-12-08T03:17:39 | 2019-12-02T14:19:12 | CSS | UTF-8 | Python | false | false | 1,841 | py | # Generated by Django 2.2.8 on 2019-12-10 12:42
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import modelcluster.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore', '0041_group_collection_permi... | [
"musyokaisaac98@gmail.com"
] | musyokaisaac98@gmail.com |
a4d6e4546903e3e9be31a70c20e61a8005a35805 | e0b607de0d1e91492b80369c5e8a6313372f9d29 | /app/views.py | 081983a94db7ca786b9542b6c0e4f8ec3c5089f1 | [] | no_license | surajkumarbhagat71/mathcalculation | 63a13473819657fa86136ce4593809f4129aa1f9 | 300850a574c60894a9bef57868816363f721775d | refs/heads/master | 2023-03-01T00:39:18.017426 | 2021-02-11T12:44:48 | 2021-02-11T12:44:48 | 338,026,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | from django.shortcuts import render,redirect
from django.views.generic import View
from django.db.models import Q
from .forms import *
from .models import *
# Create your views here.
class Signup(View):
def get(self,request):
form = UserForm()
return render(request,'signup.html',{"form":form})
... | [
"surajkumarbhgat71@gmail.com"
] | surajkumarbhgat71@gmail.com |
fbbffd250cfe33d45e332eaa7c597c0cc338972e | ead82159a724b351e1c82d31e133f284db4d5d32 | /mymusic/models.py | 994b088f8ec81c252fb6b6b39ce9b64f73f7793f | [] | no_license | momentum-morehouse/django-music-genolajohnson | ff9d004aa556d5907be995f5257b57b312c10bc5 | 81beca64eed41fa454904fd4c3b44ae0092639b4 | refs/heads/master | 2022-11-29T15:37:14.711971 | 2020-07-17T00:49:43 | 2020-07-17T00:49:43 | 279,331,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.db import models
# Create your models here.
# class User(AbstractUser):
# pass
class Album(models.Model):
artist_name = models.CharField(max_length=255, null=True, blank=True)
title = models.CharField(max_length=255,null=True, blank=True)
released = models.DateField()
img_url = models.... | [
"replituser@example.com"
] | replituser@example.com |
8fd2b1e1def0f43706a694e1453f6cb64f82ea8d | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f383826d76e7d7723b9e5eaee92778f5c7760d5d-<destination_to_network>-bug.py | 24707890dd6eefddbedc12c263c27707b5f7d95b | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | def destination_to_network(self):
destination = self._values['destination']
if destination.startswith('default%'):
destination = '0.0.0.0%{0}/0'.format(destination.split('%')[1])
elif destination.startswith('default-inet6%'):
destination = '::%{0}/::'.format(destination.split('%')[1])
el... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
e86ffa15bdcd0373bf0c87c3468c1a69205de307 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/pki/csyncpolicy.py | e2f2771137084c404a13dafc1485c1815498a82a | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,431 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
1399f116816cb65ea83f69485456d02af6137435 | 2b1a4f5eaad320d17159916b1229832948e3bea7 | /src/ebonite/core/objects/core.py | 3df2245f4beac6776c1640ccf75bfacc5731be5d | [
"Apache-2.0"
] | permissive | geffy/ebonite | cab00cb5f236f301509859d8f918a6c85e118061 | 2d85eeca44ac1799e743bafe333887712e325060 | refs/heads/master | 2020-09-15T09:13:20.663752 | 2019-11-22T12:33:27 | 2019-11-22T12:33:27 | 223,406,815 | 1 | 0 | Apache-2.0 | 2019-11-22T13:15:14 | 2019-11-22T13:15:14 | null | UTF-8 | Python | false | false | 15,875 | py | import datetime
import getpass
import tempfile
from copy import copy
from functools import wraps
from typing import Callable, List, Optional
from pyjackson.core import Comparable
from pyjackson.decorators import make_string
import ebonite.repository
from ebonite import client
from ebonite.core import errors
from ebon... | [
"mike0sv@gmail.com"
] | mike0sv@gmail.com |
b4ac39cb2ae3416400dad040fd16a6489b3b62d9 | e7cd87117f195d7e6d7e45ade1d07384a3f42303 | /tests/test_util.py | 35b141c44c722dd3c256e9ba10ff6df2bda88c08 | [
"MIT"
] | permissive | zaabjuda/prometheus_async | e80d1921b16ab46a3d7781d6e29d2734c58a6c2a | 6e139f7ed18157aea015ac6b0fe52860446d5c2f | refs/heads/master | 2021-01-16T17:39:26.903205 | 2016-02-17T10:52:34 | 2016-02-17T10:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from __future__ import absolute_import, division, print_function
try:
import asyncio
except ImportError:
asyncio = None
import time
import pytest
import six
from prometheus_async import _util
py2_only = pytest.mark.skipif(six.PY3, reason="Python 2-only test.")
py3_only = pytest.mark.skipif(six.PY2, reason... | [
"hs@ox.cx"
] | hs@ox.cx |
37894e2994e54b788169167d818e84ef23dd93b4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03546/s628097135.py | 5e264a789848c60e87b361176cc71b0189cc755d | [] | 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 | 893 | py | import heapq
INF = 10**10
def dijkstra(s, G):
d = [INF] * len(G)
d[s] = 0
q = []
heapq.heapify(q)
heapq.heappush(q, (0, s))
while len(q) > 0:
shortest, v = heapq.heappop(q)
if d[v] < shortest:
continue
for e in G[v]:
to, cost = e
if d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6d10531aee49e9767663b286b0dedea028c51fe3 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/initial_4445.py | 10e2b1dd0f52ad72a98232ad27da4b44cc449e2d | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
ef4566801b729677ae25b0866bd8d8593802a4ee | d37a19ab3bcaba6e808a18df411c653c644d27db | /Year1/ca116/lab10/prefix-2.py | 0f780e706f8656cab0331852654b89ce2999a848 | [] | no_license | Andrew-Finn/DCU | 9e7009dac9a543aaade17e9e94116259dcc1de20 | 013789e8150d80d3b3ce2c0c7ba968b2c69a7ce0 | refs/heads/master | 2023-02-21T05:13:42.731828 | 2022-02-14T12:39:20 | 2022-02-14T12:39:20 | 157,438,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
if __name__ == "__main__":
a = []
s = "mont"
lenght = len(s)
i = 0
while i < len(a):
word = a[i]
if word[:lenght] == s:
print
a[i]
i = len(a) + 1
i = i + 1
if i < len(s):
i = 1
| [
"git@afinn.me"
] | git@afinn.me |
49b43b95a19db5b65407a7b9cba11476f6bd9c45 | 9f2a0006322235db485912543565e090bccd0de7 | /pathConverter/pathConverter/wsgi.py | 6b29636d01ee8bc917ebf61cdc08d25f244b4307 | [] | no_license | xiaoxiaolulu/djangoConsolidate | 12aa1e0e50497eb3f58b47b9876074423c18e525 | 364bf9537112f4d39f7fb159a2eb6734e9540ec5 | refs/heads/master | 2021-01-02T03:49:40.176569 | 2020-02-17T17:21:05 | 2020-02-17T17:21:05 | 239,475,972 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for pathConverter project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"546464268@qq.com"
] | 546464268@qq.com |
bf1d371fe2caa2780a581f23ff2ed1a7b66d7e2f | 4e37adc003e3be064161cfa1521b477fa75649fd | /py/api/search/search/models/search_stores_get200_application_json_response_all_of.py | fff94f225200397ec60a959d7d98868e60043304 | [] | no_license | stgpetrovic/junction2019 | ff97a1fb38262c0ea47905c4c61c9550271168c5 | 227da9ac06f1cd708d4649652a8d79bf776e41b2 | refs/heads/master | 2020-09-11T07:42:03.613409 | 2019-11-17T08:27:43 | 2019-11-17T08:28:05 | 221,989,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,720 | py | # coding: utf-8
"""
Search API
Search API is a REST-like API which wraps the underlying ElasticSearch service for most common use cases. While this API is called the \"search\" service, in practice it acts as the main data engine for various Kesko services, providing high performance endpoints for fetching re... | [
"stgpetrovic@gmail.com"
] | stgpetrovic@gmail.com |
36b6d3dba6ad5687fc85821c8dd5ce78b2bddf17 | e81d274d6a1bcabbe7771612edd43b42c0d48197 | /Python高级/day39(UDP、TCP回顾)/demo/02_Tcp Udp通信和实践/tcp服务器.py | d7ced7ae4a8bb0ee7037b8f670fc0e95579beef8 | [
"MIT"
] | permissive | ChWeiking/PythonTutorial | 1259dc04c843382f2323d69f6678b9431d0b56fd | 1aa4b81cf26fba2fa2570dd8e1228fef4fd6ee61 | refs/heads/master | 2020-05-15T00:50:10.583105 | 2016-07-30T16:03:45 | 2016-07-30T16:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from socket import *
tcpserver = socket(AF_INET,SOCK_STREAM)
tcpserver.bind(("",5551))
tcpserver.listen(5)
dat,ip = tcpserver.accept()
print(dat,ip)
tcpserver.close()
#<socket.socket fd=4, family=AddressFamily.AF_INET,
# type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.14.85', 5551),
# raddr=('192.168.14.8',... | [
"1025212779@qq.com"
] | 1025212779@qq.com |
054cb55739a73e35353e05b328c4cd6b763602ea | 7eea707a1d422b65353238c03a5a5d87c167cf64 | /urllibstart.py | c32bc78447f9fede675e763af539952e98792917 | [] | no_license | liberbell/py04 | 81eac41330ea7b4271661dc46d9888f74f17877c | 3118d5f19b1a5a356b215ec071642c3b97c61c88 | refs/heads/master | 2020-06-24T21:56:17.907409 | 2019-08-05T22:39:15 | 2019-08-05T22:39:15 | 199,102,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import urllib.request
def main():
url = "https://httpbin.org/xml"
result = urllib.request.urlopen(url)
print("Result code: {0}".format(result.status))
print("Headers:----------")
print(result.getheaders())
print("Returned data:----")
print(result.read().decode('UTF-8'))
if __name__ == '... | [
"liberbell@gmail.com"
] | liberbell@gmail.com |
63ddf3acbbe69b137f1917be9d57e96c5d6984be | 6a82d489d993269be1560af0317b3d9098b603f9 | /exe43.py | 77aefadeebb5029ddc8dd53b75f10894dd4d0b0d | [] | no_license | andreplacet/reinforcement-python-3 | a06df30b2bf4314da3d7cb200f0c1937ade65a2a | 3e2dd8da00c4a32f29d237004aa52c7710fe2169 | refs/heads/master | 2023-01-01T18:17:49.604566 | 2020-10-30T17:33:16 | 2020-10-30T17:33:16 | 308,700,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | # Exercicio 43
codigos = [100, 101, 102, 103, 104, 105]
comidas = ['Cachorro Quente', 'Bauru Simples', 'Bauru com ovo', 'Hamburguer', 'ChesseBurguer', 'Refrigerante']
precos = [1.20, 1.30, 1.50, 1.20, 1.30, 1.0]
codigo = True
n_pedido = 0
pedido = []
while codigo != 0:
print(f'Pedido n°{n_pedido + 1}')
codigo... | [
"andreplacet@gmail.com"
] | andreplacet@gmail.com |
4b4f4c75b734be2e4e1d26389d83033b29ff6467 | add72f4d6f9f7af1f437d19213c14efb218b2194 | /icekit/plugins/links/migrations/0004_auto_20170314_1401.py | db3cd21e288b25c4f34168d17cda7de9e95d20b4 | [
"MIT"
] | permissive | ic-labs/django-icekit | 6abe859f97c709fcf51207b54778501b50436ff7 | c507ea5b1864303732c53ad7c5800571fca5fa94 | refs/heads/develop | 2022-08-08T21:26:04.144852 | 2018-01-08T02:55:17 | 2018-01-08T02:55:17 | 65,470,395 | 53 | 12 | MIT | 2022-07-06T19:59:39 | 2016-08-11T13:11:02 | Python | UTF-8 | Python | false | false | 924 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ik_links', '0003_auto_20161117_1810'),
]
operations = [
migrations.AlterField(
model_name='articlelink',
... | [
"greg@interaction.net.au"
] | greg@interaction.net.au |
7ee890327d38e18ac084687320b2116e85b2cc0b | f281c9ecd48aedd30469cfbd556bc3319cd8419d | /web_framework/src/router3.py | f4071387e051161aebb4b39a1463f5cc96e91535 | [] | no_license | youerning/blog | 5d5edeb4f836d233a4119796f38fc4e33531714e | 59c3704cf5a77bba70a48a5d09db9b165ea59d4b | refs/heads/master | 2023-08-31T04:08:16.461923 | 2023-08-27T01:28:39 | 2023-08-27T01:28:39 | 114,074,235 | 183 | 105 | null | 2023-05-05T02:36:52 | 2017-12-13T04:35:00 | HTML | UTF-8 | Python | false | false | 2,895 | py | # -*- coding: UTF-8 -*-
# @author youerning
# @email 673125641@qq.com
# 主要参考于: https://github.com/sirMackk/diy_framework/blob/master/diy_framework/application.py
import re
from collections import namedtuple
from functools import partial
from functools import wraps
SUPPORTED_METHODS = {"GET", "POST"}
Route = namedtup... | [
"673125641@qq.com"
] | 673125641@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.