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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e8eb7cfd16b0572c20b19d0ca5619c7eecbd659 | 7c9917d62959b8d69309d44362481356e632083e | /enzymatic_bias/profile_model_of_bias/kmer_init_tuned/dnase/24mer/model.py | 8e07a5bc7b4e1400fd6be929ca7b482df4c88a82 | [
"MIT"
] | permissive | kundajelab/bias_correction | bee77bd2d36268aa6b7046b817e9e349c8cc8238 | 521678ea8739473f793b0ce85e22e622d13df6fe | refs/heads/master | 2021-06-21T11:34:54.558788 | 2021-06-10T06:39:35 | 2021-06-10T06:39:35 | 218,137,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,974 | py | import pickle
import pdb
import numpy as np ;
from keras.backend import int_shape
from sklearn.metrics import average_precision_score
from kerasAC.metrics import *
from kerasAC.custom_losses import *
import keras;
#import the various keras layers
from keras.layers import Dense,Activation,Dropout,Flatten,Reshape,In... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
c51867d2cd55c0e97a84af6332cfcfd529eeb1d2 | 40be7c7a50b839a922c22ea624123b11e5da25cb | /feria/migrations/0003_franquicia_imagen.py | c252e9fbb8cc5b7835b3b8c49f36ae453c9fd74f | [] | no_license | LuberNavarrete/sistema | e70b15d0410402ceb6f3ba2a320886d5b225c65c | e4800f3aa2cdde69189a43dcf9543be85ed14693 | refs/heads/master | 2021-01-10T16:54:21.479466 | 2015-11-15T14:21:20 | 2015-11-15T14:21:20 | 44,011,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feria', '0002_auto_20151008_1937'),
]
operations = [
migrations.AddField(
model_name='franquicia',
n... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
951e87820000a2ba516ce5733b3db4e751382387 | be0eda70579e191d7dd1ace87ccbda8a3e85474e | /app01/urls.py | 78bd401466e3cf6df768de0ca595ee3d970007da | [] | no_license | zxycode-2020/django_tutrital2 | 084ebe4a83e7a9724163ae54b816239ff2b0cce6 | 969ce0b3caca92c045afee0e5eb628f9afb35b48 | refs/heads/master | 2022-05-03T23:22:17.075830 | 2020-02-05T03:11:09 | 2020-02-05T03:11:09 | 236,920,126 | 0 | 0 | null | 2022-04-22T23:00:29 | 2020-01-29T06:40:39 | Python | UTF-8 | Python | false | false | 577 | py | from django.urls import path, include
from app01.views import index, article, test_url, student, \
students, args, reg, xuanran, orm_test, post_cls, get_cls
urlpatterns = [
path('index/', index),
path('article/<str:aid>/', article),
path('test_url/', test_url),
path('students/', students), ... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
2b792a76a6d249e279abf8afff4ad007a551e9e7 | d42a9128898d504a9831f1afee3198c4677236c9 | /Level_3/가장먼노드.py | 19833971ef9bcd673871a0c8a749d8662f7847c8 | [] | no_license | ketkat001/Programmers-coding | 6848a9c8cffd97b792cfc8856ec135b72af5d688 | 799baba8d66a9971b43233d231cecbf262b4ea27 | refs/heads/master | 2023-09-02T23:07:25.614820 | 2021-10-17T18:12:02 | 2021-10-17T18:12:02 | 235,016,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from collections import deque
def solution(n, edge):
answer = 0
graph = [[] for _ in range(n+1)]
dp = [0] * (n+1)
dp[1] = 1
queue = deque([1])
for edg in edge:
graph[edg[0]].append(edg[1])
graph[edg[1]].append(edg[0])
while queue:
answer = len(queue)
for i i... | [
"ketkat001@gmail.com"
] | ketkat001@gmail.com |
a24038b8a160f6fdb13f63be8d66b6cae29dd3e1 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v5/proto/services/account_link_service_pb2.py | 972899082ca981068d71b76032f3fa541ac8301d | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 21,860 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v5/proto/services/account_link_service.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
ecad99a07312379715f64a3e39b3ea5577d254ee | c5746efe18a5406764c041d149d89c0e0564c5a5 | /1. Python语言核心编程/1. Python核心/Day07/exercise11.py | a656871fe2f7a823083003ada2bd5ae8242e8c9c | [] | no_license | ShaoxiongYuan/PycharmProjects | fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3 | 5111d4c0a7644c246f96e2d038c1a10b0648e4bf | refs/heads/master | 2021-12-15T05:45:42.117000 | 2021-11-23T06:45:16 | 2021-11-23T06:45:16 | 241,294,858 | 3 | 1 | null | 2021-02-20T15:29:07 | 2020-02-18T07:06:08 | Jupyter Notebook | UTF-8 | Python | false | false | 175 | py | def sum_digit(num):
"""
:param num:
:return:
"""
count = 0
for item in str(num):
count += int(item)
return count
print(sum_digit(1234))
| [
"ysxstevenpp123@gmail.com"
] | ysxstevenpp123@gmail.com |
4052c872dbac2fd274177618ea0b913cd7c86450 | 6a9f06b967d7641ddff7b56425651b29d3e577f4 | /mindinsight/mindinsight/backend/datavisual/train_visual_api.py | a868a443c817c402a689b20195737d12c7706bd9 | [
"Apache-2.0"
] | permissive | ZeroWangZY/DL-VIS | b3117016547007b88dc66cfe7339ef02b0d84e9c | 8be1c70c44913a6f67dd424aa0e0330f82e48b06 | refs/heads/master | 2023-08-18T00:22:30.906432 | 2020-12-04T03:35:50 | 2020-12-04T03:35:50 | 232,723,696 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"756762961@qq.com"
] | 756762961@qq.com |
904accd2539767b15763cd55082659294465b998 | a2e11ec88ef3c83b9f07129e76a3681a676d164f | /demo8apr/testapp/urls.py | 612a33b0ec158d2795dc24c6b407ab4fabc9dc74 | [] | no_license | qwertypool/lofo | dadd7cd5b149a3a200b7111d803b1d0195d76642 | 3bc7bd125e7ea5a67f51dd6dd654e38a5f218055 | refs/heads/master | 2022-05-18T09:31:11.456634 | 2020-04-18T14:47:44 | 2020-04-18T14:47:44 | 256,773,858 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from testapp import views
urlpatterns = [
path('form/',views.form_view,name='forms'),
path('thankyou/',views.thankyou_view,name='thankyou'),
path('list/',views.list_view,name='list'),
path('elist/',views.elist_view,name='elist'),
path('eform/',views.eform_view,name='efo... | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
825f6ccaee5f5912163c36e767b88ed23e0e1a49 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/snmp/src.py | b6b8d307181045b63a79b7469c70f940f94421de | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,786 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
32275f30d3edfcdfabbae11c0e0d3061a353a050 | 33f9056de72ea429774cdf42d3f813a4cd33a255 | /backend/takeout/admin/models/admin.py | 803776d2c167a36a3dde181c74e8d18c7d90e965 | [
"MIT"
] | permissive | alex159s/Take-out | a566e35d5c05c6e8456beb449c08b6c6479f4e79 | 27c66dcc4f0e045ae060255679a2aa68c0f744d2 | refs/heads/master | 2020-04-06T06:36:51.806309 | 2016-07-15T14:27:06 | 2016-07-15T14:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # coding: utf-8
from lib.models.userbase import UserBase
class Admin(UserBase):
def to_string(self):
return {
"id": self.id,
"username": self.username,
"nickname": self.nickname,
}
def to_detail_string(self):
return self.to_string()
| [
"billo@qq.com"
] | billo@qq.com |
d14f400d7cb6a38ec86427c746f0251aa6fa1c75 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3721.py | dba02cd6001ae165033db26d67139aa3e7a13aa6 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,348 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
62d5c24f0840174a493b4036c242af7859a52887 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/ICalGLib/__init__.py | 75c6283ac12886f54d25efafcb89d88f2ef41f10 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 12,903 | py | # encoding: utf-8
# module gi.repository.ICalGLib
# from /usr/lib64/girepository-1.0/ICalGLib-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
fe08de446db91af310d979c631ab7fd26537e457 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_121/ch9_2020_08_31_17_12_51_131522.py | f0d648d01a9c7d5c599714f7d8705d12d95bfed3 | [] | 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 | 114 | py | import math
def calcula_volume_da_esfera(r):
volume_esfera = 4 / 3 * math.pi * r ** 3
return volume_esfera | [
"you@example.com"
] | you@example.com |
25bec75d335fd19663fb549bac3f111228adcee2 | f3e51466d00510f1dae58f1cb87dd53244ce4e70 | /LeetCodes/facebook/ReverseLinkedList.py | 9184e30348f7f6739d047928f0e48937973b5b12 | [] | no_license | chutianwen/LeetCodes | 40d18e7aa270f8235342f0485bfda2bd1ed960e1 | 11d6bf2ba7b50c07e048df37c4e05c8f46b92241 | refs/heads/master | 2022-08-27T10:28:16.594258 | 2022-07-24T21:23:56 | 2022-07-24T21:23:56 | 96,836,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | '''
Reverse a singly linked list.
Example:
Input: 1->2->3->4->5->NULL
Output: 5->4->3->2->1->NULL
Follow up:
A linked list can be reversed either iteratively or recursively. Could you implement both?
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.ne... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
d9557a94d789d81754209070b91182d44bae2261 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/events/settings.py | 45ce014e97b50016de412b5d7b4e562a48cc8776 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,847 | py |
from __future__ import unicode_literals
import os
import re
from functools import wraps
import yaml
from flask.helpers import get_root_path
from fossir.core import signals
from fossir.core.settings import ACLProxyBase, SettingProperty, SettingsProxyBase
from fossir.core.settings.converters import DatetimeConverter... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
8e34a2e597940d4b033ab178c33dd25722a67540 | fc25d8a6d20b2b9dd78df754b53067e4a6c255d8 | /step01a_seaIce_monthlyaveraging_RCP45.py | eaf54dd5e6d74de9ac04cfb70b5d4a8a03153cd3 | [] | no_license | weilin2018/cesmEnsembleSeaIce | 5195bbec3b4c717d4a990e814b0a8aefa1b46857 | 7dfeac61d421951560b1562c107ffd3b72a292c9 | refs/heads/master | 2020-09-04T19:31:53.099776 | 2015-09-29T17:33:19 | 2015-09-29T17:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,864 | py | # code written by K. Barnhart in 2014 and 2015 in support of
# Barnhart et al., TITLE, YEAR
#
# this code represents the first step in analysing the CESMLE sea ice output
# it creates monthly averages of the sea ice concentration and sea ice extent.
#
# to run it, please verify that all the modules listed below are i... | [
"katy.barnhart@gmail.com"
] | katy.barnhart@gmail.com |
01dca87891811dc9c80df4ec667f35a0d253a385 | 2d997384a86f0d9c0cdb80a1141908abfdf674cc | /ML_homework8/task.py | 3a7d666193d64500051f875d33be8500c66db5a8 | [] | no_license | Alice-Avetisyan/Machine_Learning | 1ddc91fad066f3abf0457d036aa783f0fc40a46f | 9a0cc83c6d90ef58703a383f066ef857bb124334 | refs/heads/master | 2021-01-16T09:07:20.435898 | 2020-06-18T08:44:17 | 2020-06-18T08:44:17 | 243,054,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | from sklearn.datasets import make_classification
# Generate a random n-class classification problem
X, y = make_classification(100, 3, 2, 1, class_sep=0.5) # 2 of 3 features are informative and 1 is redundant
# 100 -> number of samples/rows,
# 3 -> number of features/columns,
# 2 -> number of informative features... | [
"noreply@github.com"
] | Alice-Avetisyan.noreply@github.com |
9e30f6dd5e43574bbc8c96b3976c5ed164f00864 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/vehicle_systems/components/__init__.py | 057145a5b192b33ecbef57d0bc595f52f45d7640 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 132 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/vehicle_systems/components/__init__.py
pass
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
10ebb5a33de3a78479eeeeab0075a4ed9b9b5b16 | bcb56cc126ea1885eb5ecc920884e2e331def045 | /Part B/Letter.py | 5536de9080655ae9b4a8c2bdfc7f925462a11551 | [] | no_license | priyanshkedia04/Codeforces-Solutions | 2d11cb7b8329fe658f983b7212c17fc89fd784f0 | a5197c633bf4c3238f48bfb5b308144c2ffba473 | refs/heads/main | 2023-06-06T13:10:13.787843 | 2021-07-01T14:06:52 | 2021-07-01T14:06:52 | 382,000,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from collections import Counter
s1 = dict(Counter(list(input())))
s2 = dict(Counter(list(input())))
count = 0
if ' ' in s2:
del s2[' ']
for i in s2:
if i in s1 and i:
if s1[i] >= s2[i]:
count += 1
if count == len(s2):
print("YES")
else:
print("NO") | [
"noreply@github.com"
] | priyanshkedia04.noreply@github.com |
dab8b347c67f8225bb55fa6570fe28846ab87f79 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/101/usersdata/227/49714/submittedfiles/av1_m3.py | 24617831cbcfc8ae60100af176c4d6c910776e9e | [] | 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 | 178 | py | # -*- coding: utf-8 -*-
import math
m=int(input('digite o número de termos:'))
a=4
pi=0
for i in range(2,m+1,2):
b=i+1
c=b+1
pi=3+(a/(i*b*c)
print('%.6d'%pi)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2d87cfb2050dc123dda3a9e59dec3db88a7322cd | cf03974cf92b11db7c52d7aec87b4c856feba215 | /hungry.py | 7a043473d6bca288b13395ad5e69c900846611e1 | [] | no_license | kkirankumar9/test | 80164594d4f1df97effa3df8b7a19e8f79817c76 | 166e77e17675bfa873c38ade145aa115a786be55 | refs/heads/main | 2023-06-21T10:27:55.815853 | 2021-07-31T13:59:12 | 2021-07-31T13:59:12 | 387,144,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | i=input("are you hungry")
if i=='yes':
print("eat pizza")
else:
print("do work") | [
"you@example.com"
] | you@example.com |
f1089e8283bf6ef3416226ce279c6d214d5d825b | 5ff12b8402f45a945ef1d33235ecb9c85fb20fe1 | /assignment2/cs231n/classifiers/fc_net.py | 86b2053377b423a96411375ec289b26feb92ac93 | [
"MIT"
] | permissive | strategist922/cs231n | 6cc5c82d6df210828f1a3004c964941ae2775fd1 | 592aa76417341728759900b580141df333a5b46c | refs/heads/master | 2020-04-01T09:17:02.570479 | 2018-08-08T05:32:16 | 2018-08-08T05:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,156 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dim... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
dfce2e36e00f6072dad0dd1363e621c2a3ac5e08 | 2635c2e2c31a7badb8b188306c3cdfc61dc1ecc8 | /versiones_anteriores_historico/ihm_ant_historico_precios/models/purchase_order_lines.py | 58305e8b480fabd0953f97d4aaea24313293aa7c | [] | no_license | rosalesdc/ihm_testing | ec4ebf26c3c7602267a04fd183de4064f9d16bc1 | d91ebeac5504c9f29a21b2b0f05bc16ed240ff48 | refs/heads/master | 2020-04-17T01:21:03.214595 | 2019-10-29T23:05:52 | 2019-10-29T23:05:52 | 166,088,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | class purchaseOrderLines(models.Model):
_inherit = "purchase.order.lines"
def genera_reporte | [
"rosales9146@gmail.com"
] | rosales9146@gmail.com |
464aca6bdb71bea101e69f9172bcaeea0fdf5dee | a485f01fd697721356d4405dfef569c50499d652 | /SipMask-mmdetection/configs/sipmask/sipmask++_r101_caffe_fpn_ssd_6x.py | dabccfd91bdc17e15ea79c812b84436a3eeb3192 | [
"MIT",
"Apache-2.0"
] | permissive | Borda/SipMask | 653333c1c7a7b5e9d0779c28f1b86d17b623aa5f | bc63fa93f9291d7b664c065f41d937a65d3c72fd | refs/heads/master | 2023-05-25T11:11:44.452534 | 2021-03-26T02:47:49 | 2021-03-26T02:47:49 | 299,910,001 | 1 | 0 | MIT | 2020-09-30T12:22:24 | 2020-09-30T12:22:23 | null | UTF-8 | Python | false | false | 4,553 | py | # model settings
model = dict(
type='SipMask',
pretrained='open-mmlab://resnet101_caffe',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=False),
style='caffe',
... | [
"connor@tju.edu.cn"
] | connor@tju.edu.cn |
8d09c7578019ad5f22cf3b2ab7e4e74eaa4c0bbe | f3ccd2cf5c1819cf6b2b296a134a59a58deb87a6 | /03img_classify/classify.py | a1bbe880c582e1d737c4fb08b515be56ded6347b | [] | no_license | leebinjun/gaze_tracking_ARglasses | 195120a17a0e4858f4cdfc9516e781567f091fb0 | 63841b565f6fbb16f788268fb1ef991df0142b6b | refs/heads/master | 2020-07-27T01:50:35.800129 | 2019-12-18T03:05:15 | 2019-12-18T03:05:15 | 208,825,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | import tensorflow as tf
import numpy as np
import cv2
uid_to_human = {}
for line in tf.gfile.GFile('imagenet_synset_to_human_label_map.txt').readlines():
items = line.strip().split('\t')
uid_to_human[items[0]] = items[1]
node_id_to_uid = {}
for line in tf.gfile.GFile('imagenet_2012_challenge_label_map_proto.pbtxt')... | [
"296735774@qq.com"
] | 296735774@qq.com |
4cbbc8616a600058c184f711b2e71766118ee132 | 2c8c7617d98f0349e560291960ecc5fb831bc0af | /programmers/level1/min/최대공약수와최소공배수.py | 67ebc70fa0b925142de49537b9ce963b435f15d2 | [] | no_license | BU-PS/coding_test | e53d9680ae80f32bfb5238795e868d3b37e5dd71 | c4fbd5034c8f507a858ca021cc7f6cfcf43f402a | refs/heads/master | 2023-03-15T05:26:36.566092 | 2021-03-25T12:36:40 | 2021-03-25T12:36:40 | 316,865,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # 최대 공약수 (GCD) : 두 개 이상의 자연수의 공통인 약수 중 가장 큰 수
# 1. 최대 공약수를 구하는 법
# - 두수의 약수들을 구한다
# - 두수의 약수들을 집합(set)에 넣는다
# - 교집합을 통해 공약수를 찾는다
# - 교집합을 중 가장 큰 수를 찾는다
# 최소 공배수 (LCM) : 두 수의 공배수가 최소인
# 1. 최소 공배수를 구하는 법
# - N * M = L * C 의 식을 통해 값을 구한
def solution(n: int, m: int):
gcd_value = gcd(n=n, m=m)
lcm_value = lcm(n=n... | [
"kjhm0607@gmail.com"
] | kjhm0607@gmail.com |
27e83ea7ad44899703c2d61c2941e9dcef77cdd2 | 8e583ac7e8a2047f01fa6e9829f9de36022c3265 | /lib/python/gooey/python_bindings/gooey_parser.py | 95e2b888765693f41f424ea3c8819bc2d20689f2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jonathanlurie/timelapseComposer | ef25c5623d19024e5f83ad6c236497fdcffca10d | 8de9f1ca626419bacb11bf6c563e79d52fb16a8d | refs/heads/master | 2021-01-10T09:18:58.517707 | 2015-05-25T18:58:40 | 2015-05-25T18:58:40 | 36,248,988 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py |
from argparse import ArgumentParser
class GooeyParser(object):
def __init__(self, **kwargs):
self.__dict__['parser'] = ArgumentParser(**kwargs)
self.widgets = {}
@property
def _mutually_exclusive_groups(self):
return self.parser._mutually_exclusive_groups
@property
... | [
"lurie.jo@gmail.com"
] | lurie.jo@gmail.com |
3bec992595116b04adc9b11ce51ab2e1693e2a4b | 38c8cca903432a88a6141dab4b9ac24740ae9e39 | /src/crike_django/manage.py | 8937161661f10d2505a8b82f54ecd20f227091b2 | [
"Apache-2.0"
] | permissive | mxwww/crike | 3d37882e75a4f7170d183d2050d6a643a72f381b | 141bd1c9b37882f0369dd8231cdf3576eeb7a5e1 | refs/heads/master | 2023-07-19T08:09:25.806263 | 2016-06-11T05:30:46 | 2016-06-11T05:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crike_django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"geekan@foxmail.com"
] | geekan@foxmail.com |
a2190e26fa997ddb6b13f10b274f5d200b6e3918 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /vt_manager/src/python/vt_manager/models/utils/Choices.py | 8b045af44501156cda604d3c0cf5c53e35f5078b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py |
class VirtTechClass:
VIRT_TECH_TYPE_XEN = "xen"
VIRT_TECH_CHOICES = (
(VIRT_TECH_TYPE_XEN, 'XEN'),
)
@staticmethod
def validateVirtTech(value):
for tuple in VirtTechClass.VIRT_TECH_CHOICES:
if value in tuple:
return
raise Exception("Virtualization Type not valid")
class OSDistClass():
... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
06e6ec8eeae855acf71b78ba670c6f33f3e7d563 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/cfm_c1742b75736db9d1da0fb731317ab337.py | 2553211aa330936731e6ce2d5a16da9385c4e481 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 6,156 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
3093186e46c96765d0b51554468a7761c5484e8e | a72e79b8caa43e973e7d7ecb7ffdaba15314bb9f | /server/wtpodcast2/feeds/whatsnew/urls.py | d16a486de32ebec8b741e4bcd3163578dee8596f | [] | no_license | crgwbr/wt-podcast2 | 2e4be9a0ffa8675d8283f3d0cc16adc799acac68 | a2dfb178b5e4c3e9ac5ab9ef7c13669caf50129c | refs/heads/master | 2022-12-24T07:42:47.599582 | 2020-10-08T15:35:52 | 2020-10-08T15:35:52 | 266,866,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.urls import path
from . import views
app_name = 'whatsnew'
urlpatterns = [
path('feed.rss', views.feed_rss, name='feed_rss'),
]
| [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
f7a4a5e6467ee184d150cffb9fae09e625703666 | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /01.jump to python/02.Data Science/1. collection/6. App/Scheduler_example.py | 25345e1d5cf5e270c0a09dd38d9fcbcdd11abc17 | [] | no_license | wql7654/bigdata_exam | f57c8b475690cbc5978009dbf8008bedff602e2a | c07ee711bb84407428ba31165185b9607b6825e8 | refs/heads/master | 2023-04-07T00:50:59.563714 | 2021-05-25T02:46:43 | 2021-05-25T02:46:43 | 180,915,985 | 0 | 0 | null | 2023-03-25T01:08:09 | 2019-04-12T02:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 998 | py | import threading
import time
g_Balcony_windows=False
g_AI_Mode=False
def updata_scheduler():
global g_Balcony_windows
while True:
if g_AI_Mode == False:
continue
else:
time.sleep(5)
g_Balcony_windows=not g_Balcony_windows
t= threading.Thread(... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
0864304fb6f9996499fcb687bf16c415b3d12c7e | 938d5d26c0346316a10a74520b7e30b1bb1f6893 | /oncopolicy/utils/generic.py | 4a1dcb70ea43341de423c68976e0cc57c3119a36 | [
"MIT"
] | permissive | yala/Tempo | 46fe0da5a6e2e1a8b9bc855851e7ff9a3ab63bd6 | bf3e0e78d64869bb2079c582a4a35982f78386ad | refs/heads/main | 2023-04-17T07:04:34.697607 | 2022-01-13T21:03:04 | 2022-01-13T21:03:04 | 419,388,269 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import datetime
import hashlib
import numpy as np
from copy import deepcopy
import torch
import pdb
INVALID_DATE_STR = "Date string not valid! Received {}, and got exception {}"
ISO_FORMAT = '%Y-%m-%d %H:%M:%S'
CGMH_ISO_FORMAT ='%Y%m%d'
DAYS_IN_YEAR = 365
DAYS_IN_MO = 30
MAX_MO_TO_CANCER = 1200
MIN_MO_TO_CANCER = 3
MA... | [
"adamyala@csail.mit.edu"
] | adamyala@csail.mit.edu |
9518f30afd0866dfa568b4f15f136dbab54fdeb8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02705/s961392013.py | 735378c11733dcf7056fec7e375575cc6f489fe0 | [] | 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 | 152 | py | # mathモジュールをインポート
import math
r = input().rstrip()
r = int(r)
# 円周率の近似値
x = math.pi
ans = (2 * r) * x
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
79a50b733533cd6299691b654d5ce900ae38596f | de4449e4fbd2972a5a7e775e3a3c7a187ef86899 | /ubiops/models/pipeline_request_deploment_request.py | 4cab9039fd3b21f5a7110af758c322d56e311bb0 | [
"Apache-2.0"
] | permissive | egutierrez-ar/client-library-python | 03325cc1d4c3e949187889ceb404a08660a7f418 | 94177e5f175263bce645c15a171e54690b1e254f | refs/heads/master | 2023-01-22T23:41:40.274718 | 2020-11-19T07:34:36 | 2020-11-19T07:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,840 | py | # coding: utf-8
"""
UbiOps
Client Library to interact with the UbiOps API. # noqa: E501
The version of the OpenAPI document: v2.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from ubiops.configuration import Configuration
class PipelineReque... | [
"sascha.vanweerdenburg@dutchanalytics.com"
] | sascha.vanweerdenburg@dutchanalytics.com |
95f6713504bf13a0bf73502b797efe5295597a01 | bcb71f3ad0196709d462330a60801d5f8ec92ea6 | /backend/blog/models.py | 52046c2bc34be06eb996c26a98cfd002333212d7 | [
"BSD-3-Clause"
] | permissive | lautarianoo/lautacademy | c7a7e84958fd6209415c16a0957a7e12449a9afc | beec082bdffe8c773fcec51974a687aced278a76 | refs/heads/master | 2023-05-28T20:22:22.718962 | 2021-06-11T17:19:32 | 2021-06-11T17:19:32 | 364,965,320 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,201 | py | from ckeditor_uploader.fields import RichTextUploadingField
from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from django.utils import timezone
from ckeditor.fields import RichTextField
from mptt.models import MPTTModel, TreeForeignKey
from django.dispatch import r... | [
"neonchick1"
] | neonchick1 |
4e75a52bbb36cbac6858c29d1ab2d433f1f7071e | 169d809f45dedcaa3c7b1b49912d8b025abe18d9 | /challenge251_easy.py | 5d902f9cf7b2c9832252475e7fc7bf3834a08af4 | [] | no_license | bermec/challenges | 8a82d1d38d1ed1a0fc3f258443bc0054efc977a6 | 9fb092f20f12b4eaa808e758f00f482a49346c88 | refs/heads/master | 2021-10-08T05:05:56.803332 | 2018-12-08T00:20:20 | 2018-12-08T00:20:20 | 109,448,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | '''
Nonograms, also known as Hanjie, Picross or Griddlers, are picture logic puzzles in
which cells in a grid must be colored or left blank according to numbers at the
side of the grid to reveal a hidden picture. In this puzzle type, the numbers are a
form of discrete tomography that measures how many u... | [
"rog@pynguins.com"
] | rog@pynguins.com |
2982b152f2ef0916c17ae223e733483d0f455558 | fa9cc9cc469a3f0c5bdc0bc4e562dbbd3ff7e465 | /messages/RequestCloudMessage.py | cfd12e7df3126a5a7572dd9613f73bd6e7fc77a3 | [
"MIT"
] | permissive | zadjii/nebula | ddd86ea30791b46b2a1aeb000ae5dfea9a496168 | 50c4ec019c9f7eb15fe105a6c53a8a12880e281c | refs/heads/master | 2021-01-24T17:08:30.607634 | 2018-09-18T00:35:36 | 2018-09-18T00:35:36 | 36,847,552 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # last generated 2016-12-30 19:27:53.981000
from messages import BaseMessage
from msg_codes import REQUEST_CLOUD as REQUEST_CLOUD
__author__ = 'Mike'
class RequestCloudMessage(BaseMessage):
def __init__(self, id=None, cloud_uname=None, cname=None, username=None, passw=None):
super(RequestCloudMessage, sel... | [
"zadjii@gmail.com"
] | zadjii@gmail.com |
de2366117fa19b7601ff66ec8e096b371bd033d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02379/s777602673.py | 78b06ae63e611e0c41787c5b51901c304d983aee | [] | 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 | 120 | py | import math
x1,y1,x2,y2=map(float,input().split())
dx,dy=x2-x1,y2-y1
d=math.sqrt(dx*dx+dy*dy)
print("{:.8f}".format(d))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
68615c0335fc693397ae3712ddd889db8865a5ec | cee65c4806593554662330368c799c14ec943454 | /src/dms-preview/azext_dms/vendored_sdks/datamigration/models/project_task.py | f06065a5bf044dac5eb01d8d79ccba2c49e5d1d2 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 1,660 | 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 ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
e5c99083e888679c70abb0a62f231e39b7340f2b | 385a63d3c9e6f5815979165001f78ec3d7b90cd2 | /DrivingTDM_SetupMatlabOOP/headerAndFunctionsMotor/ximc/python-profiles/STANDA/8MT175V-150-VSS42.py | 36179aa2493ff6c8567ae576017af21d79a83175 | [
"BSD-2-Clause"
] | permissive | Rasedujjaman/matlabOOP | 5abb6ec94998fda5e9214ed94cf67a42bf243d4f | e1f025ab9b00a3646719df23852079736d2b5701 | refs/heads/main | 2023-07-23T21:40:53.905045 | 2021-08-31T16:12:39 | 2021-08-31T16:12:39 | 378,249,559 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,810 | py | def set_profile_8MT175V_150_VSS42(lib, id):
worst_result = Result.Ok
result = Result.Ok
feedback_settings = feedback_settings_t()
feedback_settings.IPS = 4000
class FeedbackType_:
FEEDBACK_ENCODER_MEDIATED = 6
FEEDBACK_NONE = 5
FEEDBACK_EMF = 4
FEEDBACK_ENCODER = 1
... | [
"mrased01@gmail.com"
] | mrased01@gmail.com |
fdd007c0b032c25b1cf46ac0944db9b9217a204f | 82c2c272fe07da8afafb1dc4630cae1d48575f23 | /aws_reko/apps.py | 58e8ecd9ec40e1978d3eb6f2563e2de7a8beda8b | [] | no_license | final-project-fastflix/Fastflix_WPS | d830ea1bd3aae31edd8fcdcb70434d214ba77bd0 | 1e4296df2f6d41fed8308dcd4d48912bb8cc0e1f | refs/heads/develop | 2022-12-13T09:22:37.553487 | 2019-08-22T06:30:45 | 2019-08-22T06:30:45 | 199,455,228 | 3 | 2 | null | 2022-12-08T05:56:42 | 2019-07-29T13:09:55 | JavaScript | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class AwsRekoConfig(AppConfig):
name = 'aws_reko'
| [
"sug5806@gmail.com"
] | sug5806@gmail.com |
308397ed048cf03a190ffa0c99b55d07196a45cf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/591.py | 65f897b1fd4fe4677b641f162d03e1a08dcae786 | [] | 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 | 1,640 | py | # Recycled Numbers
# main code
fr = open('C-large.in', 'r')
fw = open('C-large.out', 'w')
numOfTestCase = int(fr.readline())
for x in range(0,numOfTestCase):
result = ""
print("========== Test case " + str(x+1) + " ==========")
line = fr.readline()
line = line.split(" ")
A = int(line[0])
B = int(line[1... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2136ceed7ded2995dc97b82ced276854c3146f10 | 6a044f45cd09695ea6f66f35bb8decf86a84607d | /installer/resources/pacbot_app/alb_https_listener.py | e285a11743e84dfb2706dd3e7435a718e88798c8 | [
"Apache-2.0"
] | permissive | ritesh74/pacbot | a07bdf82632342509f05b5c5dbb6eb6aaba40219 | 4b5361d99e7efbbc5603ec9c6568ba639105c773 | refs/heads/master | 2021-07-09T15:35:27.342903 | 2020-09-28T20:36:42 | 2020-09-28T20:36:42 | 199,405,428 | 1 | 0 | Apache-2.0 | 2019-07-29T07:53:26 | 2019-07-29T07:53:25 | null | UTF-8 | Python | false | false | 2,414 | py | from core.terraform.resources.aws.load_balancer import ALBListenerResource, ALBListenerRuleResource
from core.config import Settings
from resources.pacbot_app.alb import ApplicationLoadBalancer
from resources.pacbot_app import alb_target_groups as tg
PATH_PREFIX = '/api/'
class PacBotHttpsListener(ALBListenerResour... | [
"sanjnur@gmail.com"
] | sanjnur@gmail.com |
d4c94fe92d17941badd8ceec535168ec2c320fe2 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/scrapinghub_portia/portia-master/portia_server/portia_orm/tests/test_relationship.py | 5167cbf61f361b3da5dede41e29b542d6a11d4f7 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 66,255 | py | import mock
from .models import (OneToOneModel1, OneToOneModel2, ParentModel, ChildModel,
ManyToManyModel1, ManyToManyModel2, PolymorphicParentModel,
PolymorphicChildModel1, PolymorphicChildModel2)
from .utils import DataStoreTestCase, mock_storage
class OneToOneRelationship... | [
"659338505@qq.com"
] | 659338505@qq.com |
8848a2025763c8c406ee3f306ba82e82e8db0a70 | bf12e13c0ab5ccf2fc32509b02aaae6b6a2e3327 | /examples/hello_rect.py | 9f1bcbed6deb09a08632a4cee248572761d502d9 | [
"MIT",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | HighCWu/tpythonpp | 42b56c9eb3c77192cbda36f0e198707bb858fe38 | f1c15e1101993e4c9c7529739823b47759ea13f7 | refs/heads/master | 2023-06-30T16:17:09.409107 | 2021-03-19T04:16:12 | 2021-03-19T04:16:12 | 391,806,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | def test():
print('hello world')
r = rect(0,0, 320, 240)
print(r)
print(r.x)
print(r.y)
print(r.width)
print(r.height)
r.x = 2
print(r.x)
r.y += 0.1
print(r.y)
area = r.get_area()
print(area)
test() | [
"goatman.py@gmail.com"
] | goatman.py@gmail.com |
90f7ab7711d5790e74f9518e25d8c39a79edafd8 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/server_commands/service_npc_commands.py | 07e4d57abbcbb8550b95b267c098277d3e6c293a | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | from date_and_time import create_time_span
from sims4.commands import CommandType
import services
import sims4.commands
@sims4.commands.Command('service_npc.request_service', command_type=CommandType.Cheat)
def request_service(service_npc_type:str, household_id=None, _connection=None):
service_npc_tuning = serv... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
7ba1d723327bdcf4aef6f5d70f72674ce22431c7 | 5774101105b47d78adb7a57eefdfa21502bbd70c | /python 语法基础/d14_tkinter_python图形开发界面库/tkinter/3.button控件.py | 82895d1a97556d89642d20d2a44eb01bb5377143 | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 615 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
import tkinter
def func():
print("zhl is good man")
win=tkinter.Tk()
win.title("zhl")
win.geometry("400x400+200+0")
##text:定义按钮上显示的命名
##command 定义点击按钮触发的函数
##height,width: 设置按钮的宽高
button1=tkinter.Button(win,text="按钮",command=func,width=5,height=5)
but... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
3537ab717502779be66add592bf5cff21cb46dca | 322e3003cc14c9beb7aa47363ca3c2f6038b82d5 | /lecture6/pyspark/basics.py | b7cd3c6d03c81beae10b26d0f9da81724997ec3c | [] | no_license | danielvachalek/MLOps | 039a393c71a418383ea46338e2d415e7c3936b56 | 0746e0380b73d93b2f12a22df04a74de7daf18a0 | refs/heads/master | 2023-02-09T01:21:53.874657 | 2021-01-02T22:49:32 | 2021-01-02T22:49:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | # Databricks notebook source
# MAGIC %md In Cmd 2, the AWS_ACCESS_KEY and AWS_SECRET_KEY variables are set and kept hidden.
# COMMAND ----------
AWS_ACCESS_KEY = "AA"
AWS_SECRET_KEY = "BB"
# COMMAND ----------
sc._jsc.hadoopConfiguration().set("fs.s3n.awsAccessKeyId", AWS_ACCESS_KEY)
sc._jsc.hadoopConfiguration().s... | [
"you@example.com"
] | you@example.com |
79e82a9736205ebba06486b564cb8925c6d74af9 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/torch/_utils.py | 55f737a5974002ee337bfdaf7d920c2472a0fe84 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:03a04fffa1996df6bcab4d2bf79566d0e6b7d661fe5e37b292b5a766d648edfa
size 19786
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
e554ed1e3f0ef7ab8afac5e92e7db32e3179c2ce | 05a090ee8f9d6dc6bbcc3d20cf8d4a7c8a627bde | /kash/migrations/0003_auto_20201203_1658.py | 9da1a6f5d84271275e7fa8f9401985f96c9af90e | [] | no_license | Komilcoder/kash_app | 527e84c63b03264f72aba4e2d3039a219beae556 | 88ab937c3391b1104bbdbf733da49634ea645ecf | refs/heads/master | 2023-01-21T00:46:24.482017 | 2020-12-03T15:52:01 | 2020-12-03T15:52:01 | 318,185,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # Generated by Django 3.1.4 on 2020-12-03 11:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kash', '0002_auto_20201203_1648'),
]
operations = [
migrations.RemoveField(
model_name='news',
name='description',
... | [
"yaxshilikovkomil@gmail.com"
] | yaxshilikovkomil@gmail.com |
a4aa3cb66427702daeca11f1eba49736ef4dd8e8 | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cps/models/Listener.py | f4508baf200e067c53fd0aa337482b86f24fb929 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
d089134e584d9b0d118d8a1e547907c28db88b65 | 9bc9885e9500083afc2cd6be4ff93ee2eb4fbfbb | /neuropower/apps/designtoolbox/migrations/0016_auto_20160907_1914.py | 5dbb860d6d601d9fe11f927ee47970a6189b6b04 | [
"MIT"
] | permissive | jokedurnez/neuropower | 50297af01bef55fe2c01355f038a9d184cde493d | ed8c1cf29d447b41dfbfbc7a8345443454e62a96 | refs/heads/master | 2021-01-15T08:36:45.191330 | 2016-11-20T00:56:30 | 2016-11-20T00:56:30 | 51,338,446 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-09-07 19:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('designtoolbox', '0015_auto_20160905_1717'),
]
operations = [
migrations.Alte... | [
"joke.durnez@gmail.com"
] | joke.durnez@gmail.com |
74e74455de014475d07e51604e15ca1764c43ed9 | 7684ffabb75ed2d6396d3a720c56ed0ee09ee77d | /crack_detection/gcloud/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/oslogin/v1alpha/oslogin_v1alpha_client.py | 17a96db3d16f3b91f1861878024aa4ac72c32e1d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/CrackPropAPI | da7cc7a1ef046d20992423f7c7a148e390bb70e7 | 24c0cfd1f258eeaa7e5e953253b5d778f2fbecb5 | refs/heads/master | 2022-11-09T07:15:41.142453 | 2020-07-02T14:34:15 | 2020-07-02T14:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,176 | py | """Generated client library for oslogin version v1alpha."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.oslogin.v1alpha import oslogin_v1alpha_messages as messages
class OsloginV1alpha(base_api.BaseApiClient):
"""Gen... | [
"yopi1838@gmail.com"
] | yopi1838@gmail.com |
36baeb280fe445880f582412b5f140997661f413 | f4f181f2c970a163801b4202fc8d6c92a4e8113d | /google-cloud-sdk/lib/googlecloudsdk/api_lib/compute/addresses_utils.py | c24143684ff0332856f3e3da17ca890a539e8ee5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | Sorsly/subtle | 7732a6cb910f5e2f4eed1ac0d3b5979001582340 | 718e79a3e04f1f57f39b6ebe90dec9e028e88d40 | refs/heads/master | 2021-05-24T01:21:39.218495 | 2017-10-28T01:33:58 | 2017-10-28T01:33:58 | 83,103,372 | 0 | 1 | MIT | 2020-07-25T11:21:05 | 2017-02-25T03:33:07 | Python | UTF-8 | Python | false | false | 3,225 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"han300@purdue.edu"
] | han300@purdue.edu |
e699cda227ba68d9a3a9122ca69be7e2ae5c1a57 | 67ddedc825a4852349bb3e54f7d31cdeb34c64aa | /contrib/testgen/gen_key_io_test_vectors.py | cfcf70fa73dc3d37f054a9d4084749fe247c87dc | [
"MIT"
] | permissive | geranium-coin/geranium | 3500632ed8e666d30d1b28494b1b7b5003c18ecc | 93c08aa10ea151f4efd8337c1d5599ee7e8d58ea | refs/heads/master | 2022-07-28T21:28:55.717800 | 2022-01-10T17:30:13 | 2022-01-10T17:30:13 | 440,774,432 | 2 | 0 | MIT | 2022-01-04T08:33:10 | 2021-12-22T07:39:53 | C++ | UTF-8 | Python | false | false | 10,266 | py | #!/usr/bin/env python3
# Copyright (c) 2012-2018 The Geranium Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Generate valid and invalid base58 address and private key test vectors.
Usage:
PYTHONPATH=../../... | [
"manomay.jyotish.vadhuvar@gmail.com"
] | manomay.jyotish.vadhuvar@gmail.com |
10ef50de6e155b9bb542e5c845172fff8a2bb9e6 | 16e26614611ae87de81388b435d88b142ca6189e | /pywind/decc/Report.py | d66f3fe5a42edfea4de68937f5228223d475ef93 | [] | no_license | tomwadley/pywind | d1d36007b0196730cba1389ef7940dd0ccabe5df | 0d86ff1c9a67b2f446e62c1471257e38bdc1d03c | refs/heads/master | 2021-04-09T15:41:49.823115 | 2013-06-26T09:18:24 | 2013-06-26T09:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,726 | py | from cookielib import CookieJar
import csv
from datetime import datetime
import urllib2
from pywind.decc.geo import osGridToLatLong, LatLon
def field_to_attr(fld):
fld = fld.lower()
for c in [' ', '-', '/']:
fld = fld.replace(c, '_')
return fld
class DeccRecord(object):
FIELDS = ['Reference',... | [
"zathrasorama@gmail.com"
] | zathrasorama@gmail.com |
47005a3669df2d29e09979c2bfd2bb18fede9e59 | b7e52aeabebf7448e31723d406755809cac63099 | /source/calc_fsun_tree/SConstruct | 9e270b942ba10dbe21a51f6c85d05cb22f763ba5 | [
"BSD-3-Clause"
] | permissive | bucricket/projectMASviirs | df31af86e024499ff87d2c2b707e3b9d24813f7c | 705abc89505122351f0ef78e0edb950b7e3b7f48 | refs/heads/master | 2021-01-01T18:31:16.748864 | 2018-05-30T15:14:07 | 2018-05-30T15:14:07 | 98,354,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | #!python
import os
import platform
import subprocess
AddOption('--prefix',
dest='prefix',
type='string',
nargs=1,
action='store',
metavar='DIR',
help='installation prefix')
env = Environment(PREFIX = GetOption('prefix'))
prefix = os.environ.get('PREFIX')
ba... | [
"bucricket@gmail.com"
] | bucricket@gmail.com | |
030faf212e0c96085fe19ef5907653e0f6de769f | cc6e36ce306a46c1accc3e979362de34b6063b7e | /game/management/commands/import_games.py | 1be5196a35dfa7b39b0710727bda8fd09f034eca | [] | no_license | bartromgens/petanque-stats-server | d51995e2b4d288a0a99563347c3bf3db863918bf | 9f7e48a7670b1c2c89f1bfcb2ac5ed8c8e9a7fe0 | refs/heads/master | 2020-03-22T19:23:18.230361 | 2018-07-29T00:46:02 | 2018-07-29T00:46:02 | 140,524,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import json
import uuid
from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from django.db import transaction
from game.models import Game, Team, ScoreTeam, Player
class Command(BaseCommand):
help = 'Import scores from a custom format'
players_filepath = 'data/pla... | [
"bart.romgens@gmail.com"
] | bart.romgens@gmail.com |
6d25cc07becb9e59f730a67748abcca1e17b92d4 | 770f7b7155c33d2f8c27846b93b9b73db45b2e2a | /gofedinfra/system/plugins/simpleetcdstorage/fakeartefactdriver.py | 10293902c919cd5c9cb74e6cf1c783345335fd8e | [] | no_license | gofed/infra | b0f6186486e8aa7c8c640411ee92d6648cbc77ec | 2f402bbdf1e5fa7cb68262cc3408a2fc1436269f | refs/heads/master | 2022-10-16T02:46:09.226939 | 2018-06-07T23:16:44 | 2018-06-08T11:31:37 | 48,703,326 | 1 | 5 | null | 2022-10-11T11:17:16 | 2015-12-28T17:08:28 | Python | UTF-8 | Python | false | false | 346 | py | from .artefactdriver import ArtefactDriver
class FakeArtefactDriver(ArtefactDriver):
def __init__(self, artefact):
ArtefactDriver.__init__(self, artefact)
self.data = {}
def store(self, input):
key = self._generateKey(input)
self.data[key] = input
def retrieve(self, data):
key = self._generateKey(data)... | [
"jchaloup@redhat.com"
] | jchaloup@redhat.com |
742e69c1a22297de8f0a8cd58cecab3389d6f888 | a281d09ed91914b134028c3a9f11f0beb69a9089 | /tests/integration/docusaurus/connecting_to_your_data/cloud/gcs/pandas/inferred_and_runtime_yaml_example.py | e7ed0539f4232487def269d75f60499c9e167e07 | [
"Apache-2.0"
] | permissive | CarstenFrommhold/great_expectations | 4e67bbf43d21bc414f56d576704259a4eca283a5 | 23d61c5ed26689d6ff9cec647cc35712ad744559 | refs/heads/develop | 2023-01-08T10:01:12.074165 | 2022-11-29T18:50:18 | 2022-11-29T18:50:18 | 311,708,429 | 0 | 0 | Apache-2.0 | 2020-11-10T15:52:05 | 2020-11-10T15:52:04 | null | UTF-8 | Python | false | false | 4,209 | py | from typing import List
# <snippet>
from ruamel import yaml
import great_expectations as ge
from great_expectations.core.batch import Batch, BatchRequest, RuntimeBatchRequest
# </snippet>
# <snippet>
context = ge.get_context()
# </snippet>
# <snippet>
datasource_yaml = rf"""
name: my_gcs_datasource
class_name: Dat... | [
"noreply@github.com"
] | CarstenFrommhold.noreply@github.com |
f6b23ffa695566bdecd4607042fa580e550c11b6 | e25b0dc781cc291da63e9af1319666cb3e3fd94b | /Real_exp2/Codes/preprocess_real_data_classes.py | 9158d1c83f17bf31c9c8a6ae3787751cedef4e7e | [] | no_license | nastaran75/JMLR-Reg | 2621e123a847e0d72bccd5938ab8f06d3aa875c1 | 0daff201b4a462817f7f0caef2a87c46706cb612 | refs/heads/master | 2021-02-04T01:50:19.367050 | 2020-03-28T08:22:09 | 2020-03-28T08:22:09 | 243,599,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,283 | py | import sys
from os import listdir
from os.path import isfile, join
import numpy.random as rand
import math
import codecs
import csv
import random
#import fasttext
from myutil import *
import numpy as np
import numpy.linalg as LA
from scipy.io import arff
import shutil
#from PIL import Image
# from sklearn.preprocessi... | [
"nastaran.okati@gmail.com"
] | nastaran.okati@gmail.com |
a49e2981e3bf1e5622c75bb54165b0f55cecfe87 | 31c94ea00f0f6673f161a21a529f2272e7460a34 | /bindapi/routerApi.py | 4ea16209cd1e7101e783bcfeaa0d6ef1853e83b0 | [] | no_license | xgocn/bindapi | 0d3e51f696a9d3ec5dde4e05d1c2d5eb2fe52f5a | 343f07176de43c3e5ffc9b26c479c47c289fdc0e | refs/heads/master | 2023-03-15T08:01:22.550448 | 2018-05-09T06:19:22 | 2018-05-09T06:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# author: kiven
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
from bind.views import DomainViewSet, RecordViewSet, AllDomainViewSet, XfrAclViewSet
router.register(r'domains', DomainViewSet)
router.register(r'records', RecordViewSet)
router.register(r'xf... | [
"kevin@126.com"
] | kevin@126.com |
17b6a63f5fd62343b7a3cb8a859ed7ef5cd184f7 | 521648e4e12366760da7baff15d35201e0b19a5e | /django_ansible/shell.py | 5dc1d4613af2d30156968e00bd67fc7c89c10b8e | [] | no_license | sashgorokhov/django-ansible | b54f596f7d50d239474eb2d4fd8e85c0da21f959 | ad32255b7c87bcada1bd6c8aa250c1ec52c8cd49 | refs/heads/master | 2021-01-22T07:52:55.457727 | 2017-02-13T19:46:23 | 2017-02-13T19:46:23 | 81,864,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import subprocess
import logging
logger = logging.getLogger(__name__)
def _try_decode(b):
try:
return b.decode()
except:
return b
def run(executable, args, env=None, cwd=None, **kwargs):
"""
:param kwargs: Additional arguments passed to subprocess.run function
:rtype: subprocess... | [
"sashgorokhov@gmail.com"
] | sashgorokhov@gmail.com |
c31338954ced6e76da2274aa4b6340be2e11225e | aa8e6259f33bdcfdf21434da5185f31aa6927195 | /gtf_admm_gird_v1.py | ded9bf78405dafb35b2100bc464273be8ad8622f | [] | no_license | Ryanshuai/graph_trend_filtering_py | b32448cfdc4c50a9dfde144abe73e878891f26de | 243969bf7dd97e483693ac88e45ab2192cd4edbf | refs/heads/master | 2020-11-27T07:13:22.116640 | 2019-12-24T20:56:05 | 2019-12-24T20:56:05 | 229,349,019 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import numpy as np
from numpy.linalg import norm
from grid_system import grid_system_2d, grid_system_3d
from get_Delta_grid import get_Delta_grid
from soft_thresh import soft_thresh
from construct_O import construct_O
def gtf_admm_grid_v1(y: np.array, k, lamb, rho, max_iter=1000):
y_size = y.size
y_shape = y... | [
"1018718155@qq.com"
] | 1018718155@qq.com |
28dccbb9398db07f45d327d9f7177a7907e88734 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /python/paddle/distributed/launch/controllers/ipu_controller.py | bf2c5f34b3bdf946f0f16b99225771bd139022e5 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 6,679 | py | # Copyright (c) 2022 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
e2f068cbe30c6a0e2ced7c56d424860a07838c8b | d0cd3064e1b24542e02518961fd6643af56738f0 | /ticha-django-site/handwritten_texts/views.py | 96faec09e23c5252e504753c7de6a6f472a2b205 | [] | no_license | zhanpengwang888/Docker-Test | 126bd74301b7550de753eb7539795e20ace285c5 | 2f0eefb684622d6eead3977697e8ccf4761ba1be | refs/heads/master | 2022-12-15T11:49:46.899365 | 2017-09-29T21:02:05 | 2017-09-29T21:02:05 | 104,515,096 | 0 | 0 | null | 2022-12-07T23:56:40 | 2017-09-22T20:16:17 | HTML | UTF-8 | Python | false | false | 1,899 | py | from django.shortcuts import render
from .models import HandwrittenText
from django.views.generic import ListView
class HandwrittenListView(ListView):
model = HandwrittenText
template_name = 'handwritten_texts/list.html'
EN_TO_ES = {
'title': 'título', "language": "idioma", "document_type": "tipo_del_doc... | [
"zhanpengwang@Zhanpengs-MacBook-Air.local"
] | zhanpengwang@Zhanpengs-MacBook-Air.local |
c13e18406862b21208f3d0eabecafed60a527fec | 0b1002296d0686daae2ec0e83cafbba9833bf837 | /utils/test.py | 20fbd142451833f7a9d51ceac556d2b719c2efae | [] | no_license | williamzxl/tmp1 | b35f967ee62b25c65976b5c0a59cd71b315c2029 | 0213bac933435ae15dfc10997aa6b07300e2f580 | refs/heads/master | 2021-06-10T01:37:35.060796 | 2018-12-21T06:38:14 | 2018-12-21T06:38:14 | 162,676,016 | 1 | 0 | null | 2021-06-01T23:13:05 | 2018-12-21T06:37:07 | Python | UTF-8 | Python | false | false | 122 | py | a = {'groupID': '2475', 'newF': 3, 'sysID': '11-Hubei-Reading-4', 'taskID': '37037'}
print(a.keys())
print(list(a.keys())) | [
"1053418947@qq.com"
] | 1053418947@qq.com |
0a4496a02194dde02d89f94e065bb5e8d08c414d | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /leave/migrations/0011_auto_20170216_1404.py | 583d88c706e6ecb11c94de53c4d77eac4b435c0f | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 421 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-16 11:04
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('leave', '0010_auto_20170215_1712'),
]
operations = [
migrations.RenameModel(
... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
7b88efcd16638abbf9a7b7bf5405d75f01442fa0 | 4ef12965654c4bc9d6a0635ecf8188ecf2defed8 | /my_new_application_1046/wsgi.py | 3cb6a828d03839b76f908d22de5a1756e8c484a1 | [] | no_license | crowdbotics-apps/my-new-application-1046 | 2d30662ae59e1675d0fee78789898852a1b81b45 | e3ee98e6318bac0a61b3519d148b4b6b80c9c6f5 | refs/heads/master | 2022-12-21T22:11:11.515569 | 2019-02-23T00:42:41 | 2019-02-23T00:42:41 | 172,153,638 | 0 | 0 | null | 2022-12-08T01:40:51 | 2019-02-23T00:41:51 | Python | UTF-8 | Python | false | false | 424 | py | """
WSGI config for my_new_application_1046 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
109a21b79abddfbc7f76c75cdba728b887a8d0ef | 9343c9a43e1940b6ca7e96d0891edef385389083 | /labs/lab3/train_hvd_1.py | 197c1a2711684a9cc98dccd1718f112ce9c71686 | [
"MIT"
] | permissive | luyuliu/CSE-5194 | 4441301d283820e45d64b3503061221082cf334b | 52970106c21b30e64d4cf1df26bec09929494060 | refs/heads/master | 2020-07-09T17:19:47.994233 | 2019-12-26T15:13:56 | 2019-12-26T15:13:56 | 204,032,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,253 | py | from __future__ import print_function
import argparse
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
import torch.utils.data.distributed
import horovod.torch as hvd
import collections
import random, time, os
import torch
from utils impor... | [
"liuluyu0378@gmail.com"
] | liuluyu0378@gmail.com |
cf5d0a7771e323b24bd3ee042f85b1bcbe5f004f | 2233f520493f64c6070dd3e77722e53a7dd738e8 | /day5/my_devices_na.py | 2721f252d62d9ee537165a0fe29a355f3aca4d31 | [
"Apache-2.0"
] | permissive | mpjeffin/pynet-ons-oct17 | 690bb31600b8ef5131439bb25ddce35b4855ba6a | d0daf9c250f79bc34b3b8b06b67004f56ef834a2 | refs/heads/master | 2021-09-07T00:00:02.234456 | 2018-02-13T19:58:11 | 2018-02-13T19:58:11 | 125,467,721 | 1 | 0 | null | 2018-03-16T05:26:10 | 2018-03-16T05:26:10 | null | UTF-8 | Python | false | false | 1,517 | py | """
pynet-rtr1 (Cisco IOS) 184.105.247.70
pynet-rtr2 (Cisco IOS) 184.105.247.71
pynet-sw1 (Arista EOS) 184.105.247.72
pynet-sw2 (Arista EOS) 184.105.247.73
pynet-sw3 (Arista EOS) 184.105.247.74
pynet-sw4 (Arista EOS) 184.105.247.75
juniper-srx 184.105.247.76
"""
from getpass import getpass
password = ... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
438dfdf0b19a083bd9b1157b53d2919d688c2a8a | 958b0471c52eff93415216cdd1a2b2ad3947a89b | /blueoil/templates/lmnet/object_detection.tpl.py | cf5170303d51745396007741b7ffa0160df7ae0d | [
"Apache-2.0"
] | permissive | fumihwh/blueoil | 4deb606e334b8456e7ace41e3f091ad6dc41afb6 | acb5a270f201f34fe5a5b27a4b395d9c3a838b27 | refs/heads/master | 2020-04-01T22:29:27.525697 | 2018-10-18T09:23:37 | 2018-10-18T09:23:37 | 153,711,347 | 1 | 0 | null | 2018-10-19T01:49:02 | 2018-10-19T01:49:02 | null | UTF-8 | Python | false | false | 4,402 | py | # -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil 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
#
# Unles... | [
"matsuda@leapmind.io"
] | matsuda@leapmind.io |
1c6b5467cecb01f1ce0b31daf841a086b27f5729 | 2305ce053d16652d31823bd07faf38553b4f9b63 | /books/CrackingCodesWithPython/Chapter07/PracticeQuestions/Question2.py | 8a2180532dbdb37385f07898cf49f7569908be5b | [
"MIT"
] | permissive | leihuagh/python-tutorials | cff3c5e250a152252d4b725bca19f55721483249 | 33831b983d7bd1491e367b6c7654e687d5ba709b | refs/heads/master | 2020-03-29T17:59:31.226400 | 2018-09-24T08:41:26 | 2018-09-24T08:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Is each spam a global or local variable?
spam = 42 # global/local
def foo():
global spam
spam = 99 # global/local
print(spam)
foo() # mind == blown
| [
"jose@JoseALerma.com"
] | jose@JoseALerma.com |
ffce63d94730102d0599826ce2ea7e70963a22c9 | 0c9ec5d4bafca45505f77cbd3961f4aff5c10238 | /openapi-python-client/openapi_client/models/process_instance_modification_dto.py | a2247513acf2154c0228b1c01bcedaba8beea8c1 | [
"Apache-2.0"
] | permissive | yanavasileva/camunda-bpm-examples | 98cd2930f5c8df11a56bf04845a8ada5b3bb542d | 051f8f28c62845e68ce4059ab64264c5a0bdc009 | refs/heads/master | 2022-10-19T20:07:21.278160 | 2020-05-27T15:28:27 | 2020-05-27T15:28:27 | 267,320,400 | 0 | 0 | Apache-2.0 | 2020-05-27T14:35:22 | 2020-05-27T13:00:01 | null | UTF-8 | Python | false | false | 7,337 | py | # coding: utf-8
"""
Camunda BPM REST API
OpenApi Spec for Camunda BPM REST API. # noqa: E501
The version of the OpenAPI document: 7.13.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
clas... | [
"noreply@github.com"
] | yanavasileva.noreply@github.com |
c0eb4bc8412ecaaaa4487ae33bba16b07ed34654 | 0b5ab7349485da4ea40ca343bc50f4cab74c917c | /week06/c11_02.py | 6f2b70e99e3507ef95e9e833368280cb7b5ebef7 | [] | no_license | workherd/Python006-006 | 9bf2782ccda037de9af98eb7daa87fd1edeb3caf | 7aa176c3cf4effd015802b550edfb70f859e94d9 | refs/heads/main | 2023-04-29T14:37:43.545376 | 2021-05-16T04:13:08 | 2021-05-16T04:13:08 | 323,247,475 | 1 | 0 | null | 2020-12-21T06:13:42 | 2020-12-21T06:13:42 | null | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2021/1/30 21:06
# @Author : john
# @File : c11.py
# 使用type元类创建类
def pop_value(self, dict_value):
for key in self.keys():
if self.__getitem__(key) == dict_value:
self.pop(key)
break
# 元类要求,必须继承自type
class DelVal... | [
"1330430077@qq.com"
] | 1330430077@qq.com |
477f6768361db49f12efc9b40192ff00dd8077a5 | 1f2860bf84fa87e2d6c3b5e5b1a62e76879a642a | /q41_50/049.py | 5ff4e3fbd4c56fc5ad1ac2c8c1db93e208b34745 | [] | no_license | Vegctrp/pic100knock | 222dc4c981e7d20180a2338184109987f56d1518 | 134a41c9a3fcfc49667a26625cfeaf7bc4a91899 | refs/heads/master | 2020-07-08T17:17:43.869124 | 2019-09-23T15:23:08 | 2019-09-23T15:23:08 | 203,730,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import cv2
import numpy as np
import lib4150
import matplotlib.pyplot as plt
import sys,os
sys.path.append(os.getcwd())
from q01_10 import lib0110
if __name__ == '__main__':
img = cv2.imread("Gasyori100knock/Question_41_50/imori.jpg")
img2 = lib0110.OTSU_binarization(lib0110.BGR2GRAY(img))
out =... | [
"kem.altair@gmail.com"
] | kem.altair@gmail.com |
2b381525fefdeac0ef1e5cd6af040849d7ab9e4e | 99b0631baa2fd9ab2455d848b47febf581916272 | /zhijieketang/chapter11/ch11.3.6.py | 5ed6d9e5c1c618b89767775b7f3df937094f87bb | [] | no_license | seceast/PyProjects | a934e366cb619f2610d75b9a0fb47d818814a4de | 7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1 | refs/heads/master | 2023-03-07T22:23:21.229489 | 2021-02-25T05:37:58 | 2021-02-25T05:37:58 | 265,480,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # coding=utf-8
# 代码文件:chapter11/ch11.3.6.py
class Animal(object):
"""定义动物类"""
def __init__(self, age, sex=1, weight=0.0):
self.age = age # 定义年龄实例变量
self.sex = sex # 定义性别实例变量
self.weight = weight # 定义体重实例变量
def eat(self):
self.weight += 0.05
print('eat...')
... | [
"yangyadong25@163.com"
] | yangyadong25@163.com |
30d160a89cb021b89ffa3a81257339d90f223c24 | b44df2be270793884ca5bd5e79d22c991edae001 | /app/auth/views.py | 9ac180988110a27bb0106dfd45b959fc130d2335 | [] | no_license | Wakarende/Blog | d45c423be8a86227ad4106bbdae429a79ef3dcf2 | 2e2d2f89c55c4f5dbe0cf6fe09f83212bf905f5c | refs/heads/master | 2023-04-23T00:18:47.343723 | 2021-05-05T06:46:51 | 2021-05-05T06:46:51 | 363,127,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | from flask import render_template,redirect,url_for,flash,request
from . import auth
from flask_login import login_required,login_user,logout_user
from ..models import User
from .forms import RegistrationForm,LoginForm
from .. import db
from ..email import mail_message
@auth.route('/login', methods=['GET','POST'])
def... | [
"joykirii@gmail.com"
] | joykirii@gmail.com |
96ea774d03c563f4d521a7284d56912681fc110b | 10d98fecb882d4c84595364f715f4e8b8309a66f | /genomics_ood/images_ood/eval.py | af9737b30f6b5e2487d99c451162174c16c47aad | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 11,626 | py | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
71f210792e7bb560ed5a7e5db4e79a338bba1c63 | ba15fac9fbe53578d3823ceeac67fc338e2312e9 | /tests/functional/filters/e2e_filtering.py | 2980783ed05dd42c1c343efb2ed74a65e966af43 | [
"Apache-2.0"
] | permissive | dblenkus/resolwe-bio-py | 0694dcc32f485ccdd5ad43496ccef985c83819c7 | b6610ef26625492f39fdeef846d3e5a89a0009b3 | refs/heads/master | 2021-01-21T03:33:39.831803 | 2020-05-25T14:29:46 | 2020-05-26T07:48:34 | 55,721,959 | 0 | 0 | null | 2016-04-07T19:26:12 | 2016-04-07T19:26:12 | null | UTF-8 | Python | false | false | 3,627 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import unittest
import six
from ..base import FILES_PATH, BaseResdkFunctionalTest
class BaseResdkFilteringTest(BaseResdkFunctionalTest):
def setUp(self):
super().setUp()
self.endpoint = self.res.data
... | [
"zmrzlikar.jure@gmail.com"
] | zmrzlikar.jure@gmail.com |
9375ac379d9e628b7e3443a2979108c2d4b929d6 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/sieve/e7fe59df2209451392330ca4b6e3a767.py | 92ce912956b69c6858c7563937f5b3852a638d3c | [] | 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 | 408 | py | def sieve(lim):
rng = range(2,lim+1)
output = range(2,lim+1)
for i in range(len(rng)):
count = 0
for j in range(len(output)):
if output[count] != rng[i]:
if not output[count] % rng[i]:
output.remove(output[count])
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
394523d7bb019d8ca4af4992d2c5ef47409c3c40 | 88a02059cbf16303dad9745a774230b2e078410f | /1163.py | 4ea1e789406c0eacec92cc075cfdac006f318799 | [] | no_license | nekoTheShadow/my_answers_of_yukicoder | 2e3a94b6dab214fda1ae3c53f879190e6eedc31f | d607dee056a84f08305a51d6eb0bac9faa5d74ed | refs/heads/master | 2022-01-16T06:31:48.776630 | 2022-01-04T08:11:27 | 2022-01-04T08:11:27 | 132,351,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | n, x = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
for i in range(n):
a[i] -= x
m = sum(a)
if m >= 0:
print(0)
exit()
if max(a) < 0:
print(-1)
exit()
dp = [{} for _ in range(n+1)]
dp[0][m] = 0
for i in range(n):
for k in dp[i]:
if... | [
"h.nakamura0903@gmail.com"
] | h.nakamura0903@gmail.com |
8b69bf2b7c8280abd5c5fdb09ed901c008f23423 | c744f3ae44ab1a692b4b6a39ce2c3045c81406c4 | /venv/bin/pip | 67066d339c88af6a7e54c8d3ea9ae96a32c1bbb3 | [
"Apache-2.0"
] | permissive | qq529952515/OA | f1e56d37c8e4b35b6f2e9bbdd0fb8370b90cc64d | ccf17b17b3122f9650bb1ab939befad784e9b4e0 | refs/heads/master | 2023-05-07T22:16:04.130146 | 2020-05-17T07:20:59 | 2020-05-17T07:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/home/yc/feature_As/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"15294786074@163.com"
] | 15294786074@163.com | |
0f0f5d0b1c85ad0e5682d38e9cb7c54b8cbd0dd4 | 6c29a72dfe9eed38f4667babf74c3ae98983be6f | /tests/test_fixtures.py | 445ff550251b679e46e044775df9352aed857bb4 | [
"Apache-2.0"
] | permissive | ryan-rs/pytest-examples | 0149f79a069a2fb272486d3bf25a756c341f38e8 | 9ca2368c5e86f651497e42bb304415cf2ae3a0df | refs/heads/master | 2020-03-26T15:04:17.374972 | 2018-11-27T16:38:47 | 2018-11-27T16:38:47 | 145,020,977 | 0 | 0 | NOASSERTION | 2018-11-12T19:14:40 | 2018-08-16T17:43:30 | Python | UTF-8 | Python | false | false | 3,540 | py | # -*- coding: utf-8 -*-
# ======================================================================================================================
# Imports
# ======================================================================================================================
import os
import pytest
# ===============... | [
"ryan.gard@rackspace.com"
] | ryan.gard@rackspace.com |
8f3823f30e9fe5b91a24c5a069368f02949d4f3d | a590cb0c9b232ad98d17a9917a36930c6a2c03f8 | /8kyu/Pre-FizzBuzz Workout 1.py | 3362f123258850350be517a6632dd369785ccf29 | [] | no_license | AbbyGeek/CodeWars | 6e10c10cbdb11f2df17a657d11ff5ffa79a5fb0b | 64dddda9f2a14a0592cc946b35302c4bd9bc569e | refs/heads/master | 2020-12-21T00:14:53.665879 | 2020-01-26T01:16:41 | 2020-01-26T01:16:41 | 236,252,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | def pre_fizz(n):
return [x+1 for x in range(n)] | [
"abbyrosewest@gmail.com"
] | abbyrosewest@gmail.com |
485f78bf0f29fec745e66e6f68080ca1aaf408bf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s928939056.py | 075c9216b7de983528e8012b9dc8198741dc64ee | [] | 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 | 614 | py | from math import gcd
from functools import reduce
k=10**6+1
def judge(n,a):
c=[0]*k
for x in a:
c[x]+=1 #対応する数の個数を記録
t=any(sum(c[i::i])>1 for i in range(2,k)) #自身を約数に持つ数が2つ以上与えられたリストに存在するような数が一つでもあるかどうか
t+=reduce(gcd,a)>1 #全体について1以外の公約数があれば1加える
return ['pairwise','setwise','not'][t]+' coprime' #全体に公約数があれば... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9651901898793df56347602451eb1e0ee5a21e22 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03729/s784741556.py | 223dc3c245f8c168dc6e9e30b687ce73313cf6ab | [] | 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 | 110 | py | a, b, c = input().split()
if a[-1] == b[0] and b[-1] == c[0]:
ans = "YES"
else:
ans = "NO"
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1619841e22d47095341a3633936eb0d746446e6c | 1ff31cedc4794083e213e6637deaacab49cfdd9a | /pyatv/mrp/tlv8.py | c8675b1741300017851aee0f599941efce39e7b5 | [
"MIT"
] | permissive | dschu012/pyatv | 910cefec45fcfe94fe9b3fee59672299215db24b | 6496548aee09ff95f5515abb172c1ba19b9d995b | refs/heads/master | 2020-12-04T06:35:25.957921 | 2020-01-01T14:38:54 | 2020-01-01T18:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | """Implementation of TLV8 used by MRP/HomeKit pairing process.
Note that this implementation only supports one level of value, i.e. no dicts
in dicts.
"""
# Some of the defined tags used by the pairing process
TLV_METHOD = '0'
TLV_IDENTIFIER = '1'
TLV_SALT = '2'
TLV_PUBLIC_KEY = '3'
TLV_PROOF = '4'
TLV_ENCRYPTED_DATA... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
6beaf98b5e814440dd35939b8f93ddfce0c683ae | 51108a50ffb48ad154f587c230045bb783f22240 | /bflib/items/writing/base.py | 44c7befeebcb6caac2b247b0ad366f89b2244aba | [
"MIT"
] | permissive | ChrisLR/BasicDungeonRL | c90bd0866c457557cccbad24e14689d5d6db7b00 | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | refs/heads/master | 2021-06-15T13:56:53.888646 | 2019-08-05T16:33:57 | 2019-08-05T16:33:57 | 104,269,987 | 3 | 0 | MIT | 2019-08-05T16:28:23 | 2017-09-20T21:35:19 | Python | UTF-8 | Python | false | false | 125 | py | from bflib.items import listing
from bflib.items.base import Item
@listing.register_type
class WritingItem(Item):
pass
| [
"arzhul@gmail.com"
] | arzhul@gmail.com |
e075f370a97eb97ee3fc17ee4c6814539f1e7217 | c22253c12dbcd0332a97374eb556e5a38844c893 | /lib/plugin/logic.py | 7680f611e22cce67c6675c604f1da3c469c9e911 | [] | no_license | passdacom/SJVA3 | eb7a6731a4edce763757949845247d2f4ec2718c | f204804d983b7d96f56a82abd39b3f3bb3d25ab5 | refs/heads/main | 2023-08-31T21:55:39.679826 | 2021-10-19T03:00:32 | 2021-10-19T03:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,113 | py | # -*- coding: utf-8 -*-
#########################################################
# python
import os
import traceback
import time
import threading
import platform
# third-party
# sjva 공용
from framework import db, scheduler
from framework.job import Job
from framework.util import Util
#################################... | [
"cybersol@naver.com"
] | cybersol@naver.com |
c37fddbe72a4bf5e7895fef5d2695c5dec44a3c9 | f3c2fa4c6ef32e01b98ac56a2e25419152d69208 | /gpio-utils/radiosimulator.py | 2c6810bd11fb90a6e076c1bbac1c5bd5e6bd0e97 | [
"MIT"
] | permissive | deets/brombeerquark | bd4687d42f9466cd5f6843df6a49e647cf3e2fcc | 9314bc6adaf19ee3868612c8aafdce0f1ebbabb9 | refs/heads/master | 2021-07-19T07:02:22.427227 | 2021-02-28T12:45:57 | 2021-02-28T12:45:57 | 47,883,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | from __future__ import print_function
from functools import partial
import time
import threading
import Queue
from tfa import TimedFiniteAutomaton
def simulate_gpio_events(queue):
time.sleep(1.0)
# just increase volume by pressing/releasing once
queue.put("volume+pressed")
queue.put("volume+released")... | [
"deets@web.de"
] | deets@web.de |
342f10467123051dda12ff9cfcfa59cb2048ea18 | 7bdc1a3565ba8964658a749fb05ddc27f20d0a33 | /scripts/mvn_incremental | d92faf0f5cebe8ccda4cf17fbd1335426c57b1b4 | [] | no_license | wuan/ci-tools | 375cd64d0197e7e482255661c998f11e06c3e404 | 6796ee0a9f0b11a4c4ac7c05bdad047e6edd3313 | refs/heads/master | 2020-12-24T16:24:02.820016 | 2016-03-04T07:33:19 | 2016-03-04T07:33:19 | 39,160,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | #!/usr/bin/env python
# coding=utf-8
"""
Copyright 2015 Andreas Würl
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 require... | [
"andi@tryb.de"
] | andi@tryb.de | |
03d53a2fa862909aa754424596e338d8baa4977a | 03cbc74c3b5c3147e2a5ccfe668594350ac32e09 | /lib/game_controller.py | 9ce9f53324d0447b7aa41f4d4860de35d7426544 | [] | no_license | yapo/scoreboard | 51e1b5ae07ad23390b920c2a8cad13f4e9e71a4f | f35457125e377d19d912509b3b7c7749fc5a15aa | refs/heads/master | 2021-01-18T12:05:53.859445 | 2014-08-30T21:33:58 | 2014-08-30T21:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | import sys
class game_controller(object):
def __init__(self, config):
self.config = config
self.player1 = player('white')
self.player2 = player('black')
self.last_scored_player = None
self.victory_callbacks = []
self.danger_zone_callbacks = []
self.combo_breaker_callbacks = []
self.first_blood_callba... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
b7c52a665189f194d3ae5023e42cd32fef26b8e8 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/lqi.py | c5b5b09a028ae3b0d4730ed13c933d52455fff36 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
dff6b6a5b2d3975ef21308b798a270290acf6b65 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/twisted-Zope-3.2.1/twisted/vfs/pathutils.py | a5eb45e442945312b73e304ec7158ad550551c8a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,390 | py | from zope.interface import Interface, Attribute, implements
def getAbsoluteSegments(path, cwd='/'):
"""
@param path: either a string or a list of string segments
which specifys the desired path. may be relative to the cwd
@param cwd: optional string specifying the current working directory
retur... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
2e37a656e0edae2639a95df75b96978d92948395 | 6c547e3312e2d1bd3dab123b831053ed7aef7b6d | /pages/MYCL/gain_loss/realized.py | cdacebeed29d6225098e87c9886c149079ecb7fb | [] | no_license | kenito2050/BICL | 8c4239f1e897e4dfc04aa35e827816242b41d5dd | 82891aba56cc49c9cf96ce82472847c4cb10828f | refs/heads/master | 2020-12-31T22:10:44.784193 | 2020-02-10T23:00:10 | 2020-02-10T23:00:10 | 239,039,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from selenium.webdriver.common.by import By
from config_globals import *
class realized():
def __init__(self, driver):
self.driver = driver
def Page_Elements(self):
# Table Header
self.table_header = self.driver.find_element(By.XPATH, "/html/body/div[1]/div[3]/div/div/ui-view/div/div... | [
"ken.villarruel@gmail.com"
] | ken.villarruel@gmail.com |
7088ef175232c41f87a46face5ef3c3f34a5927d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02256/s464205146.py | 66f0c6b76ec4f68636fea32269d78178a8e85ded | [] | 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 | 778 | py | a, b = map(int, input().split())
c = []
if a > b:
a, b = b, a
if b%a == 0:
print(a)
else:
while True:
for i in range(a):
x = i + 2
#print(a, x)
if a%x == 0:
if b%x == 0:
c.append(x)
a = a//x
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e5889701fc9377bce8eda18387d6adaea7a0c042 | 50bd113a98b1657d735a933c0fcc446dd8c35e3e | /companies/migrations/0011_auto_20190807_0332.py | 59e7718a743d90f137978161d15d48a3cf61152f | [
"Apache-2.0"
] | permissive | fuseumass/hackerforce | ab0d7e2fcb0c25276eac977fd628a0c67411e059 | dfb6ac1304a7db21853765de9da795e8e9ef20bf | refs/heads/development | 2022-12-23T09:44:38.319260 | 2019-12-05T00:11:59 | 2019-12-28T06:22:01 | 194,482,639 | 13 | 7 | Apache-2.0 | 2022-12-08T03:16:40 | 2019-06-30T06:21:44 | CSS | UTF-8 | Python | false | false | 575 | py | # Generated by Django 2.2.3 on 2019-08-07 07:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0010_auto_20190807_0322'),
]
operations = [
migrations.AlterField(
model_name='industry',
name='color',... | [
"j@wogloms.net"
] | j@wogloms.net |
88065cf2fd2349c82ab8c1843bf968f43a975af1 | 98be00ee32971cade82d10c067aff532c3394a62 | /geeksforgeeks/linked_list_merge_sort.py | 200e6d2c43b2057dfa6cccd4818f7680ebebc6f6 | [] | no_license | vigneshhari/Competitive_solutions | 5ab34933ea8d84eab67bdef9bb9e4562f6b90782 | 7a35e1386e5cff71cb5746b6797ccc0f03ceb3f4 | refs/heads/master | 2023-01-11T02:53:01.456863 | 2022-12-29T13:50:03 | 2022-12-29T13:50:03 | 115,146,700 | 4 | 2 | null | 2019-10-26T09:15:03 | 2017-12-22T20:03:51 | Python | UTF-8 | Python | false | false | 391 | py |
class ll:
next = None
def __init__(self,val):
self.val = val
def setnext(self,next):
self.next = next
def stringll(node):
if(node == None):return ""
return str(node.val) + " " + stringll(node.next)
head = ll(-1)
looper = head
for i in range(input()):
temp = ll(input())
... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.