blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab874f54709718eb18eb3c5f718ae9204a92281a | b4bb9a937e0904db89c6496389f49ae555258fc5 | /apps/messages.py | b446216ae5a1105af91ba51c24960a4feb5e9fa3 | [] | no_license | vitoralves/python-api | 3e1f5f77ba61e0df2770c9d24240b46ee9c37449 | 125172ee7906392c49884f8e8fdf21bc9aa60c2c | refs/heads/master | 2020-05-24T04:21:48.857073 | 2019-05-22T16:19:52 | 2019-05-22T16:19:52 | 187,090,895 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | MSG_FIELD_REQUIRED = 'Campo obrigatório.'
MSG_INVALID_DATA = 'Ocorreu um erro nos campos informados.'
MSG_DOES_NOT_EXIST = 'Este(a) {} não existe.'
MSG_EXCEPTION = 'Ocorreu um erro no servidor. Contate o administrador.'
MSG_ALREADY_EXISTS = 'Já existe um(a) {} com estes dados.'
MSG_NO_DATA = "Os dados não podem ser nul... | [
"="
] | = |
fe31ab89f3e3accf47cecdd7b82dfdfe1dc82ed0 | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5161 Profile Check/Profile_108541.py | 2258d75bb8e0e950291c863f0631348a9989fb97 | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,101 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("ProfileCleanedMIP")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108541.root"),
streams = cms.untracked.vstring(... | [
"yichen@positron01.hep.caltech.edu"
] | yichen@positron01.hep.caltech.edu |
43a44eb94d4c3cdc0eb12a66ca6aeb7e6f8ab7c6 | 49253f12cea4b2ec1df4d68876c3c330fec3f52b | /001_数据结构相关/001_set集合_交集_并集_差集_对称差集.py | f1a21ae3614ae074ef531ce11370b4832eeadf37 | [] | no_license | FelixZFB/Python_development_skills_summary | b2877652a5396936a28d5c65fb407df201ffa158 | 998679496de8385bda34734f83d927a7d340876a | refs/heads/master | 2020-06-09T16:58:51.242686 | 2020-02-27T07:02:48 | 2020-02-27T07:02:48 | 193,472,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding:utf-8 -*-
#
# 集合支持一系列标准操作,包括并集、交集、差集和对称差集,例如:
# a = t | s # t 和 s的并集
# b = t & s # t 和 s的交集
# c = t – s # 求差集(项在t中,但不在s中)
# d = t ^ s # 对称差集(项在t或s中,但不会同时出现在二者中)
a = [1, 5, 10, 15, 10]
b = [1, 5, 10, 9, 12]
# 集合会去掉重复元素
print(set(a))
print("*" * 50)
# 并集
c1 = set(a) | s... | [
"18200116656@qq.com"
] | 18200116656@qq.com |
81baef8090682ce775be599e4786806b1672e33f | 8a7abed7c441600a66bf2ef9135ff3a367ac0eb2 | /website/goals/migrations/0001_initial.py | 00da811bea795906390ec6595dd4df58f5432e91 | [] | no_license | mrooney/mikesgoals | 094d30160817879243b7539df5a3759d19583edc | dd0b0aee7ce20d43852cf694bc1ecb5af23dde94 | refs/heads/master | 2023-04-09T16:10:16.008923 | 2022-07-07T17:33:00 | 2022-07-07T17:33:00 | 4,474,379 | 2 | 0 | null | 2023-03-31T14:38:43 | 2012-05-28T20:30:43 | Python | UTF-8 | Python | false | false | 1,019 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Goal'
db.create_table('goals_goal', (
('id', self.gf('django.db.models.fields.Au... | [
"mrooney.github@rowk.com"
] | mrooney.github@rowk.com |
6009fe56a5b567eb3751301b21273398f872f28d | b13c57843cb8886c6f5d630ca099ad9130b26f25 | /python/장고/first.py | 94cc29b0619ffd718f3cfc6ee9a510900562b741 | [] | no_license | schw240/07.27-12.1_CLOUD | 6b563318f7208b843a13634a1cf46206197d6dfc | 8b4dc2d31e5d2ba96bde143116aba3ba0dad7a49 | refs/heads/master | 2023-03-25T15:44:03.555567 | 2021-03-30T02:09:32 | 2021-03-30T02:09:32 | 282,791,349 | 4 | 0 | null | 2021-03-19T15:00:00 | 2020-07-27T04:10:56 | Jupyter Notebook | UTF-8 | Python | false | false | 1,297 | py | from http.server import BaseHTTPRequestHandler, HTTPServer
import datetime
class HelloHandler(BaseHTTPRequestHandler):
def do_GET(self):
print(self.path)
if self.path == '/my':
self.send_response(200)
self.end_headers()
self.wfile.write("MyPage!".encode('utf-8'))
... | [
"schw240@gmail.com"
] | schw240@gmail.com |
ad6cc0a08e8ba3d2ad47ab45d0395df6b071594b | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/i18n/filters.py | 2807d5ca114aaa6b7749be72ef8b4ab16fdbd8fe | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"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 | 6,811 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
4c1fac6ffc39bfa3667bc5a2ef3b71ca0e4f0283 | bee2af5228232ce94f418b61810cecd93af62615 | /movies/tests.py | a6adfa1859a67fd17757470bea1d839c9c970cc3 | [] | no_license | thuitafaith/djangoapp | b64c2e1a05c67b1135d4d9dd7975c17522238a69 | e06280b34a7b1ec012d0baab6f0fb153875a39b4 | refs/heads/master | 2022-12-11T19:06:08.540528 | 2019-08-29T12:36:45 | 2019-08-29T12:36:45 | 203,321,071 | 0 | 0 | null | 2022-11-22T04:13:07 | 2019-08-20T07:15:28 | Python | UTF-8 | Python | false | false | 1,600 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
from .models import Editor,Article,tags
import datetime as dt
# Create your tests here.
class EditorTestClass(TestCase):
# set up method
def setUp(self):
self.faith=Editor(first_name='faith',last_name='... | [
"thuitamuthoni15@gmail.com"
] | thuitamuthoni15@gmail.com |
f287244a91e88664b5d41777c7749b04894158ea | f4b16d247195621a5413aab56919b4e623b604b8 | /src/faimes/urban/dataimport/opinionmakers/settings.py | ed4e0587d66bb5c2e6bf895523ee08c2b6023e75 | [] | no_license | IMIO/faimes.urban.dataimport | cc1a7e3050538f409c29e3031a175e8d1a96c7db | 67fcaa14a5951df7cbaf64b59794aab0a2b88f7f | refs/heads/master | 2021-01-10T17:52:51.975421 | 2017-03-16T13:27:27 | 2017-03-16T13:27:27 | 52,949,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # -*- coding: utf-8 -*-
from faimes.urban.dataimport.opinionmakers.importer import OpinionMakersImporter
from imio.urban.dataimport.access.settings import AccessImporterFromImportSettings
class OpinionMakersImporterFromImportSettings(AccessImporterFromImportSettings):
""" """
def __init__(self, settings_for... | [
"delcourt.simon@gmail.com"
] | delcourt.simon@gmail.com |
06d163a2fe5ead35d5e572263a70fde2496f201a | 745197407e81606718c4cdbedb6a81b5e8edf50b | /tests/texttest/TestSelf/TestData/GUI/CopyTestPermission/TargetApp/printpermissions.py | 982669999d14a181bf22034492a6efd8f0066ec8 | [] | no_license | dineshkummarc/texttest-3.22 | 5b986c4f6cc11fd553dab173c7f2e90590e7fcf0 | 85c3d3627082cdc5860d9a8468687acb499a7293 | refs/heads/master | 2021-01-23T20:44:35.653866 | 2012-06-25T07:52:13 | 2012-06-25T07:52:13 | 4,779,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python
import os
if os.name == "posix":
os.system("fake_executable.py 2> /dev/null")
else:
os.system("fake_executable.py 2> nul")
| [
"dineshkummarc@gmail.com"
] | dineshkummarc@gmail.com |
41966c4c82d82d656d5fa42250f7a8267dfc0855 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_solomon_wzs_coin_jam2.py | dd210cf970f87c5ec2c5810a2df187cfd1dd819d | [] | 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 | 2,771 | py | #!/usr/bin/python2
import math
prime_list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41,
43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 113,
193, 241, 257, 337, 353, 401, 433, 449, 577, 593, 641,
673, 769, 881, 929, 977, 1009, 1153, 1201, 1217, 1249,
1297... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
c429802a9089f13c1454fc1561fb824738bee9ed | 35a2c7e6a01dc7f75116519e4521880416f2a9f2 | /tag/migrations/0002_value.py | 2824ada9ec86e752a45838963178796c90938761 | [] | no_license | engrogerio/edr-rest | ae977857d86aab3ef5b40e4d2be2e24abda97cb9 | a1115a1cd80c0531a85545681b0d3a70b97c529e | refs/heads/master | 2021-01-12T06:35:47.059448 | 2016-12-26T16:20:14 | 2016-12-26T16:20:14 | 77,392,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-09-07 15:42
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('f... | [
"eng.rogerio@gmail.com"
] | eng.rogerio@gmail.com |
2db93df279e2e7651e7f462a9d558dc444be41b7 | b42b8f2bfadd25c51cbb12054bc6df42943b7536 | /venv/Scripts/easy_install-3.7-script.py | d0dad9ea927377d5b3c3ccd6ddf55aeec430b305 | [] | no_license | sharikgrg/week4.Gazorpazorp | 4b785f281334a6060d6edc8a195a58c072fb5a75 | 0f168a0df81703a8950e375081cafd2e766595fb | refs/heads/master | 2020-08-03T22:41:43.373137 | 2019-09-30T15:35:29 | 2019-09-30T15:35:29 | 211,907,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | #!"C:\Users\Sharik Gurung\OneDrive - Sparta Global Limited\PYTHON\gazorpazorp-space-station\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == ... | [
"SGurung@spartaglobal.com"
] | SGurung@spartaglobal.com |
25fe704f5be77484a077c570572772385b9cdd39 | 27c27208a167f089bb8ce4027dedb3fcc72e8e8a | /ProjectEuler/Solutions/Problems 50-100/Q075.py | b1510ace6b6e74c60b66d6a3e138b7926017acc7 | [] | no_license | stankiewiczm/contests | fd4347e7b84c8c7ec41ba9746723036d86e2373c | 85ed40f91bd3eef16e02e8fd45fe1c9b2df2887e | refs/heads/master | 2021-05-10T16:46:41.993515 | 2018-02-16T09:04:15 | 2018-02-16T09:04:15 | 118,587,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from numpy import *
# m^2+n^2, 2mn, m^2-n^2
LIM = 1500000; Count = zeros(LIM+1, int);
def GCD(a,b):
while (b > 0):
c = a-(a/b)*b;
a = b;
b = c;
return a;
m = 1; M2 = 1;
while (2*M2 < LIM):
n = m%2+1;
while (2*M2+2*m*n < LIM) and (n < m):
if GCD(m,n) ==... | [
"mstankiewicz@gmail.com"
] | mstankiewicz@gmail.com |
3f6d20b2b0368bc1fce9ed4428930b1693f2765e | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4134/codes/1723_2505.py | 8e06f5ecd7a38c37363f35f111d10476601ae390 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from math import*
ang = eval(input("angulo:"))
k = int(input("numero de termos:"))
soma = 0
i = 0
fim = k - 1
while(i <= fim):
soma = soma+(-1)**i*((ang**(2*i+1)/factorial(2*i+1)))
i = i + 1
print(round(soma, 10)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e31dea602a2885d6f6b29d64376f9e3e2a16e75e | 57391fbdde43c3d2e8628613d9003c65ff8abf9d | /Exercicios/ex050.py | c2deb6d939dc7f9a9690a0cbb5d9e7af53d18167 | [] | no_license | JoaolSoares/CursoEmVideo_python | 082a6aff52414cdcc7ee94d76c3af0ac2cb2aaf5 | aa9d6553ca890a6d9369e60504290193d1c0fb54 | refs/heads/main | 2023-07-15T07:39:57.299061 | 2021-08-26T20:04:22 | 2021-08-26T20:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | soma = 0
for c in range(1, 7):
n1 = int(input('Diga um {}º numero: ' .format(c)))
if n1 % 2 == 0:
soma += n1
print('A soma de todos os numeros pares é de: \033[1;34m{}\033[m'. format(soma))
| [
"joaolucassoaresk@outlook.com"
] | joaolucassoaresk@outlook.com |
347d0ea9561448fc30d4a289a796fa6453ad8a76 | 08120ee05b086d11ac46a21473f3b9f573ae169f | /gcloud/google-cloud-sdk/.install/.backup/lib/surface/projects/add_iam_policy_binding.py | c25bf659de28f724ec44d284cf9b7e902abe6009 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | harrystaley/TAMUSA_CSCI4349_Week9_Honeypot | 52f7d5b38af8612b7b0c02b48d0a41d707e0b623 | bd3eb7dfdcddfb267976e3abe4c6c8fe71e1772c | refs/heads/master | 2022-11-25T09:27:23.079258 | 2018-11-19T06:04:07 | 2018-11-19T06:04:07 | 157,814,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 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 requir... | [
"staleyh@gmail.com"
] | staleyh@gmail.com |
105b66682da75be919d969965dcd0c11bb4617ce | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v1/model/monitor_search_response_counts.py | 94a81e62a22817294ef78c86f9fecc7290984a77 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 2,063 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Union, TYPE_CHECKING
from datado... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
ee7611e405952a6d724354ab56524138152af431 | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /solem/pcv_book/graphcut.py | 242ac3449953f8cca3ec94fabb66d20ceecfa821 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 3,413 | py | from pylab import *
from numpy import *
from pygraph.classes.digraph import digraph
from pygraph.algorithms.minmax import maximum_flow
import bayes
"""
Graph Cut image segmentation using max-flow/min-cut.
"""
def build_bayes_graph(im, labels, sigma=1e2, kappa=1):
""" Build a graph from 4-neighborhood of p... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
59aeb4698e5be1a9660b979dcf41c2e3880deca6 | 14bb0b5d7478d3a8740cbc15cc7870fcd1fa8207 | /tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py | c8dcb7ba231cf3f57f8b8a5dd3782e2a124fbac7 | [
"Apache-2.0"
] | permissive | terigrossheim/tensorflow | 2be34891c99e0fcf88cf8418632f24676f1620a7 | ed9d45f096097c77664815c361c75e73af4f32d4 | refs/heads/master | 2022-11-06T12:08:10.099807 | 2020-06-29T12:10:56 | 2020-06-29T12:35:24 | 275,867,898 | 1 | 0 | Apache-2.0 | 2020-06-29T16:21:41 | 2020-06-29T16:21:39 | null | UTF-8 | Python | false | false | 4,320 | 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 |
c30392e2bb7b8ca47fa86eecc06d3ba2ebbf67c5 | b6472217400cfce4d12e50a06cd5cfc9e4deee1f | /sites/top/api/rest/WlbItemDeleteRequest.py | 90181cc7828d9d8c9ed09c35a46a07e62a9e7a08 | [] | no_license | topwinner/topwinner | 2d76cab853b481a4963826b6253f3fb0e578a51b | 83c996b898cf5cfe6c862c9adb76a3d6a581f164 | refs/heads/master | 2021-01-22T22:50:09.653079 | 2012-08-26T19:11:16 | 2012-08-26T19:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | '''
Created by auto_sdk on 2012-08-26 16:43:44
'''
from top.api.base import RestApi
class WlbItemDeleteRequest(RestApi):
def __init__(self,domain,port):
RestApi.__init__(self,domain, port)
self.item_id = None
self.user_nick = None
def getapiname(self):
return 'taobao.wlb.item.delete'
| [
"timo.jiang@qq.com"
] | timo.jiang@qq.com |
a33002ee62b9f1e34ed9eabcd27de694c1e05a29 | 00f1f01f218fddc30a4194e999f0b48c45c47012 | /elements/resources/migrations/0001_initial.py | fb4b807194a3f2905b8e8ba7d9f27baedea4299e | [] | no_license | mikpanko/grakon | 495659317c5933a95650b3f9000aab73e7335a13 | 6c64432c366a6ad44fb7227f22498335bd193f37 | refs/heads/master | 2020-12-26T00:19:52.799388 | 2013-07-28T02:33:19 | 2013-07-28T02:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
db.rename_table('elements_entityresource', 'resources_entityresource')
if not db.dry_run:
# For... | [
"sergkop@gmail.com"
] | sergkop@gmail.com |
1dcaa9207f2ccf6e23d755d436896b1aef624ac1 | a170461845f5b240daf2090810b4be706191f837 | /pyqt/DemoFullCode-PythonQt/chap12QtChart/Demo12_2ChartConfig/myDialogPen.py | 4cdbf17519ebcd8973fd4577bfea498efc83ca6b | [] | no_license | longhuarst/QTDemo | ec3873f85434c61cd2a8af7e568570d62c2e6da8 | 34f87f4b2337a140122b7c38937ab4fcf5f10575 | refs/heads/master | 2022-04-25T10:59:54.434587 | 2020-04-26T16:55:29 | 2020-04-26T16:55:29 | 259,048,398 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | # -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import QApplication, QDialog,QColorDialog
from PyQt5.QtCore import pyqtSlot,Qt
##from PyQt5.QtWidgets import
from PyQt5.QtGui import QPen, QPalette,QColor
from ui_QWDialogPen import Ui_QWDialogPen
class QmyDialogPen(QDialog):
def __init__(self, par... | [
"841105197@qq.com"
] | 841105197@qq.com |
449a4e9073d7775f05349340826f0d6e53ce9997 | 19da1a56f137a08772c347cf974be54e9c23c053 | /lib/adafruit_motor/servo.py | 0c46abd369009f496e2dd3f194a68ec1901f43f5 | [] | no_license | mk53202/mk53202-timeclock-pyportal | d94f45a9d186190a4bc6130077baa6743a816ef3 | 230a858d429f8197c00cab3e67dcfd3b295ffbe0 | refs/heads/master | 2021-02-04T05:38:25.533292 | 2020-02-27T22:45:56 | 2020-02-27T22:45:56 | 243,626,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,061 | py | # The MIT License (MIT)
#
# Copyright (c) 2017 Scott Shawcroft for Adafruit Industries LLC
#
# 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 limit... | [
"mkoster@stack41.com"
] | mkoster@stack41.com |
f0202a4f34472c4c3be1f395aaae592e9ea9f454 | 7d9f92fba6af53bd385e0b4173134241c9998fff | /items/admin.py | 418f8f0f830fcebdebd5feddc8bd7ec707691ed5 | [] | no_license | ljarufe/intifil | 856f77c6ece7f444fd331a3eff3c35260201f78f | d478a8a1309d526a2508ca7b559e16de03aaa384 | refs/heads/master | 2021-01-02T09:09:13.613026 | 2013-10-21T17:00:03 | 2013-10-21T17:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from modeltranslation.admin import TranslationAdmin
from common.admin import BasePermissionAdmin
from items.models import Category, Photo, HomePhoto, Item, Video, SubItem
class CategoryAdmin(BasePermissionAdmin, TranslationAdmin):
"""
Category model ad... | [
"luisjarufe@gmail.com"
] | luisjarufe@gmail.com |
e07ad01c23c45836b064759f00be7e07f68f04e8 | f04a36fdaa415c6a47d3727e783b2dce11e3dd43 | /blog/views.py | 8ae814785c3273121fdfa345ef1043693a0d0a73 | [
"BSD-3-Clause"
] | permissive | hellprise/cook_blog | e9486452cc53a1300fce5ea9ea54dbe5c0408bf0 | d55734af1625256f940e55d267beb38d911bfda4 | refs/heads/main | 2023-06-25T21:43:20.284389 | 2021-07-28T14:36:45 | 2021-07-28T14:36:45 | 390,378,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from django.shortcuts import render
from django.views.generic import ListView, DetailView
from blog.models import Post
class PostListView(ListView):
model = Post
def get_queryset(self):
return Post.objects.filter(category__slug=self.kwargs.get('slug')).select_related('category')
class PostDetailVi... | [
"you@example.com"
] | you@example.com |
95a4b7f4ef92f184eefee95bceee085fc44064e8 | ecd2c20608e1f4a1646c87767762bd72db618d65 | /photo_blog/settings.py | a119b668239d31d500b4fa6a3be1f70c0a501c4a | [] | no_license | RianGirard/photo_blog | 129858ee32cbc2ff0521c8219b72b9d83c015726 | e461fa62abe027965b7143cce544d25634d5bf9c | refs/heads/master | 2023-06-20T14:36:38.040663 | 2021-07-21T01:02:13 | 2021-07-21T01:02:13 | 383,640,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,867 | py | """
Django settings for photo_blog project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
f... | [
"riangirard@gmail.com"
] | riangirard@gmail.com |
5e0d645e8d8db30e316d5aab006e9160adad1df9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_impromptus.py | fee549bf75880518cd29b8bb36287ecde035b251 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _IMPROMPTUS():
def __init__(self,):
self.name = "IMPROMPTUS"
self.definitions = impromptu
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['impromptu']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4e5edd8fae1f0b8969b8d01ebb9cdc696f1cb1e4 | 0abc546a1442cae56ddcdc43f85497b37fc89036 | /scripts/graph_check_transitivity.py | b1793d5f4b9923cd0e824952d489b64036bc0a11 | [] | no_license | yangjl/cgat | 01a535531f381ace0afb9ed8dc3a0fcff6290446 | 01758b19aa1b0883f0e648f495b570f1b6159be4 | refs/heads/master | 2021-01-18T03:55:14.250603 | 2014-02-24T10:32:45 | 2014-02-24T10:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,395 | py | '''
graph_check_transitivity.py -
======================================================
:Author: Andreas Heger
:Release: $Id$
:Date: |today|
:Tags: Python
Purpose
-------
.. todo::
describe purpose of the script.
Usage
-----
Example::
python graph_check_transitivity.py --help
Type::
python graph_... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
b695dc1cd6ac27aeb81909e86ad63a50c0fac5c4 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/compute/instance_groups/describe.py | 8a88e0e197d87deb862c3ee4c7fd71f847b772b4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 1,985 | 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... | [
"toork@uw.edu"
] | toork@uw.edu |
e36d5216b192e842d632a87650507221796a33e3 | bcee50b3cbaf7a8000dffb7326cf467ae432b626 | /basic/15650/nm_2_dfs.py | cfe1b263b0584c44a10c3b12c47bba7fd97e0bce | [] | no_license | entrekid/algorithms | 53e5e563f6350b76047d8163ecd6e623dbe6e8d1 | 64377821718b3e44faf6a05be4d3ebf99b674489 | refs/heads/master | 2022-04-06T21:49:42.081981 | 2020-03-03T14:58:52 | 2020-03-03T14:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | n, m = map(int, input().split())
check_list = [False] * n
num_list = [elem + 1 for elem in range(n)]
result_list = []
def nm_dfs2(num):
if num == m:
print(*result_list)
return
for iter in range(n):
if check_list[iter] == True:
continue
check_list[iter] = True
... | [
"root@LAPTOP-S2FAKB33.localdomain"
] | root@LAPTOP-S2FAKB33.localdomain |
005e6a8d7f20ae9bcc7a387f6cf8b691bc2da6d2 | aaa3ab0c89f558a33ddcad9bcc5a687049dbc599 | /backend/src/websocket/socket.py | c7efe44db002bc33abccdeaebe9cf23e1008b529 | [] | no_license | vetordev/Hypersup | 5d059282971bf45f54f8be49071984371f98aabe | 961ac24209a3772fef5016ca851f82bc2fc40bd1 | refs/heads/master | 2021-02-16T18:40:06.197712 | 2020-03-18T22:20:13 | 2020-03-18T22:20:13 | 245,034,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from flask import request
class Socket:
def __init__(self, socket, app):
self.socket = socket
self.app = app
def run(self):
@self.socket.on('connect')
def connect():
print('New Connection; Id: ${id}'.format(id=request.sid))
| [
"you@example.com"
] | you@example.com |
1d9c3616c035da8730928b2c6d124ebe273b931d | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/distributed/checkpoint/state_dict_saver.py | a99cd129aeb637da7d11cb88ad101de0a72d8c56 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 4,458 | py | from typing import Optional
import torch
import torch.distributed as dist
from .planner import SavePlanner
from .default_planner import DefaultSavePlanner
from .storage import (
StorageWriter,
)
from .metadata import Metadata, STATE_DICT_TYPE
from .utils import _DistWrapper
__all__ = ["save_state_dict"]
def ... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
82a0e0d28994984b8a494fad02e967299d94d678 | eb817a5a5fd66d00906d2ac2574e2ef749780877 | /defining_classes/demos_metaclasses.py | b2fd1f30b2205a42c5e9f106569b3de0e8110ce2 | [
"MIT"
] | permissive | Minkov/python-oop-2021-02 | 5afcc356f59196fdfcfd217b455b8621176f578b | bd387dde165f4338eed66c4bc0b4b516ee085340 | refs/heads/main | 2023-04-01T08:07:39.096457 | 2021-04-05T18:24:40 | 2021-04-05T18:24:40 | 341,306,261 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | class Singleton(type):
__instances = {}
def __new__(cls, *args, **kwargs):
return super().__new__(cls, *args, **kwargs)
def __call__(cls, *args, **kwargs):
if cls not in cls.__instances:
cls.__instances[cls] = super().__call__(*args, **kwargs)
return cls.__instances[cls... | [
"DonchoMinkov@gmail.com"
] | DonchoMinkov@gmail.com |
e1059ae6e9b86f602d1bc6205a6ed704ffdc4962 | 5845ee6d82d9f691e846360fa267b9cca6829d99 | /supervised_learning/0x0F-word_embeddings/0-bag_of_words.py | 637623c05195091bb4a31ba366e5d15fe022ab76 | [] | no_license | jlassi1/holbertonschool-machine_learning | 6e8c11ebaf2fd57e101bd0b20b7d83358cc15374 | d45e18bcbe1898a1585e4b7b61f3a7af9f00e787 | refs/heads/main | 2023-07-02T20:25:52.216926 | 2021-08-11T14:19:49 | 2021-08-11T14:19:49 | 317,224,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!/usr/bin/env python3
""" 0. Bag Of Words """
from sklearn.feature_extraction.text import CountVectorizer
def bag_of_words(sentences, vocab=None):
"""function that creates a bag of words embedding matrix"""
vectorizer = CountVectorizer(vocabulary=vocab)
X = vectorizer.fit_transform(sentences)
feature... | [
"khawlajlassi1990@gmail.com"
] | khawlajlassi1990@gmail.com |
ee864bf4f45435d16fd37093d8533828dfc9fe61 | ad469d0ca144c485fc0cdcfb2ebfdd0bddf86271 | /src/models/base.py | 54694b4039a9f44b73fa58b3fa5fc83c93fa823d | [] | no_license | ngxbac/Kaggle-Google-Landmark-2019 | 3e8a29e83e835b29262df439b9af12ca27cee768 | 274864e2778acde9007c096607c113c268882343 | refs/heads/master | 2020-05-31T04:37:32.003023 | 2019-06-04T00:41:51 | 2019-06-04T00:41:51 | 190,102,248 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | import torch
import torch.nn as nn
import torchvision.models as models
class Net(nn.Module):
def __init__(self, num_classes=100, norm=True, scale=True):
super(Net,self).__init__()
self.extractor = Extractor()
self.embedding = Embedding()
self.classifier = Classifier(num_classes)
... | [
"ngxbac.dt@gmail.com"
] | ngxbac.dt@gmail.com |
e0496f50c98467811842743bdcac4c7f1dc14c9e | c424ffe3c31422e72810b4865f482d505d145e87 | /fliermailses/models.py | 7eaea73f99fb1b029fe3303c6f16d0ab41e0e949 | [
"BSD-2-Clause"
] | permissive | hdknr/fliermail-ses | d49724b7f1eb648a806e4301738db96a50e098ca | 91366535b1a0890b4766c09d70aee1ec5387f7f0 | refs/heads/master | 2020-06-19T04:57:02.261919 | 2018-03-15T05:18:16 | 2018-03-15T05:18:16 | 94,177,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from . import defs, methods, querysets
class Service(defs.Service, methods.Service):
class Meta:
verbose_name = _('SES Service')
verbose_name_plural = _('SES Service')
def __str__(self):
return self.... | [
"gmail@hdknr.com"
] | gmail@hdknr.com |
df2ffa0accf83f4363cc11f2b219eb6f5a74b0c3 | dd834845a2ab346dafd04f3beb4ba0916b64dc51 | /test_case/task/test_200smart_sanity_clear_001.py | fc61417bcb137b08429c8f21631cfea146deaf4b | [] | no_license | Lewescaiyong/auto_test_framework | ae51726b705fbf125c30fce447c7c75510597047 | 2d3490393737b3e5f086cb6623369b988ffce67f | refs/heads/master | 2020-11-25T09:18:29.209261 | 2020-02-10T13:48:12 | 2020-02-10T13:48:12 | 228,590,729 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | #!/usr/bin/env python
from lib.exceptions.check_exception import CheckException
from lib.base.script.integration_test.case_mw import CaseMW
class Test200SmartSanityClear001(CaseMW):
"""Clear OB
No.: test_200smart_sanity_clear_001
Preconditions:
1. Open Micro/WINr;
2. Set up connection w... | [
"1351153527@qq.com"
] | 1351153527@qq.com |
a89d9222bee0ded8bd36c1c69d2dacb9bfb28e01 | 7a6a2076cffbbd47316818b37ddf22a932002065 | /python/702 - Search in a Sorted Array of Unknown Size/main.py | f23ffb8bc239c9335e262a01b41c66efce7866a5 | [] | no_license | or0986113303/LeetCodeLearn | 6bd0aa16c8c80581e1c85032aca0f7a055f5e234 | 96fdc45d15b4150cefe12361b236de6aae3bdc6a | refs/heads/develop | 2023-06-14T01:30:41.103572 | 2021-07-01T08:59:08 | 2021-07-01T08:59:08 | 291,066,699 | 0 | 0 | null | 2020-08-31T02:44:26 | 2020-08-28T14:25:53 | Python | UTF-8 | Python | false | false | 1,577 | py | # """
# This is ArrayReader's API interface.
# You should not implement it, or speculate about its implementation
# """
#class ArrayReader(object):
# def get(self, index):
# """
# :type index: int
# :rtype int
# """
class Solution(object):
def fibosearch(self, source, target):
... | [
"or0986113303@gmail.com"
] | or0986113303@gmail.com |
81bf3c105d1a1393058d90b3633bcebdd5ae4fbf | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/histogram_20200120113537.py | 4f52929b9fac6bf129f57f7e695e94974d77475a | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 696 | py |
def list_histo(source):
''' Takes text. Stores each item in text compares each item to the rest of the words in
text and keeps a running total. Used list account for no repeats.
'''
histo = []
used = []
text = source.split()
print(text)
for word in text:
counter = 0
... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
e872d8089a62b5d92696f6668390f4ab68945df9 | 6547d657706c041f2a87b0680936dd3d473ad328 | /httprunner/cli.py | f60004271687446d2bcfb3af3c86d5de03b91a41 | [
"Apache-2.0"
] | permissive | lixiaofeng1993/httprunner | 62c01f6b5adb8e3eded564947ac196938e3c88fb | 15c5d89605dc2d54fc624c3468be85eebcc8446e | refs/heads/master | 2020-07-26T09:18:35.310008 | 2019-10-21T16:03:50 | 2019-10-21T16:03:50 | 208,601,514 | 1 | 0 | Apache-2.0 | 2019-09-15T13:54:13 | 2019-09-15T13:54:13 | null | UTF-8 | Python | false | false | 6,813 | py | # encoding: utf-8
def main_hrun():
""" API test: parse command line options and run commands.
"""
import sys
import argparse
from httprunner.logger import color_print
from httprunner import __description__, __version__
from httprunner.api import HttpRunner
from httprunner.compat import ... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
79f998c1ae08f5eac4dccac29ea00bf209c906d0 | 60044c76b631e622edb28f3a74971ce06211fac5 | /Python-for-Everybody/Python-Data-Structures/list.py | fa31bc357f500aa7cefac067eb8f807c1c0089d0 | [] | no_license | NestorMonroy/Courses-coursera | 8d45a858c79567d74f013ac27ac33d47e43abb96 | 98ac1aa5bb0cd9da5cea5be02995d5b65c779201 | refs/heads/master | 2023-08-14T13:36:07.348994 | 2021-09-22T06:13:57 | 2021-09-22T06:13:57 | 327,753,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | """
List are mutable
String are "inmutable" - we cannont change the contents of a string-
we must make a new string to make any change
List are "mutable" we can change an element of a list using the index
operator
"""
fruit = ['Banana']
fruit[0]= 'b' # error
x = fruit.lower()
print(x)
lotto =... | [
"nestor.monroy.90@gmail.com"
] | nestor.monroy.90@gmail.com |
015a8e9ef9d42e0845eedd82384f1664674a5957 | 3be42b83a15d022f5863c96ec26e21bac0f7c27e | /tensorflow_probability/python/mcmc/legacy_random_walk_metropolis_test.py | cc0e6d73a93c859b63903599869a1b5536077d7b | [
"Apache-2.0"
] | permissive | ogrisel/probability | 846f5c13cddee5cf167b215e651b7479003f15d2 | 8f67456798615f9bf60ced2ce6db5d3dba3515fe | refs/heads/master | 2022-11-09T10:53:23.000918 | 2020-07-01T23:16:03 | 2020-07-01T23:17:25 | 276,580,359 | 2 | 1 | Apache-2.0 | 2020-07-02T07:37:58 | 2020-07-02T07:37:57 | null | UTF-8 | Python | false | false | 6,468 | py | # Copyright 2018 The TensorFlow Probability 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
1ecb996f4097f56f0ce63ab0d6dedf6b7f3b0ff8 | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_video/mmaction2/configs/recognition/slowonly/slowonly_imagenet_pretrained_r50_8x4x1_64e_ucf101_rgb.py | 48df87cc320b51fd2cd980cd78eade24f3d1d968 | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 3,034 | py | _base_ = [
'../../_base_/models/slowonly_r50.py',
'../../_base_/schedules/sgd_150e_warmup.py',
'../../_base_/default_runtime.py'
]
# model settings
model = dict(cls_head=dict(num_classes=101))
# dataset settings
dataset_type = 'RawframeDataset'
data_root = 'data/ucf101/rawframes/'
data_root_val = 'data/uc... | [
"caixiaochen@4ParadigmdeMacBook-Pro.local"
] | caixiaochen@4ParadigmdeMacBook-Pro.local |
5b18fbd4b0a8183ff967c046a05f8f8ac468e3eb | 2711e7408e590648ac6a51725c2177a56c566403 | /smilebuddies/urls.py | ea9397e69f37780d921d593336f630dad2ff758f | [] | no_license | SeedyROM/smilebuddies | 457415c1c843b495d92bdb925b0597411f1222c2 | 6ba4827205ce48c1b19786c9e32b9993cf8b43aa | refs/heads/master | 2020-03-21T15:29:13.592031 | 2018-06-26T10:38:38 | 2018-06-26T10:38:38 | 138,715,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """smilebuddies URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-... | [
"rallokkcaz@gmail.com"
] | rallokkcaz@gmail.com |
e5850cab963a2bed4094268fcad193eda0cd489c | 717171ed7a14ad60dd42d62fe0dd217a0c0c50fd | /19年7月/7.18/url编码和解码.py | 44e1a5f421f2f103c0c08b57f4de71423a436f54 | [] | no_license | friedlich/python | 6e9513193227e4e9ee3e30429f173b55b9cdb85d | 1654ef4f616fe7cb9fffe79d1e6e7d7721c861ac | refs/heads/master | 2020-09-04T14:34:48.237404 | 2019-11-18T14:54:44 | 2019-11-18T14:54:44 | 219,756,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | # Python进行URL解码
# 所用模块:urllib
# 所用函数:urllib.unquote()
from urllib.request import quote, unquote
# import urllib # 这样不行
rawurl = "%E6%B2%B3%E6%BA%90"
url = unquote(rawurl)
print(url)
print(quote("河源"))
print(type(quote('河源')))
# URL为何要编码、解码?
# 通常如果一样东西需要编码,说明这样东西并不适合传输。原因多种多样,如Size过大,包含隐私数据。对于Url来说,之所以要进行编码,
# 是因为Url中有些... | [
"1164166295@qq.com"
] | 1164166295@qq.com |
69e17f4c855e3719a67fb44ed072035427f7e853 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /glue_read_2/workflow-run_get.py | eb26a1136104d518e28d211b93a913de8e86b4f2 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glue/get-workflow-run.html
if __name__ == '__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
4d7fbb683f749be440f1e3f86814a797b247768e | 47fc606bcdfe5b563409386c94f745f920408851 | /src/python/twitter/common/python/marshaller.py | b5c29a06a99c6afbea083559b3636740c63a4085 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ewhauser/commons | 2ef443c4f0be2fbbf1ff3226ed35058a7cc8254a | 0777b346cf1b32722b7b5f6ae9e6593fe185de22 | refs/heads/master | 2021-01-18T06:00:06.901691 | 2013-06-11T22:14:55 | 2013-06-11T22:14:55 | 1,741,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | from imp import get_magic
import marshal
import struct
import time
from twitter.common.lang import Compatibility
class CodeTimestamp(object):
TIMESTAMP_RANGE = (4, 8)
@classmethod
def from_timestamp(timestamp):
return CodeTimestamp(timestamp)
@classmethod
def from_object(pyc_object):
stamp = time.... | [
"jsirois@twitter.com"
] | jsirois@twitter.com |
640b1ecbbff09f8d8ae3a1a9b0aa9c8146f0a093 | 4ba6207a7e4aa84da494e0f6d811eca606659b73 | /groupster/migrations/0003_jobseeker_resume.py | 5f0af9769b89646d52c1f168f716bf3a2099c0e6 | [] | no_license | jkol36/groupster | da5d9d4b882cd9df7a4b187b65cdc3fe8175e794 | 5967cb7b2689dec760727c7534ff0f73a6901ba4 | refs/heads/master | 2021-01-02T09:19:49.841001 | 2015-06-10T18:57:37 | 2015-06-10T18:57:37 | 35,061,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('groupster', '0002_remove_jobseeker_resume'),
]
operations = [
migrations.AddField(
model_name='jobseeker',
... | [
"jonathankolman@gmail.com"
] | jonathankolman@gmail.com |
67bffd0980d1ea7f4201ae6348603c60f4fb7966 | 42fa1862effc3e494859904b76c43ce2bcd623a0 | /idealised_box_simulations_paper2b.py | 94394f21530d4fa8c134d0b1ed14dcc4aec1a8ec | [] | no_license | PaulHalloran/desktop_python_scripts | 3e83aedf3e232da610b5f7477e4d7e8fb0253f99 | 325e923527278a5c3e9ab8c978f29b2816dab087 | refs/heads/master | 2021-01-01T19:52:06.828997 | 2015-06-27T21:14:10 | 2015-06-27T21:14:10 | 38,155,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,527 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import matplotlib as mpl
results = np.genfromtxt('/home/ph290/box_modelling/boxmodel_6_box_back_to_basics/results/spg_box_model_qump_results_3.csv',delimiter = ',')
results_stg = np.genfromtxt('/home/ph290/box_modelling/boxmodel_6_box_back_to_basics/... | [
"paul.halloran@gmail.com"
] | paul.halloran@gmail.com |
52c45fcb6941676bb95e51b20065f7003e69df4e | 502e97f0ec4f287b8280a546e7f2555ff3a5a1fd | /cnn_3d/loss_ssim.py | 1f9e166d4af572dad02709668df737d66c13e862 | [] | no_license | carlasailer/cnn_ct_pet | d350692be03432e025e33db6296ac33b36bedf08 | 4e256bb73f7ea0ab046c231762001b9f3535bb00 | refs/heads/master | 2020-12-18T23:11:24.048337 | 2020-01-22T10:40:52 | 2020-01-22T10:40:52 | 235,549,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 25 14:25:02 2019
@author: s1287
"""
import h5py
import os
import keras.backend as K
import numpy as np
def calc_ssim_git(y_true, y_pred):
"""structural similarity measurement system."""
## K1, K2 are two constants, much smaller than 1
K... | [
"40063163+carlasailer@users.noreply.github.com"
] | 40063163+carlasailer@users.noreply.github.com |
05a8191a0221fcf44c3631cb1ae3b634e90a6c50 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fractions_20200802103056.py | a8e741def594e4049345cfbf9c195c01f24b8d0d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | def fractions(numerator,denominator):
if denominator == 0 :
return str(numerator)
number = numerator / denominator
if numerator % denominator == 0:
return str(numerator // denominator)
newStr = str(number)
print(newStr)
largeStr = newStr.split(".")
if len(largeStr[1]) > 1:
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
d804293a9bb22f13def744ccad3cf0bcce62647f | 0fa7b9328e04d2ff5a2b607d9ec6962b7ee97532 | /vi_lib/lib/torchutils/test/test_models.py | afef409c72474e1be1ac61ba78474b7a8a8e86e3 | [] | no_license | aaronpmishkin/normalizing_flows | 4b12bcbe85f400bb27d21e93d8a3c35d9e5df90c | 249f0d99fee6d07783a2a3a595cfeb439af8c599 | refs/heads/master | 2020-04-09T01:09:40.906963 | 2018-12-14T07:47:08 | 2018-12-14T07:47:08 | 159,893,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,472 | py | import unittest
import torch
import torchutils.models as models
from torchutils.params import bp2v
from torch.nn.utils import vector_to_parameters as v2p
from torch.nn.utils import parameters_to_vector as p2v
class MLPTestCase(unittest.TestCase):
def assertAllClose(self, a, b):
self.assertTrue(torch.all... | [
"aaronpmishkin@gmail.com"
] | aaronpmishkin@gmail.com |
00dccca5378c4cc542d8e54c54e252e22ed0e38f | 5d4841bd3160418d3deb88b241edc22c7b7eab18 | /server/serving/package_scanner.py | 10cab85c3a049a56099c34414e74816f80bf0b21 | [] | no_license | cxbn12/ntu-nlp | 2493523bb886facfd661dd4194082ccd653496ae | de98f636919267a3701383636ccb31ccf108f28b | refs/heads/master | 2022-03-16T08:32:24.302783 | 2019-11-04T15:31:56 | 2019-11-04T15:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import os.path as osp
import sys
from pathlib import Path
def scan_package(path, base_dir='.'):
"""
Scan for all the python packages under a certain path. Note that this
will automatically append the scan path to the PYTHONPATH. You should be
careful if there is some packages with the same name. In th... | [
"YLI056@e.ntu.edu.sg"
] | YLI056@e.ntu.edu.sg |
cdaacfbe7fce884d91c74e79e4a520fdf8185bea | 382ce68736c1dee91dcb5eb7846eff10519d2b70 | /etcewrappers/utils/iperfserver.py | f780cf8d9b291281079960623c45cbb9d682bb1a | [] | permissive | adjacentlink/python-etce | 4345c7bd719f18022fdb96b0c30efc529948f87c | 72d58535e230f3178b1cab9616a3412514dabaf3 | refs/heads/master | 2023-08-18T05:08:53.519074 | 2022-11-17T16:47:44 | 2022-11-17T16:47:44 | 103,570,572 | 7 | 4 | BSD-3-Clause | 2022-10-11T11:13:42 | 2017-09-14T19:01:27 | Python | UTF-8 | Python | false | false | 3,528 | py | #
# Copyright (c) 2015-2018,2020 - Adjacent Link LLC, Bridgewater, New Jersey
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright... | [
"eschreiber@adjacentlink.com"
] | eschreiber@adjacentlink.com |
b104d48e41d9130046b0c49a32c62beba8f2a35d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/179/58876/submittedfiles/funcoes1.py | e9ffe616ef1b13fe73cb6d7961c81ad1912c3af5 | [] | 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 | 1,154 | py | # -*- coding: utf-8 -*-
def crescente(a):
cont=0
for i in range(0,len(a),1):
if a[i]>[i+1]:
cont=cont+1
if cont==len(a):
return(true)
else:
return(false)
def decrescente(a):
cont=0
for i in range(0,len(a),1):
if a[i]<[i+1]:
cont=c... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
73b8253035b13946cdbafdad3f3ff53fae1a417a | a14dd601cde67f67d0ba38dfd1362f7c0109cef1 | /arrays/leetcode/grid/set-matrix-zeroes-73.py | 4b6d885e0787eeebbf94701b9d37fb1cd5bc4ce0 | [] | no_license | Meaha7/dsa | d5ea1615f05dae32671af1f1c112f0c759056473 | fa80219ff8a6f4429fcf104310f4169d007af712 | refs/heads/main | 2023-09-03T18:52:41.950294 | 2021-11-05T09:14:42 | 2021-11-05T09:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | grids = [
[[1, 1, 1], [1, 0, 1], [1, 1, 1]],
[[0, 1, 2, 0], [3, 4, 5, 2], [1, 3, 1, 5]],
[[1, 2, 3, 4], [5, 0, 7, 8], [0, 10, 11, 12], [13, 14, 15, 0]]
]
# T=mn,S=m+n
def main(grid):
m, n = len(grid), len(grid[0])
rows, cols = set(), set()
for i in range(m):
for j in range(n):
... | [
"nikhilgoyal104ah4@gmail.com"
] | nikhilgoyal104ah4@gmail.com |
82a29e952d943526f88af2dd50b7eda0da44f165 | a38aa3779c16f31d02a2df031fd4ce072facaeb9 | /project/utils.py | 7ae54df72e5e3e66e59363eb3dbee5eab2359549 | [
"MIT"
] | permissive | nikifkon-old/csa-almaty-bot | a0a39673dfa39eb5f6ac6dd58eea08008d52c350 | f18d087c86b3b90171dec080e780e330d62e711a | refs/heads/master | 2022-11-30T07:16:45.839562 | 2020-08-19T09:48:39 | 2020-08-19T09:48:39 | 288,692,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | QUESTION_CHAR = "❓"
EXCLAMATION_CHAR = "❗️"
SEARCH_CHAR = "🔎"
BACK_CHAR = "🔙"
MENU_CHAR = "☰"
BACK_TO_MENU_TEXT = "{prefix} Вернуться к списку категорий".format(prefix=MENU_CHAR)
BACK_TO_SEARCH_RESULT = "{prefix} Вернуться к результатам поиска".format(prefix=BACK_CHAR)
OPEN_SEARCH = "{prefix} Найти вопрос".format(p... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
ae336a597ede11303d18e76036cbc9ac291953b5 | 6c90112e7d21086ef06432bb417bdb339fed4c33 | /django-tally/api/models.py | 11af0648223a22b4581387c627995055a13352e3 | [
"MIT"
] | permissive | blakelobato/BetterBusinessByReview | 9767a04cf1b1a8a8e96cdea634a24887182834ff | 1f8f0a03dc24a661b112b60fed1946142d918294 | refs/heads/master | 2022-04-04T00:08:37.474620 | 2020-02-06T21:01:00 | 2020-02-06T21:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from django.db import models
from django.conf import settings
from django.core.validators import int_list_validator
from django.contrib.auth.models import User
# Create your models here.
class Url(models.Model):
id = models.IntegerField(primary_key=True, )
url = models.CharField(max_length=5000)
# created ... | [
"LilySu@users.noreply.github.com"
] | LilySu@users.noreply.github.com |
deae7399994f02fc02cd2a1de41c3876a0a42f3d | d5005de630cbfcac46b6f90be845a827a029ff0d | /urlshortner/api/serializer.py | c040926e02219c805df9c6c192f55d7729c0b142 | [] | no_license | mahinm20/url-shortner | d4b18917a002aa12f4fdd1f6f3e2bf026b34f0ad | ea084f96136d5810b8ad6d53bf0acc1a8291b782 | refs/heads/master | 2023-08-11T07:35:04.804424 | 2021-09-14T09:37:27 | 2021-09-14T09:37:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.db.models import fields
from rest_framework.serializers import ModelSerializer
from .models import Link
class LinkSerializer(ModelSerializer):
class Meta:
model=Link
fields='__all__'
| [
"mahinmalhotra20@gmail.com"
] | mahinmalhotra20@gmail.com |
40d8671c94da3a301dcd8dd73470c1af8be6c4dc | 4f2cdd9a34fce873ff5995436edf403b38fb2ea5 | /Data-Structures/List/Part2/P003.py | b6642ac9b5001105f692e511ac814eb924a9b9b2 | [] | no_license | sanjeevseera/Python-Practice | 001068e9cd144c52f403a026e26e9942b56848b0 | 5ad502c0117582d5e3abd434a169d23c22ef8419 | refs/heads/master | 2021-12-11T17:24:21.136652 | 2021-08-17T10:25:01 | 2021-08-17T10:25:01 | 153,397,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
Write a Python program to generate all permutations of a list in Python.
"""
import itertools
print(list(itertools.permutations([1,2,3]))) | [
"seerasanjeev@gmail.com"
] | seerasanjeev@gmail.com |
7b375c81b77e9b35c1623c3699790ed98d0b9a61 | 5c90b31943aff36cab344574b16575025e649b7e | /examples/tour_examples/xkcd_tour.py | 73632b0471a64d556c17914eda6f7e0bd123423f | [
"MIT"
] | permissive | 766/SeleniumBase | 7e23adb3d40cf3d9912e2ff0f4dd56c2fafdb29b | b81e7b93e16a9abee6d2386f55c97843aa90a7d9 | refs/heads/master | 2020-08-22T08:54:47.269550 | 2019-12-06T13:44:17 | 2019-12-06T13:44:17 | 216,360,246 | 1 | 0 | MIT | 2019-12-06T13:44:18 | 2019-10-20T12:43:47 | null | UTF-8 | Python | false | false | 1,051 | py | from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_basic(self):
self.open('https://xkcd.com/1117/')
self.assert_element('img[alt="My Sky"]')
self.create_shepherd_tour()
self.add_tour_step("Welcome to XKCD!")
self.add_tour_step("This is the XKCD logo.",... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
41e48a86030f730e374988d7f00909bc2d3b0cc9 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/age_sex_20190618092905.py | f95b9e064c825ab7d3d8a555a7f973fcb638f23b | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR-all')#txt目录提取
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_str = re.findall(r'(^.+?... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
dc3a3df04d9eba2f8895e74b91128c8c0b6b8a41 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/scattergeo/marker/colorbar/_title.py | e584a0b07ef22e6fd0a89b476a1df8aef97c2e3d | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 1,264 | py | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.TitleValidator):
def __init__(
self,
plotly_name='title',
parent_name='scattergeo.marker.colorbar',
**kwargs
):
super(TitleValidator, self).__init__(
plotly_name=plotly_na... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
8849959f26a02a64d2d77a028c48084c8fc9310d | 955060597d643c695dff53b6cff0ea649db68a94 | /dequorum/urls.py | 44cfd19538837d6340d8c57944e6fc065b461a4c | [
"BSD-2-Clause"
] | permissive | pombredanne/django-dequorum | e99386fd01d640776d3ac6f2851c4ddc15316713 | b790e9b8b0920581a48c67679648a6df811e505b | refs/heads/master | 2021-01-18T10:10:33.571111 | 2013-12-13T23:04:16 | 2013-12-13T23:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from django.conf.urls import patterns, include, url
from nap import api
urlpatterns = patterns('',
(u'^$', 'django.shortcuts.render', {'template_name': 'dequorum/index.html'}),
(u'^api/', include(api.APIS['dequorum'].patterns(flat=True))),
)
| [
"curtis@tinbrain.net"
] | curtis@tinbrain.net |
9b07e90479e6556a9f1310bbceee661ebf9051fc | 0107160f73c6f46a0c693f0aa8b2b22bb04aaa07 | /flex/redis.py | 8a0c1594fac0646ca5ab8f762a94f41024245212 | [
"MIT"
] | permissive | centergy/flex | 8a9054171a121671e09646a88259c947d0d87cc4 | 4fc11d3ad48e4b5016f53256015e3eed2157daae | refs/heads/master | 2022-12-13T06:01:09.561457 | 2018-08-22T20:32:34 | 2018-08-22T20:32:34 | 145,748,684 | 0 | 0 | MIT | 2022-12-08T00:45:07 | 2018-08-22T18:40:47 | Python | UTF-8 | Python | false | false | 1,958 | py | from flask import current_app
from threading import Lock
from flex.utils.module_loading import import_string
__all__ = ('RedisManager', 'redis')
class _Connector(object):
__slots__ = ('app', 'lock', '_client', 'config')
def __init__(self, app, config):
self.app = app
self.config = config
self._client = No... | [
"davidmkyalo@gmail.com"
] | davidmkyalo@gmail.com |
494729e6f2f30c78583ca65070a1387032401821 | 2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed | /venv/Lib/site-packages/cassiopeia/transformers/championmastery.py | c45ee0d705e5dc57e8ccf720ebd5f8d5dd952cb4 | [
"MIT"
] | permissive | sserrot/champion_relationships | 72823bbe73e15973007e032470d7efdf72af3be0 | 91315d6b7f6e7e678d9f8083b4b3e63574e97d2b | refs/heads/master | 2022-12-21T05:15:36.780768 | 2021-12-05T15:19:09 | 2021-12-05T15:19:09 | 71,414,425 | 1 | 2 | MIT | 2022-12-18T07:42:59 | 2016-10-20T01:35:56 | Python | UTF-8 | Python | false | false | 1,956 | py | from typing import Type, TypeVar
from copy import deepcopy
from datapipelines import DataTransformer, PipelineContext
from ..core.championmastery import ChampionMasteryData, ChampionMasteryListData, ChampionMastery, ChampionMasteries
from ..dto.championmastery import ChampionMasteryDto, ChampionMasteryListDto
T = Ty... | [
"sserrot@users.noreply.github.com"
] | sserrot@users.noreply.github.com |
0a2a6e6a68e79bebbef374d63bfd4e57a41093db | eb87c8b1ce8591d207643d3924b7939228f1a4fe | /conformance_suite/test_assign_test_var.py | b3a5f3ec6ae764f29359d631f46cf82e492d26f7 | [] | no_license | brownplt/insta-model | 06543b43dde89913c219d476ced0f51a439add7b | 85e2c794ec4b1befa19ecb85f2c8d2509ec8cf42 | refs/heads/main | 2023-08-30T19:06:58.083150 | 2023-05-03T18:53:58 | 2023-05-10T22:29:18 | 387,500,638 | 5 | 0 | null | 2022-04-23T23:06:52 | 2021-07-19T14:53:09 | Racket | UTF-8 | Python | false | false | 414 | py | # test_assign_test_var.py
# This should pass.
from typing import Optional
def f(x: Optional[int]) -> int:
if x is None:
x = 1
return x
# def test_assign_test_var(self):
# codestr = """
# from typing import Optional
# def f(x: Optional[int]) -> int:
# if x is None:
# ... | [
"lukuangchen1024@gmail.com"
] | lukuangchen1024@gmail.com |
818aa3abf6f0f26c357550965b482be18aa0a2b7 | 4ac57cc07c50d1cc4dbf4894b77783fa03a8c7b1 | /4-case-study-sunlight-in-austin/9_daily_hours_of_clear_sky.py | 127206faced7ca4e185d3d0c5346c054b778c6ed | [] | no_license | OCulzac/pandas-foundations | 905fa778beee5e9d8210716abcc06eeeaf02b8b9 | f13e7270dfcbb661da7a2fa3f26b4001df5eadc9 | refs/heads/master | 2020-05-19T10:44:58.816172 | 2019-05-05T04:09:45 | 2019-05-05T04:09:45 | 184,977,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | """ Daily hours of clear sky
In a previous exercise, you analyzed the 'sky_condition' column to explore the difference in temperature on sunny days compared to overcast days. Recall that a 'sky_condition' of 'CLR' represents a sunny day. In this exercise, you will explore sunny days in greater detail. Specifically, you... | [
"oronculzac@gmail.com"
] | oronculzac@gmail.com |
2f6956dd6f187273f31b75d5d6429b5d5d23c030 | 7a13a9def50e3d87d74f7d3a2b990cd9bc1acda1 | /accounts/admin.py | 1ae86e995a6ecd33ad7fd7b61e36b1ee99444204 | [] | no_license | anandrajB/speedy-scanner | a97bfe16feef483db9e2fe77a2b1639e1dea8707 | fd5d4fd7b3ba600d975ae2aaf73ae81e1d0e3632 | refs/heads/master | 2023-08-31T09:07:46.802433 | 2021-09-20T12:21:22 | 2021-09-20T12:21:22 | 374,634,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | from django.contrib import admin
from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from .models import MyUser, Profile, File, Batch
cla... | [
"anand98.ar@gmail.com"
] | anand98.ar@gmail.com |
cc6895b8b702d18633c777f02493a8fe29b851f5 | 05263538c3ad0f577cdbbdb9bac87dcf450230ce | /alexa/ask-sdk/ask_sdk_model/dialog/elicit_slot_directive.py | 837a97063497b6119b45f42914b105a8118715ce | [] | no_license | blairharper/ISS-GoogleMap-project | cea027324fc675a9a309b5277de99fc0265dcb80 | 3df119036b454a0bb219af2d703195f4154a2471 | refs/heads/master | 2020-03-21T16:47:21.046174 | 2018-10-24T08:05:57 | 2018-10-24T08:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | # coding: utf-8
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"blair.harper@gmail.com"
] | blair.harper@gmail.com |
3e29d4d7c333026e5344ef9516e21f5e220cfd24 | f98de2db6b24d30d64f1145c7d8da4a40385a87f | /packages/grid_control_cms/lumi_tools.py | 50eb266c862e2c20ae303976fae5474ea14c2247 | [] | no_license | greyxray/grid-control | f9f453491fe7bc506d4cfc240afaa364ba9db84b | ed10fdb6ff604006a5d52dcd43c2e55c9e962c0a | refs/heads/master | 2020-04-15T13:15:21.103357 | 2019-01-08T18:23:07 | 2019-01-08T18:23:07 | 164,709,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,665 | py | # | Copyright 2010-2016 Karlsruhe Institute of Technology
# |
# | 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... | [
"stober@cern.ch"
] | stober@cern.ch |
afc06ae4b405fbce9055d076027588304160a0e4 | 83b242997a1560214285fd38ab4d39a0b1210ddc | /SOL4Py/network/ZThreadedTCPServer.py | add7627d5756461363417a09cff04384cc3dbf66 | [] | no_license | ivartz/vid2fft | 0a25d853e178b43fd0a5f765934887963f5c37f9 | 1b6ec82de04f86819ab4c1056d4f9d9bde1ed9c8 | refs/heads/master | 2020-08-07T21:44:28.745553 | 2019-10-08T09:18:41 | 2019-10-08T09:18:41 | 213,594,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,963 | py | #/******************************************************************************
#
# Copyright (c) 2018 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
#
# This program 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... | [
"djloek@gmail.com"
] | djloek@gmail.com |
84c806a6c6711ceb7dc060bcec0926b8246fdadb | e0980f704a573894350e285f66f4cf390837238e | /.history/rocketman/settings/production_20210104181634.py | 89446f098f49d16a5372b9f81e7bc516ac235f9c | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import os
from .base import *
DEBUG = False
SECRET_KEY = '$^8&x#8a5!7@r!#6ov9bfl(j8k^6+$v-1x+*#!uqf(=^n+*$w3'
ALLOWED_HOSTS = ['localhost', 'rocketman.naukawagtail.com', '*']
cwd=os.getcwd()
CASHES = {
'default': {
'BA'
}
}
try:
from .local import *
except ImportError:
pass
| [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
2c197d376b5580c493f3dddf7bdbd0b7cfbe9d98 | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210905000450.py | c9d0c0d9993b0f24c7ecbb3cf98c786e2d4f0c05 | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | import os
class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingres... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
159e1bbb69f50777b2ba294e3298a272b72dcb2a | 7f4c82f7eb8d2805e378586f14e214cdaacfdb4a | /books/model/CommentList.py | 4c2ece791575dd51f9a9ea502c5e8bd24457084a | [
"MIT"
] | permissive | deepubansal/books-python-wrappers | 5a922267ec8382b3542638d894c96f4891b57bf5 | 51210c8d557a32564f976a56214d3c0807f46a90 | refs/heads/master | 2022-12-05T11:25:01.694021 | 2020-08-29T07:35:23 | 2020-08-29T07:35:23 | 288,738,813 | 0 | 0 | MIT | 2020-08-29T07:35:24 | 2020-08-19T13:26:04 | Python | UTF-8 | Python | false | false | 1,042 | py | #$Id$
from books.model.PageContext import PageContext
class CommentList:
"""This class is used to create object for comments."""
def __init__(self):
"""Initialize parameters for Comments list."""
self.comments = []
self.page_context = PageContext()
def set_comments(self, comment)... | [
"sahaya.ramesh@zohocorp.com"
] | sahaya.ramesh@zohocorp.com |
aee868eb2597469429538bbd075d10a018a753ac | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode_medium/Question_111_Combination_Sum_III.py | 96ac21f6e928162be84fa4ea48977d9e38d1fd35 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def combinationSum3(self, k, n):
"""
:type k: int
:type n: int
:rtype: List[List[int]]
"""
vec = []
res = []
self.helper(k, n, 1, vec, res)
return res
def helper(self, k, n, l, vec... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
d7e694d8b7e339f353fe621aef7be75b1bd0d979 | 9a1b033774e371bd6442048f43e862dfb71abed7 | /Lists As Stacks And Queues/Exercises/Cups_and_Bottles.py | 57a94258fc2f957d4054343b06ab2bb9d026c989 | [] | no_license | mialskywalker/PythonAdvanced | ea4fde32ba201f6999cd0d59d1a95f00fb5f674b | c74ad063154c94b247aaf73b7104df9c6033b1a5 | refs/heads/master | 2023-03-09T00:13:28.471328 | 2021-02-24T15:21:11 | 2021-02-24T15:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from collections import deque
cups_capacity = deque(int(el) for el in input().split())
bottles_capacity = [int(el) for el in input().split()]
wasted_water = 0
while True:
if not cups_capacity or not bottles_capacity:
break
bottle = bottles_capacity.pop()
cup = cups_capacity.popleft()
total ... | [
"kalqga123@gmail.com"
] | kalqga123@gmail.com |
da07c9bf4e4dfa6fedec67e45efc284753925f26 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02952/s489061530.py | c11b8cfc760ea2a0ea44bc3ca92b0888dbd71b04 | [] | 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 | 180 | py | s=str(input())
n=len(s)
s=int(s)
if n==1:
print(s)
elif n==2:
print(9)
elif n==3:
print(10+s-100)
elif n==4:
print(909)
elif n==5:
print(910+s-10000)
else:
print(90909) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa20d3ae1f8e6295713b6a8f217a871b4d843616 | b6f4393777d4f6a3a8b599700ce3405be76c4bc4 | /Apple-Music/Leticia/api/models.py | eb394de811af6473a82f9e7f5f7aa8d11e8e4c24 | [] | no_license | azatnt/Apple-Music-rest_framework- | b13897dd40337384469df269cdf46bd085487442 | 09b7e602078a6d82f63725b757bb657afd221776 | refs/heads/main | 2023-02-10T16:45:47.618860 | 2021-01-14T14:37:25 | 2021-01-14T14:37:25 | 326,934,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django.db import models
import string
import random
def generate_unique_code():
length = 6
while True:
code = ''.join(random.choices(string.ascii_uppercase, k=length))
if Room.objects.filter(code=code).count() == 0:
break
return code
class Room(models.Model):
code =... | [
"58590243+pr1nce07@users.noreply.github.com"
] | 58590243+pr1nce07@users.noreply.github.com |
4226d913c82fc3fd3d68a44df6697fe697b6cc5c | ca5b5c217e0053645c2664d777699e9a5050715e | /tex/gen_links.py | 2a733f8bffe856d7ac4c2dffecd46daa7733bfae | [
"MIT"
] | permissive | rodluger/starrynight | 1405ffdb5a0dd0fefc0ae34e7cdaf7eab4735356 | d3f015e466621189cb271d4d18b538430b14a557 | refs/heads/master | 2021-10-26T03:32:15.220725 | 2021-10-22T15:16:48 | 2021-10-22T15:16:48 | 236,542,672 | 7 | 1 | MIT | 2020-06-03T19:51:10 | 2020-01-27T16:58:05 | Jupyter Notebook | UTF-8 | Python | false | false | 881 | py | from __future__ import print_function
import subprocess
import os
# Generate the github links
hash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("utf-8")[:-1]
slug = "rodluger/starrynight"
with open("gitlinks.tex", "w") as f:
print(
r"\newcommand{\codelink}[1]{\href{https://github.com/%s/b... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
a40845fe784984a2a2ef36f79556424959d0fcd3 | 5689bffe9a9594e52f934542994db464ed095d71 | /08_unittest/test05_assert_exercises.py | 1d6a1bd6fa8d1033455a67c98cde5e33428fe349 | [] | no_license | WenhaoChen0907/Web-automation | 5c0e2c61e247f32b0e5f2f2a33c9f8cc6e73dc20 | 5488f2c62016f02c934b709e7e9e6ea831d9891c | refs/heads/master | 2023-03-07T13:31:10.265019 | 2021-02-15T06:33:50 | 2021-02-15T06:33:50 | 338,986,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | # iwebshop正向登录代码练习
import unittest
import sys
import time
from time import sleep
from selenium import webdriver
class IwebLogin(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.maximize_window()
self.driver.implicitly_wait(30)
self.driver.get("http:... | [
"18738127274@163.com"
] | 18738127274@163.com |
61b227fb19c0098e0d8449df91b59cc77ac3049d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_142/662.py | e253a45877c6e9142d258233d25715ca05f57e07 | [] | 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,452 | py | if __name__ == "__main__":
with open("A-small-attempt1.in", 'r') as inputf:
outputf=open("A_out.out",'w')
line=inputf.readline()
line=line.rstrip('\n')
test_num=int(line)
for test in range(test_num):
line = inputf.readline()
line = line.rstrip('\n')
n = int(line)
analysis = [[[[]]],[[[]]]]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9706c26c8869c0333343a0dae2cbbd2467b37e93 | 94a2c4417c1fdd8577a75b09a17912ebae129e6c | /test/test_prop_is.py | e211fe127da287bfb4f0504b7a588929a7f6c795 | [
"MIT"
] | permissive | slavaGanzin/ramda.py | ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8 | 634bfbe0dcb300315ded327756cb3e33241589b8 | refs/heads/master | 2023-01-23T04:43:48.485314 | 2023-01-06T10:11:53 | 2023-01-06T10:11:53 | 142,413,822 | 68 | 7 | MIT | 2021-12-22T13:59:56 | 2018-07-26T08:43:31 | Python | UTF-8 | Python | false | false | 278 | py | from ramda import *
from ramda.private.asserts import *
from numbers import Number
def test_prop_is():
assert_equal(prop_is(Number, "x", {"x": 1, "y": 2}), True)
assert_equal(prop_is(Number, "x", {"x": "foo"}), False)
assert_equal(prop_is(Number, "x", {}), False)
| [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
326f720d3f00ce6fea68425c9d1ebfbc2906b8df | 9de9bcd87e3f15f743de436d669feb979e55f005 | /timesketch/lib/analyzers/ssh_sessionizer_test.py | a432041fce5b9ee04a020c5228287f633afbcdc1 | [
"Apache-2.0"
] | permissive | jorlamd/timesketch | 97b1f08e9797837672a51bc817426ae61f5fb529 | c7704bede82747d42a8579a264d2b385b93d6dee | refs/heads/master | 2020-12-04T02:54:57.496194 | 2019-11-12T21:07:21 | 2019-11-12T21:07:21 | 230,008,261 | 0 | 0 | Apache-2.0 | 2019-12-24T22:09:17 | 2019-12-24T22:09:16 | null | UTF-8 | Python | false | false | 6,551 | py | """Tests for SSHSessionizerSketchPlugin"""
from __future__ import unicode_literals
import mock
from timesketch.lib.analyzers.ssh_sessionizer import SSHSessionizerSketchPlugin
from timesketch.lib.testlib import BaseTest
from timesketch.lib.testlib import MockDataStore
# TODO _create_mock_event will be renamed in anot... | [
"tomchop@gmail.com"
] | tomchop@gmail.com |
b3eecc48b5a6655fb0ae16960cff65aa207ed89d | a6ef13387c24c719a0dcfeb173521cd70beac282 | /devops/day4/ding_Robot.py | 8f01ac1bc53391322f4ad3edd35ab0fd70672935 | [] | no_license | youjiahe/python | f60472d61daf58b7f5bb6aa557949de4babf8c9c | 74eb4c5ba211ae5ffed2040576e5eead75d16e7d | refs/heads/master | 2020-03-31T02:35:55.787809 | 2019-12-02T16:32:54 | 2019-12-02T16:32:54 | 151,831,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #!/usr/bin/env python3
import json
import requests
import sys
def send_msg(url,remiders,msg):
headers = {'Content-Type':'application/json;charset=utf-8'}
data={
"msgtype": "text", # 发送消息类型为文本
"at": {
"atMobiles": reminders,
"isAtAll": False, # 不@所有人
},
... | [
"youjiahe@163.com"
] | youjiahe@163.com |
15fcc498298fb27365a93e3595794528564152ce | 9a2fd5e27d3f811cb18763ed388c2d56ae9907b6 | /爬虫练习/gupiao.py | ee4595015acd484f424596fda32dc78170398d30 | [] | no_license | wzc-ob/PycharmProjects | 5297ce60bade883495e5dbdb614131d31c47682e | 09f5ad6004dbdc83d456cabd78b769fde13d5357 | refs/heads/master | 2020-05-05T07:12:38.789400 | 2019-04-06T10:06:08 | 2019-04-06T10:06:08 | 179,817,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | import re
import requests
from bs4 import BeautifulSoup
import traceback
def getHTMLText(url,code = 'UTF-8'):
try:
kv = {'user-agent': 'Mozilla/5.0'}
r = requests.get(url, headers=kv, timeout=30)
r.encoding = code
# print(r.text)
return r.text
except:
return ""
d... | [
"43775612+wzc-ob@users.noreply.github.com"
] | 43775612+wzc-ob@users.noreply.github.com |
edcb1a2c177f6634d25b679f32eaa3d10997b8ca | b6aed63c49d24b4c3e2d5be6795ecbcf0a793653 | /examples/feature_engineering/get_scdv.py | 13cd8123885cea7a8d6159052e017ea37f9643c2 | [] | no_license | sidhee-hande/nlp-recipes-ja | 713f053a3cc907a314c6575a0ce65de2b36076c9 | 8ac5e898864137841de8b03c11da34815009af24 | refs/heads/master | 2023-04-25T03:41:33.536244 | 2021-04-10T23:07:45 | 2021-04-10T23:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from konoha import WordTokenizer
import neologdn
import numpy as np
from utils_nlp.dataset.livedoor import load_pandas_df
from utils_nlp.features import scdv
from utils_nlp.models.pretrained_embeddings.word2vec import load_pretrained_vectors
if __name__ == '__main__':
df = load_pandas_df(nrows=10)
# Normali... | [
"upura0@gmail.com"
] | upura0@gmail.com |
71bf52c3f75e834fe7938987cc7b559aa46b54db | ab0e9b543852bc2d3c828b2351c30d1626f0b321 | /CustomProceduralRiggingTool/CustomProceduralRigTool/rigLib/base/controlShape/unitSliderControl.py | f55103622c28f26d51caf910f83abbbaf7302f2a | [] | no_license | tHeBeStXu/CustomProceduralRigTool | 397011b9519a3e5382aec5aee6115f3e6a14a802 | 003fa61b460d8e76c026f47913ebdab5c0cbfef8 | refs/heads/master | 2021-07-13T09:02:07.697909 | 2020-07-09T07:28:27 | 2020-07-09T07:28:27 | 157,082,564 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import maya.cmds as cmds
def createShape(prefix=''):
"""
create a unit slider for blend operation
:param prefix: str, prefix of the control
:param scale: float, scale of the control
:return: str, ctrlBox of the unitSliderControl
"""
Ctrl = cmds.circle(radius=0.2, nr=(1, 0, 0), n=prefix + '... | [
"328665042@qq.com"
] | 328665042@qq.com |
249edc0e5fb7c5fae23b6d8c5752ffa60b404a5b | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /base/lib/uu.py | 6ee9f9acad9bccce569ad6152e8da80b8e368319 | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py | import binascii
import os
import sys
__all__ = ['Error', 'encode', 'decode']
class Error(Exception):
__qualname__ = 'Error'
def encode(in_file, out_file, name=None, mode=None):
opened_files = []
try:
if in_file == '-':
in_file = sys.stdin.buffer
elif isinstance(in_file, str):
... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
92df5f0ae14e23c0600fd57b407368f340103547 | 4b431704fa58900a7b848aada3d10949be76ba65 | /student/views.py | 8ed0983ae38fa181f3a834d1c67585b80d645e7b | [] | no_license | priyankaonly1/Session_project | 1b5e48a77753cfa87c93fff7463d758cf0f1dcd8 | 41529270c0390627824b6de1aed6fdf4bb75a95c | refs/heads/main | 2023-06-03T04:21:38.411008 | 2021-06-17T10:32:13 | 2021-06-17T10:32:13 | 377,792,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from django.shortcuts import render
# Create your views here.
def setsession(request):
request.session['name'] = 'sonam'
request.session['lname'] = 'Jha'
return render(request, 'student/setsession.html')
# def delsession(request):
# if 'name' in request.session:
# del request.session['name']
... | [
"priyankabiswasonly1@gmail.com"
] | priyankabiswasonly1@gmail.com |
5f78dc2017f0e9588d5ed2188d02785b189ec637 | 0bb474290e13814c2498c086780da5096453da05 | /abc133/E/main.py | 20212d42d80ef6a27ba00b0743cbd41a23b91777 | [] | no_license | ddtkra/atcoder | 49b6205bf1bf6a50106b4ae94d2206a324f278e0 | eb57c144b5c2dbdd4abc432ecd8b1b3386244e30 | refs/heads/master | 2022-01-25T15:38:10.415959 | 2020-03-18T09:22:08 | 2020-03-18T09:22:08 | 208,825,724 | 1 | 0 | null | 2022-01-21T20:10:20 | 2019-09-16T14:51:01 | Python | UTF-8 | Python | false | false | 790 | py | #!/usr/bin/env python3
import sys
MOD = 1000000007 # type: int
def solve(N: int, K: int, a: "List[int]", b: "List[int]"):
return
# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
... | [
"deritefully@gmail.com"
] | deritefully@gmail.com |
ee5638f427e266afc5d5855606c34b7c76ac09b2 | c68d36ed1d36ede96a5a22e1052c73b8515feaae | /HyperNews Portal/task/hypernews/news/views.py | 3cefca44c6ba79a74ca61d32697ea15338fb602a | [] | no_license | wangpengda1210/HyperNews-Portal | dd531889666794c11158dc92a9dcdb03293d409b | 436e257dd315999187650dedf3dce2ff12267a77 | refs/heads/main | 2023-03-03T03:22:59.644304 | 2021-02-09T00:19:23 | 2021-02-09T00:19:23 | 336,978,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | from django.shortcuts import render
from django.views import View
from django.http import Http404, QueryDict
from django.shortcuts import redirect
import datetime
from collections import defaultdict
import json
from hypernews.settings import NEWS_JSON_PATH
with open(NEWS_JSON_PATH, 'r') as f:
news_list = json.load... | [
"515484505@qq.com"
] | 515484505@qq.com |
85fd333d2b6f43110d9c7b7171b122dfcdc0a466 | e19527d95fb2105a09bc1435146a1148bfe01476 | /utils/general.py | 122f37a50fc4e4ba87c3765b807a74616dfeb9fd | [] | no_license | shuaih7/ishop_ocr | 7da1bc8f3f764853d7c0151e784b821cc3d4b58c | 57e80d336f1362adefeb57a13fa4ca4d2cfd265f | refs/heads/main | 2023-02-22T15:50:36.294246 | 2021-01-28T03:46:36 | 2021-01-28T03:46:36 | 329,258,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 01.24.2021
Created on 01.24.2021
Author: haoshaui@handaotech.com
'''
import os
import cv2
import sys
import numpy as np
abs_path = os.path.abspath(os.path.dirname(__file__))
sys.path.append(abs_path)
def draw_results(image, results, isClosed=True, size=0.6... | [
"shuaih7@gmail.com"
] | shuaih7@gmail.com |
df0df3a114e599c36a4d9a1fef81af871183c836 | c82a04b8aa975b1596e48e13deaf5f11a2ae94ba | /test.py | 99b9847323d2a912600184ba1f913a0369ba9259 | [
"MIT"
] | permissive | budsus/CodeSearchNet | 466e6d06b8b0f08f418906151af6018cc7253ca1 | d79d0fde2569e4ed7ab0454e3b019fba3d6c7b90 | refs/heads/master | 2023-03-17T07:48:40.451414 | 2019-12-12T13:08:47 | 2019-12-12T13:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import torch
x = torch.randn(10, 5)
print(x)
labels = torch.LongTensor([1,2,3,3,0,0,0,0,0,0])
n_classes = x.shape[-1]
one_hot = torch.nn.functional.one_hot(labels, n_classes)
print(one_hot)
print(x * one_hot)
compare = (x * one_hot).sum(-1).unsqueeze(-1).repeat(1, n_classes)
print(compare)
compared_scores = x... | [
"bentrevett@gmail.com"
] | bentrevett@gmail.com |
3f1e7c2be5e4aad81dc3c4cc8973865624a09628 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03645/s021155194.py | 844491319f19594eb094e23da7af0f647cb6eb7c | [] | 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 | 370 | py | n, m = map(int, input().split())
root_map = dict()
root_map[1] = set()
root_map[n] = set()
for i in range(m):
a, b = map(int, input().split())
if a == 1 or a == n:
root_map[a].add(b)
if b == 1 or b == n:
root_map[b].add(a)
for i in root_map[1]:
if i in root_map[n]:
print("POSSI... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b8ea6089fbf982c699ef0f102f4a0842d32f6a53 | 24caa6710105a060fab2e17147e6d56609939011 | /03-Python_Data_Science_Toolbox_(Part_1)/02-Default_arguments,_variable-length_arguments_and_scope/01-Pop_quiz_on_understanding_scope.py | 359f983d8c5327a8ca9e09fa52071fdeceb8fece | [] | no_license | inverseundefined/DataCamp | 99607022ad3f899d7681ad1f70fcedab290e269a | 7226b6b6f41888c3610a884db9a226e013d37e56 | refs/heads/master | 2022-01-10T00:53:21.714908 | 2019-07-24T13:27:49 | 2019-07-24T13:27:49 | 198,280,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | '''
Pop quiz on understanding scope
In this exercise, you will practice what you've learned about scope in functions. The variable num has been predefined as 5, alongside the following function definitions:
def func1():
num = 3
print(num)
def func2():
global num
double_num = num * 2
num... | [
"inversedrivenundefined@gmail.com"
] | inversedrivenundefined@gmail.com |
24524f83587d385ff97aec5e49d9379dfb3f883b | b8085ef607da70023214f105eb27bdbc713e596f | /Day2/Slots.py | db6ff0a4f8e7383e149a01736bdb559e14f236c2 | [] | no_license | artheadsweden/python_adv_april19 | 893c9ec76e8505a580439b7a2fd7aa2776503c77 | 04eecd25d4a291dddd608d94968b217fed7b88d8 | refs/heads/master | 2020-05-07T13:41:15.545033 | 2019-04-11T18:47:22 | 2019-04-11T18:47:22 | 180,559,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from pympler import asizeof
class NoSlots:
def __init__(self, name, identifier):
self.name = name
self.identifier = identifier
class WithSlots:
__slots__ = ['name', 'identifier']
def __init__(self, name, identifier):
self.name = name
self.identifier = identifier
def ma... | [
"joakim@arthead.se"
] | joakim@arthead.se |
8e8665d33a8f3df1f93560af494176e055b876a4 | 81207a57ae84b2b786b373d9eaa89e04ca662473 | /scripts/update_index.py | b4fa72f135adfbde5960f9e2c3f51b20f42df2a6 | [
"MIT"
] | permissive | ncarkaci/acoustid-server | 9a9187db34c25a4eedbe297564f9d13f05b9c907 | bb0098016d210be8d04ee64d9b42ed80bb947280 | refs/heads/master | 2020-07-22T18:25:46.258746 | 2019-09-05T11:05:01 | 2019-09-05T11:05:01 | 207,288,602 | 1 | 0 | MIT | 2019-09-09T10:58:51 | 2019-09-09T10:58:51 | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
# Copyright (C) 2011-2012 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.
from contextlib import closing
from acoustid.script import run_script
from acoustid.data.fingerprint import update_fingerprint_index
def main(script, opts, args):
with closing(sc... | [
"lalinsky@gmail.com"
] | lalinsky@gmail.com |
47b13cbf68cba49d07c499ee6026f47fc228aece | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week02/1/proxy/proxy/spiders/maoyan_20200705155519.py | 5832d2f7ffe5ee7f1c5b3c601dddf5c249d1eb51 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 1,400 | py | import scrapy
from proxy.items import ProxyItem
import lxml.etree
class MaoyanSpider(scrapy.Spider):
name = 'maoyan'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/']
header =
# def parse(self, response):
# pass
def start_requests(self):
url = f'https://maoy... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
85658af6a7b79e5450b577beccbc06522bd0f00d | 25c1bba5c9954ab757fed0ce3236cd6b3bd50c59 | /BUILD.cr.py | 47ccf5633ca37f891f4761834ecae7183d4632fb | [] | no_license | craftr-build/craftr-chaiscript | c09e32e7ddd72c75d482cd3b627f2183cceaf379 | 09e6434016915c9745e3c841076ad193cdebb9dd | refs/heads/master | 2021-09-04T17:35:54.491031 | 2018-01-20T14:31:21 | 2018-01-20T14:31:21 | 118,172,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py |
import craftr, {fmt, glob, path} from 'craftr'
import cxx from '@craftr/cxx'
source_dir = craftr.options.get('chaiscript.source_dir')
gitref = craftr.options.get('chaiscript.gitref', 'v6.0.0')
if not source_dir:
url = fmt('https://github.com/ChaiScript/ChaiScript/archive/{gitref}.zip')
source_dir = path.join(craf... | [
"rosensteinniklas@gmail.com"
] | rosensteinniklas@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.