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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dcabca991e405722f266c26a79a6218eee88a8e5 | bcda330eab528871da7fe007851f9554f2e19e66 | /dfp/get_orders.py | 839da7a3b615c878b631f55ed7c0aa7da9f8bd90 | [
"MIT"
] | permissive | gmalta/dfp-prebid-setup | 2b80cc6ac53240c8e2caec6abadb6df349ada6ae | d965f9a70e56a8444ecd80566028f09964b51d04 | refs/heads/master | 2023-08-19T02:02:30.265693 | 2021-09-22T19:47:17 | 2021-09-22T19:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
from googleads import ad_manager
from dfp.client import get_client
logger = logging.getLogger(__name__)
def get_order_by_name(order_name):
"""
Gets an order by name from DFP.
Args:
order_name (str): the name of the DFP order
Returns:
a... | [
"kevin.jennison1@gmail.com"
] | kevin.jennison1@gmail.com |
65837fe0fa38a44d96ddeb2ef1f74ed692cc0f06 | fa14db78eac812bed2acf5801f4cbae87753d5aa | /setup.py | 003a7ee178ac36569d02a6cea310d9bc66e5f341 | [] | no_license | rogerlew/dictset | 61abcf14313d29150d4e320c4a28fce73bcaa8ca | 97ece69bf4ceb265c36f6ea79f98b6553b9ccc1c | refs/heads/master | 2016-09-03T07:41:45.098506 | 2011-05-13T19:41:57 | 2011-05-13T19:41:57 | 32,486,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | # Copyright (c) 2011, Roger Lew [see LICENSE.txt]
# This software is funded in part by NIH Grant P20 RR016454.
##from distutils.core import setup
from setuptools import setup
setup(name='dictset',
version='0.3.1.2',
description='A specialized Python container datatype for managing collections of sets.... | [
"rogerlew@gmail.com"
] | rogerlew@gmail.com |
e955f96713a44733da4b31bb06747fa8d3a6e015 | d844572e1a69dd08a31744754b7c336b93cef045 | /test.py | 1065e7de72fd207440b26b382caedb6316d2763f | [
"MIT"
] | permissive | Kyria/EFTParser | 2ffe2a55777dc22367491f959830b66e5ce7683d | 59420dc69cc3083f81205d17d897ecb482b3aed2 | refs/heads/master | 2021-01-02T09:02:23.395417 | 2013-12-23T15:31:50 | 2013-12-23T15:31:50 | 15,377,000 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,376 | py | import unittest
from eftparser import EFTParser
class EFTParsingTestCase(unittest.TestCase):
def setUp(self):
self.standard_fit = """
[Naglfar, TestFit]
Siege Module II
6x2500mm Repeating Artillery I, Arch Angel EMP XL
6x2500mm Repeating Artill... | [
"anakhon@gmail.com"
] | anakhon@gmail.com |
d6922a8c30675933f85e75cadc718b465e3f1613 | 9d3171d191914bb980f8fea2b895de79d9893db6 | /scikits/statsmodels/regression/tests/test_glsar_gretl.py | ce868ff7a5f89edae46b86e3484832ef3478e887 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | takluyver/statsmodels | 2d3ba11035501bd1e35f23daf27bca823eec2cb5 | 3f1aeba98cd4bc2f326f9c18c34e66c396be99cf | refs/heads/master | 2023-06-19T18:51:28.464440 | 2012-02-29T16:24:25 | 2012-02-29T16:24:25 | 3,585,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,803 | py | # -*- coding: utf-8 -*-
"""Tests of GLSAR and diagnostics against Gretl
Created on Thu Feb 02 21:15:47 2012
Author: Josef Perktold
License: BSD-3
"""
import numpy as np
from numpy.testing import assert_almost_equal, assert_equal, assert_approx_equal
from scikits.statsmodels.regression.linear_model import OLS, GLSA... | [
"josef.pktd@gmail.com"
] | josef.pktd@gmail.com |
3c9255c8322cd490ba9c22476e6343bc1b6cc27b | 95fe42bbae799ef76d21af95d51807d0f6e29638 | /conf/settings.py | 5e6a56205a322686ea3cb3edd7e8ad75798da3ab | [] | no_license | PhyCosmos/Back-end | 8a8eda71a30eee3de7a58acb9829004db5664845 | 1826db6efaef5114267e8e684fc66f2316280259 | refs/heads/main | 2023-06-21T16:08:53.287483 | 2021-06-07T17:14:08 | 2021-06-07T17:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | """
Django settings for conf project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from p... | [
"ehsgnl123@naver.com"
] | ehsgnl123@naver.com |
fb2ba7b1c482895b10125ce25e783e321ac8582f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03543/s094616983.py | 009e1a2eac6a99783659ecb7fdeb03953450dca3 | [] | 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 | 125 | py | N = str(input())
if N[0] == N[1] == N[2] or N[1] == N[2] == N[3]:
result = "Yes"
else:
result = "No"
print(result)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
34a1c01f9276612864b317d7f6156216a0bbf4c8 | 723e52a46ef0b3b3927a842799fa8b99d7a678a6 | /generic_crud/serializers.py | dee90946baae87a30031eae803273dbc2f1bc630 | [] | no_license | MilanTagline2021/rest-api-views | aa2f17279405f839ad86f03e0eea034d82c6bbb5 | 5f1b7743d84ce754d4e69192fdb9f0526945e801 | refs/heads/master | 2023-08-21T02:27:37.917621 | 2021-10-21T10:59:38 | 2021-10-21T10:59:38 | 419,275,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from rest_framework import serializers
from generic_crud.models import Student
class StudentSerializers(serializers.ModelSerializer):
class Meta:
model = Student
fields = ['id','name','roll','city'] | [
"milans.tagline@gmail.com"
] | milans.tagline@gmail.com |
55f888fe74738900a474126796c6ce311ab676a7 | 5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1 | /Section 7 - Dictionaries/buildDictResults v2a.py | 2d965ef573e752a8df80252691d83a5278a6d5d0 | [
"CC0-1.0"
] | permissive | pdst-lccs/lccs-python | b74ef2a02ac8ad2637f713fff5559f4e56c9827d | 95cb7ece05716521e9951d7a40de8fb20a88021f | refs/heads/master | 2023-05-28T00:46:57.313972 | 2023-05-22T10:16:43 | 2023-05-22T10:16:43 | 240,501,524 | 21 | 18 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # Event: LCCS Python Fundamental Skills Workshop
# Date: Dec 2018
# Author: Joe English, PDST
# eMail: computerscience@pdst.ie
# Purpose: A program to demonstrate how to build a dictionary
# Version 2a. A dictionary to store multiple results for a student
results = {}
name = input("Enter student name: ")
... | [
"noreply@github.com"
] | pdst-lccs.noreply@github.com |
3fdd0785bd5ebb9309a5ef62c389b7f7d145fada | 128dac2cee9a1022fafcc15a8d4903af678d88ee | /669. Trim a Binary Search Tree.py | 522cc40d1e528387b1417db51c99f82f3ecafa2c | [] | no_license | wangtaodd/LeetCodeSolutions | b998d9de408bc2e01b6bff11fcb315b453389bc8 | 364107c1a74b2fbe72cbf7076f38b9089f7017fb | refs/heads/master | 2021-09-11T19:21:10.223002 | 2018-04-11T11:18:32 | 2018-04-11T11:18:32 | 125,821,429 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | """
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the tree, so the result should return the new root of the trimmed binary search tree.
Example 1:
Input:
1
/ \
0 2
L = 1
R... | [
"wangtaodd@gmail.com"
] | wangtaodd@gmail.com |
73f7a9ecc236f542ada437f4643ea62163cf9f9a | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/clans/restrictions.py | 66ef025b31ed78f0d1115478c56bf6c0174e879a | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 6,260 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/clans/restrictions.py
import weakref
from constants import CLAN_MEMBER_FLAGS
from debug_utils import LOG_DEBUG, LOG_WARNING
from account_helpers import isOutOfWallet, isClanEnabled
from gui.clans.settings import error, success, ... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
c8505627362494931737ca5085fe06aca508dd70 | 731c6170829acf912143f9e65d86f45bce9102ea | /test/test_device.py | caf9bb0a60e0bc05ed0e29dd1b6a4314f93db19f | [] | no_license | Oculus-Dei/Oculus-Dei | 9774eae334a86d8e2b4a91d6da889f546a695ee2 | cde8cec5898e11aa274c609e1d4106b6e51f7896 | refs/heads/master | 2021-01-19T06:36:32.709805 | 2016-07-31T17:30:10 | 2016-07-31T17:30:10 | 60,718,426 | 3 | 0 | null | 2016-07-12T17:01:53 | 2016-06-08T17:53:48 | Python | UTF-8 | Python | false | false | 175 | py | # encoding: utf-8
"""
Created by misaka-10032 (longqic@andrew.cmu.edu).
TODO: purpose
"""
import ocd.device
def test_device():
d = ocd.device.Device()
assert True
| [
"longqicai@gmail.com"
] | longqicai@gmail.com |
1284b29c7687c448925744f3184bd31b318594fd | e845f7f61ff76b3c0b8f4d8fd98f6192e48d542a | /djangocg/contrib/gis/db/models/fields.py | 55a33405216b7e3c6703d327ecdd148dc43ba484 | [
"BSD-3-Clause"
] | permissive | timothyclemans/djangocg | fd150c028013cb5f53f5a3b4fdc960a07fdaaa78 | 52cf28e046523bceb5d436f8e6bf61e7d4ba6312 | refs/heads/master | 2021-01-18T13:20:13.636812 | 2012-08-31T23:38:14 | 2012-08-31T23:38:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,206 | py | from djangocg.db.models.fields import Field
from djangocg.db.models.sql.expressions import SQLEvaluator
from djangocg.utils.translation import ugettext_lazy as _
from djangocg.contrib.gis import forms
from djangocg.contrib.gis.db.models.proxy import GeometryProxy
from djangocg.contrib.gis.geometry.backend import Geomet... | [
"timothy.clemans@gmail.com"
] | timothy.clemans@gmail.com |
61cf66905bc0a97d62d0b3be655a9527446f7069 | ad3e8de09b8a314f4a6d9a59c54a421805776dc5 | /chapter2_notebook.py | a82b3519e837bab532e53b551c2ce2e4337e76e6 | [] | no_license | georstef/Python_ObjectOrientedProgramming | 6401a96195238fcc1624c519984e37e0894f92a7 | 6c00f30b31e8754dd18aa45bb42033c4d15b46ae | refs/heads/master | 2020-12-24T17:25:58.577160 | 2015-11-08T19:01:50 | 2015-11-08T19:01:50 | 15,637,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import datetime
# global (singleton)
last_id = 0
class Note:
def __init__(self, memo, tags=''):
self.memo = memo
self.tags = tags
self.creation_date = datetime.date.today()
global last_id
last_id += 1
self.id = last_id
def match(self, filter):
'''
... | [
"georstef@gmail.com"
] | georstef@gmail.com |
2d5465cffaec39f1e38615d0dc066898635e8dfc | 7775a073201f568022bbb4ed3d04cb1639ae5e65 | /AtguiguShop/apps/trade/migrations/0001_initial.py | e2f1b9b40d2d911ffa6afe615e9928b8c1f80b8c | [] | no_license | a289237642/rest-api | 25db777fa1ca85fee77f86b8ae92d3656ce2ef40 | fd2c70245cb12212dcd2fd8899f789c3e41d1af2 | refs/heads/master | 2020-04-24T14:12:13.312539 | 2019-03-14T08:41:27 | 2019-03-14T08:41:27 | 172,012,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-18 11:28
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('goods', '0001_initial'),
... | [
"a289237642@163.com"
] | a289237642@163.com |
4c9ab3dc477a8746e0cb8fbe150a54692002b6d8 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_1/Python/SiaKateb/B.py | 6a3e7e9c2dee218a9b3e27a1dcc9f988f0fd6609 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | __author__ = 'siavash'
T = input()
for t in range(T):
D = input()
P = list(map(int, raw_input().split(" ")))
ans = max(P)
Z = 2
while Z < ans:
ans = min(ans, sum([(x - 1) // Z for x in P]) + Z)
Z += 1
print 'Case #{0}: {1}'.format(t + 1, ans) | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
d2438001e91dfcd299d78bf2947f8b3fb2d7bbb2 | 340886f11b67cebed3b4ad62d1376790243c7ee9 | /manage.py | cb6636a15c3ca1678733c9d5b09c91769697c5eb | [
"CC-BY-3.0",
"MIT"
] | permissive | heitorchang/students | f9f728bcc7af8d3582814f38000f269bb92a960d | ba5d6ca721d85aacb5f1563fff6c7d1c4b021d54 | refs/heads/master | 2020-08-08T01:52:01.031227 | 2020-02-03T17:44:25 | 2020-02-03T17:44:25 | 213,666,043 | 0 | 0 | NOASSERTION | 2020-06-05T23:35:40 | 2019-10-08T14:30:04 | JavaScript | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'students.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"heitorchang@gmail.com"
] | heitorchang@gmail.com |
a0c388980789e8279aead795a5456b5d20c71d8c | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/generatedServer/tasklets/disk/getXMLSchema/disk_getXMLSchema.py | 7fb7c7b36663e1883b9bbf6c12744ce01caf7615 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 180 | py | __author__ = 'aserver'
__tags__ = 'disk', 'getXMLSchema'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
adbdceca5ed229f3715c5b02449a90573cf11f36 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.MCD/Serif_12/pdf_to_json_test_Latn.MCD_Serif_12.py | e2a6c3fafba9bcc5590f3fd798d4299201704f19 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.MCD/Serif_12/udhr_Latn.MCD_Serif_12.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
0d5726f152f9f29dc6f7a99fdac51cb48fd8542c | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/django/core/files/locks.py | cbaa7b25d79ec5bfb418ecc45a01915b02922066 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/django/core/files/locks.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
9bd9447b16887d8c853d33373cfe76d2145cc3ee | 1ba2f5282084f967aed5df2f614b79366ea8070c | /sort/bubble_sort/bubble_sort.py | bb27adb5aa11000f9146b1eae2954c22a32fddb3 | [] | no_license | rohitmi0023/cs_programs | fcdb45a7ff3291c6fa0b44cfdbfd76d826bd805f | 7396daf0c2a65574da674c6dfef91a09138034ac | refs/heads/master | 2023-07-17T08:47:54.806128 | 2021-09-01T16:36:52 | 2021-09-01T16:36:52 | 205,328,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | def bubble_sort_func(lists):
# In total we have to make length - 1 iterations
for i in range(1, len(lists)):
# In an iteration we have to further make length - i iterations
for j in range(0, len(lists) - i):
# Comparing the current and the next element
if lists[j] > lists... | [
"you@example.com"
] | you@example.com |
53d3bdc39fa2dc67b61a5ac0caf041498f56ccdb | 6206620e1a20c2d8847e63be974f90408c0cfa3c | /Advanced_python/polymorphism/method_overriding.py | 1bedabce0838dc15938ad1f2989ed30fdd8f7934 | [] | no_license | vinuv296/luminar_python_programs | c1eb4f91201634c999b427dd13b79968486e9e9e | 08c078e25c63b71e97c60a6b2ddd3911e2c915d2 | refs/heads/master | 2023-04-05T05:02:47.023113 | 2021-04-19T10:18:18 | 2021-04-19T10:18:18 | 358,550,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | class Parent:
def properties(self):
print("10 lakh rs,2 Car")
def mary(self):
print("with raju")
class Child(Parent):
def mary(self):
print("With Gopi")
c=Child()
c.mary() | [
"vinuv296@gmail.com"
] | vinuv296@gmail.com |
b8dbb70f4b3a26af37196a9a463f6061d6e2e864 | bfa4447ec5e92017aec95ee6d349d91b5733afca | /test/test_assign/files/otter-correct/student/tests/q1.py | bf7a73d9e1cf2f82d664f62d60f74fae56746002 | [
"BSD-3-Clause"
] | permissive | ucbds-infra/otter-grader | 4020c14614fc62a93ce564c6b8ad88269defac97 | e6ece6b53ef2291f2724ff9965f09d910ad10e7e | refs/heads/master | 2023-08-23T22:46:15.793814 | 2023-08-18T21:53:52 | 2023-08-18T21:53:52 | 208,363,438 | 112 | 62 | BSD-3-Clause | 2023-09-12T00:01:41 | 2019-09-13T23:40:57 | Python | UTF-8 | Python | false | false | 526 | py | OK_FORMAT = True
test = { 'name': 'q1',
'points': 3.75,
'suites': [ { 'cases': [ {'code': '>>> isinstance(x, int)\nTrue', 'hidden': False, 'locked': False},
{'code': '>>> None\n', 'hidden': False, 'locked': False},
{'code': '>>> 0 < ... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu |
ed2e5a15b0308028be8c4dcf2f25b68e7a37e18a | 771b8d8b60783ed8181de344e418691bd2cf882d | /nb_hook/migrations/0001_initial.py | 18adea7e3bab930b9cade0de8bcf78deae8ae901 | [] | no_license | mozilla/mozilla_webhook_sync | 3c99eaa43e36e21b5a55e95c9e75c613fbef6aaa | 8e955e1f6416bbb4e04246f0bbc67acab6e73af3 | refs/heads/master | 2023-09-03T22:53:22.737607 | 2017-11-06T11:22:40 | 2017-11-06T11:22:40 | 66,299,225 | 0 | 0 | null | 2016-10-18T21:54:49 | 2016-08-22T18:48:53 | Python | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-19 22:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMode... | [
"walter@fissionstrategy.com"
] | walter@fissionstrategy.com |
7a0b281c0707828a0e8c7afce58a3cbce2546ca8 | faf793376991092615975a559c6bed4e093acc44 | /SECTION 25 first step with Django/180 to install Django.py | 0ce11cffde7701e2493656f21e382c11f53f4e95 | [] | no_license | jdiaz-dev/practicing-python | 2385f2541759cfc9ed221b62030c28e8cf6ddde4 | 139b7dd4332e9ab3dd73abee0308cff41f4657fe | refs/heads/master | 2023-04-05T06:13:53.590830 | 2023-03-19T16:06:00 | 2023-03-19T16:06:00 | 320,443,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
--there are many ways to install Django
--first: podemos montar un entorno virual de Python, que permite saltar de una version a otra de python y saltar de otra version a otra de Django, esto esta bien; pero la instalación se complicaría, y no es necesario para una entorno local de desarrollo
--la in... | [
"lordgelsin26@gmail.com"
] | lordgelsin26@gmail.com |
6e1b092a7e6f85d6efca87805706d92718c98325 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/daapi/view/battle/resource_points.py | 58a0117e13ee33a8d9d218c7496c89e9e8398f20 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 10,567 | py | # 2016.02.14 12:38:44 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/resource_points.py
import weakref
import BigWorld
from CTFManager import g_ctfManager
from constants import RESOURCE_POINT_STATE
from gui.battle_control import g_sessionProvider
from gui.shared.utils.pl... | [
"info@webium.sk"
] | info@webium.sk |
4ce3a8efd95d236d73a447758148f57878a4bfdb | ebc7c4d82eed374060bf6bbc7df76930412ba26a | /plait/api.py | 98476b79c0cb686fc7f39bb0936a197961f50a2a | [
"MIT"
] | permissive | dustinlacewell/plait | 6878b2124069373fd2cafdcf5ba1ca628bda64ec | b57bc353298401af41b286fbefa6120b236be102 | refs/heads/master | 2021-01-10T12:23:34.931115 | 2015-12-04T21:55:30 | 2015-12-04T21:55:30 | 45,318,025 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | import inspect
from twisted.internet import reactor
from twisted.internet.threads import blockingCallFromThread as blockingCFT
from plait.task import thread_locals
class RemoteCallError(Exception): pass
def run(cmd, fail=False):
"""
Execute a command on the remote host.
Blocks by calling into the main r... | [
"dlacewell@gmail.com"
] | dlacewell@gmail.com |
6f7783056afc32c59c56147ec14e1af860df6a49 | b48e2c61292ad9c6621bee95cd70265911d6d636 | /tests/test_marketstack/test_import.py | 8e369050c5f3d39e3e813414f40f454211bfeaca | [
"BSD-3-Clause"
] | permissive | kvh/snapflow-stocks | 9f544769b14887338e35df7c6592a035c7bddd6c | 2531749d86b9ca8a47b3443605d6a9f69c219a03 | refs/heads/master | 2023-06-04T15:47:59.157490 | 2021-06-18T04:15:22 | 2021-06-18T04:15:22 | 320,654,176 | 1 | 0 | BSD-3-Clause | 2020-12-15T20:08:19 | 2020-12-11T18:33:51 | Python | UTF-8 | Python | false | false | 1,807 | py | import os
from snapflow import graph, produce
def ensure_api_key() -> str:
api_key = os.environ.get("MARKETSTACK_ACCESS_KEY")
if api_key is not None:
return api_key
api_key = input("Enter Marketstack access key: ")
return api_key
def test_eod():
from snapflow_stocks import module as sto... | [
"kenvanharen@gmail.com"
] | kenvanharen@gmail.com |
020896c5168cdb397dd61350967710c264a45466 | ad3fd0595c60cd10130676203ca695781ba59fa5 | /RicardoFabbri18022013_2257_gml_fb/scripts/rdfFBEgoGML.py | 6c096e21a08746b169e5094ef97e3471bd11bb1c | [
"CC0-1.0"
] | permissive | labmacambira/fbEgoGML | e3d5b499df5ad48613f5071cae8965a5b22b3315 | 3b725b0a6c1998788bcb9b6ebcc966ed4cb083fd | refs/heads/master | 2021-05-30T15:07:38.155574 | 2015-12-11T10:13:15 | 2015-12-11T10:13:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | import social as S, percolation as P, os
import importlib
#importlib.reload(P.rdf)
importlib.reload(S)
importlib.reload(S.fb)
importlib.reload(S.fb.read)
importlib.reload(S.fb.gml2rdf)
c=P.utils.check
umbrella_dir="fbEgoGML/"
fpath="./publishing/fb4/"
dpath="../data/fb/gml/"
scriptpath=os.path.realpath(__file__)
fname... | [
"renato.fabbri@gmail.com"
] | renato.fabbri@gmail.com |
b8ed560f29c16f3eb2bbbe66bd280997880c9fad | 6fa831a9ac84ab220aad1195365640cabf3eeb88 | /tools/calibrate/min_quad.py | 10eff68e71089a0ffedda59e1d153540a3f30fe1 | [] | no_license | d4niele/maia | 1e68faae43687a4d12f29fff7fe94424e9713da1 | 178087336a32856c5f46e364bf164dc1e229b59d | refs/heads/master | 2020-05-24T16:07:53.666392 | 2019-07-02T22:42:50 | 2019-07-02T22:42:50 | 187,349,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import numpy as np
from matplotlib import pyplot as plt
N = 10
xs = np.random.random(N)
ys = np.random.random(N)
trend = np.polyfit(xs,ys,1)
plt.plot(xs,ys,'o')
trendpoly = np.poly1d(trend)
plt.plot(xs,trendpoly(xs)) | [
"you@example.com"
] | you@example.com |
767ade35eef66aad7a14b9a9d020379e637aa45e | fd379769378d129ae2f038a01f85391034491d61 | /python/inversions.py | 67c0c16bafa80a0b69c63aab4ce145dfca63c857 | [
"MIT"
] | permissive | drusk/algorithms | 824593d489904f6efa3ccf2a44fab69aafec9cd4 | c8bdc1c1aff6386e37c023bf1f4984e5addbcab5 | refs/heads/master | 2021-01-10T19:33:45.092215 | 2013-12-17T19:59:54 | 2013-12-17T19:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | """
Count inversions in a list of numbers.
"""
__author__ = "David Rusk <drusk@uvic.ca>"
def main():
input_file = ("/home/drusk/Documents/Courses/online/algorithms1/"
"assignments/a1/IntegerArray.txt")
numbers = []
with open(input_file, "rb") as filehandle:
for line in filehandl... | [
"drusk@uvic.ca"
] | drusk@uvic.ca |
5de26745bb13ad2ae79516eb18e726a7104d168a | 51d0377511a5da902033fb9d80184db0e096fe2c | /30-case-studies-in-statistical-thinking/5-earthquakes-and-oil-mining-in-oklahoma/01-eda-plotting-earthquakes-over-time.py | fd64e420d5acd064b26dfb6c353d44084515012c | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | '''
EDA: Plotting earthquakes over time
Make a plot where the y-axis is the magnitude and the x-axis is the time of all earthquakes in Oklahoma between 1980 and the first half of 2017. Each dot in the plot represents a single earthquake. The time of the earthquakes, as decimal years, is stored in the Numpy array time,... | [
"a@skrasnov.com"
] | a@skrasnov.com |
d2419cdf3a1b330e95dde1be399c672d76c2cdbf | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/JUNIPER-CFGMGMT-MIB.py | f042878a484686062400859bc4ddd98fa349579f | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,091 | py | #
# PySNMP MIB module JUNIPER-CFGMGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-CFGMGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:58:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
535a116d0212e296c28c00090f9b9a5cc0ff9eda | 562a11c9813039430fe313384e55b4cc6a27283a | /tests/test_drf_article.py | 1250dd1c7f51c1525fbae28799e011647ae67d80 | [] | no_license | 8area8/django-rest-framework-articles | c5e6daaf8681293d97d40490c5317a4cabcaa3a3 | 3422353d57a66d4a22d66aa6d48bc128069ce879 | refs/heads/master | 2020-06-05T19:48:10.121391 | 2019-06-18T12:44:33 | 2019-06-18T12:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from drf_article import __version__
def test_version():
assert __version__ == '0.1.0'
| [
"mbriolet.ma@gmail.com"
] | mbriolet.ma@gmail.com |
0a43b98ce7d6db87225964d9ba742eaf038b8d86 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02922/s743734416.py | 5689127034e497825c363cb031a305c095bb9ae7 | [] | 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 | 143 | py | a,b = list(map(int,input().split()))
sasikomi = 1
tap = 0
while(sasikomi < b):
tap = tap + 1
sasikomi = sasikomi + a - 1
print(tap)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
33cade64ce28179008d72828added401b0e8d66f | 5bc8468029a6e1dd0cc75d480a34e646bed64ea2 | /khabarkoi/asgi.py | 55dbeb1a0b29913165098f6c260591c4e0f53001 | [] | no_license | ziaurjoy/Basic-API | c1804749593fb8b0bab3df28550280e2ffa27999 | e7a65b4a0778cd21ff08b3a0a529358c3ef288a8 | refs/heads/master | 2021-05-19T10:18:43.941612 | 2020-09-07T14:20:25 | 2020-09-07T14:20:25 | 251,534,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for khabarkoi 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"ziaurjoy802@gmail.com"
] | ziaurjoy802@gmail.com |
091130c0662fd0844401f41341fb6248ddc1ebe2 | 2e4f1df3835ab1a0eba70a16800a836b05b82404 | /gst/get_group_info.py | c99105cf572285605dcf161865f88b2aa923f19c | [
"MIT"
] | permissive | valohai/g-suite-tools | a90fbdaf29815ac76e2f6845c40e8fd421bca076 | cbf69606ed992646e652261187a34f983491db98 | refs/heads/master | 2022-12-10T14:14:14.391443 | 2021-02-08T20:36:36 | 2021-02-26T10:45:57 | 222,693,411 | 1 | 0 | MIT | 2022-12-08T06:54:43 | 2019-11-19T12:41:06 | Python | UTF-8 | Python | false | false | 1,411 | py | import argparse
import json
import sys
from typing import List
import tqdm
from gst.credentials import get_directory_read_client
from gst.utils import get_paginated
def main():
ap = argparse.ArgumentParser()
ap.add_argument("--domain", required=True)
ap.add_argument("--write-json", type=argparse.FileTyp... | [
"akx@iki.fi"
] | akx@iki.fi |
4aae7c04ed2f7d9d96f012507133797f93b1a217 | 1179e66f1790ae0fe350870ca4382a4fcee18779 | /poem/admin.py | e5bf641032564543522c860d3380579e122a84e6 | [] | no_license | shoark7/harusijak-api-server | dc47edf8de794d4c9da2750516e7183169323e64 | 73b01e9e1f6999a17893550ccaf801c3d2cccc5e | refs/heads/master | 2022-11-26T11:37:50.305787 | 2019-05-23T05:51:57 | 2019-05-23T05:51:57 | 182,030,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from django.contrib import admin
from .models import Poem
admin.site.register(Poem)
| [
"shoark7@gmail.com"
] | shoark7@gmail.com |
a2c147f4468186f6fc2e6530df517fe80b15286b | 3e59c64c78aa3ffc4ca6ee358ee1a3ba61e2d4af | /scripts/fb15k/fb15k_v1.py | a899647b39d3c73ffe3916529dba454b4a2f075c | [
"MIT"
] | permissive | pminervini/DeepKGC | de35f75fac9c64ca6e09e4ab244552792669678d | ed55d0a28d7607324def7c48ebde98786c11d5e1 | refs/heads/master | 2016-09-06T02:36:47.748324 | 2015-07-06T12:35:07 | 2015-07-06T12:35:07 | 38,617,255 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | #!/usr/bin/python -uB
# -*- coding: utf-8 -*-
# Classes of methods
u_vers = ['Unstructured']
base_vers = ['TransE', 'ScalE']
scaltrans_vers = ['ScalTransE']
xi_vers = ['XiTransE', 'XiScalE']
semixi_vers = ['XiScalTransSE', 'XiTransScalSE']
xiscaltrans_vers = ['XiScalTransE']
simple_method_set = base_vers + xi_vers
s... | [
"p.minervini@gmail.com"
] | p.minervini@gmail.com |
6a9f8fdd88d5f755ba31aad1901de75f491abbc4 | 56ffce29f0d27f83206e11870d95982c38524aae | /apweb/database_test.py | 774897fdb8bf636f8846c81eeb4ba36319442e8b | [] | no_license | adamandpaul/apweb | cce365085e2ee58cfbc31544c5a7414e67ad56b4 | b1bb81fa7d7b39f19e187462aa3447ff482b46af | refs/heads/master | 2022-10-19T02:09:52.437906 | 2021-05-21T06:10:08 | 2021-05-21T06:10:08 | 201,398,036 | 0 | 3 | null | 2022-09-21T21:39:41 | 2019-08-09T05:41:06 | Python | UTF-8 | Python | false | false | 1,631 | py | # -*- coding: utf-8 -*-
from . import database
from unittest import TestCase
from unittest.mock import MagicMock
from unittest.mock import patch
import pyramid.events
class TestDatabaseConfiguration(TestCase):
@patch("zope.sqlalchemy.register")
def test_db_session_from_request(self, zope_register):
... | [
"arterrey@gmail.com"
] | arterrey@gmail.com |
f12dde725368f102ef5b15f678c55c17078d4208 | ba80ca143ba35fd481730786a27ebdb1f88ce835 | /algorithm/codility/3_permMissingElem.py | 063ff53aa8c43c233ca38ae1c10147b9ceb9eec0 | [] | no_license | uiandwe/TIL | c541020b65adc53578aeb1c3ba4c6770b3b2e8b3 | 186544469374dd0279099c6c6aa7555ee23e42fe | refs/heads/master | 2022-02-15T08:33:07.270573 | 2022-01-01T15:22:54 | 2022-01-01T15:22:54 | 63,420,931 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A):
l = len(A)
if l <= 0:
return 0
if l == 1 and A[0] != 1:
return 1
s = (l+1) * (l+1+1) // 2
return s - sum(A)
assert solution([1, 3]) == 2
assert solution([2, 3, 1, 5]) == 4
... | [
"noreply@github.com"
] | uiandwe.noreply@github.com |
f95bb584108c6caacc35789f70cb634acd8bfcee | b4d7fbbd5ba7d73e2a0ed183e76c55a1e8f68996 | /django/db/migrations/optimizer.py | 9c9613bb370a0f1b0c58bfb3a37e6e9093de4e20 | [
"BSD-3-Clause"
] | permissive | ikebrown/django | a6ae06946c18c39800dfb20d182da2f8fad4df99 | 8be832b262432081be297d0274ef1ab964a9bcea | refs/heads/master | 2021-01-18T05:52:46.780219 | 2013-10-21T18:40:45 | 2013-10-21T18:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | from django.db import migrations
class MigrationOptimizer(object):
"""
Powers the optimization process, where you provide a list of Operations
and you are returned a list of equal or shorter length - operations
are merged into one if possible.
For example, a CreateModel and an AddField can be opti... | [
"andrew@aeracode.org"
] | andrew@aeracode.org |
5768b4aa944cf0a267a5d51df9863b7719905cde | c57376701537dc6969939c3afb51d542d670db61 | /String/string_4.py | e6561f80c80b07d1636fe290b6c22921b0d65b70 | [] | no_license | dangnam739/Learn_Python_Begin | d3f5f24504b3c703de4e981abb432f3734558e5d | 81764172475f26374a3e21d150395a99e8a183e6 | refs/heads/master | 2021-07-15T19:13:58.156215 | 2020-08-21T06:38:04 | 2020-08-21T06:38:04 | 200,081,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | ###Cac phuong thuc chuoi #String Method#
a = '12'
print(int(a))
print(type(a))
#capitalize: ra ve chuoi co ky tu dau duoc viet hoa, # cac chu cai con lai viet thuong
a = 'how kteam - free education'
b = a.capitalize()
print(b)
#upper : Viet hoa tat ca cac ky tu
b = a.upper()
print(b)
#lower : vie... | [
"47108512+ChrisZangNam@users.noreply.github.com"
] | 47108512+ChrisZangNam@users.noreply.github.com |
919567ff88adb1a6e3f2a56cc4b28afd54153228 | 419572051aedc42fec6d1a8ec7b90b3cd0ba6637 | /pandaharvester/harvestercredmanager/no_voms_cred_manager.py | 6af30bb92a1925dc5294970415213a96cac0d2d8 | [
"Apache-2.0"
] | permissive | wyang007/panda-harvester | e5c43688be5ebee24860b1a7c7b2c241ae2bc4ac | c24d75eabc57b14779e72b00a65162db341c99f9 | refs/heads/master | 2021-04-27T03:11:25.832083 | 2018-02-26T08:11:30 | 2018-02-26T08:11:30 | 122,710,771 | 0 | 0 | null | 2018-02-24T06:28:38 | 2018-02-24T06:28:38 | null | UTF-8 | Python | false | false | 2,244 | py | import subprocess
from pandaharvester.harvestercore.plugin_base import PluginBase
from pandaharvester.harvestercore import core_utils
# logger
_logger = core_utils.setup_logger('no_voms_cred_manager')
# credential manager with no-voms proxy
class NoVomsCredManager(PluginBase):
# constructor
def __init__(sel... | [
"tmaeno@bnl.gov"
] | tmaeno@bnl.gov |
ac8b0c1856a22c93b5d665b62610ebd8af083ae9 | 4962f934b0e94505a95ae50903cab5a9327171fc | /jsonhash/__init__.py | 82a550b4de60873d457716166d251054eedbc86c | [
"Apache-2.0"
] | permissive | FlorianLudwig/jsonhash | f0d86267c94f6ee1de74b22c680baabf28c78dac | aae53363c3eba867189ea5ac774bcef251e54dc2 | refs/heads/master | 2021-01-10T17:21:32.048467 | 2016-04-07T19:25:00 | 2016-04-07T19:25:00 | 50,778,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import json
import hashlib
def hash(object, algorithm=None):
"""return hash object for object
object might be None, int, float, dict or array
"""
if algorithm is None:
algorithm = hashlib.sha256
data_string = json.dumps(object,
skipkeys=False,
... | [
"f.ludwig@greyrook.com"
] | f.ludwig@greyrook.com |
3ce5571b618328f51bd78d5786b8820045c53ba1 | 9620337c5ce9294ebc0e29aafa16aa2545fd3afa | /Square.py | 3b369a9eded8898aebc55ffcf26ea3dad96ec64c | [] | no_license | balajimanikandanm/balajib | f482840ac3491b26b9315fc9f1e16e6616317638 | d065305ca7c104f7a140b4a6f09b4f747f9ac90d | refs/heads/master | 2021-06-08T16:51:52.639877 | 2019-07-16T03:59:21 | 2019-07-16T03:59:21 | 95,753,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | n=int(input())
if(10<=n<100):
a=int(n/10)
b=int(n%10)
c=int((a*a)+(b*b))
print(c)
elif(100<=n<1000):
a=int(n%100)
b=int(a%10)
c=int(a/10)
d=int(n/100)
e=int((d*d)+(b*b)+(c*c))
print(e)
| [
"noreply@github.com"
] | balajimanikandanm.noreply@github.com |
c510a7d18152ae7d067c151c030d1a80cca96576 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03778/s222149305.py | ada8009e48476f017c9593ae7a5970d246338c8b | [] | 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 | 219 | py | #!/usr/bin/env python3
w,a,b=map(int,input().split())
if b>a:
if b-w-a>0:
print(b-w-a)
else:
print(0)
if a>b:
if a-w-b>0:
print(a-w-b)
else:
print(0)
if a==b:
print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ab518993e7504fd0345f8ff85893401197724473 | 369e260e100db9ab5cc8b1711e99ef5e49aec173 | /ml/m09_selectModel2.py | 8500764c686e4ff32f05ffd8638b5b574a0f8beb | [] | no_license | HWALIMLEE/study | 7aa4c22cb9d7f7838634d984df96eed75f7aefea | 8336adc8999126258fe328d6b985a48e32667852 | refs/heads/master | 2023-03-26T09:11:19.606085 | 2021-03-29T23:03:04 | 2021-03-29T23:03:04 | 259,555,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #보스턴 모델링 하시오
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from sklearn.utils.testing import all_estimators #26개 모델 한방에 돌려버림
import warnings
from sklearn.metrics import r2_score
warnings.filterwarnings('ignore') #warnings이라는 에러 그냥 넘어가겠다
boston=pd.... | [
"hwalim9612@gmail.com"
] | hwalim9612@gmail.com |
a6d54c808fed3224faeaa67a6f4784fc46e699fd | bc441bb06b8948288f110af63feda4e798f30225 | /flowable_sdk/model/ops_automation/job_tasks_pb2.pyi | dc12a5542a2e6c124251065644a1dc8ee7723caf | [
"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 | 4,477 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from flowable_sdk.model.ops_automation.mail_info_pb2 import (
MailInfo as flowable_sdk___model___ops_automation___mail_info_pb2___MailInfo,
)
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor... | [
"service@easyops.cn"
] | service@easyops.cn |
d8580fd2b046a0ebea8248bc04e21a2e0f40e463 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Controls/__init___parts/Button.py | 8fcee9dc5c75fc121b1f809e53bbc4b4fec8b4d4 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 58,319 | py | class Button(ButtonBase,IResource,IAnimatable,IInputElement,IFrameworkInputElement,ISupportInitialize,IHaveResources,IQueryAmbient,IAddChild,ICommandSource):
"""
Represents a Windows button control,which reacts to the System.Windows.Controls.Primitives.ButtonBase.Click event.
Button()
"""
def AddChild(self,*ar... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
8000e75d46ed9abd3bbb9b77c384719a41849c7a | e54993bb28e72a147e513038a6ad938fcaecc5c6 | /2018/6-2.py | a15fe749802ad0ba3658f1173718aea63542470a | [] | no_license | desecho/adventofcode | 84dc4d90bf9aefa82211b1222588897413efed38 | 239527cb57d12eb2ed02a396d74adfc824df5188 | refs/heads/master | 2021-06-15T05:13:24.558169 | 2021-03-18T23:36:37 | 2021-03-18T23:36:37 | 160,407,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from collections import defaultdict
def calculate_distance(coord1, coord2):
return abs(coord1[0] - coord2[0]) + abs(coord1[1] - coord2[1])
def get_coords():
f = open('6.txt')
lines = f.read().splitlines()
coords = []
for line in lines:
coord = line.split(', ')
coord = (int(coord[0]... | [
"desecho@gmail.com"
] | desecho@gmail.com |
901724595d4e863dcdff9795aeb24d6f8e20e023 | 989b3499948137f57f14be8b2c77d0610d5975e6 | /python-package/daily_study/1주차(07.09~07.13)/1주차_파이썬 과제/ii_get_firsts_age.py | 6f8acc79193e6540ffb53bc5bba8fd4a4015d551 | [] | no_license | namkiseung/python_BasicProject | 76b4c070934ad4cb9d16ce844efa05f64fb09ac0 | 460d05248b2d1431624aba960e28bece888643e4 | refs/heads/master | 2022-12-13T21:12:06.865241 | 2020-04-23T01:30:08 | 2020-04-23T01:30:08 | 142,980,920 | 1 | 1 | null | 2022-12-08T02:27:40 | 2018-07-31T07:49:17 | Python | UTF-8 | Python | false | false | 1,910 | py | # -*- coding: utf-8 -*-
name_book = [{'age': 31, 'fav': ['3g', 'chi', 'piz'], 'name': 'ttamna'},
{'age': 32, 'fav': ['cof', 'greentea'], 'name': 'hope'},
{'age': 22, 'fav': ['sprite', 'pepsi'], 'name': 'mirae'},
{'age': 21, 'fav': ['choco', 'freetime'], 'name': 'gunin'},
... | [
"rlzld100@gmail.com"
] | rlzld100@gmail.com |
e68623770b137be6b14de90280ff4515b723457a | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/lzma_sdk/lzma_sdk.gyp | a1167d5f71c2b8b7d363c211a41bd59ce400bfd2 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 2,150 | gyp | # Copyright (c) 2012 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.
{
'variables': {
'lzma_sdk_sources': [
'7z.h',
'7zAlloc.c',
'7zAlloc.h',
'7zBuf.c',
'7zBuf.h',
'7zCrc.c',
... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
fd122e785dcd67f5dfb38d8fb252da42a10b7b2e | 46357db3b1c1af699384d9cba1ffbc3c732117ad | /python_basics/exercises/26_find_hcf_or_gcd.py | 517945158aebeb2882ab90db0eb4fd6fa7b56cc1 | [] | permissive | khanhdodang/automation-training-python | 28fbd70ca4bc84e47cf17d1e4702513863e38c44 | b16143961cee869c7555b449e2a05abeae2dc3b5 | refs/heads/master | 2023-07-11T05:21:34.495851 | 2021-08-18T01:29:37 | 2021-08-18T01:29:37 | 285,208,030 | 0 | 8 | MIT | 2020-09-29T07:01:15 | 2020-08-05T07:01:46 | Python | UTF-8 | Python | false | false | 559 | py | '''
The highest common factor (H.C.F) or greatest common divisor (G.C.D) of two numbers is the largest positive integer that perfectly divides the two given numbers.
For example, the H.C.F of 12 and 14 is 2.
'''
# Python program to find H.C.F of two numbers
# define a function
def compute_hcf(x, y):
# choose the ... | [
"khanhdo.pmp@gmail.com"
] | khanhdo.pmp@gmail.com |
138e01dd749c37a17258cce7de9bd8b7d0744481 | 0a21d5e72b4afbabcbf4ec0d65ea84cd8d6159c7 | /Contest/weekly-contest-169/D.py | 7b093659d1af3a7b5b3878292f1449b79aa09d2b | [] | no_license | LuoJiaji/LeetCode-Demo | 193f27ba36c93f9030435874a145c63a81d3c0f8 | 78e6e87c01848a1dc71b7dc0716029ece5f35863 | refs/heads/master | 2020-06-24T03:03:33.366537 | 2020-04-05T02:09:41 | 2020-04-05T02:09:41 | 198,830,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,126 | py | # class Solution(object):
# def isSolvable(self, words, result):
# """
# :type words: List[str]
# :type result: str
# :rtype: bool
# """
# # used = []
# # flag = False
# def check(numlist, alpha, words, result):
# # pass
# flag ... | [
"lt920@126.com"
] | lt920@126.com |
42f4bf6c1f20d34b1dff13ff86e5188f43f078a1 | aa2c3743c265c3db8a246a04f26df8428d23dd06 | /tacker/api/v1/router.py | 3f53618e26a630c4111a70c43a13a10fd9edda17 | [
"Apache-2.0"
] | permissive | SripriyaSeetharam/tacker | fb43740de8e791b7bfa121dd16c295dd380f03f0 | 0c5c2eb06fb6112b03b49c05c5cbffb0ba00587f | refs/heads/master | 2021-01-22T01:55:17.327221 | 2015-07-08T21:07:02 | 2015-07-08T21:07:02 | 38,065,799 | 1 | 0 | null | 2015-06-25T18:13:25 | 2015-06-25T18:13:24 | Python | UTF-8 | Python | false | false | 2,312 | py | # Copyright (c) 2012 OpenStack Foundation.
#
# 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... | [
"isaku.yamahata@intel.com"
] | isaku.yamahata@intel.com |
b40a2a276b7057d283cc97a08b18fff243b0a820 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/types/ad_group_extension_setting_service.py | ef41a0ce26e223a0dc2319488043f0f0ca9dd4e9 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
554ab2c2d9d21b5149c32d9c6caf9f65d0dbe509 | dd08a146a41a8114365a7b11b534935cb96ec0b5 | /configs/activations/x101_4x4_1x.py | 978ebdd35999768d449ea74d69c8814e2a657020 | [
"Apache-2.0"
] | permissive | kostas1515/GOL | 2132020f97739278afd12fc1e7af2560c50781cb | 70026b73cacf7ee9c8b209907a83cff7d7e34d65 | refs/heads/master | 2023-05-23T10:13:04.671246 | 2022-11-24T10:51:22 | 2022-11-24T10:51:22 | 513,964,766 | 18 | 2 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | _base_ = [
'../lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_1x_lvis_v1.py'
]
# data = dict(train=dict(oversample_thr=0.0))
data = dict(train=dict(oversample_thr=0.0),samples_per_gpu=4)
model = dict(roi_head=dict(bbox_head=dict(loss_cls=dict(type="CrossEntropyLoss", use_sigmoid=True),
... | [
"konsa15@liverpool.ac.uk"
] | konsa15@liverpool.ac.uk |
54653ff8ae9f1d734186dff0d2cc2189116fa554 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/lEm.py | 06476509f118b2e4163b067da84e4c3f5d7fee82 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
d1c83f7397067a5db4849163931e37a5e5a349c0 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result_patch.py | 448ca7b2befea5dda6ba7aebacbd274a18d99b1d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,756 | 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"
] | kurtzeborn.noreply@github.com |
fcf7d0c7373084d9fb10b07ff25dc125d92190fe | 36d924baf115884f48cf4e8de3415340b82abda5 | /atomman/dump/poscar/dump.py | 7d6ed24a88f0fa17c6717384f61be774816a7250 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | plin1112/atomman | 499a430649a89bc9aa5cb716598d05b2783537d6 | ced3a4e5a99a95ef582cf3dbb074eb75cad4a0a6 | refs/heads/master | 2020-03-17T19:28:04.032877 | 2019-05-24T03:17:46 | 2019-05-24T03:17:46 | 133,863,046 | 0 | 0 | NOASSERTION | 2019-05-24T03:17:47 | 2018-05-17T20:06:21 | Python | UTF-8 | Python | false | false | 3,554 | py | # Standard Python libraries
from __future__ import (absolute_import, print_function,
division, unicode_literals)
# http://www.numpy.org/
import numpy as np
# atomman imports
from ...compatibility import range
def dump(system, f=None, header='', symbols=None, style='direct',
box_scale... | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
d7be36e6e09482164160575426a42d6f073350ce | e17cd40f0a9e2452d685a754458f152a1cfb2c69 | /open/core/betterself/models/supplement_stack.py | a29fbadc0050919745c7366ea59577be8717613f | [
"MIT"
] | permissive | Rowlando13/open | 6faec6f4f048284c2a69b64d7fb3767569dbcf3a | 6c14c7bf8b915cea94f89b8af209be14489726e8 | refs/heads/master | 2022-12-02T00:34:56.987855 | 2020-08-20T22:01:25 | 2020-08-20T22:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | from open.utilities.fields import DEFAULT_MODELS_CHAR_FIELD
from open.utilities.models import BaseModelWithUserGeneratedContent
class SupplementStack(BaseModelWithUserGeneratedContent):
name = DEFAULT_MODELS_CHAR_FIELD
class Meta:
unique_together = ("user", "name")
ordering = ["user", "name"]... | [
"jeffshek@gmail.com"
] | jeffshek@gmail.com |
69bd648e2f22328b05bc72638b69a9862c70e36b | 7090a13d5a33d2c1e500af239fe2a3f4a9996596 | /trtools/tools/pload.py | ff5d82655582d01ae821a3b001351359dadb89e9 | [
"MIT"
] | permissive | andrewmhammond/trtools | 97d382e560e9e303e34431d7a4248ac633b62b09 | 211cdb21377e36086c3d78fe9d711a9c12245359 | refs/heads/master | 2020-12-26T01:48:59.728488 | 2014-04-06T23:25:05 | 2014-04-06T23:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import trtools.tools.datapanel as datapanel
import multiprocessing
_store = None
def _load(key):
return _store[key]
def pload(store, N=None, num_consumers=None):
"""
Parallelize the reading of a mapping class.
This is useful for any IO abstraction where you want to read
many files at once
... | [
"dale@dalejung.com"
] | dale@dalejung.com |
37b3647bb50ae28ed528e2bd7ffccfe2adbf6942 | ac47074bcf749273941ab01213bb6d1f59c40c99 | /project/fund/fund_factor/alpha_factor/morningstar_risk_adjusted_return.py | ac09c255fb010636db5553366eb00d9f13b56a5e | [] | no_license | xuzhihua95/quant | c5561e2b08370610f58662f2871f1f1490681be2 | c7e312c70d5f400b7e777d2ff4c9f6f223eabfee | refs/heads/master | 2020-05-19T17:04:08.796981 | 2019-04-24T02:50:29 | 2019-04-24T02:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,434 | py | from datetime import datetime
import os
import pandas as pd
import numpy as np
from quant.fund.fund_pool import FundPool
from quant.fund.fund import Fund
from quant.stock.date import Date
from quant.param.param import Parameter
from quant.stock.macro import Macro
import calendar
class MorningStarRiskAdjustedReturn(ob... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
31ee51f9fb901a1a711c8792108497d4f80f3159 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/41/usersdata/67/24524/submittedfiles/gravitacional.py | e231a12429dd729284c1d39d911cd4e681053dbb | [] | 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 | 802 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import funcoes
#ENTRADA
dimensao = input('Digite a dimensao das matrizes: ')
matrizA = input('Digite a Matriz A como uma única linha entre aspas: ')
matrizD = input('Digite a Matriz D como uma única linha entre aspas: ')
alfa = input('Digite o ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0bf0bdcbca713d816b6bf06d52c9ea4f4fc29158 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2009.1/programming/language/python/pysqlite/actions.py | d4b2fc36f873b9ceae3f7fec989ac524da571a25 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (C) TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def install():... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
4d2b5f48e997fed08bc8c45f8f7918ba868a9710 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/task_agent/v4_1/models/service_endpoint_request.py | 84e317a726ed5a2c330d46f34c75ccca9feae9e4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
b981da78f6dd70eac3da54b275275e77340715aa | f537427134bac52e0274ecd73e664d597718a6a8 | /tests/hwsim/test_ap_hs20.py | d2d1af2b36bb40fc09bce469704b1f204da663f4 | [
"BSD-3-Clause"
] | permissive | liulk/hostap | a19d411d961ec6a0165db38b8b72f8ced6875594 | f3ff948753ebe5643b5c2d16546a4d16e2c9d20a | refs/heads/master | 2016-08-06T02:19:18.487269 | 2014-02-27T00:05:21 | 2014-04-11T16:22:00 | 14,415,674 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74,104 | py | # Hotspot 2.0 tests
# Copyright (c) 2013-2014, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import time
import subprocess
import logging
logger = logging.getLogger()
import os
import os.path
import subprocess
import hostapd
from wlante... | [
"j@w1.fi"
] | j@w1.fi |
ab64c7ade9c0e6f20ab29492761f9cef7461b56b | 155b6c640dc427590737750fe39542a31eda2aa4 | /api-test/hmpt/test/test_009_web_Template.py | 90b6e1ae1a7cb06aa0b98c4140eba1a39a8ff34d | [] | no_license | RomySaber/api-test | d4b3add00e7e5ed70a5c72bb38dc010f67bbd981 | 028c9f7fe0d321db2af7f1cb936c403194db850c | refs/heads/master | 2022-10-09T18:42:43.352325 | 2020-06-11T07:00:04 | 2020-06-11T07:00:04 | 271,468,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,731 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time :2019-06-05 上午 11:25
@Author : 罗林
@File : test_009_web_Template.py
@desc : 进件配置流程自动化测试用例
"""
import json
from faker import Faker
from common.myCommon import Assertion
from common.myCommon.TestBaseCase import TestBaseCase
from hmpt.query ... | [
"romy@romypro.local"
] | romy@romypro.local |
71f9fd478ec198cda1f30d14323c68bd03250659 | ba916d93dfb8074241b0ea1f39997cb028509240 | /kickstart/2020/RoundD/record_breaker.py | 270cc231f01a90a63cf18de06cdfa30e3bce0042 | [] | no_license | satojkovic/algorithms | ecc1589898c61d2eef562093d3d2a9a2d127faa8 | f666b215bc9bbdab2d2257c83ff1ee2c31c6ff8e | refs/heads/master | 2023-09-06T08:17:08.712555 | 2023-08-31T14:19:01 | 2023-08-31T14:19:01 | 169,414,662 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | T = int(input())
for t in range(1, T + 1):
N = int(input())
visitors = list(map(int, input().split(' ')))
prev_record = 0
res = 0
for i in range(N):
greater_than_prev = i == 0 or visitors[i] > prev_record
greater_than_next = i == N - 1 or visitors[i] > visitors[i + 1]
res = r... | [
"satojkovic@gmail.com"
] | satojkovic@gmail.com |
a2e53cd61b75aa7768b090cc1df2d8557dfba982 | 45eb1b25bf72d7c88a57fec5bb4bc5336c04f5ba | /reckon/loc.py | 7f151997499dd7b720cb8586a16c4597bc41d887 | [
"MIT"
] | permissive | seandstewart/reckon | b10faece45e4c1ede5fa1c7e416179e7d1e68142 | ddddb2b0d881e1226075d9eefdcef580826da750 | refs/heads/master | 2021-06-21T06:38:33.649537 | 2021-03-06T21:28:32 | 2021-03-06T21:28:32 | 193,951,846 | 2 | 0 | MIT | 2021-03-06T21:28:33 | 2019-06-26T17:44:43 | Python | UTF-8 | Python | false | false | 1,632 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import collections
import threading
from typing import Callable
try:
from reprlib import repr
except ImportError:
pass
from . import protos
class LocalCache(protos.ProtoCache):
"""A Localized cache.
Can be implemented as a globalized cache by initializi... | [
"sean_stewart@me.com"
] | sean_stewart@me.com |
774ff8553c11fe3a6fd04dbb2d0f46c015f512b3 | 97be97cfc56fb2170b60b91063dbfe5f1449e3c0 | /python/ABC179/B.py | 53752a55a98e2fa669ae9c197b305f57a1d95a7f | [] | no_license | iWonder118/atcoder | 73d965a0a9ade189733808e47634f2b7776aad4b | 3ab7271e838a2903ff0e07f94015ef13c59577e1 | refs/heads/master | 2022-01-25T10:10:55.007340 | 2021-12-31T14:04:54 | 2021-12-31T14:04:54 | 245,155,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | n = int(input())
results = [list(map(int, input().split())) for _ in range(n)]
ans = 0
for i in range(n):
if ans >= 3:
break
if results[i][0] == results[i][1]:
ans += 1
else:
ans = 0
if ans >= 3:
print("Yes")
else:
print("No")
| [
"52240372+iWonder118@users.noreply.github.com"
] | 52240372+iWonder118@users.noreply.github.com |
b4b369b2625b316d54996745d9eab2a7ccae7b52 | 73145f3548feb0812dde986242773f7d446e487f | /tests/tests.py | 9da95dc88c2c111c8459f6c5975e43edaa44c135 | [
"BSD-3-Clause"
] | permissive | lookup/django-redis-sessions | 9d4c31d71d1fb5d552b702e961066848e6443b9f | c9a1d3712d59d0fc972c9463e7718f7202cab41b | refs/heads/master | 2021-01-17T23:28:53.249603 | 2013-03-11T22:40:33 | 2013-03-11T22:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | import time
from nose.tools import eq_
from django.utils.importlib import import_module
from django.conf import settings
redis_session = import_module(settings.SESSION_ENGINE).SessionStore()
def test_modify_and_keys():
eq_(redis_session.modified, False)
redis_session['test'] = 'test_me'
eq_(redis_sessio... | [
"hellysmile@gmail.com"
] | hellysmile@gmail.com |
b13efcc972876375f804eb0816b1849ab2f0fd26 | 00ef8e1eb57b73427508b20aadf0266da6b1f900 | /examples/gdev/any.py | 7e9c6d05c4ea3e8b94d091aebc5b144a1fdb9e4d | [] | no_license | amy12xx/rl-toolkit | f4643935cc8afd960356bfeae74c233d2596dea9 | 8254df8346752ea0226ae2064cc1eabc839567b0 | refs/heads/master | 2023-08-14T00:56:52.270642 | 2021-09-28T15:59:32 | 2021-09-28T15:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,167 | py | import sys
sys.path.insert(0, './')
import os
import os.path as osp
import torch
import numpy as np
import argparse
import string
import random
import datetime
from garage import wrap_experiment
from garage.experiment.deterministic import set_seed
from garage.torch.algos import PPO
from garage.torch.policies import G... | [
"me@andrewszot.com"
] | me@andrewszot.com |
19ffe8a397c4cba7402ef7600fb331973f268134 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /release.py | a0439d9a8953d67b942543862779c0ee771d69e8 | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 304 | py | import os
_GIT_HEAD_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'GIT_HEAD')
SERVICE = 'quay'
GIT_HEAD = None
REGION = os.environ.get('QUAY_REGION')
# Load git head if available
if os.path.isfile(_GIT_HEAD_PATH):
with open(_GIT_HEAD_PATH) as f:
GIT_HEAD = f.read().strip()
| [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
d75c9bd6b13a1685e997c9bff89e619dfbad9617 | 4b41a76c5c366ba2daa30843acea16609b8f5da7 | /2017/19/AoC17_19_2.py | 63d0bff264fc8eed2403e85ab2ba25522ce454cd | [] | no_license | grandfoosier/AdventOfCode | c4706cfefef61e80060cca89b0433636e42bf974 | a43fdd72fe4279196252f24a4894500a4e272a5d | refs/heads/master | 2020-06-11T12:36:48.699811 | 2019-01-14T23:44:44 | 2019-01-14T23:44:44 | 75,665,958 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,251 | py | import copy
class Packet(object):
def __init__(self):
fname = "AoC17_19_1.txt"
self.paths = [line.rstrip("\n") for line in open(fname)]
self.dir = 'D'
self.pos = (0, self.paths[0].find('|'))
self.markers = ''
self.steps = 1; self.last = copy.copy(self.pos)
def _... | [
"noreply@github.com"
] | grandfoosier.noreply@github.com |
097a4a080d568e5c73ed850c08f8373fdda5d37a | 2923b9f58e6a143a3e070169612165585c301def | /high_f/la_habra_large_100120/test_small_awp_uni/make_receiver.py | b335a3279a0c6760c860769fdea74c0c36897b26 | [] | no_license | hzfmer/summit_work_021421 | 16536dd716519bc9244da60007b9061ef5403429 | 6981b359fefb2af22e0bea6c47511de16cad22bd | refs/heads/master | 2023-03-11T15:34:36.418971 | 2021-02-05T23:22:10 | 2021-02-05T23:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | ../test_small_awp_dm/make_receiver.py | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
a388e444b8e3f5e81960dffe79afb5a395d44c5c | a25e2aa102ffe9c2d9b553252a1882fe5a9d7ec9 | /SprityBird/spritybird/python3.5/lib/python3.5/site-packages/openpyxl/formatting/formatting.py | ca562b09e2a12ddee21fe8ca8c472413569d9744 | [
"MIT"
] | permissive | MobileAnalytics/iPython-Framework | f96ebc776e763e6b4e60fb6ec26bb71e02cf6409 | da0e598308c067cd5c5290a6364b3ffaf2d2418f | refs/heads/master | 2020-03-22T06:49:29.022949 | 2018-07-04T04:22:17 | 2018-07-04T04:22:17 | 139,660,631 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | from __future__ import absolute_import
# Copyright (c) 2010-2016 openpyxl
from openpyxl.compat import iteritems, OrderedDict, deprecated
from openpyxl.styles.differential import DifferentialStyle
from .rule import Rule
def unpack_rules(cfRules):
for key, rules in iteritems(cfRules):
for idx,rule in enume... | [
"909889261@qq.com"
] | 909889261@qq.com |
92258abe93cc42c815b9fcfd2422f11e6f2e3c37 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D09B/MOVINSD09BUN.py | 5baaa0f135f7639211744f4c0fe1978fec2ced42 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,740 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD09BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 0, MAX: 9, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
f19254d602637fe894fafb4102e6d9b28bd124df | 19d83ef36909a6d830e2e41af05102b19186ebbd | /memory.py | 15a7965920fc4d8558bf68344a4db9f3ed4f597c | [] | no_license | ChrisProgramming2018/BTD3_Implemenation | 93637b2262b86e7ad19d048127d83da57c9c7508 | 9409cd472ca406c118a45ab60414a070f1a5f709 | refs/heads/master | 2023-01-06T15:30:56.171425 | 2020-10-28T06:58:06 | 2020-10-28T06:58:06 | 295,357,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | import numpy as np
import random
class ReplayBuffer(object):
def __init__(self, max_size=1e6):
self.storage = []
self.max_size = max_size
self.ptr = 0
self.k = 0
def add(self, transition):
self.k += 1
if len(self.storage) == self.max_size:
self.s... | [
"noreply@github.com"
] | ChrisProgramming2018.noreply@github.com |
d0a55f6475bbbb29dcd260910386e57a71f8243f | 0316925e2bad29d60f0dcccdf91277fd8f03ef09 | /q034.py | 87da5609fd58d81457cd3687dc67218378f6df5f | [] | no_license | nomadlife/project-euler | 426614df7b2c9368a4db59954dc1df2902a44d6b | 9bc09843637a361fa93c7abb20ac990f973b08e5 | refs/heads/master | 2021-07-03T00:52:07.760948 | 2021-06-26T14:28:32 | 2021-06-26T14:28:32 | 100,214,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # Q034 Digit factorials, all,
import time
start = time.time()
print("expected calculation time : 2 min")
def factorial(num):
total=1
while num>1:
total = total * num
num-=1
return total
for i in range(1,10000000):
total=0
for j in str(i):
total += factorial(int(j))
if... | [
"joonwoo3816@gmail.com"
] | joonwoo3816@gmail.com |
f2f503660cb416b4276951b9021d361ae00bc5f8 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/bin/jupyter-serverextension | ee3c04b05b9c0eeb104333a5e6409bd21d07588f | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 283 | #!/Users/A202009066/Documents/private-github/ml-theory-python/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from notebook.serverextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr | |
99b67ae8ecb8a2e0cc8954c7eff9606a673895a9 | 2c4efe2ce49a900c68348f50e71802994c84900a | /braindecode/braindecode/venv1/Lib/site-packages/numba/cuda/tests/cudapy/test_record_dtype.py | 954560f9407b4775bb115ed272f6bfd9403570c9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sisi2/Masterthesis | b508632526e82b23c2efb34729141bfdae078fa0 | 7ce17644af47db4ad62764ed062840a10afe714d | refs/heads/master | 2022-11-19T15:21:28.272824 | 2018-08-13T15:02:20 | 2018-08-13T15:02:20 | 131,345,102 | 2 | 1 | null | 2022-11-15T14:08:07 | 2018-04-27T21:09:21 | Python | UTF-8 | Python | false | false | 8,240 | py | from __future__ import print_function, division, absolute_import
import sys
import numpy as np
from numba import cuda, numpy_support, types
from numba import unittest_support as unittest
from numba.cuda.testing import skip_on_cudasim, SerialMixin
def set_a(ary, i, v):
ary[i].a = v
def set_b(ary,... | [
"dansyefila@gmail.com"
] | dansyefila@gmail.com |
2c2e336ab747dbdb1f5feca82e9d6644c1bdbe5d | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/demo/PenAndBrushStyles.py | 62c8f033f0917a085babb249479e55f1e22d50ef | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,093 | py | import wx
import images
pen_styles = ["wx.SOLID", "wx.TRANSPARENT", "wx.DOT", "wx.LONG_DASH",
"wx.SHORT_DASH", "wx.DOT_DASH", "wx.BDIAGONAL_HATCH",
"wx.CROSSDIAG_HATCH", "wx.FDIAGONAL_HATCH", "wx.CROSS_HATCH",
"wx.HORIZONTAL_HATCH", "wx.VERTICAL_HATCH", "wx.USER_DASH"]... | [
"869999860@qq.com"
] | 869999860@qq.com |
1e17f23fd4fc3919a1165407f95e07c0435195be | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/freudian-translator/Python/test.py | ccece49a500303752883fdcb55bc12ed42a76600 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Python - 2.7.6
Test.describe('Basic tests')
Test.assert_equals(to_freud('test'), 'sex')
Test.assert_equals(to_freud('sexy sex'), 'sex sex')
Test.assert_equals(to_freud('This is a test'), 'sex sex sex sex')
Test.assert_equals(to_freud('This is a longer test'), 'sex sex sex sex sex')
Test.assert_equals(to_freud("You'r... | [
"d79523@hotmail.com"
] | d79523@hotmail.com |
774ac47a0f6c5172d745e86ec2e211a1d8970ad4 | c97d3c8848e4f03edb6c64b6abff530a6e74d616 | /apps/__init__.py | 9dc47c4de6093e3511f7fe4e63949ac44c74b162 | [
"Apache-2.0"
] | permissive | simhaonline/Django_web | eeb80d8f32a460258fceb30ecececd7410949f72 | f7df1a7b101d41835a334b78cddf3570968799e4 | refs/heads/master | 2023-04-24T23:33:51.535515 | 2021-04-02T15:20:29 | 2021-04-02T15:20:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# __author__ : stray_camel
# __description__ :
# __REFERENCES__ :
# __date__: 2020/05/25 10
from .constants import system_name, description
__all__ = [
'description', 'system_name',
]
| [
"aboyinsky@outlook.com"
] | aboyinsky@outlook.com |
cfb20ae27607364005a23d811d3836639a73b19b | afbcee5187c88b52b416fa742baa825c14cd9d7c | /CarelinkUploadDownload/CheckForUSB.py | 05a26260d92f1453d9ac28d1a045f75d741e33a6 | [] | no_license | brendlin/BGSuggest | 7fae8665e8c2ea9d60980f3f3e5d57be406dd290 | c2ad6019e323d22358f5a1af35f6683a96a6366d | refs/heads/master | 2021-01-17T07:08:12.729631 | 2019-07-29T17:47:35 | 2019-07-29T17:47:35 | 15,495,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | import sys
import usb.core
# Put the following lines in your bash_profile:
# export PYTHONPATH=$PYTHONPATH:$HOME/pyusb-1.0.0rc1
# export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$HOME/libusb/lib
def CheckForUSB() :
found = False
var_usb_device = usb.core.find(find_all = True)
for var_dev in var_usb_device... | [
"kurt.brendlinger@cern.ch"
] | kurt.brendlinger@cern.ch |
e184433261654f1e09efb557b3037e57f2b7a13e | dca232d51f508edbb37e85f6744e22fb1c9a5a20 | /lifesaver/bot/exts/health.py | 4f04ccc66e0aa4c4da0b593ea6ec31633e0aaa48 | [
"MIT"
] | permissive | Gorialis/lifesaver | 835d0fda04b7d8a436f37184b6419a7ab46fe885 | 3a91c5e5ec60dce0c076d83d984c3a270113e484 | refs/heads/master | 2021-08-31T10:13:25.219124 | 2017-12-21T01:53:22 | 2017-12-21T01:53:22 | 114,949,865 | 0 | 0 | null | 2017-12-21T01:52:07 | 2017-12-21T01:52:06 | null | UTF-8 | Python | false | false | 335 | py | from discord.ext.commands import command
from lifesaver.bot import Cog
class Health(Cog):
@command()
async def ping(self, ctx):
"""Pings the bot."""
ping_time = round(ctx.bot.latency * 1000, 2)
await ctx.send(f'Pong! Heartbeat latency: `{ping_time}ms`')
def setup(bot):
bot.add_co... | [
"cheesy.fried.bacon@gmail.com"
] | cheesy.fried.bacon@gmail.com |
b2ab0e8ccf3f30ede7971f81298d6da053b380ab | f058cd1ec57b2e24430605883387b1c34391a2e3 | /blender_tests/main.py | 221a14485d090e140a70b215f4b2a1cc33c25b3a | [] | no_license | Danny-Dasilva/Blender_Mediapipe | 9a2966f38e3e6a9aea503eed1bdcc0e4e2ebc502 | 80cbd45e721bc12759d26c317f3a57b6176e1af5 | refs/heads/main | 2023-04-21T09:49:47.200918 | 2021-05-15T01:03:40 | 2021-05-15T01:03:40 | 365,960,178 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240,191 | py |
import json
import os
import bpy
from bpy import context
from bpy_extras.io_utils import ImportHelper
from bpy.types import Operator
from bpy.props import StringProperty, BoolProperty, EnumProperty
import math
import bpy
import math
import bpy
class Test_PT_Panel(bpy.types.Panel):
bl_idname = "MOCAP_IMPORT_PT_Pa... | [
"yahchayildasilva@gmail.com"
] | yahchayildasilva@gmail.com |
3e9be943b29edc979e16250aaf978ea1d20d10ee | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /BokhFunYBvsvHEjfx_23.py | 9fe657485bb955529d5c399ff9aa5dfe1f3e1652 | [] | 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 | 114 | py |
def seven_boom(lst):
return "Boom!" if "7" in "".join([str(x) for x in lst]) else "there is no 7 in the list"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
215ae92a7fe987232180e57debe40043791f172c | 386cf667134c1db3242823b33bd5537a462ce986 | /app/user/urls.py | 63d01ec10c4268b0bd2c2b07d1cf5c2bdea21b1d | [
"MIT"
] | permissive | mukulkkumar/docker-travis-django | 795aaff47e54a211e16cc32104693e80c3634210 | de1d6471538ff2b86f97ee7742bb548875c0b39b | refs/heads/main | 2023-04-22T04:07:01.554172 | 2021-05-15T04:52:36 | 2021-05-15T04:52:36 | 364,581,976 | 1 | 0 | MIT | 2021-05-15T04:52:37 | 2021-05-05T13:15:13 | Python | UTF-8 | Python | false | false | 285 | py | from django.urls import path
from user import views
app_name = 'user'
urlpatterns = [
path('create/', views.CreateUserView.as_view(), name='create'),
path('token/', views.CreateTokenView.as_view(), name='token'),
path('me/', views.ManageUserView.as_view(), name='me'),
]
| [
"mukulkkumarr@gmail.com"
] | mukulkkumarr@gmail.com |
cfe92e44ae6fb672278ce8b9e07d449a2724a880 | 0a0e0388727cf219717dc157416d3d1a9a043cb1 | /MyniaCairo/MyniaCairo/urls.py | 419062b7960196dc7ad8c63b0da79fcd3d8b684b | [] | no_license | beshoyAtefZaki/MyniaCairo | 24a7078a3aac7f53f38fe1723fd7c977d9f4f33a | 49e6140cbd951339419f08caf509e59e45656043 | refs/heads/master | 2020-06-30T00:25:04.212268 | 2019-08-08T11:10:51 | 2019-08-08T11:10:51 | 200,666,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | """MyniaCairo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"beshoyatef31@gmail.com"
] | beshoyatef31@gmail.com |
188eb8c5c11d22b9bb3cb7f4979d1aa0b3255125 | dbe012dbedc967332ae58414473185055136d189 | /maskrcnn_benchmark/structures/bounding_box.py | b450da8827054cb4c651ba6949b6fdac5b95ee18 | [
"MIT"
] | permissive | kevincao91/maskrcnn | 87561a023939a71d624252dd44f4c882b2dfa2a6 | a55f6ab82219329e353a20dd53c3f25f4375f537 | refs/heads/master | 2020-09-24T18:41:36.565752 | 2020-05-07T05:45:39 | 2020-05-07T05:45:39 | 225,819,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,755 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
# transpose
FLIP_LEFT_RIGHT = 0
FLIP_TOP_BOTTOM = 1
class BoxList(object):
"""
This class represents a set of bounding boxes.
The bounding boxes are represented as a Nx4 Tensor.
In order to uniquely determine the bou... | [
"kevin_cao_91@163.com"
] | kevin_cao_91@163.com |
e92a538ccb84ab322c783ee5bcec0c38e5263b11 | 410029e722668b7b3d5ed0799ae052c4571ab466 | /.venv/bin/django-admin | cb8512b247887b074ffb84f3ec0c397fbf7f537b | [] | no_license | creechcorbin/ghostpost | 8c7cb48a468cb226e7d2c78d80f8dd845d742113 | 898eb28913f94bef48bc09511a67d6491f284a07 | refs/heads/master | 2022-12-04T11:51:42.907582 | 2020-08-21T18:45:02 | 2020-08-21T18:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | #!/Users/corbincreech/Kenzie-Projects/ghostpost/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"creechcorbin@gmail.com"
] | creechcorbin@gmail.com | |
f1833a5283b95fdf289b1c1117fb0e652ec8a137 | 77a8581bb042b1164a2aee2c581ebaeba1cd571e | /manager/migrations/0001_initial.py | ea059195deb4dda13ebe62bb251ec602d5ab19c1 | [
"Apache-2.0"
] | permissive | EruDev/eru_manager | fb6f00d49c40113cf0a0871bc1aa0f771c23cb08 | 9bc7fb3af361c7de734bfa6c4e1562dd7f978500 | refs/heads/master | 2022-12-18T03:14:45.830681 | 2021-06-11T05:42:16 | 2021-06-11T05:42:16 | 139,976,816 | 18 | 5 | Apache-2.0 | 2022-12-08T02:15:21 | 2018-07-06T11:34:19 | SCSS | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-06-10 23:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UseInf... | [
"1027926875@qq.com"
] | 1027926875@qq.com |
f5e58843cb02368ad358651d4056459f7b2f17f0 | 0b32ba2b4537e024f7edb7682446ca948366111c | /pygly/GlycanFactory.py | 8903265d3abe74822b21e0909187ad315f744b4e | [] | no_license | alternativeTime/PyGly | b459c737b2b24918314ad0e7ebc1696a7d4c5314 | 68675e6896bc7bfc625cda422d08b7ec102e74e5 | refs/heads/master | 2022-04-19T16:12:34.421317 | 2020-04-14T23:37:33 | 2020-04-14T23:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py |
from ReferenceTable import ReferenceTable
from GlycanFormatter import GlycoCTFormat
from MonoFactory import MonoFactory
from Monosaccharide import Anomer, Linkage
# Should structures specified by their oxford abbreviation use
# undetermined linkages for their antennae? Currently no, but
# perhaps. Right now we just g... | [
"edwardsnj@gmail.com"
] | edwardsnj@gmail.com |
3caf6a3c0c2152578cd3ce56cabc211fa6d8b6a5 | 3e1b46a7b4b71d24c40a53c9ceda310e4114ad91 | /allennlp_models/rc/transformer_qa/transformer_qa_predictor.py | 530ee5b38f8ae8a782dc3bff3c59453e24ecfd27 | [
"Apache-2.0"
] | permissive | codehunk628/allennlp-models | dc1de94ec4607a05ddcb31a2e5a8af7bfaf9686e | 83a14c4f4bef0c3e99f47dd1f380b48cbbba0ba6 | refs/heads/master | 2022-07-06T18:41:42.443241 | 2020-05-08T21:55:27 | 2020-05-08T21:55:27 | 262,493,726 | 1 | 0 | Apache-2.0 | 2020-05-09T05:10:17 | 2020-05-09T05:10:17 | null | UTF-8 | Python | false | false | 3,662 | py | from typing import List, Dict, Any
from allennlp.models import Model
from overrides import overrides
from allennlp.common.util import JsonDict, sanitize
from allennlp.data import Instance, DatasetReader
from allennlp.predictors.predictor import Predictor
@Predictor.register("transformer_qa")
class TransformerQAPred... | [
"dirkg@allenai.org"
] | dirkg@allenai.org |
eb8e6e115f2490e2dbf8a872be81ed5f9929010a | f097c3488bcfd1e5d0a566f41cbac8980795aa0f | /tests/academics/models/logistics/test_instructor.py | 6aa08e826353df34aba76235d9be2a7a1f5e23d5 | [
"MIT"
] | permissive | compserv/hknweb | fdce5d5a8e5402ce64f6d93adcea9b43fc920874 | 76f91d2c118bd017d3b714b805d08b5c49c5693e | refs/heads/master | 2023-04-29T12:58:00.253960 | 2023-02-16T01:47:17 | 2023-02-16T01:47:17 | 110,480,397 | 21 | 113 | MIT | 2023-09-03T01:46:27 | 2017-11-13T00:10:26 | Python | UTF-8 | Python | false | false | 330 | py | from django.test import TestCase
from tests.academics.utils import ModelFactory
class InstructorModelTests(TestCase):
def setUp(self):
instructor_id = "my instructor id"
instructor = ModelFactory.create_instructor(instructor_id)
self.instructor = instructor
def test_basic(self):
... | [
"noreply@github.com"
] | compserv.noreply@github.com |
c7d5b5f11fa82336e84e969ac3395ffe1c5bfe22 | 19acab66e4986a0b690fa643796d7d6736fe8b2c | /xPOO/filtering/filtsig.py | c77ab976dbaaf8227d62c0d85855d1926cfeeece | [] | no_license | gitter-badger/brainpipe | 184e11b12a0c5ad7ed6c22957a56b9f70b2d7487 | b381894190e6887d7814ca88f0dbb3e2448c759f | refs/heads/master | 2020-12-24T10:03:51.397655 | 2016-01-26T22:45:24 | 2016-01-26T22:45:24 | 50,481,078 | 0 | 0 | null | 2016-01-27T04:17:45 | 2016-01-27T04:17:45 | null | UTF-8 | Python | false | false | 8,563 | py | """
Design a filter, filt a signal, extract the phase, amplitude or power
"""
import numpy as n
from scipy.signal import filtfilt, butter, bessel, hilbert, hilbert2, detrend
from .filtsup import fir_order, fir1, morlet
__all__ = [
'filtDesign', 'filtvec',
]
__author__ = 'Etienne Combrisson'
clas... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
b96f9396c26d6c99d8a20b9366d3bccc8f4187df | a034d4ba39789e4a351112c46dd04a38180cd06c | /appengine/findit/infra_api_clients/swarming/swarming_task_request.py | 278735e0edeb5230cee5099b1d451c223d7ae774 | [
"BSD-3-Clause"
] | permissive | asdfghjjklllllaaa/infra | 050ad249ab44f264b4e2080aa9537ce74aafb022 | 8f63af54e46194cd29291813f2790ff6e986804d | refs/heads/master | 2023-01-10T21:55:44.811835 | 2019-07-01T14:03:32 | 2019-07-01T14:03:32 | 194,691,941 | 1 | 0 | BSD-3-Clause | 2023-01-07T07:12:37 | 2019-07-01T14:45:29 | Python | UTF-8 | Python | false | false | 5,119 | py | # Copyright 2018 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.
from libs.list_of_basestring import ListOfBasestring
from libs.structured_object import StructuredObject
class SwarmingTaskInputsRef(StructuredObject):
"... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ad346a7474716451000c9a1b097d3ada0ac109a9 | d13a069fda8ce2e0a202eb43266af7558355cdc6 | /ROJASCUBAS/app24.py | 24c86c1d8f04cbe20399b5b3f06f7386c6fc1e6f | [] | no_license | CARLOSC10/T09_LIZA.DAMIAN_ROJAS.CUBAS | 879aba53c1db9ed2bfc4c37da3bf1cbd9df14d97 | 357ec4a3c266fa4ddf8d13b1ecb2af0feb604755 | refs/heads/master | 2020-11-27T04:52:52.004005 | 2019-12-20T18:10:12 | 2019-12-20T18:10:12 | 229,309,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import os
import libreria
cliente=os.sys.argv[1]
total_pagar=float(os.sys.argv[2])
consumo_energia=float(os.sys.argv[3])
libreria.MOSTRAR_RECIBO(cliente,total_pagar,consumo_energia)
| [
"clizad@unprg.edu.pe"
] | clizad@unprg.edu.pe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.