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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1bfb298507a115191ecbd58c3ed71f58ace4a479 | 1cbca82db8f5ab0eac5391e98c7d28ebab447be1 | /workspace_tools/build.py | d57b54c819bd3986fd0617d0ec78bea458ac67bd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | genba/mbed | 59d8588f5ce59a0ebeb37e611aaa29903870195b | 52e23e58c0174a595af367b0ef5cc79ef3933698 | refs/heads/master | 2020-12-07T05:22:24.730780 | 2013-10-16T13:35:35 | 2013-10-16T13:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,169 | py | #! /usr/bin/env python
"""
mbed SDK
Copyright (c) 2011-2013 ARM Limited
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... | [
"emilmont@gmail.com"
] | emilmont@gmail.com |
5b118a1a0d810eb0ff631f8ad9b5fa40f659788f | 6a819308924a005aa66475515bd14586b97296ae | /venv/lib/python3.6/site-packages/pip/utils/outdated.py | fae374b0aa9c5dee18ab16bf1e673e35aaf0053e | [] | no_license | AlexandrTyurikov/my_first_Django_project | a2c655dc295d3904c7688b8f36439ae8229d23d1 | 1a8e4d033c0ff6b1339d78c329f8beca058b019a | refs/heads/master | 2020-05-04T13:20:20.100479 | 2019-05-04T23:41:39 | 2019-05-04T23:41:39 | 179,156,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,445 | py | from __future__ import absolute_import
import datetime
import json
import logging
import os.path
import sys
from pip._vendor import lockfile
from pip._vendor.packaging import version as packaging_version
from pip.compat import total_seconds, WINDOWS
from pip.models import PyPI
from pip.locations import USER_CACHE_DI... | [
"tyur.sh@gmail.com"
] | tyur.sh@gmail.com |
da7a1d1d1f7d32b2acca586cb8cebd6c8ed4616f | 50bdbaf1b714725dff0dc204d3c8d61923a6d011 | /tests/test_all_classes.py | 74bf98c3aee566f5af1d4bf12622ba4692613af8 | [
"MIT"
] | permissive | xflr6/graphviz | 130deb85aa211114e1dfe75b1a88b6925a12f9a9 | 176093002aa354395e88e149748781140841993e | refs/heads/master | 2023-08-27T04:28:33.197675 | 2023-07-22T10:06:51 | 2023-07-22T10:06:51 | 15,847,241 | 1,517 | 261 | MIT | 2023-07-16T11:28:02 | 2014-01-12T17:49:29 | Python | UTF-8 | Python | false | false | 16,252 | py | import locale
import pathlib
import re
import subprocess
import pytest
import graphviz
import _common
ALL_CLASSES = [graphviz.Graph, graphviz.Digraph, graphviz.Source]
@pytest.fixture(params=ALL_CLASSES)
def cls(request):
return request.param
@pytest.fixture
def dot(cls):
if cls.__name__ == 'Source':
... | [
"sebastian.bank@uni-leipzig.de"
] | sebastian.bank@uni-leipzig.de |
5d1dab4d0840ab21108dceab9c5e541f8aacef51 | eb38517d24bb32cd8a33206d4588c3e80f51132d | /pre_procanny_proy2.py | d9c459946676f85c4f0c72c265bf462d2fc0b269 | [] | no_license | Fernando23296/l_proy | 2c6e209892112ceafa00c3584883880c856b6983 | b7fdf99b9bd833ca1c957d106b2429cbd378abd3 | refs/heads/master | 2020-04-01T18:01:41.333302 | 2018-12-04T23:45:53 | 2018-12-04T23:45:53 | 153,466,681 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | '''
FILLING AN IMAGE OF:
- FILLING AN IMAGE
- GRAY
- EROSION
- THRESHOLDING (146,196)
- GAUSSIAN BLUR
- CANNY
- PREWITT
- SKELETONIZE
'''
import scipy.ndimage.morphology as morp
import numpy as np
import cv2
import imutils
import matplotlib.pyplot as plt
def skeletonize(img):
struct = np.array([[[[0, 0, 0], [0,... | [
"fernando23296@gmail.com"
] | fernando23296@gmail.com |
7976c989ae1331d7101007ef1dcc2894f9890f43 | 7bb94ccf47c69cedb19ef3aa12b817b8dd8f099d | /ibms_project/sfm/apps.py | 9d56f0959997626e16345a92ca50c1b01d2ed5e6 | [
"Apache-2.0"
] | permissive | mohdbakhrayba/ibms | deadf9449af25898a6bd23ab0d0dfc56107be20c | 029e1f3bf108586289c65bb1d547f86851f9494f | refs/heads/master | 2020-04-28T20:07:36.991683 | 2019-03-28T04:13:55 | 2019-03-28T04:13:55 | 175,534,264 | 0 | 0 | Apache-2.0 | 2019-03-14T02:32:33 | 2019-03-14T02:32:33 | null | UTF-8 | Python | false | false | 105 | py | from django.apps import AppConfig
class SFMConfig(AppConfig):
name = 'sfm'
verbose_name = 'SFM'
| [
"ashley@ropable.com"
] | ashley@ropable.com |
e88bc1ada639aa5f6c82bbea6feb7484fde89fda | 3388cf3dfde334e6eddc845879b48e9804d8d374 | /src/rocks-pylib/rocks/commands/set/host/power/plugin_physical_host.py | 5f530e9363ffdb90e1e2697b5c2e8d1504b23c79 | [] | no_license | scottsakai/core | 16c6d83a4ee33a534ab0e0a1462680a1183c7881 | 21bced45edd9b70258fa59929f09b102f7874060 | refs/heads/master | 2021-08-14T07:12:42.726105 | 2017-11-14T23:57:36 | 2017-11-14T23:57:36 | 109,899,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,669 | py | # $Id: plugin_physical_host.py,v 1.6 2012/11/27 00:48:29 phil Exp $
#
# @Copyright@
#
# Rocks(r)
# www.rocksclusters.org
# version 6.2 (SideWinder)
#
# Copyright (c) 2000 - 2014 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and bi... | [
"ppapadopoulos@ucsd.edu"
] | ppapadopoulos@ucsd.edu |
b96249085246a6f8048ee663380edb20dc84e461 | 452b8eed791cb6dfda9505f2b918f5eaa0331319 | /utils.py | 5c2b2aa9296ec954f6692d6af623611b82f4b0bb | [] | no_license | AntLouiz/hello_world_algoritmo_genetico | 83829b9317af04eb00437f8334a3e1ed7e7a218a | f97589976a01fa2235cec59888611476133b06ad | refs/heads/master | 2020-04-02T16:08:57.162778 | 2018-11-01T11:55:48 | 2018-11-01T11:55:48 | 154,600,417 | 0 | 0 | null | 2018-11-01T01:55:46 | 2018-10-25T02:49:15 | Python | UTF-8 | Python | false | false | 1,746 | py | import sys
from random import randint
from settings import (
ALPHABET,
MASTER_SOLUTION,
INITIAL_POPULATION,
MUTATION_PERCENTUAL,
ELITISM_PERCENTUAL
)
from individual import Individual
from operator import attrgetter
def generate_individual(max_length):
gene = ''
for i in range(max_length):... | [
"luizrodrigo46@hotmail.com"
] | luizrodrigo46@hotmail.com |
49dccb091a494ca83b829404e70ab616ba505e1e | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0186_Reverse_Words_in_a_String_II.py | 49b93f015ec8c38a2f2c5e1a22d1a9a0ad88e3d1 | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | class Solution(object):
def reverseWords(self, s):
"""
:type s: List[str]
:rtype: None Do not return anything, modify s in-place instead.
"""
# Approach 2
def reverse(left, right):
while left < right:
s[left], s[right] = s[right], s[left]
... | [
"10962421@qq.com"
] | 10962421@qq.com |
99589cbca2c51918536b06325b561d1c22a1c1e3 | 898c5364cab1d8bf6366de22753509bd021b45f3 | /0x01-python-if_else_loops_functions/9-print_last_digit.py | 4c5c2ceda0b9270a97360e23db8e6dd80b604205 | [] | no_license | jozsa/holbertonschool-higher_level_programming | 98cc071321934f221ad592a066349e0be293c865 | 7920933ecf983c1856930d4d3b707e230b589231 | refs/heads/master | 2020-04-09T10:02:42.163683 | 2019-05-17T02:08:41 | 2019-05-17T02:08:41 | 160,255,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | #!/usr/bin/python3
def print_last_digit(number):
lastdigit = abs(number) % 10
print('{:d}'.format(lastdigit), end="")
return lastdigit
| [
"allisonjoyweiner@gmail.com"
] | allisonjoyweiner@gmail.com |
48361c1f31049cb6f9ce19e96e8b7b5dc555067d | e5654e71ad4f043bb28105c3b6f3cd833e1c52dc | /openai/venv/lib64/python3.10/site-packages/langchain/evaluation/loading.py | 613e261303bbfeeccb63eaa8ec5bd26bfb7b6afb | [] | no_license | henrymendez/garage | 0b795f020a68fe2d349b556fb8567f6b96488ed5 | b7aaa920a52613e3f1f04fa5cd7568ad37302d11 | refs/heads/master | 2023-07-19T20:16:02.792007 | 2023-07-07T16:58:15 | 2023-07-07T16:58:15 | 67,760,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from typing import Dict, List
def load_dataset(uri: str) -> List[Dict]:
from datasets import load_dataset
dataset = load_dataset(f"LangChainDatasets/{uri}")
return [d for d in dataset["train"]]
| [
"henry95@gmail.com"
] | henry95@gmail.com |
230aa57ef7719c1e419ae82bc32e2a40745cc699 | 3fba33f91e1f50077dc2cce663b7de0f70a17a51 | /wlhub/dictionaries/admin.py | 0947f9f15e022cd47245059e1131a9e8bd47397b | [] | no_license | azinit/wlhub | 59be2e9f555fa6655965d13580fd05963dc414b6 | 616761ef39f4cdb82d032f737bf50c66a9e935d1 | refs/heads/master | 2022-12-22T12:26:33.907642 | 2020-09-13T21:45:33 | 2020-09-13T21:45:33 | 295,242,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.contrib import admin
from core.mixins import ListLinksMixin
from dictionaries.models import *
# Register your models here.
@admin.register(Tag)
class TagAdmin(ListLinksMixin, admin.ModelAdmin):
list_display = ('name', 'user')
list_filter = ("user",)
@admin.register(Area)
class AreaAdmin(ListLin... | [
"martis.azin@gmail.com"
] | martis.azin@gmail.com |
c5649af45f50bc8a3a140b862336cbedfbaf2972 | c1ca20766c0f2c36fdecf6a58ecf319191e6ced9 | /flask/bin/pip2 | 01a3d78f5db8a5ef08e289686dca61191dd1756d | [] | no_license | s0rata/microblog | efd9490c44827e4bba33143431987f0f1062eb16 | 35909879f3971f4d1862c0c463644f221f65f15d | refs/heads/master | 2021-01-12T13:28:57.814638 | 2016-10-07T09:46:47 | 2016-10-07T09:46:47 | 69,955,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | #!/home/s0rata/Desktop/microblog/flask/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"="
] | = | |
ede5ce348c523a93a566268ee747898144d0fef6 | 4be2c72579486ad04a00db0349028de96d2dce89 | /scripts/fxpt/fx_refsystem/transform_handle.py | 87a840f75acf62a388796d33fb8ad59c417214c4 | [] | no_license | italic-r/maya-prefs | 6a617d40beee8937186b4699c5cead44e01c2d40 | aa21e5e2938dc2698ce5f555ee74a594e08aed2b | refs/heads/master | 2021-09-09T16:31:00.411349 | 2018-03-18T01:40:10 | 2018-03-18T01:40:10 | 86,961,959 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | from maya import cmds as m
from fxpt.fx_utils.utils_maya import getShape, getParent, parentAPI
# noinspection PyAttributeOutsideInit
class TransformHandle(object):
def __init__(self, transform=None, shape=None):
self.initHandle(transform, shape)
def __str__(self):
return 'transform={}, shape=... | [
"italic.rendezvous@gmail.com"
] | italic.rendezvous@gmail.com |
079e2939bfc267b2aea7bd0c3a7c988a4549c23d | 7708a641f7688ba593e9d503d7aa5507d543fd79 | /dvaapp/models.py | 481a0b00f0ffe8f39ee52a5fa34dcfce8b9b9b89 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | gewenpulan/DeepVideoAnalytics | 8d9f13a7281af9313c60c493c9f26a4cd4833acb | 38a19dedce47261837d8dfc8f6c3f43e4149ec6e | refs/heads/master | 2021-06-22T07:49:31.805741 | 2017-08-16T02:32:00 | 2017-08-16T02:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,260 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.contrib.postgres.fields import ArrayField, JSONField
class VDNServer(models.Model):
"""
A VDN server
"""
url = models.URLField()
name = models.CharField(max_length=200)
... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
03bd72acbee9ebd416f127863815001d43529260 | 03cd08ce32a2c1b3b8f4563d01a5e55b974f2c64 | /57.py | 1166a9b99985e44d26ae86fb512bd0f51268d76e | [] | no_license | joemeens/Pro | 46165be31673a6477fe7c9d2f90e12e75574daca | 19ce75ede8c7694623c26a91cf7cc6c9a94b673b | refs/heads/master | 2020-06-09T01:36:58.438553 | 2019-08-17T14:41:42 | 2019-08-17T14:41:42 | 193,344,489 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | list1,char=map(str,input().split(" "))
count=0
for i in range(0,len(list1)):
if(list1[i]==char):
count=count+1
else:
continue
print(count)
| [
"noreply@github.com"
] | joemeens.noreply@github.com |
68f1edfca6e6c27a77da50e9bed255dc4783861d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /fyyJRDHcTe9REs4Ni_24.py | 3166469c0022b926678616faf843ff7e33b85cf2 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """
Create a function that takes three arguments (first dictionary, second
dictionary, key) in order to:
1. Return the boolean `True` if both dictionaries have the same values for the same keys.
2. If the dictionaries don't match, return the string `"Not the same"`, or the string `"One's empty"` if only one of ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b498b8c9a09c4ad781755f8128413c37b8dd9431 | 124263fe47a7a990e46720ee9720dac23de53412 | /tests/test_transforms.py | 2feb96799180d30cfa718f5ad7b70e40b99c7bf6 | [
"MIT"
] | permissive | mahaling/pytorch-3dunet | 17cae1176a464ffa8a42f6eaee0d7f57b8402941 | 458985ebc766acdc7599f92f54f10becbc4d4b95 | refs/heads/master | 2023-08-03T12:26:07.103875 | 2020-06-24T22:30:57 | 2020-06-24T22:30:57 | 206,171,755 | 0 | 1 | MIT | 2020-04-19T04:31:38 | 2019-09-03T21:02:42 | Jupyter Notebook | UTF-8 | Python | false | false | 8,017 | py | import numpy as np
from augment.transforms import RandomLabelToAffinities, LabelToAffinities, Transformer, Relabel
class TestTransforms:
config = {'dtype': 'long'}
def test_random_label_to_boundary(self):
size = 20
label = _diagonal_label_volume(size)
transform = RandomLabelToAffini... | [
"adrian.wolny@iwr.uni-heidelberg.de"
] | adrian.wolny@iwr.uni-heidelberg.de |
87e3268453ed0e8a2c04a49d0f998820a0e3cb29 | 54df8336b50e8f2d7dbe353f0bc51a2b3489095f | /Django/Django_Old/website5/website5/wsgi.py | 71a8098849cbf50e1e57b301cfdf6990808ae5eb | [] | no_license | SurendraKumarAratikatla/MyLenovolapCodes1 | 42d5bb7a14bfdf8d773ee60719380ee28ff4947a | 12c56200fcfd3e5229bfeec209fd03b5fc35b823 | refs/heads/master | 2023-06-17T15:44:18.312398 | 2021-07-19T10:28:11 | 2021-07-19T10:28:11 | 387,358,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for website5 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_SETT... | [
"suendra.aratikatla1608@gmail.com"
] | suendra.aratikatla1608@gmail.com |
147a3b48b75a173b5696e855ad8c6cbfda149d07 | f8847b16bb44c54b00f40d8d749a5339490c0dd8 | /coderbyte/simple_SAT.py | 8278ecf41238056a0acda1cf9abfd79d45e4f399 | [] | no_license | sanjitroy1992/PythonCodingTraining | 60478829697e6837abf7cfeff4724b38c57328ac | 0706769084d60a397366d41bb87add8d53ba8eb3 | refs/heads/master | 2021-01-02T02:15:10.609349 | 2020-07-09T18:06:41 | 2020-07-09T18:06:41 | 239,450,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | # -*- coding: utf-8 -*-
"""
Have the function SimpleSAT(str) read str
str -letters, parenthesis,logical operators and tilde's
representing a Boolean formula.
For example: str may be "(a&b)|c"
which means (a AND b) OR c. Your program should output the string yes if
there is some arrangement of replacing the letters wit... | [
"sanjit.roy@finastra.com"
] | sanjit.roy@finastra.com |
ad914d6fcb5ac7e21fc1a70369a62bc31ce69837 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-media/azure/mgmt/media/models/track_property_condition_py3.py | a7ec9f92c376b6ac870a2c6bebc270ff05c04d02 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,670 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
41f3d213d8de197a868a6befcdca1ec937d23fdb | 37c38b97d0a4b8098ec3c35b7122afb1fbb9eac9 | /base/给定深度求二叉树数量.py | cabac049b56bb4b6ceeb1e5de89412a342b2764c | [] | no_license | lionheartStark/sword_towards_offer | 8c2f9015a427317375d53eee982d630ffd4fa9c0 | cb3587242195bb3f2626231af2da13b90945a4d5 | refs/heads/master | 2022-12-02T20:50:18.789828 | 2020-08-23T02:00:48 | 2020-08-23T02:00:48 | 266,257,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from collections import Counter
import math
P = 10 ** 9 + 7
def C(m, n):
p = P
def power(x, y): # 求x的y次方
p = P
res = 1
while y:
if y % 2 != 0:
res *= (x % p)
y >>= 1
x *= (x % p)
return res
a = (math.factorial(n)) % p
... | [
"1003146780@qq.com"
] | 1003146780@qq.com |
ba80376f1b882c269d2097ecb7dce7da36317c2c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_tinnier.py | 06b2a756d6b4099f9dfb2b0cf5636845c39e2b0c | [
"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 | 233 | py |
from xai.brain.wordbase.nouns._tinny import _TINNY
#calss header
class _TINNIER(_TINNY, ):
def __init__(self,):
_TINNY.__init__(self)
self.name = "TINNIER"
self.specie = 'nouns'
self.basic = "tinny"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
194fd36566ce74d289ab2ce8a0bb14294384e04e | 03f0a82e829a5711a9165d8f7d3762ca0c1ceaea | /ahgl/apps/tournaments/migrations/0021_initialize_tournament_round_membership.py | 6a1e96321957a7922d485f0855b86f2d3c017d41 | [
"BSD-2-Clause"
] | permissive | day9tv/ahgl | 4d273a39e06334cc15eb12031de0a806366396b9 | 5e06cfecb28c153c1b83ef89112fc217897131cb | refs/heads/master | 2021-01-22T08:32:53.663312 | 2012-10-06T21:32:52 | 2012-10-06T21:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,962 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
for round_membership in orm.TeamRoundMembership.objects.all():
... | [
"me@ntucker.me"
] | me@ntucker.me |
1127eed5abea467501f705f921ff3f1cd05dc740 | 221cada2354556fbb969f25ddd3079542904ef5d | /AlgoExpert/caesar_cipher.py | 7314c35c71a6238f3506492b33946b5d8e01b0a4 | [] | 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 | 256 | py | # T: O(n)
# S: O(n)
def caesarCipherEncryptor(string, key):
result = ''
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for c in string.lower():
idx = (alphabet.index(c) + key) % len(alphabet)
result += alphabet[idx]
return result | [
"syzuser60@gmail.com"
] | syzuser60@gmail.com |
8e1c8bb1a77f985bf829a63e10e9fd3014230d98 | a743e734ce6d9d4c83e867e4dec0734f7fd7ce4a | /langid.py | 6b6113185b480f87c255fd8cef3b84f7772eacda | [] | no_license | vchahun/langid.py | 2a33670efe4879a9e87572a5b03987971db0ef4c | b6114ca3dd137b1f7b3ad0df5c6678830c30924c | refs/heads/master | 2021-01-17T22:41:37.317396 | 2012-05-22T02:21:49 | 2012-05-22T02:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714,171 | py | #!/usr/bin/env python
"""
langid.py -
Language Identifier by Marco Lui April 2011
Based on research by Marco Lui and Tim Baldwin.
Copyright 2011 Marco Lui <saffsd@gmail.com>. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the followi... | [
"saffsd@gmail.com"
] | saffsd@gmail.com |
45bd0cf8a38d5185666ede2b1762a07c0d96aa9b | 373164ead784f5fc57a02455482735e855377204 | /qmsgsent.py | 71458753597b25bf7c81bfc53cc28cfe2693211a | [
"MulanPSL-2.0",
"LicenseRef-scancode-mulanpsl-2.0-en",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Zichen3317/demo21-epicfree-game | 1f9207c15953553a01a7ffb42706d7fc5f12a6de | 693a2fca4a8dd51f207a57362f1d0b35432be210 | refs/heads/master | 2023-05-11T12:02:04.091009 | 2021-05-30T00:45:46 | 2021-05-30T00:45:46 | 372,104,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # author: Zichen
# date: 2021-02-02
#vision: 1.0
# instruction: 利用Qmsg酱发送信息模块
from requests import post as requests_post
import traceback
def sent(qmsgkey, content):
'''
用于向qmsg酱发送请求及内容的函数
参数:
qmsgkey
content 需要发送的内容
'''
headers = {'Content-Type': 'application/json;charse... | [
"noreply@gitee.com"
] | noreply@gitee.com |
2602b369ea11dc23020db003908b2ca130f25a69 | 7e2456fb2ee301001d0629c5f74029e1a893c0f0 | /tests/treas_test.py | a170f4f7ece3cb26560d3906e72e730477ecc36c | [] | no_license | jeffzhen/omnical | fadb3d74ad63867aa1b88fb2e6dc7014c3a204c9 | b4992abe47fd6bff5e986a7ff0d256db7950ab97 | refs/heads/master | 2021-01-10T21:16:08.402219 | 2015-10-21T23:08:30 | 2015-10-21T23:08:30 | 17,956,510 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,174 | py | import unittest, omnical._omnical as _O
import random
import numpy as np
import aipy as ap
import numpy.linalg as la
import commands, os, time, math, ephem, shutil
import omnical.calibration_omni as omni
print "#Omnical Version %s#"%omni.__version__
class TestTreasure(unittest.TestCase):
def test_IO(self):
... | [
"aparsons@berkeley.edu"
] | aparsons@berkeley.edu |
920f0834e73142bb19627d7cb8aa74d517203a12 | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/test/test_v1alpha1_pod_preset_spec.py | 54db62a6646863731326a52f1a4ab6519db6955a | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
51405a757ba01dc25514937ffb9460c04d92a353 | 27aaadf435779c29012233cb1dacf27bd9dd0d0f | /alidns-20150109/setup.py | 433f3e870e0211b401005f0ba2d17d3b80f746d2 | [
"Apache-2.0"
] | permissive | aliyun/alibabacloud-python-sdk | afadedb09db5ba6c2bc6b046732b2a6dc215f004 | e02f34e07a7f05e898a492c212598a348d903739 | refs/heads/master | 2023-08-22T20:26:44.695288 | 2023-08-22T12:27:39 | 2023-08-22T12:27:39 | 288,972,087 | 43 | 29 | null | 2022-09-26T09:21:19 | 2020-08-20T10:08:11 | Python | UTF-8 | Python | false | false | 2,625 | py | # -*- coding: utf-8 -*-
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
38424c4c68154bcfa531e1bf020ea64bfa960dc9 | fad2db76dd2dad82cfd128e907b4610f3e23f200 | /space_manager/cabinets/migrations/0018_cabinetaction_kr_substance.py | 784bf897a1a8fb5407be69b844685d25907577a5 | [
"MIT"
] | permissive | yoojat/Space-Manager | dff3d7a07bdad3d24867f7434a2813f315760ad4 | dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9 | refs/heads/master | 2018-10-17T00:04:21.934659 | 2018-08-27T07:51:09 | 2018-08-27T07:51:09 | 116,260,646 | 1 | 1 | MIT | 2018-02-27T15:22:06 | 2018-01-04T13:02:26 | Python | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-08-06 11:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cabinets', '0017_auto_20180803_1813'),
]
operations = [
migrations.AddField... | [
"yooja.ty@gmail.com"
] | yooja.ty@gmail.com |
5d51cf32a6ebfccb6415428a96f56bbd93638e96 | 1dbbb05b30d27c6419b9f34eea3b9a47f92582a0 | /projects/safety_bench/unit_tests/generate_offensive_language_test.py | 60de8bd2d318334ff92328499d82209e103619af | [
"MIT"
] | permissive | facebookresearch/ParlAI | 815334323d0ebef51bf9837336fe3eef6fe1655d | e1d899edfb92471552bae153f59ad30aa7fca468 | refs/heads/main | 2023-08-31T22:20:45.918129 | 2023-08-14T19:39:56 | 2023-08-14T19:39:56 | 89,266,735 | 10,943 | 2,395 | MIT | 2023-09-13T23:07:40 | 2017-04-24T17:10:44 | Python | UTF-8 | Python | false | false | 6,036 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Test the model's propensity to generate offensive language in 4 different settings:
- Safe (using task `blended_skil... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
e5b832977ab564fa9b4af1d97ebc473119e95e6c | 656def2ca5c0bd959b31b98cdbc53fea3420b2dc | /Python3.7-VideoComposition/src/tencentcloud/soe/v20180724/errorcodes.py | f085c1729ea8fee23f37437b3fa2341a0c2ee367 | [] | no_license | tencentyun/serverless-demo | 120271b96f8f960b6125c9d1481a5d8fe56165ae | 4c324bb186c460fe78252f0ca5c28132a8bce6c9 | refs/heads/master | 2023-08-25T17:07:04.959745 | 2023-08-25T08:10:49 | 2023-08-25T08:10:49 | 281,120,881 | 94 | 119 | null | 2023-08-31T06:34:36 | 2020-07-20T13:15:46 | null | UTF-8 | Python | false | false | 14,439 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | [
"colorguitar@hotmail.com"
] | colorguitar@hotmail.com |
0a28f1d6c0cce3227f2d48ac8029b02b8d9d5e85 | 8bb3bcf914860c20fb4a7163a8e0691cd802dd65 | /src/vsc/model/expr_array_subscript_model.py | cc61bb41f598a5a4dd91dc48dff89a77d0d6af59 | [
"Apache-2.0"
] | permissive | nitinm694/pyvsc | 8586cc2497f336289fecbfeb9e6dd788f4070b60 | 612de9e6244c685a3df1972e4860abfe35b614e1 | refs/heads/master | 2023-07-28T01:49:10.917496 | 2021-09-12T19:06:00 | 2021-09-12T19:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | '''
Created on May 16, 2020
@author: ballance
'''
from vsc.model.expr_model import ExprModel
from vsc.model.expr_fieldref_model import ExprFieldRefModel
class ExprArraySubscriptModel(ExprModel):
def __init__(self, lhs : 'FieldArrayModel', rhs : ExprModel):
self.lhs = lhs
self.rhs = rhs
... | [
"matt.ballance@gmail.com"
] | matt.ballance@gmail.com |
fec751c1397c62db21d0cd46542d6f8ccc6e5c65 | 4749d3cf395522d90cb74d1842087d2f5671fa87 | /alice/LC737.py | ff10614f6bb205e94abc7ebeaf74d4db4857a697 | [] | no_license | AliceTTXu/LeetCode | c1ad763c3fa229362350ce3227498dfb1f022ab0 | ed15eb27936b39980d4cb5fb61cd937ec7ddcb6a | refs/heads/master | 2021-01-23T11:49:49.903285 | 2018-08-03T06:00:16 | 2018-08-03T06:00:16 | 33,470,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import collections
class Solution(object):
def areSentencesSimilarTwo(self, words1, words2, pairs):
"""
:type words1: List[str]
:type words2: List[str]
:type pairs: List[List[str]]
:rtype: bool
"""
if len(words1) != len(words2):
return Fa... | [
"aliceadelice@gmail.com"
] | aliceadelice@gmail.com |
2506f0d9c026c560730b67c0d7ff235c9c08d206 | ec7591c3f478c43e76257aaa500d8f6a2e763d74 | /stanza/tests/common/test_foundation_cache.py | 0716a62eb32637c91bb18dd1f41efc01f1791a48 | [
"Apache-2.0"
] | permissive | stanfordnlp/stanza | 5cc3dbe70a96dd565639b7dae1efde6b4fa76985 | c530c9af647d521262b56b717bcc38b0cfc5f1b8 | refs/heads/main | 2023-09-01T12:01:38.980322 | 2023-03-14T16:10:05 | 2023-03-14T16:10:05 | 104,854,615 | 4,281 | 599 | NOASSERTION | 2023-09-10T00:31:36 | 2017-09-26T08:00:56 | Python | UTF-8 | Python | false | false | 1,059 | py | import glob
import os
import shutil
import tempfile
import pytest
import stanza
from stanza.models.common.foundation_cache import FoundationCache, load_charlm
from stanza.tests import TEST_MODELS_DIR
pytestmark = [pytest.mark.travis, pytest.mark.pipeline]
def test_charlm_cache():
models_path = os.path.join(TEST... | [
"horatio@gmail.com"
] | horatio@gmail.com |
7b1c0108d48c48935ca057d5d9e60cc64cceca99 | 2aa9432798d681a9a21535397bf3414d04bf014e | /Package2/TC_PaymentReturnsTest.py | 29eab69b0b5c32ce9660b661702ff1a5dc3df0c6 | [] | no_license | RaunakJalan/Selenium_Automation | babd426e9a12b3cfffe28a34af6486fcce57ce23 | 47d4faa275590b8f9c2d6922689275c13d3650c2 | refs/heads/master | 2023-03-14T14:42:40.308146 | 2021-03-09T16:29:16 | 2021-03-09T16:29:16 | 346,070,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import unittest
class PaymentReturnsTest(unittest.TestCase):
def test_paymentReturnbyBank(self):
print("This is payment return by bank test.")
self.assertTrue(True)
if __name__ == "__main__":
unittest.main()
| [
"ronakjalan98@gmail.com"
] | ronakjalan98@gmail.com |
64f0eba11b69033054781ebc752bc73c9b3df2c7 | bd0e2c3a1a555d3a3dfa5a1a6dfba5762d20ed9a | /BGWpy/external/xmltodict.py | 5d8d5989a5b37ff476242fb35b79844fb1316f5e | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BerkeleyGW/BGWpy | 337fdcd6742581d63b0efe7d6e277ec94c654a60 | 8c649626dffeb233b704b7b0e36950e318e2e4cd | refs/heads/master | 2022-02-05T23:23:09.072019 | 2022-01-08T16:22:12 | 2022-01-08T16:22:12 | 46,090,259 | 30 | 16 | NOASSERTION | 2021-11-17T02:12:27 | 2015-11-13T00:47:08 | Python | UTF-8 | Python | false | false | 13,686 | py | #!/usr/bin/env python
"Makes working with XML feel like you are working with JSON"
# Note (Gabriel Antonius)
# As I gratefully copy this file into my own module,
# I reproduce the MIT license hereafter.
"""
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge,... | [
"gabriel.antonius@gmail.com"
] | gabriel.antonius@gmail.com |
851e343236fcbdd7f44656f080b1b93fe3ef3605 | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/backup_instance_operations/resume_backups.py | 77d94c0e944e5b57ac70c66a4417c698841d6539 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 1,625 | 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"
] | rdomenzain.noreply@github.com |
afe8a18c571199fd1780bafd986503825bd29d7a | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/initial_28307.py | 0582f2480f2270b8a93822f63734d612f94f1bf3 | [] | 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 | 12,960 | 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 |
0031edfd68aaa9ff6c446eb3f2c7ca612fc31273 | a903fc8f24e4867a85dc85405421137360e360a1 | /PythonFiles/venv/Lib/site-packages/google/protobuf/empty_pb2.py | 65af2f0dafd2c2e5cac8aacd9c4243f628200bf6 | [] | no_license | CiBit2G/CiBit | 8c486d2aad672a0ec5aec57a0717418f08e3a8e0 | cedd24bccb31346ae2831655953e2ef6f9c5afa6 | refs/heads/Develop | 2023-08-10T10:51:56.447517 | 2021-01-08T22:08:33 | 2021-01-08T22:08:33 | 261,506,824 | 0 | 1 | null | 2023-07-23T15:08:58 | 2020-05-05T15:14:35 | Python | UTF-8 | Python | false | true | 1,853 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/empty.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_... | [
"45850800+guybos@users.noreply.github.com"
] | 45850800+guybos@users.noreply.github.com |
7bfca6be76ece9e5856372d1f6dd3f4a2365041a | 993f18c21402d7a4ff21ddb7ff2ec6c80e466f20 | /onnx/reference/ops/op_rnn.py | 7b4e7bee98b8137c8317e850eb7461b161e56f64 | [
"Apache-2.0"
] | permissive | onnx/onnx | 10d3916803c7babff89ec0fa9045127bcccad376 | 8a475b34cb3875df311a46f57571646498f5bda7 | refs/heads/main | 2023-08-18T18:50:03.388353 | 2023-08-16T22:18:46 | 2023-08-16T22:18:46 | 102,692,863 | 16,164 | 4,150 | Apache-2.0 | 2023-09-14T17:10:38 | 2017-09-07T04:53:45 | Python | UTF-8 | Python | false | false | 4,972 | py | # Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=R0913,R0914,W0221,W0613
import numpy as np
from onnx.reference.op_run import OpRun
class CommonRNN(OpRun):
def __init__(self, onnx_node, run_params): # type: ignore
OpRun.__init__(self, onnx_node, run_par... | [
"noreply@github.com"
] | onnx.noreply@github.com |
10307bb15711fd8b79dd45b49797dbad958413d1 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/blsmic004/question4.py | 71ab4ab7d932bf5d278d61266de70a716f569693 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # Find palindromic primes between given values
# Michele Balestra BLSMIC004
# 23 March 2014
N = eval(input("Enter the starting point N:\n"))
M = eval(input("Enter the ending point M:\n"))
print("The palindromic primes are:")
for i in range(N+1,M):
strI = str(i)
if i==2:
print(i)
elif i... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
a29d3e7de9b847c9928e92986e748f06fa3419d8 | f33192647643bf11f13936866d80d573189bd72f | /Easy/Kids With the Greatest Number of Candies.py | f499a7528ba409bd0f7b31b60b726b5016c81386 | [] | no_license | komalupatil/Leetcode_Solutions | d8a10bd8ea341dc51dbcdacfd1f2b9a4bb65032d | 62d20010ebdb91c15ecbcf5fb38e308511f26499 | refs/heads/master | 2022-05-19T00:13:31.540076 | 2022-04-23T01:45:11 | 2022-04-23T01:45:11 | 194,587,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | #Leetcode 1431. Kids With the Greatest Number of Candies
class Solution:
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
maxCandy = max(candies)
result = []
for i in range(len(candies)):
if candies[i] == maxCandy or candies[i]+ extraCandies >= max... | [
"ku.patil31@gmail.com"
] | ku.patil31@gmail.com |
45f46ed66d7154c90c87712a64c1ac8d6e923aa3 | aa0270b351402e421631ebc8b51e528448302fab | /sdk/databox/azure-mgmt-databox/azure/mgmt/databox/v2021_12_01/operations/_operations.py | 502f0faa6cfebf14fef2aa7238b3bc1804394cec | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 6,717 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
d99e70cf63ab0cd31386b32105d62353563e8104 | 7e099db730027a332cef52c4e539a1c3a39584d7 | /shell.py | 79226bed2f104aac2d8f90a5d23985b81099cf9f | [] | no_license | haricm/hasweb | 688108d01950822c9f3813a9a926c11e17529827 | 48e92c46855e4fa14f35090ae1e1c9ceffa5d75f | refs/heads/static | 2020-12-28T06:58:31.525138 | 2016-06-22T21:41:54 | 2016-06-22T21:41:54 | 51,294,404 | 0 | 0 | null | 2016-02-08T11:36:39 | 2016-02-08T11:36:38 | null | UTF-8 | Python | false | false | 181 | py | #! /usr/bin/env python
#! -*- coding: utf-8 -*-
import os
import readline
from pprint import pprint
from flask import *
from hasweb import *
os.environ['PYTHONINSPECT'] = 'True'
| [
"kiran@hasgeek.com"
] | kiran@hasgeek.com |
0f80ceed0a9b7196db673950e939e754400fa998 | 7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f | /proj1/tests/other-tests/strictfp_tests/error/test_for_else_continue.py | b31c955db56843adb3d1a5c3bfa2c2f5a31bb97d | [] | no_license | czchen1/cs164-projects | 0d330efef85421e611a436b165428ba0ddfb3512 | a04cafbcaafd32e518227dacf89a6d7837bf9f57 | refs/heads/master | 2020-03-27T04:03:31.727524 | 2018-08-23T21:43:46 | 2018-08-23T21:43:46 | 145,909,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | for _ in ():
pass
else:
continue
| [
"czchen@mit.edu"
] | czchen@mit.edu |
10dc94fce77ff1027f55411a178940bdfd04d4a5 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/Lib/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py | 9dc8c9f099abf16d3e2caf20047680e160b01130 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,485 | py | # 2017.08.29 21:58:49 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/lib-scriptpackages/Explorer/Netscape_Suite.py
"""Suite Netscape Suite: Events defined by Netscape
Level 1, version 1
Generated from /Applications/Internet Explorer.app
AETE/AEUT resource version 1/0, language 0, script 0... | [
"info@webium.sk"
] | info@webium.sk |
d9c62814e709deaedc82713d90955bb4505d05c9 | 5759c0ed3219c06437ce5b39ef9ad92b5e191fed | /py/0814_binary_tree_pruning.py | 58027f3dc60a087ead471c4791aa442c2fa71a8e | [] | no_license | mengnan1994/Surrender-to-Reality | ba69df7c36112ad19f19157a9f368eae6340630f | 66232728ce49149188f863271ec2c57e426abb43 | refs/heads/master | 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | """
We are given the head node root of a binary tree, where additionally every node's value is either a 0 or a 1.
Return the same tree where every subtree (of the given tree) not containing a 1 has been removed.
(Recall that the subtree of a node X is X, plus every node that is a descendant of X.)
Example 1:
Input: [1... | [
"hurricane.cui@gmail.com"
] | hurricane.cui@gmail.com |
b8d25789b012978f89d53ff49aaf89fe33ba5b8e | 17acb8e20f9a24b16ce3651302fc2d7fc7b887a6 | /src/programy/storage/stores/nosql/mongo/store/users.py | 02d5a2bccdd7221a3337439e37f79782513550ca | [
"MIT"
] | permissive | cen-ai/program-y | 91052fdc11aec0f60311e3429895fac489d8ce54 | a753667638147544c54dbebd9f1c8f9ae7f2159e | refs/heads/master | 2020-03-22T15:11:07.896885 | 2018-10-15T22:13:58 | 2018-10-15T22:13:58 | 140,234,173 | 5 | 5 | NOASSERTION | 2019-01-03T09:09:07 | 2018-07-09T05:11:08 | Python | UTF-8 | Python | false | false | 2,230 | py | """
Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, m... | [
"edguy@eguy.org"
] | edguy@eguy.org |
9c742413d38b0aaf50f7200c1696142e316f6e85 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_scrimps.py | 64415eec48625a7a2cc7517d1e7bb4590bc19881 | [
"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 |
from xai.brain.wordbase.verbs._scrimp import _SCRIMP
#calss header
class _SCRIMPS(_SCRIMP, ):
def __init__(self,):
_SCRIMP.__init__(self)
self.name = "SCRIMPS"
self.specie = 'verbs'
self.basic = "scrimp"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5a44fb3ce092fff1fc046dcecfc1d3f3eec40fcd | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/core/ext-py/Mako-0.3.3/mako/pygen.py | aada94d23e3be74ab01a823a6bece33ad1e46ed2 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 9,774 | py | # pygen.py
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""utilities for generating and formatting literal Python code."""
import re, string
from StringIO ... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
eac6a2b1d70e266e04d31db1b3283e1f1ae7aaae | bebc317eebad1e0f136c2d959e5b9882e123d366 | /game/mario/src/data/level.py | 45618b67ab8331a23000646413fe4780b9d3a293 | [
"Apache-2.0"
] | permissive | GuillaumeFalourd/formulas-games | 62ac5b87e6868db29de022e52fd56993ec9c3c46 | 7530ef09cc85f30157e62b8761868c2a0eddb93d | refs/heads/main | 2023-07-14T04:33:11.666127 | 2021-08-29T23:21:16 | 2021-08-29T23:21:16 | 369,598,803 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | from .sprites import level_1
from .basetypes import Vector2, Rectangle
from . import config as c
from .components.tiles import Question, Brick, Collider_Rect, Flagpole
from .components.items import *
from .components.enemies import *
#Colliders that don't possess velocity
static_colliders = []
#Colliders that possess... | [
"guillaume.falourd@zup.com.br"
] | guillaume.falourd@zup.com.br |
3ebadc10fd17025f0d68ab97ada972030f456f03 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2403/60592/233469.py | 9761f234d7673441623d7aa29b2be6f823ffb15b | [] | 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 | 260 | py | candies = int(input())
num_people = int(input())
i = 0
res = [0]*num_people
while(candies>0):
if candies>=i+1:
candies-=i+1
res[i%num_people] += i+1;
else:
res[i%num_people] += candies
candies = 0;
i = i+1
print(res) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c356b33c79658d26e2ebe9e93c3a76b76ff1259b | fbcb22a83a6e74ef68a06b3e3aa92f6a5b59beed | /iconfluence/interactive/interactive_checker.py | e30aa702c6a55ebb25f4c2da816426cb942821ae | [] | no_license | mwhittaker/enforced_invariant_confluence | f296b38152bf3e9282c5529069f141ea2cc028a6 | 1275d7330b2e2e1a091272dab458c3ac6ca655f6 | refs/heads/master | 2022-11-30T05:03:27.974549 | 2020-08-16T23:58:42 | 2020-08-16T23:58:42 | 71,737,634 | 5 | 0 | null | 2022-11-22T01:49:13 | 2016-10-24T00:13:33 | Python | UTF-8 | Python | false | false | 15,040 | py | from enum import Enum
from textwrap import wrap
from typing import List, Optional, Tuple
from colored import attr, fg
from orderedset import OrderedSet
import z3
from ..ast import (EVar, EBool, EBoolAnd, EBoolNot, Expr, Invariant,
typed_coerce)
from ..checker import Checker, Decision
from ..envs im... | [
"mjwhittaker@berkeley.edu"
] | mjwhittaker@berkeley.edu |
2f3a2709a16c0bcb0d3ed029c939daadb80c6b60 | 22a16f2fc3f2ddf92a620751530c2046ba2e9f1f | /api/dynamic_tests_v2/activation.py | 020b0bb91b00720d239a6152f8749c5e7cdbb632 | [] | no_license | ForFishes/benchmark | 8ebb8e13f44b2f3a350fe4325b03f7e5cab42065 | 56e070628ad67178cdfc67b47759020ff408300a | refs/heads/master | 2023-02-23T03:45:50.320413 | 2021-01-21T05:15:05 | 2021-01-21T05:15:05 | 331,538,261 | 0 | 2 | null | 2021-01-21T06:39:15 | 2021-01-21T06:39:14 | null | UTF-8 | Python | false | false | 1,913 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | ForFishes.noreply@github.com |
188d1f6fc00b5a13136bb562cf24311d89cc6901 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/d54f298dde914c7e9a732cbec50a20e1.py | 970f6d38930e8da150af549feb941eddf63bb6a5 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 342 | py | class DNA:
def __init__(self, seq = None):
self.sequence = seq
# I guess this is inefficient as it declares the mapping every time a new object is created?
self.DNA_to_RNA = {
'A': 'U',
'G': 'C',
'C': 'G',
'T': 'A'
}
def to_rna(self):
return ''.join(self.DNA_to_RNA[c] fo... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7f5c4e335dc2e63a6a9669b6e0f19872d9eb1f52 | 37d2eef4d6e58662b5a7af3eaf69726655cc0cf7 | /ryu/app/ofctl_rest.py | 9fbce30db029043cee58e91c40a5564e2c9225c4 | [
"Apache-2.0"
] | permissive | horms/ryu | 87904170c4a5d59a74ba65880d21e42c6612e983 | 8728c11e1280b9c6bd4b7a68c5d2fbe4ec5f2ad3 | refs/heads/master | 2023-08-09T10:30:25.056712 | 2014-03-10T02:44:21 | 2014-03-16T13:09:12 | 16,093,033 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,514 | py | # Copyright (C) 2012 Nippon Telegraph and Telephone 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 appli... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
d5ad7a7cac14d5c97e9330e9f6ba0ea20956718b | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/brnann016/question3.py | 75ec0cc3ee04626a026462b0fc5770c9ab077a6a | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # Assignment 8-question3
#Annika Brundyn
#encrypt function
def encrypt(message):
if len(message) == 1:
if message.islower():
if message == 'z':
return 'a'
else:
return chr(ord(message) + 1)
else:
return message
else:
re... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
c05e933761f1a14bf307d77aeb5a24ae19f63d46 | 6123df2ee8648c7977c99564197f7834c7ea83a1 | /DataPreprocessing/排序算法/快速排序方法1.py | bbf8cdc0da6f5ccb2a18ba2805a1233b0aad786c | [] | no_license | JiaqiuWang/DataStatusPrediction | 2b66a24f992df64d93506f54e041d93282213c6e | 9eb3eff99f0f804857f3a1d70227f75c91a8258d | refs/heads/master | 2020-05-21T21:34:28.571549 | 2017-08-17T08:44:12 | 2017-08-17T08:44:12 | 84,649,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py |
# Method1
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pivot = arr[0] # 将第一个值作为基准
print("pivot:", pivot)
for i in arr:
if i < pivot:
less.append(i)
elif i > pivot:
... | [
"wangjiaqiu186@icloud.com"
] | wangjiaqiu186@icloud.com |
b546707ae6eb6405b3eefd2b37bb4147f39847f4 | fe3bc38d2a9f80a6b258e2c61dbe4557323a1d71 | /custom/ewsghana/south_migrations/0001_initial.py | 2a5bab415d8f95907823c7712377fcd7c3ce648e | [] | no_license | ekush/commcare-hq | 077eb3f525ffb7d1acca0848b9c7678baf776832 | 97a1f55f24f79224724b2ecdc7d5cea87d42f65b | refs/heads/master | 2021-01-17T22:25:09.734898 | 2015-08-25T23:07:49 | 2015-08-25T23:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,976 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'FacilityInCharge'
db.create_table(u'ewsghana_facilityinch... | [
"kkrampa@soldevelo.com"
] | kkrampa@soldevelo.com |
0e5519be5f6c9f0162340f3b13fe27ca4e7ef96e | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/_container_service_client.py | 40fe62dd9a76da362a1f9a68e6ab090b8e1aa17f | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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 | 6,786 | 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 |
16f82b3f6d262e8dc868a376d1488222401592a2 | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0053_Maximum_Subarray.py | be2bb3203c47327d5a0a3576ae0dfaf79ab007fe | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | class Solution(object):
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# Approach 2
for i in range(1, len(nums)):
if nums[i-1] > 0:
nums[i] = nums[i] + nums[i-1]
return max(nums)
# Approach 1
... | [
"10962421@qq.com"
] | 10962421@qq.com |
9b0e7bd06dbe8d684b607ce114803e57257e16aa | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/bradfitz-contributing/allPythonContent.py | 1b14ed542e15bd56f253645b9af4c72b62bedfa6 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448,477 | py | __FILENAME__ = consumer
#!/usr/bin/python
#
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
2a3cb3835f9c19bc32575a438d0a76d34366cd63 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /095_os_and_sys/_exercises/templates/Programming_Python/04_File and Directory Tools/04_002_Ensuring file closure Exception handlers and context managers.py | 1f41b027f691c845469a9997d5f06857f17bb216 | [] | 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 | 609 | py | # myfile = open(filename, 'w')
# ___
# ...process myfile...
# finally:
# myfile.close()
#
# with open(filename, 'w') as myfile:
# ...process myfile, auto-closed on statement exit...
#
# myfile = open(filename, 'w') # traditional form
# ...process myfile...
# myfile.close()
# with open(filename) as myfile: #... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3688f07341087091eea0c443b07b0e57449140dd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02699/s068976853.py | b2a893ced4293b4b0b5cd753623e0bc052df3729 | [] | 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 | 233 | py | import math
def fact(n):
ans = 1
for i in range(2, n+1):
ans*= i
return ans
def comb(n, c):
return fact(n)//(fact(n-c)*c)
s,w = map(int, input().split())
if(s >w):
print('safe')
else:
print('unsafe')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7588f5b215b1669a718d62698603a3e391129fd8 | 925767da3d33266364f4af5ea5ac161245c598ad | /deshi/deshi/settings.py | 8ce101a6eb8b87962b35c3d1f54201f270f08ed8 | [] | no_license | NicholasPiano/karate-master | facce4100ac92c0f39f1328ee2838126c153538d | 137ebbd1f274dd79a367f9bbab3651ea365fce83 | refs/heads/master | 2016-09-05T11:24:34.843555 | 2014-08-23T19:24:09 | 2014-08-23T19:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | """
Django settings for deshi project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
f8c73640ebe25fa7c4573ab066b1ab063467fe7c | 248c535f3612c646bccadecafdca649fd788bb1f | /.history/app/models_20210927050245.py | ca7953fdc6715ad70a6fdf536c24ba6ca96e517f | [
"MIT"
] | permissive | GraceOswal/pitch-perfect | 3b923e4de5fff1a405dcb54374a1ba0522232025 | d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b | refs/heads/master | 2023-08-16T01:42:18.742154 | 2021-10-01T06:59:11 | 2021-10-01T06:59:11 | 410,224,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from . import db
# connect class user to pitchperfect database
class User(db.Model):
__table__ = '' | [
"graceoswal88@gmail.com"
] | graceoswal88@gmail.com |
38271f663558957f927383295f723ae4eee88114 | 74be814f7cd10d3c91a53460bd6698aa8bc95704 | /剑指offer/面试题28. 对称的二叉树.py | 11a5e592f54dc79fb7ac584d9dd760cf25be2339 | [] | no_license | weiyuyan/LeetCode | 7202f7422bc3bef6bd35ea299550b51905401656 | 19db0e78826d3e3d27d2574abd9d461eb41458d1 | refs/heads/master | 2020-12-03T17:10:53.738507 | 2020-05-27T08:28:36 | 2020-05-27T08:28:36 | 231,402,839 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:ShidongDu time:2020/2/17
'''
请实现一个函数,用来判断一棵二叉树是不是对称的。如果一棵二叉树和它的镜像一样,那么它是对称的。
例如,二叉树 [1,2,2,3,4,4,3] 是对称的。
1
/ \
2 2
/ \ / \
3 4 4 3
但是下面这个 [1,2,2,null,3,null,3] 则不是镜像对称的:
1
/ \
2 2
\ \
3 3
示例 1:
输入:root = [1,2,2,3,4,4,3]
... | [
"244128764@qq.com"
] | 244128764@qq.com |
8baeb5e0f4856447b4b776a2cfd340d842904525 | 350db570521d3fc43f07df645addb9d6e648c17e | /0191_Number_of_1_Bits/solution_test.py | c90810e481c8eb1413275fac582e235cd1db37c7 | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py |
'''
191. Number of 1 Bits
Level: Easy
https://leetcode.com/problems/number-of-1-bits
'''
import unittest
class TestSum(unittest.TestCase):
def test_sum(self):
self.assertEqual(sum([1, 2, 3]), 6, "Should be 6")
def test_sum_tuple(self):
self.assertEqual(sum((1, 2, 2)), 6, "Should be 6")
if... | [
"bhuang@rms.com"
] | bhuang@rms.com |
85bf6770328eb00c91e0cc62a4016f0dc533d828 | a6982e37fdc5359fa89b9f0587f75ff4889a849d | /venv/Lib/site-packages/pandas/tests/series/indexing/test_loc.py | 088406e0a1db670b2a260bce1a69e073370b2a34 | [
"Apache-2.0"
] | permissive | 1pani/fund-rank-dashboard | 5d7ca6107013d5f82e7c54b3199d5506f34175c3 | 95c17bbee6e09ae4eb5738c519d3b6c651e8257c | refs/heads/master | 2022-12-21T19:36:05.446703 | 2019-10-19T09:45:30 | 2019-10-19T09:45:30 | 137,461,621 | 4 | 1 | Apache-2.0 | 2022-12-15T09:19:53 | 2018-06-15T08:26:46 | Python | UTF-8 | Python | false | false | 4,078 | py | # coding=utf-8
# pylint: disable-msg=E1101,W0612
import pytest
import numpy as np
import pandas as pd
from pandas import (Series, Timestamp)
from pandas.compat import lrange
from pandas.util.testing import (assert_series_equal)
def test_loc_getitem(test_data):
inds = test_data.series.index[[3, 4, 7]]
asse... | [
"abhilashpani651@gmail.com"
] | abhilashpani651@gmail.com |
5254c10860b55877dc9906e14f80581bf5a37ac8 | 3dedcaa542529534b53f0612458b3b5dcaaa8d49 | /icevision/models/mmdet/common/mask/two_stage/__init__.py | 939fe5d03f1b56bfade4f752f82d41414d35a7a5 | [
"Apache-2.0"
] | permissive | jerbly/icevision | 20801e7acb6ef7dd8efe58ac9a398967689cbc9c | f97edd52c152f438d02bcce8a2e40b90dc304d01 | refs/heads/master | 2023-04-01T08:16:28.088970 | 2021-04-13T12:15:40 | 2021-04-13T12:15:40 | 314,865,574 | 0 | 1 | Apache-2.0 | 2023-03-29T15:45:46 | 2020-11-21T17:25:37 | Python | UTF-8 | Python | false | false | 114 | py | from icevision.models.mmdet.common.mask import *
from icevision.models.mmdet.common.mask.two_stage.model import *
| [
"lucasgouvaz@gmail.com"
] | lucasgouvaz@gmail.com |
31406d7aa715df53849ac4f2affbec4743320fcb | 04097eda667d795407c71dbf7b8c408a55661e35 | /prb_srv_x_T_legacy.py | 7a9109fbb219f71ff13fa21410bbe1f7dff3579f | [] | no_license | synsrv/src_thrs-dyn-analysis | b0f76aded935093ebd15a1aa0d525ca07bbe98ee | 9a286ec6f8259a6f7b73fb75ffe99c965263f4a7 | refs/heads/master | 2020-06-22T02:32:26.379781 | 2019-07-18T15:22:28 | 2019-07-18T15:22:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py |
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pl
from matplotlib import rc
rc('text', usetex=True)
pl.rcParams['text.latex.preamble'] = [
r'\usepackage{tgheros}',
r'\usepackage{sansmath}',
r'\sansmath'
r'\usepackage{siunitx}',
r'\sisetup{detect-all}', ... | [
"felix11h.dev@gmail.com"
] | felix11h.dev@gmail.com |
a56fc1a4e5b64686820edca3055851034da5cf31 | ade10d077441c1d36d027c05df458e942b904a1d | /scripts/classifcation_pos_all_vs_one.py | cbd024b089929aa4abb8a5011aef697193f32b07 | [
"MIT"
] | permissive | nmningmei/metacognition | dabadca913e404994f8d53167e5f36f551590def | 734082e247cc7fc9d277563e2676e10692617a3f | refs/heads/master | 2022-07-14T06:51:42.508132 | 2021-11-14T09:40:13 | 2021-11-14T09:40:13 | 197,187,294 | 2 | 1 | MIT | 2022-06-21T23:01:56 | 2019-07-16T12:12:11 | Python | UTF-8 | Python | false | false | 6,544 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 15 16:02:16 2018
@author: ning
"""
import os
working_dir = ''
import pandas as pd
pd.options.mode.chained_assignment = None
import numpy as np
from utils import (classification_simple_logistic)
saving_dir = '../results/all_vs_one'
if not os.path.exists(saving_dir):
o... | [
"nmei@bcbl.eu"
] | nmei@bcbl.eu |
a2bfe17cf36e9ac576e0431a529c25c270f4c096 | 6ef3b1919e7acbc72e5706b2dc6d716f8929e3d2 | /transformers/training_args_tf.py | 94e5c3f320ec74ca7352f0d00c07971e15815b7f | [
"MIT"
] | permissive | linshaoxin-maker/taas | 04f7dcc7c0d2818718e6b245531e017ca5370231 | 34e11fab167a7beb78fbe6991ff8721dc9208793 | refs/heads/main | 2023-01-19T20:58:04.459980 | 2020-11-27T02:28:36 | 2020-11-27T02:28:36 | 329,522,465 | 6 | 0 | MIT | 2021-01-14T06:02:08 | 2021-01-14T06:02:07 | null | UTF-8 | Python | false | false | 9,501 | py | import warnings
from dataclasses import dataclass, field
from typing import Tuple
from .file_utils import cached_property, is_tf_available, tf_required
from .training_args import TrainingArguments
from .utils import logging
logger = logging.get_logger(__name__)
if is_tf_available():
import tensorflow as tf
@d... | [
"czh097@gmail.com"
] | czh097@gmail.com |
1f2da7d9fbaf2354d8c00fea11e387e58c256aaa | d03ce5c5c3750e60ba9baa958e5445b98ba14462 | /user/views.py | f25749f7fb2516d57bb3384433e3d5e046bc0143 | [] | no_license | alxayeed/covid-room-finder | dbd22ebb702bf588384d6fb8d917c29568cc22a6 | 3ff541d76e342d6bd0b3d7221577b06ec0806837 | refs/heads/main | 2023-03-30T12:33:57.152717 | 2021-02-21T13:08:00 | 2021-02-21T13:08:00 | 339,812,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .forms import RegisterForm
from django.contrib.auth import login, logout, authenticate
from django.contrib import messages
def register_user(request):
form = RegisterForm()
if request.method == "POST":
form = Regi... | [
"alxayeed@gmail.com"
] | alxayeed@gmail.com |
fe79280e5ce2a4759497da529a8e4910958ffdf0 | f543c5593b40622a219f7c2961b2cdf43766eae4 | /tfx/examples/penguin/penguin_pipeline_kubeflow_gcp.py | 5772acd21124664170f449da68336be4c7828572 | [
"Apache-2.0"
] | permissive | 2k0ri/tfx | 939e52d481d6319e30296bce5740f4724304cbac | 7474ba28560293fa32c2e5ceffa0f82ae5dc3b86 | refs/heads/master | 2023-02-22T06:06:26.654711 | 2021-01-27T21:59:38 | 2021-01-27T22:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,556 | py | # 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 required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
75155b68d0584f73062c82fc4a19c12263c70205 | 5d3bd6a1227e383e57e16a4ecaaf5d2d727d1d72 | /tools/sapp/sapp/tests/interactive_test.py | 8e68b00cdaa6c4a4564ce3b320de95a01a717dd6 | [
"MIT"
] | permissive | KevinHock/pyre-check | 75e918f89a4bfe28a82546364d7aba94a83a56e9 | 09b0f53e23353b16a59ef76d8e5c5b78bdf08447 | refs/heads/master | 2020-12-04T17:08:07.931289 | 2020-02-22T01:51:13 | 2020-02-22T01:52:45 | 231,847,877 | 4 | 1 | MIT | 2020-01-05T00:32:13 | 2020-01-05T00:32:12 | null | UTF-8 | Python | false | false | 84,783 | py | #!/usr/bin/env python3
import os
import sys
from datetime import datetime
from io import StringIO
from typing import List
from unittest import TestCase
from unittest.mock import mock_open, patch
from sqlalchemy.orm import Session
from ..db import DB, DBType
from ..decorators import UserError
from ..interactive impor... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
82b94aa0ddd70df563d846434a596b315ad4d8a1 | 84341d15f4b8d13b09c7dabe2b7286705ee86b7b | /scripts/multi_rc/topk_evidence_self_training/roberta_predict_sentence3.0.py | e9e34a6953dcd9a10999bf35f331f6ab6d91b805 | [] | no_license | UMP-Healthcare-AI/Self-Training-MRC | 7a0ef0c52f0064cfc32a2bedb433608ed10328a7 | 0601158085bb11e454aee1ebaa987f5aa741ab3f | refs/heads/master | 2022-12-01T17:46:28.463777 | 2020-08-14T01:56:25 | 2020-08-14T01:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | import subprocess
import time
import logging
import os
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s',
datefmt='%m/%d/%Y %H:%M:%S',
level=logging.INFO)
logger = logging.getLogger(__name__)
def run_cmd(command: str):
logger.info(command)... | [
"jiaofangkai@hotmail.com"
] | jiaofangkai@hotmail.com |
9d1075dd4cf3c10e3855309c10cd54598f9bbd9e | 8d0f35341ad14f1f1edd71481e5fa870a4cb6ed5 | /setup.py | acbda8936e4d0aeefd6b89aa075f25c298c7c64f | [
"MIT"
] | permissive | gitter-badger/django-static-precompiler | f22b2414ef73c8ad0c0e448f1d821dfc73868ee4 | aad008df68dc7194ed9d6e78ab4358f94e456894 | refs/heads/master | 2021-01-12T21:45:20.258776 | 2014-11-19T05:04:15 | 2014-11-19T05:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | from setuptools import setup, find_packages
import os
import sys
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
if sys.version < '3':
return open(path).read()
return open(path, encoding="utf-8").read()
README = read('README.rst')
CHANGES = read('CHANGES.rst')
setup(
... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
61c96eaafdcde160af8110b4322db04ba28832ed | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/1006.py | f920c1947a495d32a85e4a572c45898ba6ebdea5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | import numpy as np
from math import ceil, sqrt
fin = open('C-small-attempt0.in')
fout = open('out_small.txt', 'w')
def isqrt(x):
n = int(x)
if n == 0:
return 0
a, b = divmod(n.bit_length(), 2)
x = 2**(a+b)
while True:
y = (x + n//x)//2
if y >= x:
return x
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
63ef114161ba9d387165bf9cd0c4eee914e502f5 | 60e57860bc819d83cd628b5179ba7f4d655562b8 | /implementation/lps/lps/tests.py | 17794922910430e7844501e766a65b1be823652f | [] | no_license | Schwenger/TinBots | 9a3075c9e84762f34e33f15970eaadc305eed003 | ce7554f357b291b6ff7ae0214d4f8bbf5bd0c48e | refs/heads/master | 2021-01-19T21:15:31.948534 | 2017-08-31T21:34:09 | 2017-08-31T21:34:09 | 63,550,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2016, Maximilian Köhl <mail@koehlma.de>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License version 3 as published by
# the Free Software Foundation.
#
# This program is distributed in the hope th... | [
"mail@koehlma.de"
] | mail@koehlma.de |
960efe5c81f0c4d2490e1618d848cb089fb10f97 | 62e45255088abb536e9ea6fcbe497e83bad171a0 | /ippython/multiplo.py | 9dce2387b353d86c8dd7be1608c2d034bf585dc5 | [] | no_license | jmery24/python | a24f562c8d893a97a5d9011e9283eba948b8b6dc | 3e35ac9c9efbac4ff20374e1dfa75a7af6003ab9 | refs/heads/master | 2020-12-25T21:56:17.063767 | 2015-06-18T04:59:05 | 2015-06-18T04:59:05 | 36,337,473 | 0 | 0 | null | 2015-05-27T02:26:54 | 2015-05-27T02:26:54 | null | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 22 07:18:42 2013
@author: daniel
"""
#programa:multiplo.py
#calcula los multiplos de numero en el intervalo [numero, limite]
#data input
num = 1
repeticiones = int(raw_input('valor limite <entero positivo>: '))
multiplo = int(raw_input('multiplos del numero: '))
#procc... | [
"danmery@gmail.com"
] | danmery@gmail.com |
08668a50432d86ff9e4f7c7c779e74597a487dd9 | c9f48f8a85c01ea826a6abc4fe69f1cb002c74a7 | /chapter18/learning_log11/ll_env/Scripts/django-admin.py | f311544b363b35f348d233c9a4a4f2360fd9a18d | [] | no_license | wangyu6/book1 | 67f02645aa7fe6c39bb5b5ea3f2670225274f4b5 | fd2cd7c6c8a3144624e0cc2ef9608b77416c4820 | refs/heads/master | 2020-04-16T07:16:46.052592 | 2019-04-24T06:25:37 | 2019-04-24T06:25:37 | 165,380,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #!d:\py_work\book1\chapter18\learning_log11\ll_env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"you@example.com"
] | you@example.com |
f1d9996b93014b4210b992142021b15cb3c21578 | 16c8fdf291430475f40d578b0d64552eb64046e9 | /colour/plotting/tm3018/tests/test_components.py | f11dce989d2eabcc845c3554a2ee35f1ac115482 | [
"BSD-3-Clause"
] | permissive | nodefeet/colour | 4c1bfed87ce173ff878bdf288fd9828bb68022e3 | 319dd5b1c45aef6983eff1830f918c1e593fb530 | refs/heads/develop | 2022-02-19T17:39:36.657993 | 2022-02-15T08:38:26 | 2022-02-15T08:38:26 | 460,456,444 | 0 | 0 | BSD-3-Clause | 2022-02-17T13:53:37 | 2022-02-17T13:53:36 | null | UTF-8 | Python | false | false | 5,064 | py | """Defines the unit tests for the :mod:`colour.plotting.tm3018.components` module."""
from __future__ import annotations
import unittest
from matplotlib.pyplot import Axes, Figure
from colour.colorimetry import SDS_ILLUMINANTS
from colour.hints import cast
from colour.quality import (
ColourQuality_Specification... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
ca29d96325ee8f61ab5f0947f4388cd848582dd5 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/release/v4_1/models/task_input_definition_base.py | 7d9e81d65f08fc44f1f9696cf00be3bf1a173c64 | [] | no_license | 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 | 2,850 | 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 |
2a05690aed829799730463e6bd5fdd67a501eab8 | 70c32e104ab814d21c37fc27fd025e82ad3d2119 | /Fujitsu/benchmarks/deepcam/implementations/implementation_abci_fj/fused_lamb.py | e6e7ca211a2901293388cee5c6e3cd584eb50047 | [
"Apache-2.0"
] | permissive | cecevu/hpc_results_v0.7 | f340452daa7fe8f80f0242f3918ae330a38c12bd | 2895e2956e363ce0e9ddbbcbd8503eec1a285e5a | refs/heads/main | 2023-03-05T23:29:52.236214 | 2021-02-15T22:47:04 | 2021-02-15T22:47:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,994 | py | import torch
import os
import ast
from apex.multi_tensor_apply import multi_tensor_applier
num_step = 1
def UpdateIndex2LayerIndex(input):
layer_num = 301
flag = 0
conv = [1,4,10,14,18,23,27,31,36,40,44,46,50,54,58,62,66,70,74,78,82,86,90,94,98,102\
,106,110,114,118,122,126,130,134,138,142,146,150,154,15... | [
"sparticlesteve@gmail.com"
] | sparticlesteve@gmail.com |
73a3eee3fd2e1f1a0057bd58a22f2e7a32c4130b | 87aeb666b3e0d1e2d75fbb11c6e1bcc71402d098 | /task_manager/taskapp/migrations/0001_initial.py | 0a993da519f68d801dab37465e113bc760814c2b | [] | no_license | Alexey-Krapivnitsky/Task-Manager | 25934aff3c56c442e2080da7d910705fbbe27f4c | 62ee195bd79f86915e2c4dd5af9cc65797230f42 | refs/heads/master | 2022-12-17T13:27:53.660378 | 2020-10-01T19:23:54 | 2020-10-01T19:23:54 | 299,638,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # Generated by Django 3.1.1 on 2020-09-30 13:57
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
('authapp', '0003_auto_20200930_1857'),
]
o... | [
"cronos1009@yandex.ru"
] | cronos1009@yandex.ru |
6cccd938961ceaf9dc6a7234ea27deaebf7670bc | e1b52ce8238e7fe0d1c2cd8627535279edeb4bcb | /app/__init__.py | b65f106af4139090033d0b02ef36fab7a1dbcff2 | [
"MIT"
] | permissive | nevooronni/Stackoverflow-lite-APIs | 5cfb9048f56156c88f7f5c35fcba50b99b0d1111 | eb0af8588628e174822be947b8a914ed64e97236 | refs/heads/master | 2020-04-14T12:22:21.658955 | 2019-01-02T15:28:23 | 2019-01-02T15:28:23 | 163,838,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | """creating app"""
import os
from flask import Flask
from instance.config import app_config
"""
import the configurations from the .confifrom dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv()) #pass override=True to override current system environment variables
g file which is in the instance fold... | [
"nevooronni@gmail.com"
] | nevooronni@gmail.com |
7dc43320f08fd0538e450d05265783dd856dc117 | a1d30d667cbf814db1809c31cf68ba75c01f819c | /Google/2. medium/362. Design Hit Counter.py | 579742997805aaf7ccf5cd8362f9bcbc212660fb | [] | no_license | yemao616/summer18 | adb5f0e04e6f1e1da6894b0b99a61da3c5cba8ee | 8bb17099be02d997d554519be360ef4aa1c028e3 | refs/heads/master | 2021-06-02T04:32:07.703198 | 2020-01-09T17:45:29 | 2020-01-09T17:45:29 | 110,744,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | # Design a hit counter which counts the number of hits received in the past 5 minutes.
# Each function accepts a timestamp parameter (in seconds granularity) and you may assume that calls are being made to the system in chronological order (ie, the timestamp is monotonically increasing). You may assume that the earlie... | [
"ymao4@ncsu.edu"
] | ymao4@ncsu.edu |
a447848b01fb067427ac2e26e86ee507529529fc | a81c07a5663d967c432a61d0b4a09de5187be87b | /build/android/pylib/base/environment_factory.py | 4d3727444f43ce92292cd4e4ca2f5e68dedb9799 | [
"BSD-3-Clause"
] | permissive | junxuezheng/chromium | c401dec07f19878501801c9e9205a703e8643031 | 381ce9d478b684e0df5d149f59350e3bc634dad3 | refs/heads/master | 2023-02-28T17:07:31.342118 | 2019-09-03T01:42:42 | 2019-09-03T01:42:42 | 205,967,014 | 2 | 0 | BSD-3-Clause | 2019-09-03T01:48:23 | 2019-09-03T01:48:23 | null | UTF-8 | Python | false | false | 947 | py | # Copyright 2014 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 pylib import constants
from pylib.local.device import local_device_environment
from pylib.local.emulator import local_emulator_environment
from pylib.lo... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
97a6be8339a60d63037f8b82f678e9d303761f4b | c9b1e04ba65ba3e0af2a8ae86b88187b72bcaa0b | /branches/Release0_70_Branch/tests/unittests/persistenceTests/HTMLWriterTest.py | 84743b68f664018b2bfc3847f13b0d62eebaf424 | [] | no_license | feitianyiren/TaskCoach | 7762a89d5b521cfba0827323a9e8a91d1579810b | 0b7427562074845ac771e59e24a750aa5b432589 | refs/heads/master | 2020-04-08T04:56:35.491490 | 2016-01-12T13:29:03 | 2016-01-12T13:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | '''
Task Coach - Your friendly task manager
Copyright (C) 2004-2008 Frank Niessink <frank@niessink.com>
Task Coach is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opti... | [
"hieronymus_schweiz@yahoo.de"
] | hieronymus_schweiz@yahoo.de |
4cf43299d54bb37595d33106ca7efa886f45fa1f | a9b67cdcdd09d90669e87ececc0830419ad999c6 | /blog/urls.py | 2f4b41b1bd42ea09787542f648536b9799b3d907 | [] | no_license | ver0nika4ka/my-first-blog | c05d30d21900e8706200c9971307faaa603a6220 | bf81939ca502ab5b7c5b4577b01ede1c518838d9 | refs/heads/master | 2021-06-25T18:25:24.703987 | 2021-01-05T06:59:36 | 2021-01-05T06:59:36 | 193,432,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # Так мы импортировали функцию path Django и все views (представления) из приложения blog
from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
# Фрагмент post/<int:pk>/ определяет шаблон URL-адреса:
# post/ значит, что после начала строки URL должен содержат... | [
"veranika.aizu@gmail.com"
] | veranika.aizu@gmail.com |
f2c7c34ff3fe71ccce7318a2d04bdd2e37ca1372 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq858.py | 8d4b711a55f0b71384de14f529d3ccf647d1d1f6 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=42
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
c5a07c81fbe718191d7e3692de37bdb34ffea009 | 7628bfc96a7248461d3f2071992d682c0ad18272 | /test/test_runners.py | ec4a2e80525cd0e2c6011733b05cf1da14bac0ec | [
"Apache-2.0"
] | permissive | war3gu/tensorforce | d0c72b26364368d873b1e2717595718669b7fa2d | 70d551f8f92b694aae51262663e77c25576ecfad | refs/heads/master | 2020-12-11T14:51:21.916658 | 2020-01-13T20:43:25 | 2020-01-13T20:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,105 | py | # Copyright 2018 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
b2edd05a4a829eae2b86d8543f76dd6e0c7cea91 | 9d7f0f91e51083039013f792d6f5d0067a663844 | /ventura-sanic/db.py | 430ccc5732f0299e749ca7e7f4a3d27d869b9300 | [] | no_license | ventura-open-source/non-blocking-service-example | 88b98325cfe5db8af0155e8b4b7590c56d6f0884 | d5bec25e986981004a198d74aecc11f32f70eff4 | refs/heads/master | 2020-03-22T05:51:07.927025 | 2018-07-03T14:24:20 | 2018-07-03T14:24:20 | 139,594,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import logging
import peewee_async
# Setup mysql connection
database = peewee_async.MySQLDatabase(
'ventura_laravel',
user='root',
password='root',
host='localhost',
port=3306,
)
# No need for sync anymore!
database.set_allow_sync(False)
# Create async models manager
objects = peewee_async.Manage... | [
"genesisdaft@gmail.com"
] | genesisdaft@gmail.com |
3af3448c062fe48f3b47b009218c66d850913b87 | f2604386f503a06de34f0e6c23993dd0d1ce093d | /wallet/urls.py | ac851ec7356c586163db22b20c9502ca89aeb8f0 | [] | no_license | kicha-05/wallet | 6c64ebbf2849d084b68ea13b60a6ac675a958c78 | ae6af4479ab3b7211265c943ccb1791965b2fa66 | refs/heads/master | 2022-12-25T11:31:15.926443 | 2020-10-08T07:48:12 | 2020-10-08T07:48:12 | 302,228,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from django.contrib import admin
from django.urls import path
from django.conf.urls import url
from .views import *
urlpatterns = [
path('init', InitializeAccount.as_view(), name='init'),
path('wallet', WalletView.as_view(), name='wallet'),
path('wallet/deposit', DepositWithdrawVirtualMoney.as_view(), name... | [
"krishna@gmail.com"
] | krishna@gmail.com |
b6b415e6bf267ac3378d6b864303165d97c05cdc | 3f48e3308674212408c3b6ca972eb4f793bf142b | /f0_data_process/chip_seq/final_chipseq/sicer_df/py1_write_run_sicer_df_slurm.py | d366ec6d7bdea0661c665daf34df7addf7f051d8 | [] | no_license | zanglab/utx_code | 8497840ace81e0337f92f04fafbb691f0ed24865 | 32fc7851207f650b3cc78974ab798f8606099e56 | refs/heads/main | 2023-06-28T17:38:33.231877 | 2021-07-27T01:31:00 | 2021-07-27T01:31:00 | 388,648,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import sys,argparse
import os,glob
import numpy as np
import pandas as pd
from scipy import stats
import re,bisect
slurm_dir = 'slurm_files'
os.makedirs(slurm_dir,exist_ok=True)
project_dir='/nv/vol190/zanglab/zw5j/since2019_projects/UTX_HaoJiang'
outdir='sicer_out'
sub_dirs=['re_1st_submission_H3K4me3_MLL4SC_tri... | [
"zhenjia.sdu@gmail.com"
] | zhenjia.sdu@gmail.com |
a618ed18a38138e126c6e7cf13a613ff0eeac304 | 5f6425e9d83b57b864e48f227e1dc58356a555c0 | /utils/palettes/archive/selenized_medium_0_4.py | 94959c43f26c4b355583da48508d798782d438af | [
"MIT"
] | permissive | jan-warchol/selenized | b374fa7822f281b16aa8b52e34bd1e585db75904 | df1c7f1f94f22e2c717f8224158f6f4097c5ecbe | refs/heads/master | 2023-06-22T09:37:02.962677 | 2022-09-12T20:24:40 | 2022-09-12T20:24:40 | 45,570,283 | 663 | 58 | MIT | 2023-04-18T09:33:22 | 2015-11-04T22:00:52 | Emacs Lisp | UTF-8 | Python | false | false | 590 | py | name = 'Selenized medium v0.4 (adapted monotones)'
palette = {
"bg_0": "#154053",
"fg_0": "#a8bcc3",
"bg_1": "#245971",
"red": "#fc5851",
"green": "#78b93e",
"yellow": "#d8b033",
"blue": "#4e97f5",
"magenta": "#f16dc5",
"cyan": "#41c... | [
"jan.warchol@gmail.com"
] | jan.warchol@gmail.com |
0ad20010a16169575984c8d5f5c526a6e6379811 | 7675abbb6a30fdb56cb534cbd198571f75cc926e | /dazubi_fan_site/dazubi_fan_site/settings.py | 240dda22c91a32799aaaab32a9a20c13a4781f3d | [] | no_license | moreal/dazbee_fan_site | 4b2077635118987eb2731b36030c47cd181cc25a | dfb0e02a25087917968be6f4ee54049e9cca1b07 | refs/heads/master | 2020-04-09T02:37:04.173566 | 2018-12-01T13:56:51 | 2018-12-01T13:56:51 | 159,947,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | """
Django settings for dazubi_fan_site project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impo... | [
"dev.moreal@gmail.com"
] | dev.moreal@gmail.com |
f05a887b3080d00cd4f30b2eda7596f2a6d01e91 | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /third_party/WebKit/Source/bindings/modules/v8/generated.gypi | 360698ad1d396054e3e70c5bd4bcde09947b4c2e | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 11,037 | gypi | # Copyright 2014 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': {
'bindings_modules_v8_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/bindings/modules/v8',
'bindings_modules_v8_generated_union_typ... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.