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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce40ecd136466000b6cd713b9b978e417d2d76d2 | ff2d0e396c2e277751fced5869975faa8260e1d9 | /BASIC/SplitDataset.py | 2e72f8d4b143288ee97d5f5781819cf26a72aea2 | [] | no_license | kongruksiamza/MachineLearning | 53207055090deaea0a44789cebfef01f5d395188 | b6843a5fb97af9d21fe13aee6c0d45f36ff99131 | refs/heads/master | 2023-08-02T11:17:53.359201 | 2023-07-23T16:15:38 | 2023-07-23T16:15:38 | 251,460,002 | 54 | 41 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
iris_dataset=load_iris()
x_train,x_test,y_train,y_test = train_test_split(iris_dataset["data"],iris_dataset["target"],test_size=0.2,random_state=0)
print(x_train.shape)
print(x_test.shape)
print(y_train.shape)
print(y_t... | [
"noreply@github.com"
] | kongruksiamza.noreply@github.com |
3dd5f7ff3422dda82d6a47010f7030a4e120e353 | ba9cb3bbc46faeea1edc01ef7e18131ae2dbf923 | /problem-046.py | 13d019dd467ac87655a99dcce72627471b56b455 | [] | no_license | beautytiger/project-euler | fb9908d35a82cd4b912a541282842adca03b17e2 | a8de90a2e5b98660505169afd9c8c27b1b3af28e | refs/heads/master | 2021-06-19T00:40:17.331130 | 2017-05-31T11:04:05 | 2017-05-31T11:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from tools.runningTime import runTime
from tools.common import is_prime
def fit_conjecture(n_odd):
n, pt = 1, 2
while pt<n_odd:
if is_prime(n_odd-pt):
return True
n, pt = n+1, pt+4*n+2
return False
@runTime
def bruteForce():
odd ... | [
"konmyn@163.com"
] | konmyn@163.com |
0f4ed3f874c9e27895f523a94e8e2df3b9a707cc | ec827bd5df431c9400946e8d0593448814b5534b | /venv/bin/rst2s5.py | 0e39c10297f2eeb75cd100e23ad0e393e3c581d1 | [] | no_license | grantnicholas/pytone | 7acd70878de8090d06d7a2911a67b3dbb3b64256 | b89c688cc88588a3758fff288bc9b1364534b42e | refs/heads/master | 2021-01-23T06:19:47.203418 | 2014-09-21T21:52:27 | 2014-09-21T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/home/grant/Desktop/pytone/venv/bin/python
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the S5 template system.
"""
try:
... | [
"grantnicholas2015@u.northwestern.edu"
] | grantnicholas2015@u.northwestern.edu |
36e803ee78844708170f2dc1daa1eff208b5f8b0 | a003200e29c4ea64e9ef65a23eea2d1d8c4ad03b | /client/web/client_control_port.py | 6b54ac526ac9c42588bfaf40df72078e55dcbd25 | [] | no_license | jason12360/crazy_coder | 10b77ef69994ff11e7fde49ad28d928851388be9 | 7ba161ef89ffd2da66f430c4af04a53c2de1667f | refs/heads/master | 2020-03-20T22:10:35.884104 | 2018-06-29T10:06:24 | 2018-06-29T10:06:24 | 137,783,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,653 | py | from socket import *
import sys
import os
import time
import signal
from threading import Thread
import client_data_port
#导入model相关模块
from file import *
from file_folder import *
from database_handler import *
import my_protocol
#导入视图的相关模块
from login_view import Login_Page
from login_handler import Login_handler
from m... | [
"370828117@qq.com"
] | 370828117@qq.com |
59b868c98b2088899c75c3b49e981d14738f1ed6 | 7ec5aa43d8f2e732189944391447a8551d24abaa | /backend/home/migrations/0002_load_initial_data.py | b7766e8a267c6d8282dbfff6aac063a6b6502fa2 | [] | no_license | crowdbotics-apps/louis-vesovski-19158 | e852e8158074704226a77ee9c564c7f29f39413e | 61f4460d77d9077363392820f719febdd8a30434 | refs/heads/master | 2022-11-26T04:53:16.880047 | 2020-07-25T00:53:05 | 2020-07-25T00:53:05 | 282,343,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Louis Vesovski"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
40b818e3e0c2744b716fced907cee2cd4eaad934 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/containerregistry/v20201101preview/private_endpoint_connection.py | 76733558caa78a0936790d6194e3b68d77e277d5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,847 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
a541a023a5932b483d9c0793625a70dedb494f6b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /G7m26EdX3AABCSQBv_16.py | 9a9f37cc926a9dcbbedbf54b6e1d21a544cebe38 | [] | 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 | 767 | py | """
Given a very long string of ASCII characters, split the string up into equal
sized groups of size `width`. To properly display the image, join up the
groups with the newline character `\n` and return the output string.
See the miniature examples below for clarity!
### Examples
format_ascii("0123456789", 2... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
59403b93978115731520c62a6f10b86aa0fa685f | 6915d6a20d82ecf2a2a3d3cd84ca22dab2491004 | /cbvproject3/testapp/admin.py | c1eeb35fe942b7f66b8b1bf1196933923b71ca4b | [] | no_license | iitian-gopu/django | bb4302d101f4434fb61ab374807e29699a432e42 | 31db982212bbb453cc4c56c7f5cfad9a00cd231d | refs/heads/master | 2023-05-14T07:22:35.176477 | 2021-06-04T04:43:26 | 2021-06-04T04:43:26 | 366,114,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from django.contrib import admin
from testapp.models import Company
# Register your models here.
class CompanyAdmin(admin.ModelAdmin):
list_display=['name','location','ceo']
admin.site.register(Company,CompanyAdmin) | [
"gopalkrishujaiswal2030@gmail.com"
] | gopalkrishujaiswal2030@gmail.com |
a91ee7ae0112a2ba01ad8bf8c33a7d499b5605e0 | 475e2fe71fecddfdc9e4610603b2d94005038e94 | /Coding/listComprehension.py | b45dd7656d0b549f761c910df9a9a7ed7b98f52d | [] | no_license | sidhumeher/PyPractice | 770473c699aab9e25ad1f8b7b7cd8ad05991d254 | 2938c14c2e285af8f02e2cfc7b400ee4f8d4bfe0 | refs/heads/master | 2021-06-28T20:44:50.328453 | 2020-12-15T00:51:39 | 2020-12-15T00:51:39 | 204,987,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | '''
Created on Dec 27, 2018
@author: siddardha.teegela
'''
if __name__ == '__main__':
newList = []
oldList = [1,2,3,4,5]
'''
List Comprehension
[expression for item in list if condition]
'''
newList = [item*2 for item in oldList if item > 1]
print (newList) | [
"sidhumeher@yahoo.co.in"
] | sidhumeher@yahoo.co.in |
70c89281004cff4894e4f6ebe0880822e29655e1 | 941babd1b7711c9e2935704db283568536f06306 | /app/members/backends.py | cf753ebab5f6ce66cf8c987be1950138f731b6b3 | [] | no_license | orca9s/eb-docker-deploy | 8006fc0bcc81f76137f92a11c417708bcc1acbd9 | f5f5ccc2ff8719160528f04c44f737acb39a9b00 | refs/heads/master | 2022-12-10T09:00:08.879297 | 2018-07-17T13:04:24 | 2018-07-17T13:04:24 | 140,647,708 | 0 | 0 | null | 2022-12-08T02:20:14 | 2018-07-12T02:00:52 | Python | UTF-8 | Python | false | false | 805 | py | from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.hashers import check_password
from members.management.commands.createsu import Command
User = get_user_model()
class SettingsBackend:
def authenticate(self, request, username=None, password=None):
login_valid ... | [
"sang93423@gmail.com"
] | sang93423@gmail.com |
f351c542553963cd2645833531a8376989706d28 | 62d62fd3ee2f0717c7acbb0c2edfa1e53926f728 | /phoenix/wizard/views/catalogsearch.py | 6d0f2b3bbffa9f8ff7fc8771dcc7123800a75736 | [
"Apache-2.0"
] | permissive | rmoorman/pyramid-phoenix | 911a9ef8dcca48889834cf46109321056cdbb35b | ed3ede4dbb80f00bcd647a5e4ae2afbedab94e09 | refs/heads/master | 2021-01-15T14:29:20.450828 | 2016-05-04T16:27:04 | 2016-05-04T16:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,893 | py | from pyramid.view import view_config
from phoenix.wizard.views import Wizard
import logging
logger = logging.getLogger(__name__)
import colander
class CatalogSearchSchema(colander.MappingSchema):
pass
class CatalogSearch(Wizard):
def __init__(self, request):
super(CatalogSearch, self).__init__(
... | [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
232c7639ba3f954ee8f10d3f5f37d0a9a52dac8b | 381d5b981dbcff769297351467f4b3e994668a84 | /cmo_purchase_group/models/common.py | 6ff66c6dccda1e3a53ce1b8dc7782c690f1922c7 | [] | no_license | jutamatk/cmo_specific | f6c36da767f267b4c24a6933da54fa1536c4c309 | 14f5232dfde67f5d5dbeb4cf28538132954403cb | refs/heads/master | 2020-03-22T02:48:31.642768 | 2018-05-14T10:28:23 | 2018-05-14T10:28:23 | 139,394,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # -*- coding: utf-8 -*-
from openerp import api
from lxml import etree
class Common(object):
@api.model
def set_right_readonly_group(self, res):
root = etree.fromstring(res['arch'])
root.set('create', 'false')
root.set('edit', 'false')
root.set('delete', 'false')
res['... | [
"tharathip.chaweewongphan@gmail.com"
] | tharathip.chaweewongphan@gmail.com |
044fb07a14c80e7e229a65320964625ed26c6cab | 8f1d6f17d3bdad867518b7b0a164adfe6aeeed95 | /detection/retinaface/rcnn/PY_OP/rpn_fpn_ohem3.py | b8f7d462ec9aec245852338b392fb4d8afd3311c | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | xwyangjshb/insightface | 2c7f030a5d1f5a24b18967bd0d775ee33933d37f | ae233babaf7614ef4ef28dac0171205835d78d64 | refs/heads/master | 2022-09-29T07:49:22.944700 | 2022-09-22T11:36:12 | 2022-09-22T11:36:12 | 221,020,460 | 1 | 0 | MIT | 2019-11-11T16:16:56 | 2019-11-11T16:16:55 | null | UTF-8 | Python | false | false | 7,624 | py | from __future__ import print_function
import sys
import mxnet as mx
import numpy as np
from distutils.util import strtobool
from ..config import config, generate_config
STAT = {0: 0}
STEP = 28800
class RPNFPNOHEM3Operator(mx.operator.CustomOp):
def __init__(self, stride=0, network='', dataset='', prefix=''):
... | [
"guojia@gmail.com"
] | guojia@gmail.com |
16c92653ecd2a8eed34a9a224ebae4975ef7cc51 | 972c508bbd49cbb7800af2729328d5421fcbba8f | /flink-python/pyflink/table/tests/test_sort.py | 0d490c7120cbfaa869394ac96ddb3363bd2dd856 | [
"Apache-2.0",
"CC-BY-2.5",
"OFL-1.1",
"AGPL-3.0-only",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdom",
"GCC-exception-3.1",
"MIT-0",
"MPL-2.0-no-copyleft-exception",
"CDDL-1.1",
"CDDL-1.0",
"MIT",
"CC0-1.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"CC... | permissive | Xeli/flink | 4e380cc4aa1b0a79d6eb1a1715a1b5e99993f937 | d5e74d6d4f3f6be6b8ebc63c09c42b3bc8eed0d0 | refs/heads/master | 2021-06-02T00:07:47.239600 | 2019-07-04T17:05:41 | 2019-07-04T17:07:45 | 108,726,889 | 0 | 1 | Apache-2.0 | 2019-07-04T17:05:42 | 2017-10-29T11:06:09 | Java | UTF-8 | Python | false | false | 1,766 | py | ################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this... | [
"sunjincheng121@gmail.com"
] | sunjincheng121@gmail.com |
40e0e34dc1c0d39e08775b92089714d9db4af63e | 484b72139db4e2b21268c55e2f32cae242b5abae | /src/tools/adt/test_adt_sql.py | 4cd7abef19fab96d7bce42de488f3e32fcd25a9b | [] | no_license | PIWEEK/piweekr-back | a1b3887358e32d27f7a21913586f77e020c5eae0 | 375dbf17472270dcf34651ff8a86b7ed460eb311 | refs/heads/master | 2020-04-06T07:11:44.175583 | 2016-09-15T06:38:38 | 2016-09-15T06:38:38 | 62,820,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | import pytest
from .types import ADT_WITH_ID, Field, IntField, StrField
from .relationships import Relationship1N, RoleSingle, RoleMulti, Context
from sqlalchemy.sql import select, outerjoin
from .adt_sql import SQLADTRepository
class Card(ADT_WITH_ID):
deck_id = IntField()
title = StrField()
strength =... | [
"andres.moya@kaleidos.net"
] | andres.moya@kaleidos.net |
70ac93f65865b3fb1662de2524dd00f377c1feea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03474/s623958359.py | 5c4abb6865ad4a5abd0e9ef526ce516ab50152cb | [] | 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 | 165 | py | A, B = input().split(" ")
S = input()
if S[int(A)] == '-' and S[:int(A)].isdecimal() and S[int(A)+1:int(A)+int(B)+1].isdecimal():
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
27762e0a9409dd7def2603c56329ed23a8c33638 | a214e706c875e0af7221c0c9ae193d9d93ee20a7 | /vaast_2individuals.py | dc21ad72109ea2326e1ef142d06fa97715ba8039 | [] | no_license | inambioinfo/bioinformatics_scripts | fa2292e91ad4134204a09ace27c8a91ae70fa34c | 3a23611f382b7f3dd60e5e2abe841b84408c0d44 | refs/heads/master | 2020-03-20T21:17:10.163061 | 2017-03-28T23:41:39 | 2017-03-28T23:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,096 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#running program
#python ~/lgc/scripts/vaast_2individuals.py -i ~/projects/exome_analysis/input/boston/Boston_Exome_noAnnotation_auto_sex.vcf ~/projects/exome_analysis/input/boston/Exome_Brazil_auto_sex.vcf
from optparse import OptionParser
import os
__author__ = "Raon... | [
"raonyguimaraes@gmail.com"
] | raonyguimaraes@gmail.com |
751e7e510693cd71b1f4b18d04e6b3a6188682f2 | 98d832289b7437247ce03ea54ad3cb7b95451159 | /test/test_cpu_info.py | 84e719a037ea9352189cdc1d041d264c10e1d0bb | [
"MIT"
] | permissive | rmehilli-r7/vm-console-client-python | 7f02f13345dce4f4d4d85e18da7146daeefbceb9 | 069041c1c7b53c6b3d8bfdd81b974141bfca3c0c | refs/heads/master | 2020-03-23T11:20:33.364442 | 2018-08-10T20:06:37 | 2018-08-10T20:06:37 | 141,498,444 | 0 | 0 | MIT | 2018-08-08T19:58:45 | 2018-07-18T23:00:41 | Python | UTF-8 | Python | false | false | 48,826 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
f402f3c6a9657695f8d857cecbdc279ef499cf31 | 640121a717de7b587c56d2136ee9c981bd7c9660 | /server/dvaui/apps.py | b0d4d87d6ecf7c11817286075e99549266b03bd5 | [
"BSD-3-Clause",
"MIT",
"BSL-1.0",
"Apache-2.0"
] | permissive | jbkarle/DeepVideoAnalytics | dd4535e990a7f3af9e53843e6df97340ee0c6b71 | 9a3717ea30a86f97511a150d6538e309e19b7fbc | refs/heads/master | 2020-03-31T15:01:52.854557 | 2018-10-07T17:11:37 | 2018-10-07T17:11:37 | 152,320,716 | 1 | 0 | null | 2018-10-09T21:01:10 | 2018-10-09T21:01:09 | null | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class DvauiConfig(AppConfig):
name = 'dvaui'
| [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
6403015b2e85eccd4b5985e9530f4e7ed6ce27bb | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/battle/FishingRod.py | a362c40a58d8ec0d8eed09445dd7b6dcb932ffd6 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,038 | py | import Weapon
import WeaponGlobals
from pirates.audio import SoundGlobals
from pirates.audio.SoundGlobals import loadSfx
from direct.interval.IntervalGlobal import *
from pandac.PandaModules import *
from pirates.uberdog.UberDogGlobals import InventoryType
from pirates.piratesbase import PLocalizer
from pirates.effects... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
6990e4b87e0734225f804e3c1b915ae8f9869911 | 6ecff67d6103ddbd787f78c35182722b83b8a37e | /백준/Python/알고파/최단경로/1613.py | 4ca4e3cd15c8a04c41309bc939b9e462ad70c7a2 | [] | no_license | jsungmin6/Algorithm | 9ef2339aa00921e7df756a8dff569954a008c118 | bc1ea9de9f7ba3f1aa6616ebef8719540d72e0bf | refs/heads/master | 2023-05-27T06:24:16.123307 | 2021-06-11T09:22:21 | 2021-06-11T09:22:21 | 259,299,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # 역사
# 풀이 과정
'''
여러 출발점과 도착점의 경로가 있냐 없냐를 판단하는 거기 때문에 플로이드 와샬을 사용해
dist를 전부 구한 후 판단한다.
'''
import sys
import collections
input = sys.stdin.readline
n, k = map(int, input().split())
dist = [[0 if i == j else sys.maxsize for i in range(n+1)] for j in range(n+1)]
for _ in range(k):
u, v = map(int, input().split()... | [
"jsungmin506@gmail.com"
] | jsungmin506@gmail.com |
d1a8f1afed15326e2da00c5d6dc38c274523879a | 1eab07420ddbc6774b0dd6f515da5110ed7344af | /brax/experimental/braxlines/experiments/mimax_sweep.py | 09f8390c0598d7fac24c00e990d51f79f848ae95 | [
"Apache-2.0"
] | permissive | TedTinker/brax | a16097d87607a8bdee46f5d0784fff29e66ca22f | 1d5e70c0c96d1a0dde68901bdabef2c9431c32b3 | refs/heads/main | 2023-08-14T08:22:42.316233 | 2021-09-28T20:08:43 | 2021-09-28T20:08:43 | 410,128,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | # Copyright 2021 The Brax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"erikfrey@google.com"
] | erikfrey@google.com |
69cf9b378381c44f262b107a06c246bdbc38bfdd | a148a0a0fb3209c754b9d6836baa837d3c02e30f | /garbage_code_dont_delete_btw/find_optimized_parameters.py | 426e19aca057cbbe4dbbada8cc902f56d9b0225a | [] | no_license | GreenBlitz/Deep-Space-Vision | 645b64f98bf26500ba501651d332a8cd82f0f340 | c0d8ad10cf42fbac79b42141a44c3bbb00beabb7 | refs/heads/master | 2020-03-28T19:32:30.563636 | 2018-12-13T16:59:21 | 2018-12-13T16:59:21 | 148,985,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | import cv2
import random
import numpy as np
def create_params(shape, factor):
return np.random.rand(*shape)*factor
def get_score(item, frame, bbox, func, reg):
frametag = func(frame, item)
f = frametag[bbox[1]:bbox[1] + bbox[3], bbox[0]:bbox[0] + bbox[2]]
s = f.sum()
return s/f.size - (frametag.su... | [
"idohaineman@gmail.com"
] | idohaineman@gmail.com |
ba04ac28a0639f1b3b7a11f709742aba37db888d | b0717aeda1942dd35221e668b5d793077c074169 | /env/lib/python3.7/site-packages/twilio/rest/sync/v1/service/sync_stream/__init__.py | 6b2ee533844fc06a31ab795872db7afb709bfa4b | [
"MIT"
] | permissive | stevehind/sms-steve-server | 3fdeed6de19f29aeaeb587fe7341831036455a25 | 9b0dac19f2e6ccf6452e738017132d93e993870b | refs/heads/master | 2022-12-21T23:34:10.475296 | 2020-01-27T16:24:39 | 2020-01-27T16:24:39 | 231,842,510 | 0 | 0 | MIT | 2022-05-25T05:03:16 | 2020-01-04T23:25:23 | Python | UTF-8 | Python | false | false | 16,649 | py | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import InstanceResource
from twilio.base... | [
"steve.hind@gmail.com"
] | steve.hind@gmail.com |
b41ba04907184cd37b158434c5d33df39713c56e | 48519d4299911ce2a3ca70043079df419155c156 | /typistry/test/validations_test.py | 2ca7ee5e91bfad1903c8486d39490fa063915396 | [
"Apache-2.0"
] | permissive | kyprifog/typistry | 18c3e010925db5b4a2422bc6eefb69d5da4c2ab9 | aab285d909791106154874eb5331b65fc03849ae | refs/heads/master | 2023-03-12T21:29:09.998425 | 2021-03-02T16:24:48 | 2021-03-02T16:24:48 | 343,979,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | from os import path
from shutil import copytree, rmtree
from typing import List, Union, Any, Tuple
from typistry.test.support.types.other_class import OtherClass
from typistry.protos.invalid_object import InvalidObject
from typistry.test.support.types.test_class import TestClass
from typistry.util.path import from_ro... | [
"kprifogle1@gmail.com"
] | kprifogle1@gmail.com |
d97ca44c9ac250ee5169fb9662a6ae9b5cd84709 | 3bd961816fe9b9048108f8a5a254b931dd79bde4 | /manga_py/providers/mangamew_com.py | 468cfc62dbc030c91cf86ee739264971ff06e7d1 | [
"MIT"
] | permissive | eduhoribe/manga-py | 6243115549d78c1599c6b043fe7cd897e2f517d3 | fe7eb2e08532b3c75b4f7ac8cc4132f0e7a65eb4 | refs/heads/stable_1.x | 2023-01-14T01:48:34.873530 | 2020-11-17T04:30:15 | 2020-11-17T04:30:15 | 307,992,359 | 1 | 0 | MIT | 2020-11-15T00:00:45 | 2020-10-28T11:18:18 | Python | UTF-8 | Python | false | false | 1,069 | py | from manga_py.provider import Provider
from .helpers.std import Std
class MangaMewCom(Provider, Std):
_type = 'manga'
def get_chapter_index(self) -> str:
re = r'%s/[^/]+/.+?-(\d+(?:-\d+)?)-\d+' % self._type
return self.re.search(re, self.chapter).group(1)
def get_main_content(self):
... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
e90007c5d2697952c7b32f49861660ccd7553747 | 3fca3083cda021e41d3199b83b039a93bad0c18d | /inspirehep/modules/workflows/workflows/hep_ingestion.py | 7a193c3566cb53bc0a3a35437b09d45e4c710644 | [] | no_license | nikpap/inspire-next | 53c8859503c684c835e61d4496bc903b39fb4111 | 4de8910fff569fc9028300c70b63200da521ddb9 | refs/heads/master | 2020-12-28T21:17:07.774075 | 2016-05-24T13:19:59 | 2016-05-24T13:19:59 | 34,382,494 | 1 | 0 | null | 2015-04-22T09:51:24 | 2015-04-22T09:51:24 | null | UTF-8 | Python | false | false | 9,915 | py | # -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2014, 2015, 2016 CERN.
#
# INSPIRE 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 optio... | [
"jan.age.lavik@cern.ch"
] | jan.age.lavik@cern.ch |
badf0cf703289b8f5d16976db515b79b22aba30d | 349dadbf45b7c12a3fe41c5e0421c0488b679919 | /transformers/tests/test_feature_extraction_beit.py | 0ca58a802d6be7f74d82492883f61e9356e28153 | [
"BSD-3-Clause",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Apache-2.0"
] | permissive | salesforce/CodeRL | c772e408bac690527759f416ea22add4c97e5bec | 51db4ff983d5376e62b9e7eba150316a651c80d9 | refs/heads/main | 2023-08-18T18:38:02.740995 | 2022-11-18T16:14:28 | 2022-11-18T16:14:28 | 508,912,853 | 412 | 52 | BSD-3-Clause | 2023-08-31T07:51:27 | 2022-06-30T02:54:36 | Python | UTF-8 | Python | false | false | 12,578 | py | # coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"hungle@salesforce.com"
] | hungle@salesforce.com |
5dabeb4a2c1b694a6e37ad5f0562da8805237de6 | adaf5d5cd4c46db0387f6dfd7de34d38cf3b06d0 | /Commands/Mtg.py | 2b91b0e30d456e99519e5a1ddd864ef11a563fa3 | [
"MIT"
] | permissive | CrushAndRun/PyMoronBot-LugNut | b0f23437a18fb27ee22313469ad2a396ddaa8f13 | d695d8f36b23fc584b3c7d795c12a9e4577c806b | refs/heads/master | 2020-02-26T13:42:41.197328 | 2017-12-07T15:36:58 | 2017-12-07T15:36:58 | 67,321,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | # -*- coding: utf-8 -*-
from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from CommandInterface import CommandInterface
from Utils import WebUtils
import re
from bs4 import BeautifulSoup
class Mtg(CommandInterface):
triggers = ['mtg', 'mtgf']
help = 'mtg(f) <card name> - f... | [
"matthewcpcox@gmail.com"
] | matthewcpcox@gmail.com |
afb5f5bed68a1de853f9b06fe514e90acd63388b | 01fa2aca31eb73a559d192fd29e44350f26a13a9 | /HAX/18.CocoJoe/script.module.lambdascrapers/lib/lambdascrapers/modules/cfscrape.py | 3102264f6a7437b75f3d4beb80b8c92f8db299b0 | [
"Beerware"
] | permissive | RandomIntermition/k4y108837s | b4beedeff375645bd4fa9ad348631a9a9f3640b6 | e9115aad49795dfe30a96c278cedaf089abcc11d | refs/heads/master | 2022-05-01T18:45:57.298903 | 2022-03-30T03:41:08 | 2022-03-30T03:41:08 | 109,356,425 | 1 | 0 | null | 2019-11-08T02:20:47 | 2017-11-03T05:36:48 | Python | UTF-8 | Python | false | false | 15,801 | py |
import ast
import logging
import operator as op
import os
import random
import re
import ssl
from collections import OrderedDict
from copy import deepcopy
from time import sleep
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from reques... | [
"github+github@github.github"
] | github+github@github.github |
e8dd5fdaccd0096013f6662954213832a0879e9a | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Link/LinkChecker-9.3/linkcheck/checker/__init__.py | 62202815b17c0292ffab6e86859598e16e02a15a | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ed0ddaf86ed59f018b4cf89cd2abc32f6e966da1ceeb748d5678f763bef305b1
size 6120
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
199e2fbaeb8a63f651532d83d07851ad76bdda71 | 3c92c92f588ba1156c3579683d3d8b7d12aef652 | /test.py | caf3bab175467be3b3c5100db5eaf6157fac8118 | [] | no_license | JoseAVallejo12/sempliMl | 2dace46732c67f9a2b1a035db449e1ee7170a77c | 3117fcd5a473f0fe7756d58f8707cb447193d7fc | refs/heads/master | 2022-12-26T19:23:30.429927 | 2020-10-13T19:45:17 | 2020-10-13T19:45:17 | 303,531,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #!env/bin/python3
import requests
# Response a newUser random using the request.get and parsing to object with json() method
params = requests.get('https://lv2394qpu0.execute-api.us-east-1.amazonaws.com/dev/user/random').json()
# Define the headers for sent an request to API clostering customer
headers = {'Content-Ty... | [
"josealfredovallejo25@gmail.com"
] | josealfredovallejo25@gmail.com |
0a3898ac1c39e49d42d319ba852271926310d148 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/pybites/PyBites-master/NAMES.PY | 31a0aabe5eab8555bb9e8f89529c771d14e56474 | [
"MIT"
] | permissive | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 858 | py | NAMES = ['arnold schwarzenegger', 'alec baldwin', 'bob belderbos',
'julian sequeira', 'sandra bullock', 'keanu reeves',
'julbob pybites', 'bob belderbos', 'julian sequeira',
'al pacino', 'brad pitt', 'matt damon', 'brad pitt']
def dedup_and_title_case_names(names):
"""Should return a li... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
52475cb0f587a30f869a90240fe288a74769a8a0 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1_neat/16_1_1_shaun_lee_lastword.py | 162809f1c2e6062991a66a8085d652bce0400c30 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 648 | py | from __future__ import print_function
import sys
def read_input(in_file):
T = int(in_file.readline().strip())
result = [line.strip() for line in in_file]
return result
def check_case(S):
result = ""
for c in S:
if c + result > result + c:
result = c + result
else:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
e7dfab6a95b879c74086ca60e363d1ccef110c97 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /services/web/server/src/simcore_service_webserver/scicrunch/__init__.py | 338202607956135f6b5d4b7eb2066805397f8190 | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 478 | py | """
Submodule to interact with K-Core's https://scicrunch.org service
- client to validate and get info about RRIDs via scicrunch's API (service_client)
- keeps validated RRIDs in pg-database (scicrunch.db)
- define models for all interfaces: scicrunch API, postgres DB and webserver API (scicrunch_models... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
53dc5dbad44d62299a2771b4f46026d73806497f | 3c750d4d60660fdf6ef84d7b7ab9663fb76d0fa1 | /sopht/numeric/eulerian_grid_ops/poisson_solver_3d/scipy_fft_3d.py | 4e90e7708b6623f2626783e66e3daaf05b5eb5bd | [
"MIT"
] | permissive | SophT-Team/SophT | 25d157a17734600e9aa4f522b4574bfefe202bc7 | 99a094e0d6e635e5b2385a69bdee239a4d1fb530 | refs/heads/main | 2023-08-31T21:14:10.304592 | 2023-08-31T17:00:38 | 2023-08-31T17:00:38 | 498,451,510 | 2 | 2 | MIT | 2023-09-12T15:37:31 | 2022-05-31T18:25:12 | Python | UTF-8 | Python | false | false | 457 | py | """Create reference FFT operations via scipy in 3D."""
import numpy as np
from scipy.fft import irfftn, rfftn
def fft_ifft_via_scipy_kernel_3d(
fourier_field: np.ndarray,
inv_fourier_field: np.ndarray,
field: np.ndarray,
num_threads: int = 1,
) -> None:
"""Perform reference FFT operations via scip... | [
"bhosale2@illinois.edu"
] | bhosale2@illinois.edu |
d5c82675fd32505beabe8291bcae1e2d6bd02ffa | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/46000030.py | 67f8dc02c09f3261e98f8ceb9313e2ba312969dc | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/46000030.py generated: Fri, 27 Mar 2015 16:10:12
#
# Event Type: 46000030
#
# ASCII decay Descriptor: pp -> (X -> ~chi_10 -> (l q q, l l l) + jet ... )
#
from Configurables import Generation
Generation().EventType = 46000030
Generation().SampleGenerationT... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
a3b2f4ad14a1175927087259c39561072d324996 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/app/api_service/nlp_processing_20210124215235.py | 849149836d612782e4ed41b1146fa410bb3532f6 | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | import csv
import json
import numpy as np
import sklearn
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
import numpy
from keras.datasets import imdb
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.layers imp... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
8fe94a63a6e963f1ad1e1f239fe6261d16869520 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /vBwRuR4mF5yQ4cNuc_17.py | cf1ee398857363c1811e1931002d97f5cddeae37 | [] | 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 | 140 | py |
def count_missing_nums(lst):
out = [int(i) for i in lst if i.isdigit()]
return sum(i not in out for i in range(min(out), max(out)+1))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
092e0a9e39100e338aa1e0c4db77d873972d49ee | 306045a1cd0fb362f46d4db88311f442311bbc16 | /examples/idioms/programs/158.2163-random-sublist.py | 3f736d4ad21fd5030145e3bb3f6f9a976ee7b66f | [
"MIT"
] | permissive | laowantong/paroxython | 608c9010a2b57c8f7ed5ea309e24035c2b2e44a3 | a6d45829dd34f046d20e5bae780fbf7af59429cb | refs/heads/master | 2023-09-01T05:18:29.687916 | 2022-11-07T17:40:31 | 2022-11-07T17:40:31 | 220,820,424 | 36 | 5 | MIT | 2023-09-08T04:44:58 | 2019-11-10T16:54:56 | Python | UTF-8 | Python | false | false | 566 | py | """Random sublist.
Create a new list _y from randomly picking exactly _k elements from list _x.
It is assumed that _x has at least _k elements.
Each element must have same probability to be picked.
Each element from _x must be picked _at _most _once.
Explain if the original ordering is preserved or not.
Sourc... | [
"laowantong@users.noreply.github.com"
] | laowantong@users.noreply.github.com |
8898fd8584b627d6221f4ec6682599576dd3016c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/308/99324/submittedfiles/jogoDaVelha_BIB.py | 3cd55426284682db76a7c18bcbf132edaafce8bb | [] | 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 | 4,553 | py | # -*- coding: utf-8 -*-
from random import randint
import copy
def verificaVencedor(tabela): #Verifica se há vencedor || Parâmetro: Recebe a tabela para verificar || Retorno: Retorna o simbolo do vencedor
for a in range(0, 3):
if tabela[0][a]==tabela[1][a]==tabela[2][a]:
print('if 1')
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
978517d22ef87134a9543194451cef9bb9403512 | ce66de2e9b099b8b53f52721e649bce3e9d42734 | /python/ray/ml/predictors/integrations/sklearn/sklearn_predictor.py | 91a117cb878acc3efff31d27cb8e260ec6335d6d | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pengzhenghao/ray | 0428d0b7d479f112c7649577534dfdfdfe7ea2e7 | e57ce7efd6ea1d0e4f6942fcf6f526287340e63d | refs/heads/master | 2023-03-10T00:41:17.916609 | 2022-04-18T10:20:12 | 2022-04-18T10:20:12 | 184,541,751 | 0 | 1 | Apache-2.0 | 2023-03-04T08:58:50 | 2019-05-02T07:52:15 | Python | UTF-8 | Python | false | false | 3,452 | py | from typing import Optional, List, Union
import pandas as pd
from ray.ml.checkpoint import Checkpoint
from ray.ml.predictor import Predictor, DataBatchType
from ray.ml.preprocessor import Preprocessor
from sklearn.base import BaseEstimator
class SklearnPredictor(Predictor):
"""A predictor for scikit-learn compa... | [
"noreply@github.com"
] | pengzhenghao.noreply@github.com |
f143b9e6ab91c4c9fa6f94e1f36a988af36b2133 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/web_tests/external/wpt/eventsource/resources/cors.py | 6ed31f2cd7d1782f8b7267d646d3ba26ab1a2a6d | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 1,481 | py | import os
from wptserve import pipes
from wptserve.utils import isomorphic_decode
def run_other(request, response, path):
#This is a terrible hack
environ = {u"__file__": path}
exec(compile(open(path, u"r").read(), path, u'exec'), environ, environ)
rv = environ[u"main"](request, response)
return r... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ee5635c50525121a7abafdf4f2497ca80d592b88 | ef243d91a1826b490e935fa3f3e6c29c3cc547d0 | /PyQt5/QtSensors/QDistanceReading.py | 93010e1e2e32d6db692726e8427d0fdb40d8b5f6 | [] | no_license | VentiFang/Python_local_module | 6b3d0b22399e817057dfd15d647a14bb1e41980e | c44f55379eca2818b29732c2815480ee755ae3fb | refs/heads/master | 2020-11-29T11:24:54.932967 | 2019-12-25T12:57:14 | 2019-12-25T12:57:14 | 230,101,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # encoding: utf-8
# module PyQt5.QtSensors
# from F:\Python\Python36\lib\site-packages\PyQt5\QtSensors.pyd
# by generator 1.147
# no doc
# imports
import PyQt5.QtCore as __PyQt5_QtCore
import sip as __sip
from .QSensorReading import QSensorReading
class QDistanceReading(QSensorReading):
# no doc
def distanc... | [
"5149528+ventifang@user.noreply.gitee.com"
] | 5149528+ventifang@user.noreply.gitee.com |
1ed5e23a6eec5d59476d6e9f794889ccaf9c1d50 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2015/iitbhu3.py | 0b48444d1b36719c8ee5de5dc0558536774e0724 | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | x=raw_input().split(' ')
a=int(x[0])
b=int(x[1])
y=raw_input().split(' ')
n=int(y[0])
m=int(y[1])
savea=a
saveb=b
if a>b:
while 1:
if a%b==0:
gcd=b
break
temp=a
a=b
b=temp%b
else:
while 1:
if b%a==0:
gcd=a
... | [
"sailesh.ku.upadhyaya@gmail.com"
] | sailesh.ku.upadhyaya@gmail.com |
8eb6dd51ef164ee1452d1e90314b69b391ac91a8 | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /senlin/tests/unit/apiv1/test_cluster_policies.py | 547c7f11cea39189106c81f3b497db2e0be8cd0a | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 7,295 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
3b9d3f0c092a22bced0ce36744a8a86dec30f188 | f034ce134705b2de79a5aef85496e0ed9eabd700 | /market/migrations/0001_initial.py | 930c638800dc0ee0538596413d50661da2ce1491 | [] | no_license | poudel/animal-farm | 4d7961ae3b8b64f382232f2f3a9c0fc41be392ab | 646a6156fd60a73e6e50de1c2891ae25a13dae30 | refs/heads/develop | 2021-04-06T06:26:35.834800 | 2018-03-14T15:47:12 | 2018-03-14T15:47:12 | 125,237,057 | 8 | 0 | null | 2020-02-11T21:25:44 | 2018-03-14T15:50:45 | Python | UTF-8 | Python | false | false | 3,301 | py | # Generated by Django 2.0.3 on 2018-03-10 06:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('livestock', '0007_auto_2018031... | [
"self@keshab.net"
] | self@keshab.net |
3ddce0badad2f28033a53e7964223509ad1d9078 | 0f2c3e9fef8146274362c25782991b8df68471b3 | /virtual/bin/sqlformat | 19582f982df35fdae7296406eb987b6eb139323b | [
"MIT"
] | permissive | seron-ux/Awards | 068199a8cc31368ee3adc5830a0bff68567149bd | e6cbe17a890e44b0d1d88c48d5c6c27656b50bfb | refs/heads/master | 2023-04-03T22:14:17.852709 | 2021-04-06T12:35:16 | 2021-04-06T12:35:16 | 354,060,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/home/moringa/Desktop/Awwards/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"abyseronkirui@gmail.com"
] | abyseronkirui@gmail.com | |
ee633cead836f951cba9e7535fd70d9222b2ba1a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pb_6025/sdB_pb_6025_lc.py | d912f3768ca33282d331c84172b5370d3149d7de | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[8.2935,1.325956], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pb_6025/sdB_pb_6025_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ == "__main_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
a6c39c47a9e3abb4901208d7a8d2d9fc8bf7c7d4 | ea79ba14054cd4879968e75dc0cfc4890ba090b8 | /common/xrd-ui-tests-python/tests/xroad_global_groups_tests/XroadMemberAddToGlobalGroup.py | bbb863da99caf10e227ca5120b7869720df39da0 | [
"MIT"
] | permissive | VitaliStupin/X-Road-tests | bf70a5591721243622e6c3a2653aae30af6c4ae4 | 6103f3f5bbba387b8b59b050c0c4f1fb2180fc37 | refs/heads/develop | 2023-04-16T12:20:23.289803 | 2018-06-01T07:59:12 | 2018-06-01T07:59:12 | 84,918,233 | 0 | 0 | null | 2017-03-14T07:21:58 | 2017-03-14T07:21:58 | null | UTF-8 | Python | false | false | 1,725 | py | import unittest
from helpers import auditchecker, xroad
from main.maincontroller import MainController
from tests.xroad_global_groups_tests import global_groups_tests
class XroadMemberAddToGlobalGroup(unittest.TestCase):
"""
SERVICE_37 Add an X-Road Member to a Global Group
RIA URL: https://jira.ria.ee/b... | [
"mardu@varuosakeskus.ee"
] | mardu@varuosakeskus.ee |
8713fa99e22ae736ff68230a7b32a4cdab41f7df | 9d67cd5f8d3e0ffdd4334a6b9b67c93f8deca100 | /configs/12_20share_old.py | cf6e73c0a3255ed59e3802cffdecf6980499f4aa | [] | no_license | SiyuanLee/caps | 0c300a8e5a9a661eca4b2f59cd38125ddc35b6d3 | 476802e18ca1c7c88f1e29ed66a90c350aa50c1f | refs/heads/master | 2021-06-20T22:48:16.230354 | 2021-02-22T13:21:57 | 2021-02-22T13:21:57 | 188,695,489 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,041 | py | """
This is the example config file
same_room
no parameter share
take a look at transfer_config (differences are there)
"""
import numpy as np
# More one-char representation will be added in order to support
# other objects.
# The following a=10 is an example although it does not work now
# as I have not included a '1... | [
"lisiyuan@bupt.edu.cn"
] | lisiyuan@bupt.edu.cn |
706bb6fb18f57fe7fbff7f5b7082205fde6883cf | 5b6ec656a247d10011fd67a920aa002ebdf873c3 | /Ecommerce Website/Ecommerce Website 1.3/EcommerceWebsite/urls.py | 0c1b7936cf2a6e86257310459061cbcc2ef5174e | [] | no_license | KhaledAbuNada-AI/Django-Projects | cfb46d46da5f5358171294ca8c02c62c5babf2cf | ff264426d7a650f3c513678bbd71b5519372f6d3 | refs/heads/master | 2022-04-24T10:52:26.791436 | 2020-04-22T15:27:37 | 2020-04-22T15:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | """EcommerceWebsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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')
Cl... | [
"siddhant.shah.1986@gmail.com"
] | siddhant.shah.1986@gmail.com |
8239c124f63cbbc3e2ce479cc233adb943472bcf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch77_2020_04_08_20_40_26_130258.py | 01494b6b51477f2062e1834d94e0c986db072780 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | def calcula_tempo(dicio):
nome_tempo = {}
i = 0
for e,a in dicio.items():
t = (200/a)**(1/2)
nome_tempo[e] = t
i += 1
return nome_tempo
| [
"you@example.com"
] | you@example.com |
e1a7c547a214c1f8836d35c4c7eacd9583f9394b | 96e74d3d36a8394f2f9a094c1eebe9e292b8123f | /setup.py | 0041bc7c6a46b037e90af71d5841c6cc73fbef18 | [] | no_license | kundajelab/locusselect | cf8073c541c2b363f70ff6e54f3d607701f6a832 | aafebf5e43e514e824a36ae07f5336a683e17b88 | refs/heads/master | 2021-07-02T12:14:14.281841 | 2020-11-12T10:10:16 | 2020-11-12T10:10:16 | 195,343,578 | 2 | 2 | null | 2019-07-19T19:31:13 | 2019-07-05T05:23:27 | Jupyter Notebook | UTF-8 | Python | false | false | 1,040 | py | from setuptools import setup,find_packages
config = {
'include_package_data': True,
'description': 'Compute deep learning embeddings for narrowPeak files; compute pairwise distance between embeddings and cluster with tSNE',
'download_url': 'https://github.com/kundajelab/locusselect',
'version': '0.3',
... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
9fddbd257c40305611a75397a400ebbb4e82b974 | c89e59b4d018e8a2d7dc0dbc3bb7a3768024f849 | /before2021/python/문제풀이/day6/7_건물세우기.py | 2d5eeac2e65309d19d45f900abf451c444c92311 | [] | no_license | leeiopd/algorithm | ff32103a43e467a5a091257cc07cf35365ecbf91 | e41647d3918c3099110d97f455c5ebf9a38d571e | refs/heads/master | 2023-03-08T23:46:34.919991 | 2023-02-22T09:39:46 | 2023-02-22T09:39:46 | 166,131,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | '''
(주)정올에서는 여러 개의 빌딩을 새로 지을 계획이다. 그래서 빌딩을 세울 장소를 선정하였다.
그리고 각 빌딩을 각 장소에 세울 경우에 드는 비용을 추정하였다. 예를 들어서 아래의 표를 보자
1 2 3
A 4 7 3
B 2 6 1
C 3 9 4
A, B, C 는 건물을 나타내고, 1, 2, 3은 장소를 나타낸다.
예를 들어서 건물 B를 장소 1에 세우면 비용이 2가 들고, 장소 2에 세우면 비용이 6, 장소 3에 세우면 비용이 1만큼 든다.
물론 한 장소에... | [
"leeiopd@hanmail.net"
] | leeiopd@hanmail.net |
9335ee01004cfda281685a47d13ad9f9b197d21d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02392/s373045640.py | 22f5aea0a5d5d4db08ccc0376b1cb0908b99e83c | [] | 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 | 77 | py | a, b, c = eval(input().replace(' ', ','))
print("Yes" if a < b < c else "No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6f8e8834f52ca848594d52208b0a41a8329f2961 | d23735419170bc51979bd37e6e82909ded61b818 | /image_lucida_project/image_lucida_app/context-processors.py | 97126abdacf5c034ac3bf03e29879d31545689ac | [] | no_license | ZoeLeBlanc/ImageLucida | 7f691d956faa2c5490c7a6b7d1ab69439636ea58 | edf41df372f31cac0682b9bfec85b2846b78a936 | refs/heads/main | 2023-02-20T12:41:20.372916 | 2022-05-30T02:12:26 | 2022-05-30T02:12:26 | 82,299,769 | 1 | 0 | null | 2023-02-15T18:32:12 | 2017-02-17T13:26:13 | Python | UTF-8 | Python | false | false | 1,665 | py | from image_lucida_app.models import *
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.models import User
def navigation(context):
"""
The navigation context processor generates the dynamic navbar for the index.html template.
"""
if context.user.is_authenticated():
... | [
"zoe.leblanc@vanderbilt.edu"
] | zoe.leblanc@vanderbilt.edu |
6ba1f46941ad26b0e5603b42a8af33aca521b913 | 40832e48ef481b4141435459afeaf0706fa6dc13 | /flask/crud/app.py | 0850249ba85737b18275e868b63a0dc907261a18 | [] | no_license | drgarcia1986/python-web-frameworks-crud | 93d85c9c35ae016d21d13549081fab84c33dbfe6 | 1fe110a3af5320ec6aecf277a45f61e3fc7df8be | refs/heads/master | 2021-01-01T16:49:52.529747 | 2015-09-14T13:39:13 | 2015-09-14T13:39:13 | 39,610,696 | 4 | 1 | null | 2015-09-14T13:39:14 | 2015-07-24T03:53:36 | Python | UTF-8 | Python | false | false | 621 | py | # -*- coding: utf-8 -*-
from flask import Flask
from .extensions import db
from .person.views import person_bp
def create_app():
app = Flask(__name__)
app.config.update(
SQLALCHEMY_DATABASE_URI='sqlite:///database.db'
)
register_extensions(app)
register_bluenprints(app)
create_datab... | [
"drgarcia1986@gmail.com"
] | drgarcia1986@gmail.com |
dfb10b03ea40082c08212ec8ee5ac256d02b0a38 | 29705cfa764b8800a4f611044bb441ae2dbb517e | /ctpbee/date.py | 7c0043958979e8278289aa71453ed442a804afe5 | [
"MIT"
] | permissive | ctpbee/ctpbee | 98c720a54999e9c4bb242848a9cd4363f96ea2e1 | 217b73da65931213c1af4733741014d05b3a8bac | refs/heads/master | 2023-03-16T12:47:01.260983 | 2023-03-13T05:49:51 | 2023-03-13T05:49:51 | 202,876,271 | 665 | 186 | MIT | 2023-09-12T12:33:29 | 2019-08-17T12:08:53 | Python | UTF-8 | Python | false | false | 145,684 | py | import datetime
trade_dates = [
'1990-12-19',
'1990-12-20',
'1990-12-21',
'1990-12-24',
'1990-12-25',
'1990-12-26',
'1990-12-27',
'1990-12-28',
'1990-12-31',
'1991-01-02',
'1991-01-03',
'1991-01-04',
'1991-01-07',
'1991-01-08',
'1991-01-09',
'1991-01-10',... | [
"somewheve@gmail.com"
] | somewheve@gmail.com |
7c016d8b6388aebf0272e9d020906a09f3c9df6b | 4cb189467bf31816fcd8bfb248947b7dd00c2017 | /pixace/__init__.py | 3819954c037ec6693028c42d50dcb3c11351c8bf | [
"MIT"
] | permissive | vishnubob/pixace | 6945861372d70fbbbe8f15ac1d36d65b8f0b0f06 | 8871f3ac79101a2e7780571b8aafb226382ad83d | refs/heads/main | 2023-02-25T14:01:47.110728 | 2020-12-26T03:10:40 | 2020-12-26T03:10:40 | 320,168,163 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | def download_model(model_name=None, checkpoint="default", weights_dir="model-weights"):
from . zoo import ModelZoo
zoo = ModelZoo(weights_dir=weights_dir)
return zoo.download(model_name=model_name, checkpoint=checkpoint)
def get_trainer(
model_name=None,
model_type="reformer",
weigh... | [
"giles@polymerase.org"
] | giles@polymerase.org |
674a462645ec6e5cafacdcf593439c253f7c3c93 | 32dcb7c872cbc5048a2024df73866ee20e7405ec | /0x0B-python-input_output/7-save_to_json_file.py | 16166a4b92ea1c6e34dbec961951bd9ae6613ebe | [] | no_license | Bzhamdi/holbertonschool-higher_level_programming | f52eccc48fe388d6728e59e68da336b392057b8e | d92c749ed64d8b795533105520ddea4e12c2a508 | refs/heads/master | 2023-06-07T08:07:47.579114 | 2021-06-24T22:55:38 | 2021-06-24T22:55:38 | 259,213,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #!/usr/bin/python3
"""save_to_json_file"""
import json
def save_to_json_file(my_obj, filename):
"""save object to jason file"""
with open(filename, 'w', encoding='utf-8') as file:
return json.dump(my_obj, file)
| [
"bouzouitina.hamdi@gmail.com"
] | bouzouitina.hamdi@gmail.com |
ba621a38f90ffdae0a50420c5fe784f09c301c67 | 0b4d36e45ac9a192982f01ebab15321981a17be5 | /app/admin/views/__init__.py | 2f32a1494d559d8911ab501dcc05d5b027e6a58a | [] | no_license | xuannanxan/maitul | 02f4f3ce85f02915c8d18cb4d291c3c6da4573d5 | 6407415f6beb6677875b23b06ac694996e840256 | refs/heads/master | 2020-07-11T00:10:18.569571 | 2019-11-17T12:39:38 | 2019-11-17T12:39:38 | 204,406,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # -*- coding: utf-8 -*-
# Created by xuannan on 2019-01-26.
__author__ = 'Allen xu'
from datetime import datetime
from flask_login import current_user
from flask import request,session
from app.expand.utils import build_tree,object_to_dict
from app.models import Crud,Menu,Conf,Admin,Role,Auth
from app.models.base impo... | [
"382933169@qq.com"
] | 382933169@qq.com |
d2af8f50791c38016c4bcce317336785a07c9ba2 | b1303152c3977a22ff9a0192c0c32310e65a6d77 | /python/884.uncommon-words-from-two-sentences.py | 67fdbd8c238f32b3c9e47676cc49d73841bc8d08 | [
"Apache-2.0"
] | permissive | stavanmehta/leetcode | 1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27 | 1224e43ce29430c840e65daae3b343182e24709c | refs/heads/master | 2021-07-15T16:02:16.107962 | 2021-06-24T05:39:14 | 2021-06-24T05:39:14 | 201,658,706 | 0 | 0 | Apache-2.0 | 2021-06-24T05:39:15 | 2019-08-10T16:59:32 | Java | UTF-8 | Python | false | false | 91 | py | class Solution:
def uncommonFromSentences(self, A: str, B: str) -> List[str]:
| [
"noreply@github.com"
] | stavanmehta.noreply@github.com |
1726741c163cca9863e2ad17ba1ad644d88dbc3d | c8da3539397dbd49388719fb6d8720db61e859a7 | /catkin_ws/build/robot_vision/catkin_generated/pkg.develspace.context.pc.py | 915527130a23863a915859f35818063c56b9d58c | [] | no_license | pinkpinkheart/ROS | a465c9e967cd1c71da7648a62d1cc8af342b70df | bd91772e24b72d466a90d2dd65f54be4be49ce99 | refs/heads/master | 2023-03-12T17:55:40.650415 | 2021-03-03T09:20:00 | 2021-03-03T09:20:00 | 344,137,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "robot_vision"
PROJECT_SPACE_DIR = "/h... | [
"123456789@qq.com"
] | 123456789@qq.com |
333a6c4dfc8182319414de1bdc18d089c1898ac5 | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /picamera/essentials-camera/Chapter 05 - Python/ch5listing2.py | 0b39ad336e65cbd478911fd113792f6648cee2cd | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 173 | py | from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview()
sleep(5)
camera.capture('/home/pi/Desktop/image.jpg')
camera.stop_preview() | [
"tdamdouni@users.noreply.github.com"
] | tdamdouni@users.noreply.github.com |
df1725401ad1ed3098e58f43cf648d10b867d034 | d45b4db35e5e8baef1aa71bb8ae55236e8e8de67 | /rm2bed.py | e36135ab8501ab8e641e864df18e86f177377c97 | [] | no_license | davek44/utility | a5af6bfff2cf576671dcdfa7bdfdac97a417b26a | 5a2581078bf9dab78cc182f2917ecb671d04570c | refs/heads/master | 2023-04-30T21:19:40.683342 | 2023-04-20T22:30:48 | 2023-04-20T22:30:48 | 7,212,829 | 18 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | #!/usr/bin/env python
from optparse import OptionParser
import gzip
'''
rm2bed.py
Convert RepeatMasker .out format to BED.
'''
################################################################################
# main
################################################################################
def main():
usage... | [
"drk@calicolabs.com"
] | drk@calicolabs.com |
c1881a3f7167b40d0502938ef8175b49df657c8c | e86364b36b82c24596dd71f9fa2221d036e8defc | /collections/ansible_collections/arista/eos/plugins/modules/eos_l2_interfaces.py | bb55e26753e4377bd7f101bd2b60c9ca4dbcffa8 | [] | no_license | ganeshrn/network_collections_migration | b3f11be5ecb9557787bcd12ca01b227379c7c102 | 8f56b60bfde606b291627665a1218bf7ce15f3a1 | refs/heads/master | 2020-09-12T12:10:58.189645 | 2019-11-18T11:44:48 | 2019-11-18T11:44:48 | 222,419,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,267 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
##############################################
# WARNING #
##############################################
#
# This file is a... | [
"ganesh634@gmail.com"
] | ganesh634@gmail.com |
38cfc7ab0516a8cc95e4612d23acabbe0368a327 | 2c13edf74323021a63697216bb39e1e2e9758342 | /listBackupFiles.py | 7efc89d660b08ec426460fdb5e011811f2a48e75 | [] | no_license | andreycizov/Ahsay-OBC-Restore-tool | 5126d0e9460b3a78ed51c41bacd7d1d3eb7372ea | b94450a8bd5de47ab1d909df93097950cd1af6c6 | refs/heads/master | 2021-01-22T19:13:47.283496 | 2011-08-26T17:53:23 | 2011-08-26T17:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/python3
from AhsayAPI import GZStreamRead as GZ
from AhsayAPI import XMLFileList as FL
from AhsayAPI import XMLFileInfo
from AhsayAPI import to_size
from AhsayAPI import salt
from AhsayAPI.urls import ls
from AhsayAPI.urls import urlopen
import sys
t = ls({'dir':sys.argv[1],
'backupjob':'Current',
'start_... | [
"acizov@gmail.com"
] | acizov@gmail.com |
99ecd43278056b15bee3a05aef0b937342baa5b9 | 7a4da5ec2196bf975a9e6115846244788b36b952 | /3.7.0/lldb-3.7.0.src/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py | 61a69cbc993695d10cacecdfbba90e4afb839332 | [
"NCSA",
"MIT"
] | permissive | androm3da/clang_sles | ca4ada2ec85d625c65818ca9b60dcf1bc27f0756 | 2ba6d0711546ad681883c42dfb8661b842806695 | refs/heads/master | 2021-01-10T13:50:25.353394 | 2016-03-31T21:38:29 | 2016-03-31T21:38:29 | 44,787,977 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,460 | py | """
Use lldb Python API to test dynamic values in ObjC
"""
import os, time
import re
import unittest2
import lldb, lldbutil
from lldbtest import *
class ObjCDynamicValueTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipUnlessDarwin
@python_api_test
@dsym_test
@expectedFailureDarw... | [
"brian.cain@gmail.com"
] | brian.cain@gmail.com |
a12ba1e7a58cbb5f71f5e88633c027104e7aa5a3 | 060b4486244008e40137b590397ed1264b4116de | /poetry/core/_vendor/configparser.py | 00c2335b787069a1566bc45f8b959f71f3307322 | [
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hoefling/core | d8bfa4b59e81a0a86d56c75e4b3d135c9f91ad2b | 7e9fbac94bbd2211b63421dc47fa91cb507c466d | refs/heads/master | 2022-05-08T06:29:41.070632 | 2020-04-22T18:59:34 | 2020-04-22T18:59:34 | 257,990,591 | 0 | 0 | MIT | 2020-04-22T18:46:57 | 2020-04-22T18:46:56 | null | UTF-8 | Python | false | false | 1,586 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Convenience module importing everything from backports.configparser."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from poetry.core._vendor.backports.configparser... | [
"sebastien@eustace.io"
] | sebastien@eustace.io |
07a1b69874544a91d2d108bcfcdd3e27ba9f3de2 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /402/402.remove-k-digits.282089710.Accepted.leetcode.python3.py | 5768f0de4828d4f67130aabc3ed918c82c4573aa | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | class Solution:
def removeKdigits(self, num: str, k: int) -> str:
if k == num:
return "0"
stack = []
for i in range(len(num)):
while k and stack and stack[-1] > num[i]:
stack.pop()
k -= 1
stack.append(num[i])
while k... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
2bc9de9da32d67746c3de41150491c969903db68 | 94d8bb0e323ee478b580f766b7700acd32b519fd | /augmented-reality/stitch.py | 7e6f169b0c70081fb1478e5f69c51dd4d3a04369 | [] | no_license | vanstorm9/SLAM-experiments | d5db1d7680193d664029230e135ddb0d5648d38d | b17c4f83ae2c7a9dfafebd8559953d7341699fc6 | refs/heads/master | 2021-01-17T20:26:38.135564 | 2016-08-20T05:59:06 | 2016-08-20T05:59:06 | 65,873,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | from panorama.panorama import Stitcher
import imutils
import numpy as np
import os
import cv2
widthResize = 600
def cropFocus(img):
subtractThresh = 20
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
_, thresh = cv2.threshold(gray,1,255,cv2.THRESH_BINARY)
contours = cv2.findContours(thresh,cv2.RETR_EXTERNAL,cv2.CH... | [
"antlowhur@yahoo.com"
] | antlowhur@yahoo.com |
43864d0cecc6965fd89fe49768f52b05fda4096d | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/hllbra005/ndom.py | e5b1bd8aa42e852320f2d1d656ace34011f9d230 | [] | 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 | 1,597 | py | # Functions for ndom calculations
# Brandon Hall (HLLBRA005)
# 4 April 2014
def ndom_to_decimal(ndom): # This method converts ndom to decimal numbers, i.e base 6 to base 10
decimal = ndom
ndomS = str(ndom) # Converts the parsed number ndom to a string
length = len(ndomS) # Length of th... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
ff89354798fc6cbc57a7af70c715c3cdaeb26fd3 | 3fe1b6f36bfd02156f606cf90797d69b18dd19d2 | /creme/optim/newton.py | 4997a95c4ab37fe8b551142380fd0e79804c74ff | [
"BSD-3-Clause"
] | permissive | mihir-thakkar-ai/creme | a19a1975bb462a1a93046b6ea55830e88846cb88 | 008b0c1beb26b36b448fc3d04537e02e66d402b3 | refs/heads/master | 2022-12-18T01:15:18.132117 | 2020-09-15T20:17:16 | 2020-09-15T20:17:16 | 296,288,773 | 0 | 0 | BSD-3-Clause | 2020-09-17T10:04:27 | 2020-09-17T10:04:26 | null | UTF-8 | Python | false | false | 1,182 | py | from .. import utils
from . import base
__all__ = ['Newton']
class Newton(base.Optimizer):
"""Online Newton Step (ONS) optimizer.
This optimizer uses second-order information (i.e. the Hessian of the cost function) in
addition to first-order information (i.e. the gradient of the cost function).
P... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
78ed70cfb6eeef227fb3bfb09143da364540ab98 | e4ad15cb20c2701f33c60001841a66fc03cd45ff | /pre_process_3.py | 586671edb3888c4c121c715fe9643c56c4479c0a | [
"MIT"
] | permissive | foamliu/Face-Attributes | 90fb70947155d0c773a4bf2888190a843a280db5 | fbf90cd55b01e4b84ec69d01132b4b77e0417952 | refs/heads/master | 2020-05-21T04:59:33.707892 | 2019-09-23T08:18:15 | 2019-09-23T08:18:15 | 185,909,551 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | import pickle
import cv2 as cv
from tqdm import tqdm
from config import im_size, pickle_file_landmarks, pickle_file_aligned
from utils import crop_image
ONE_SECOND = 1
if __name__ == "__main__":
print('loading {}...'.format(pickle_file_landmarks))
with open(pickle_file_landmarks, 'rb') as file:
data... | [
"liuyang12@focusmedia.cn"
] | liuyang12@focusmedia.cn |
4813e58f082e8347dbf5a8f63497e847b4c8ac7f | f3f19eaa73f2adb4375dbe6fbfa89eaaa8796cbc | /code/preprocessing/feature_engineering/rel_feature_groups/dep.py | 630cbe1fce98362a26687ff7ec077c7681d5248d | [] | no_license | sanjukladher/WNUT_2020_RE | 2b4c172de236a7766d27a588aa09a2f2f5d5a402 | 3ea31038bdc4a3b39def354ebee69ab00805ab0d | refs/heads/master | 2023-01-06T04:38:11.726589 | 2020-10-30T03:19:14 | 2020-10-30T03:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | from corpus.ProtoFile import Relation
from preprocessing.feature_engineering.datasets import RelationWindow
class DependencyFeatureGroup(object):
def __init__(self):
pass
def convert_window(self, window):
result = []
assert isinstance(window, RelationWindow)
if window.relation... | [
"jeniya.tabassum@gmail.com"
] | jeniya.tabassum@gmail.com |
301c79bdf0ec8be3cc4f05ca54b72e601197f4c9 | bba7f5a363d57473f583747af259f5ff60a53631 | /webrobot/app/main/controller/test_controller.py | 4dcd305dc12cb238fc24ba8826df878acd5d3efb | [
"MIT"
] | permissive | githubwangcc/Auto-Test-System | 63f7953c0dd90859a3cd0b9330e102330df064aa | 4462fde8c23fef625f459d51d6bb7560ba29d726 | refs/heads/master | 2020-09-21T13:58:29.185560 | 2019-10-22T01:23:48 | 2019-10-22T01:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,858 | py | import os
import time
from pathlib import Path
from flask import Flask, send_from_directory, request
from flask_restplus import Resource
from app.main.util.decorator import token_required, organization_team_required_by_args
from app.main.util.get_path import get_test_result_path, get_back_scripts_root
from ..config i... | [
"panzilla@163.com"
] | panzilla@163.com |
f21aa89b98bd1ddc09335867c23cbf53a8a6c2a7 | 06f238313235b279cad3ade94cb69f8c4f073215 | /model_verbq_working.py | 5638e6d98b9d212a37be48e2a72ecbf0b599877d | [
"MIT"
] | permissive | thilinicooray/mac-network-pytorch | f26f9fac0e67c21abdff6862a696187c4eb3126e | 0e4bf3f7f301570b652490f697758361c866f3c1 | refs/heads/master | 2020-03-29T04:39:35.133060 | 2019-05-14T12:48:00 | 2019-05-14T12:48:00 | 149,541,433 | 0 | 0 | MIT | 2018-09-20T02:44:20 | 2018-09-20T02:44:20 | null | UTF-8 | Python | false | false | 5,018 | py | import torch
import torch.nn as nn
from attention import Attention, NewAttention
from language_model import WordEmbedding, QuestionEmbedding
from classifier import SimpleClassifier
from fc import FCNet
import torch.nn.functional as F
import torchvision as tv
import utils
import numpy as np
import model_verb_directcnn
i... | [
"thilinicooray.ucsc@gmail.com"
] | thilinicooray.ucsc@gmail.com |
9ada941a10b5da9a1d14e5a9f5e8e2771b3c806c | 27440297f68994be89764ec1eb996df19c408749 | /processing/merge.py | f30b74502636511db234e2edb0563fa361bbf836 | [] | no_license | anoop-phoenix/Web_Presentation | ed084dfb56e8c9c6eb8d5e00b339cb7be989da1d | cb253cb6290a6c52183bae40330d8b79de69bbc1 | refs/heads/master | 2022-07-23T06:17:23.962036 | 2020-05-11T01:56:03 | 2020-05-11T01:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,209 | py | import json
import cv2
import numpy as np
from os.path import join as pjoin
import os
from lib_uied.ip_preprocessing import preprocess
from CONFIG import Config
C = Config()
compo_index = {'img':0, 'text':0, 'button':0, 'input':0, 'icon':0}
def draw_bounding_box_class(org, corners, compo_class, color_map=C.COLOR, li... | [
"dsh15325@163.com"
] | dsh15325@163.com |
82910b40db0a306227fb84d75d64878ce5263901 | ac415850ca1926439a5f882c4a3b6c6105247149 | /setup.py | db2d3d2e0e3fbbb8faf3f159cb6b0aae0d70b750 | [] | no_license | RedTurtle/collective.itvalidators | 2a4e816628e48e218f82d626f3d48adf191977c3 | 86f59adf51ea185796d7c8e5007e3fd9ebf66f92 | refs/heads/master | 2020-05-20T16:46:43.456230 | 2012-11-12T13:52:01 | 2012-11-12T13:52:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from setuptools import setup, find_packages
import os
version = '1.0.1.dev0'
tests_require=['zope.testing', 'Products.CMFTestCase']
setup(name='collective.itvalidators',
version=version,
description="A set of Archetypes validators for Plone, some for Italian specific needs, others useful for all",
... | [
"luca@keul.it"
] | luca@keul.it |
3bae7b1543b54747cd569854abb8d5a2f2c55705 | 1ee2087e1879b3d40661940f630f94576b38a75b | /migrations/versions/275b0e49dff7_.py | 8b691a445a1f3fb66ce336331ce9cbe0af46bfb4 | [
"Apache-2.0"
] | permissive | dpdi-unifor/limonero | be332baf0c3596c2195c8aaaefd67def64a57c8a | 3b46f780f82e1d291ebe0120d95c71e82cd46ed9 | refs/heads/master | 2023-01-03T22:00:06.474233 | 2020-08-06T18:04:21 | 2020-08-06T18:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | """empty messagepark-2.3.0/
Revision ID: 275b0e49dff7
Revises: 66d4be40bced
Create Date: 2018-07-11 16:15:33.196417
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import mysql
from sqlalchemy.sql import text
# revision identifiers, used by Alembic.
revision = '275b0e49dff7'
down_revision... | [
"waltersf@gmail.com"
] | waltersf@gmail.com |
5aee70ed6493dc5c7fe1fd68084783b335802ad2 | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/lite/testing/op_tests/space_to_depth.py | 27f5dbde160fea3d10d81554543841f1152f45b4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | Python | false | false | 2,125 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
64c18dd4c90df51f1a5970e4cc74abafd124de81 | 18619af2eb81d74d9e76d61971da1f0fe57b4bbb | /stochastic_optimizer/framework/__init__.py | 70d7241d62b8ae87c23c2fac6491ab6c84e3725d | [] | no_license | asahi417/StochasticOptimizers | 4b9245c7fc99e660d9298077823972cf86e21205 | d98c91136835206dc36d9409e425e1caf4fbb275 | refs/heads/master | 2020-12-01T04:37:20.798101 | 2020-01-01T07:50:58 | 2020-01-01T07:50:58 | 230,559,078 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from .learning_curve_classifier import LearningCurveClassifier
from .grid_search import GridSearch
__all__ = (
"LearningCurveClassifier",
"GridSearch"
)
| [
"spacefunkspacefunk@gmail.com"
] | spacefunkspacefunk@gmail.com |
8e8baac73edc574040ae13f34cab1d3b1185e8ce | d75371f629cf881de3c49b53533879a5b862da2e | /python/flatten-nested-list-iterator.py | 35a303de0ca7014e654d63308aa377c0f04c99be | [] | no_license | michaelrbock/leet-code | 7352a1e56429bb03842b588ba6bda2a90315a2f4 | 070db59d4e0ded3fb168c89c3d73cb09b3c4fe86 | refs/heads/master | 2020-04-01T05:40:49.262575 | 2019-10-10T22:03:10 | 2019-10-10T22:03:10 | 152,914,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger(object):
# def isInteger(self):
# """
# @return True if this NestedInteger holds a single integer, rather than a nested list.
# :rt... | [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
3eb8e8be307b73db69c95441580767c265d74e73 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileHof.py | 84be578dc3dfaf43f6f2f9fbcf9766701417e1b0 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 7,566 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileHof.py
from functools import partial
import BigWorld
from adisp import process
from debug_utils import LOG_WARNING, LOG_ERROR
from helpers import dependency, i18n
from gui.Scaleform impo... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
38af75495681eb2f6ff8f41b12bb003b2b7641d6 | 3daf036e3911c00e50fb76e083ada2134ff1758f | /firefox/export_firefox_cookies.py | 861a3b9d04167e0ea5495f881f256632f0561819 | [
"MIT"
] | permissive | jabbalaci/Bash-Utils | 954b234148745a9d73747392b137884ee7817246 | c880ff48eafb0f8f5f60f62d9cc3ddbbc0dd88b7 | refs/heads/master | 2023-05-01T22:40:46.713341 | 2023-04-24T14:30:25 | 2023-04-24T14:30:25 | 1,561,380 | 91 | 32 | null | null | null | null | UTF-8 | Python | false | false | 3,941 | py | #!/usr/bin/env python3
"""
Extract Firefox cookies
=======================
This script extracts cookies from Firefox's cookies.sqlite file
that are specific to a given host. The exported cookies are saved
in the file cookies.txt .
New! It also exports session cookies from Firefox's recovery.js file.
The exported coo... | [
"jabba.laci@gmail.com"
] | jabba.laci@gmail.com |
fddabc87a3bd3b32b19da51b8a145cb38e9f1ca1 | 7bcec8a9c6a240ec0888bec4179f536046464005 | /moviesys/moviesys/.history/library/admin_20210318134349.py | 76ed2874fbcd5d1186ba17a3a66fef09063aae9c | [] | no_license | yifanzhang13/MovieManagementSystem_group5 | c64e5810914c3d33ae6cd94e8eed5dc5a3962181 | 4cca1a4299311681d69b2347ca8d7b02e0846ebc | refs/heads/main | 2023-03-29T08:30:26.655108 | 2021-04-01T15:42:52 | 2021-04-01T15:42:52 | 344,417,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from django.contrib import admin
# Register your models here.
from .models import Movies, Users, Ratings, Links, Tags
# register models
# admin.site.register(Movies)
admin.site.register(Users)
admin.site.register(Ratings)
admin.site.register(Links)
admin.site.register(Tags)
@admin.register(Movies)
class MoviesAdmin... | [
"yifancheung13@gmail.com"
] | yifancheung13@gmail.com |
ade285186c539e4e1bfac84b045c7a325362486d | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P5667.py | b91f9dbfe363084ec778918ed185877ab603d56c | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | import bisect
class Solution:
def canEat(self, candiesCount, queries):
n = len(candiesCount)
s = [0] * (n + 1)
for i, v in enumerate(candiesCount):
s[i + 1] = s[i] + v
ret = []
for q in queries:
t, d, c = q
l = 1 * (d + 1)
r ... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
e1488fdab650b9fd0136aa331c3c6462879aeb1a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=0.8_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=37/params.py | 9cc08e99d9f5bb4bdff5449574abf1e1a429bfd7 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.027810',
'max_util': '2.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 37,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
e3386f799b3627d0602e35e0985396f0d83ec41e | 8be3c3df6cfb9795d91dac3aef1ca770cb13bd50 | /tools/compute_metric.py | 096b34e4ef3f079f9598e1efb58a174ce0286757 | [] | no_license | elda27/deepnet | ba1d7c50c84c31161e25bfdf15c9415f2ae7308a | 71db3441c789e5bc5a121c19c03b586663ec891a | refs/heads/master | 2021-07-08T04:14:50.167106 | 2019-02-01T04:48:01 | 2019-02-01T04:48:01 | 138,707,614 | 1 | 0 | null | 2018-07-20T03:02:23 | 2018-06-26T08:25:00 | Python | UTF-8 | Python | false | false | 9,552 | py | import auto_path
import sys
import argparse
from functools import reduce
from deepnet import utils
from deepnet.utils import mhd, visualizer, dataset
import process
import os
import os.path
xp = None
as_gpu_array = None
as_cpu_array = None
import numpy as np
try:
import cupy as cp
xp = cp
as_cpu_array = c... | [
"kaz.birdstick@gmail.com"
] | kaz.birdstick@gmail.com |
58ac4d3b7103bda054d0570437db103f52fab1b4 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/pallih/eyjanis-kommentarar2.py | 59d477447c9e7f83b4a946f102e24c0b26201b2b | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,366 | py | ###############################################################################
# Eyjan Kommentarar - allir skradir kommentarar a eyjan.is
###############################################################################
import scraperwiki, urllib2, re, urllib, json, time
from BeautifulSoup import BeautifulSoup, SoupStr... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
a71f07c2f02f4b0b318fd2cd140f634cbc394487 | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/lib/surface/apigee/base.py | ea6208f2afffb0c8f08517c2c13a3704255c8215 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 9,821 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
f32820f7dc5afdb06d623413c51c3fa851319acd | ab5cdf8f2de94c327e4679da84f941b1f3c04db4 | /kubernetes/client/models/v1beta1_host_port_range.py | 580abcc558942c90a636d2190bec5623cb540642 | [
"Apache-2.0"
] | permissive | diannaowa/client-python | a4a92a125178db26004eaef5062f9b1b581b49a8 | 5e268fb0b6f21a535a14a7f968b84ed4486f6774 | refs/heads/master | 2020-12-02T22:06:03.687696 | 2017-06-30T21:42:50 | 2017-06-30T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
f5f364ce6f2c28ed585f25e0559cd6f7cccfc170 | 4302fd10583ccff63ff5693bd2ae5903323cb769 | /curate/migrations/0005_remove_study_is_replication.py | b6ec819551ad0d855253b9dfe55fef304f4a0d25 | [
"MIT"
] | permissive | ScienceCommons/curate_science | 1faf742c8de1e9c9180e4d8ec6a7457ad95bb705 | 4e4072e8c000df0d2e80637016f8f0e667f4df54 | refs/heads/master | 2022-02-12T19:56:51.730534 | 2022-01-25T16:44:54 | 2022-01-25T16:44:54 | 149,122,317 | 14 | 7 | MIT | 2021-03-23T17:27:05 | 2018-09-17T12:32:25 | HTML | UTF-8 | Python | false | false | 334 | py | # Generated by Django 2.1.1 on 2018-09-27 02:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('curate', '0004_auto_20180921_0646'),
]
operations = [
migrations.RemoveField(
model_name='study',
name='is_replication',
... | [
"alex.kyllo@gmail.com"
] | alex.kyllo@gmail.com |
fd4b65d59d854cc6badda13d543369570401228a | f26937e8cd0b07589ba1cf6275596d97488cda7e | /scrapySpider/fenbu/fenbu/spiders/ff.py | aa080ce347819359cc930f96fdb95135e9cc23bc | [] | no_license | HezhouW/hive | 4aa46a045d22de121e2903075e74c3c9fd75ec1f | 3a7de0c18cbe0ec81e0b40c3217dd5b1a15cf464 | refs/heads/master | 2022-02-27T04:52:42.704501 | 2019-05-24T02:40:49 | 2019-05-24T02:40:49 | 123,524,369 | 1 | 0 | null | 2018-03-02T03:18:07 | 2018-03-02T03:18:07 | null | UTF-8 | Python | false | false | 308 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy_redis.spiders import RedisCrawlSpider
from fenbu.items import FenbuItem
import re
import redis
class MoviespiderSpider(RedisCrawlSpider):
name = 'ff'
redis_key = 'fenbuSpider:start_urls'
def parse(self , response):
print(response.text) | [
"954316227@qq.com"
] | 954316227@qq.com |
e2383962ea844f757294461227b086b8a268e840 | 9fce5f629873ef5c43274fdae1d49a270ec78f38 | /venv/lib/python3.6/site-packages/pony/orm/tests/test_diagram_attribute.py | dab290d4f0f4b52a598af72e6653aa4b0f13fb16 | [] | no_license | makkar-nishant123/Pythonselenium | 2c9273d81915bc1f7724de93d7b87c76b5f9066b | 173f49e6522b80f13e6e406756130c0b1376a139 | refs/heads/master | 2021-06-12T09:30:24.097297 | 2021-04-22T02:48:56 | 2021-04-22T02:48:56 | 182,635,591 | 0 | 0 | null | 2021-04-22T02:52:08 | 2019-04-22T06:26:41 | Python | UTF-8 | Python | false | false | 27,721 | py | from __future__ import absolute_import, print_function, division
from pony.py23compat import PY2
from datetime import date
import unittest
from pony.orm.core import *
from pony.orm.core import Attribute
from pony.orm.tests.testutils import *
class TestAttribute(unittest.TestCase):
@raises_exception(Ty... | [
"makkar.nishant123@gmail.com"
] | makkar.nishant123@gmail.com |
feb0de67b1279c42a7f67cadd8c3b7566685ac4c | 2a28a94fc8eb08961e76c61ab73889135153502b | /asposecellscloud/requests/delete_horizontal_page_break_request.py | b8b9619e62e7eae4af87a1eeb338ddd0627b0f6f | [
"MIT"
] | permissive | aspose-cells-cloud/aspose-cells-cloud-python | 45fc7e686b442302a29a8223e7dbddb71950438c | 270d70ce7f8f3f2ecd9370b1dacfc4789293097e | refs/heads/master | 2023-09-04T01:29:44.242037 | 2023-08-23T13:13:30 | 2023-08-23T13:13:30 | 123,092,364 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | # coding: utf-8
"""
<copyright company="Aspose" file="DeleteHorizontalPageBreakRequest.cs">
Copyright (c) 2023 Aspose.Cells Cloud
</copyright>
<summary>
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 ... | [
"roy.wang@aspose.com"
] | roy.wang@aspose.com |
da0594e90c26aaae98ad9da7493093c03cf47b0b | 0a11a15cf64e25585d28f484bb2118e8f858cfeb | /알고리즘/알고리즘문제/4869_종이붙이기.py | 288c845e4383a2dd1780008c74d376f54243f413 | [] | no_license | seoul-ssafy-class-2-studyclub/GaYoung_SSAFY | 7d9a44afd0dff13fe2ba21f76d0d99c082972116 | 23e0b491d95ffd9c7a74b7f3f74436fe71ed987d | refs/heads/master | 2021-06-30T09:09:00.646827 | 2020-11-30T14:09:03 | 2020-11-30T14:09:03 | 197,476,649 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def paper(N):
if N == 10:
return 1
if (N // 10) % 2 == 1: # 홀수
return paper(N - 10) * 2 - 1
else:
return paper(N - 10) * 2 + 1
for t in range(int(input())):
N = int(input())
print('#{} {}'.format(t+1, paper(N)))
| [
"gyyoon4u@naver.com"
] | gyyoon4u@naver.com |
11f3ef974d5abdbfdc9ca0f8a54234575470961f | fe2ce1b060ff4e9533385095ad13108f2b06d23e | /vnpy/trader/vtEngine.py | 8d827555716587e0126e1b86a850f41d3d2ded48 | [] | no_license | ukamoy/trader-monitor | 70c95eca465065c299337e5c6e29b3d9eb31e9a5 | 6c222db9a63661b864d504b54387ce7b77aaea0c | refs/heads/master | 2020-04-01T09:23:24.661434 | 2018-12-04T07:38:41 | 2018-12-04T07:38:41 | 153,072,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,045 | py | # encoding: UTF-8
import os
import shelve
import logging
from logging import handlers
from collections import OrderedDict
from datetime import datetime
from copy import copy
# from pymongo import MongoClient, ASCENDING
# from pymongo.errors import ConnectionFailure
from vnpy.event import Event
from vnpy.trader.vtGlo... | [
"rinzia@msn.com"
] | rinzia@msn.com |
d20b982fe3c60329974052d5ba1eeb74eab893e8 | 9c84f9d5dc15a7aa5d1caf05b6ae5ea83e39be3a | /python_stack/django/django_full_stack/BellReview/BellReview/settings.py | e601fdec278ca591be2c1b97ab65472513bdbd3b | [] | no_license | tomnguyen103/Coding_Dojo | 0fc4007296feb775b4bcd6ee98f66286b2786adb | ec46b866fc7e58a37d07b63b26b38d19eaeb96f6 | refs/heads/master | 2022-12-28T03:47:57.172540 | 2020-06-15T23:03:50 | 2020-06-15T23:03:50 | 212,214,976 | 1 | 0 | null | 2022-12-11T18:36:51 | 2019-10-01T22:59:37 | Python | UTF-8 | Python | false | false | 3,123 | py | """
Django settings for BellReview project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"huuthong103@gmail.com"
] | huuthong103@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.