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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00935ac28db148eb7bb1523af3c2be6cecafadc1 | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /python/torch/list_cuda.py | c612de25cf8031c6597471eb13d2694a2b9c0425 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #!/usr/bin/python3
#\file list_cuda.py
#\brief List available CUDA devices.
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Oct.01, 2021
import torch
if __name__=='__main__':
print('Number of CUDA devices:', torch.cuda.device_count())
for i in range(torch.cuda.device_count()):
print... | [
"info@akihikoy.net"
] | info@akihikoy.net |
7c2c9ea0efe833ed58a22a41c2794aab4ea6fc29 | c5983e05a4c04cb8cbb48e97e279a69787c6ffb6 | /backend/manage.py | 7d1ab071b19068b2c62e9b54d07531f62df29a26 | [] | no_license | crowdbotics-apps/gffxgx-19180 | 2377637af6b1dc912b60506eb99f5dd921ac66f6 | 60a37a5a947ae29dbfcd8c548c31b2e22af4ce13 | refs/heads/master | 2022-11-27T04:03:00.944208 | 2020-07-25T23:22:09 | 2020-07-25T23:22:09 | 282,541,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gffxgx_19180.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
16dda99ae80461e4ee1c71b3658657c88f169871 | 65d891b90e59161c2fadff22dcc29f6ec7a789f4 | /presidenciaveis/presidenciaveis/models/__init__.py | 13a7e4ed1ad001ab4b15a52c0aa4ca35b94a8676 | [] | no_license | nizbel/propostas-candidatos-bbc | 32d3184d5f10bc50e2d79c686da2ea3daddbe93b | 82e60d978e6a01925fbfb49d370f7d088f588585 | refs/heads/master | 2023-05-26T03:22:27.050795 | 2020-06-29T00:26:40 | 2020-06-29T00:26:40 | 275,682,883 | 0 | 0 | null | 2021-06-10T23:06:30 | 2020-06-28T23:00:38 | Python | UTF-8 | Python | false | false | 24 | py | from candidatos import * | [
"kingbowserii@gmail.com"
] | kingbowserii@gmail.com |
5ad34a82314714deb74abfef98c2187642cbb641 | ac1fdf53359b53e183fb9b2602328595b07cf427 | /ParlAI/parlai/mturk/tasks/turn_annotations/constants.py | 643cf8e3310559f96493d3bed502bd3c31b66074 | [] | no_license | Ufukdogann/MasterThesis | 780410c5df85b789136b525bce86ba0831409233 | b09ede1e3c88c4ac3047800f5187c671eeda18be | refs/heads/main | 2023-01-24T18:09:52.285718 | 2020-11-27T16:14:29 | 2020-11-27T16:14:29 | 312,416,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f604cb6189404aba2ec507ce5de08423d480fef202b1e438be8dfa3fbc7537bb
size 3113
| [
"134679852Ufuk*"
] | 134679852Ufuk* |
eeacb3481567c6c734549b300e411fe3b2b860d9 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/eager/remote_test.py | edd00bc1f3f14fe6cc0d3a71becd864c3a8016f0 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 8,185 | 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... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
44719b0024dc4b15ac8a0ec83ddb63cfba8e3093 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/d278160c1fd0e8c3b24ee96c4fd91dddbbfab668-<_print_figure_tex>-bug.py | 60b91491bf1a7503ebe33d299abe5c10dfd4340c | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,481 | py | def _print_figure_tex(self, outfile, format, dpi, facecolor, edgecolor, orientation, isLandscape, papertype, metadata=None, **kwargs):
"\n If text.usetex is True in rc, a temporary pair of tex/eps files\n are created to allow tex to manage the text layout via the PSFrags\n package. These files ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6e4c7c1f9873362de85924eedfa8590b9c5b2ebb | d7ee76b7f1d6cd038982335792f15959a58a8395 | /SWEA/3234. 준환이의 양팔저울.py | 4a705c6bef72acc0c16a6712a19c0da4eed31725 | [] | no_license | min1378/-algorithm | 1c5dea6b2f03e4d376275cfccbf11b240bc659d9 | bfb720277160077a816deec21469a7e597c62d14 | refs/heads/master | 2021-08-02T06:54:10.478501 | 2021-07-31T14:03:01 | 2021-07-31T14:03:01 | 202,688,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | def make_per(k):
if k == N:
scale(0, 0, 0)
else:
for i in range(N):
if visited[i]:
continue
visited[i] = True
per[k] = mass[i]
make_per(k + 1)
visited[i] = False
def scale(k, left, right):
global cnt
if k == N... | [
"qwes123@naver.com"
] | qwes123@naver.com |
7a29db382b00fe53bf9504d4daf3d1a6dc420316 | d85043257d93d35ac5d20fdb784656a83e141350 | /pvd_309/plot.py | 1c6012af46ef3494245ccbf00ece9e6a22ff1ed3 | [] | no_license | CINF/cinfdata_test | ca7ae74c93afb2860c2fa24d6589e25ed5c7d38a | 159c5e7f4727318a6b7b78dcce8f0ea57353abdb | refs/heads/master | 2021-01-01T04:26:36.569960 | 2016-05-13T11:10:43 | 2016-05-13T11:10:43 | 58,448,151 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | ../sym-files2/plot.py | [
"k.nielsen81@gmail.com"
] | k.nielsen81@gmail.com |
e2e9258cf1c302d8bd7e00834cca4cb299126b6b | a95cf706c3111069c75055d558a710dfe8538195 | /collective/dexteritytextindexer/tests/test_utils.py | ee435d7e486a1d2b1037d5c9026fa6f0d0928a0f | [] | no_license | gusunavarro/collective.dexteritytextindexer | 2854409eff0f843be8ed92febbbb6698e452c4d4 | 34394c1c9b2016a14985ae3314d45b3a695790eb | refs/heads/master | 2021-01-16T21:28:00.404619 | 2012-03-16T11:49:09 | 2012-03-16T11:49:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | from collective.dexteritytextindexer.directives import SEARCHABLE_KEY
from collective.dexteritytextindexer.utils import searchable
from plone.directives import form
from plone.supermodel.utils import mergedTaggedValueList
from unittest2 import TestCase
from zope import schema
class IExample(form.Schema):
foo = s... | [
"jone@jone.ch"
] | jone@jone.ch |
04ec7b26a157c4907b015ca5d1c3f74ae18fd6f0 | 4ad0cfa350552458df8a0270038ed436bd1d06f4 | /interface/login.py | c25249f7829acc58a9d598047ec4c22ca03e182d | [] | no_license | fzk466569/python_tkinter | 4b2e505f91bc4f73d632bb4fe029bd3a3b07c590 | 8c63ac171d171cd13c7891426841279f2ef53262 | refs/heads/master | 2021-01-21T11:26:38.127214 | 2017-08-31T13:15:27 | 2017-08-31T13:15:27 | 102,001,271 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | from tkinter import *
import tkinter.messagebox
from repository.user import login_check
from interface.main_form import MainForm
class Login(object):
def __init__(self):
self.login = Tk()
self.login.title('基于webshell的校园网络安全系统')
self.login.iconbitmap('../images/title.ico')
input =... | [
"fzk466569"
] | fzk466569 |
298c771a14c37a067196a174028e535fb052e119 | 47d1beba77ebde115c5d41b25a15ef144068c930 | /news/forms.py | 886b4b2d2460532d39973216f0431677c60234a9 | [] | no_license | uchicago-library/library_website | f32d7dcaf793b4646cac37ba7270715dccf84820 | e5912a17ed2de3a61ede2fbebda4a258664ff696 | refs/heads/master | 2023-08-16T20:20:45.063253 | 2023-08-10T21:19:12 | 2023-08-10T21:19:12 | 39,917,251 | 5 | 4 | null | 2023-08-10T21:19:14 | 2015-07-29T21:27:58 | Python | UTF-8 | Python | false | false | 405 | py | from django import forms
class EmailNotificationTestForm(forms.Form):
email_from = forms.EmailField(label='From email address:')
email_to = forms.EmailField(label='To email address:')
num_days = forms.IntegerField(label='Number of days of news stories to summarize:')
email_as_if_date = forms.DateField(... | [
"jej@moss.lib.uchicago.edu"
] | jej@moss.lib.uchicago.edu |
6cbb7370e69db54a2b4d182c802e8fcd78aa82c8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_cosmologies.py | e9122b4cb835c96b392e497a2cc11aa129f2ef0e | [
"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 | 236 | py |
#calss header
class _COSMOLOGIES():
def __init__(self,):
self.name = "COSMOLOGIES"
self.definitions = cosmology
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['cosmology']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1c71026b627e3c90fc1188ef5c29c34a20fee5de | 991cd70073c162f637fbec3a9e921707aa434b8e | /opentelemetry-resourcedetector-gcp/src/opentelemetry/resourcedetector/gcp_resource_detector/_gke.py | 85588604c1b20ff45c51d068a2f19032307303ed | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/opentelemetry-operations-python | 700a59c954cd18ae6428032339d01908580a4f2d | b0ca7decb6a5bb01409822e746b7463f4a7a76ba | refs/heads/main | 2023-08-18T11:24:59.282098 | 2023-08-15T17:02:54 | 2023-08-15T17:02:54 | 244,484,614 | 49 | 42 | Apache-2.0 | 2023-09-01T14:42:48 | 2020-03-02T22:00:22 | Python | UTF-8 | Python | false | false | 1,677 | py | # Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
064eff60e1077689e1a891e530570737476af76d | 749faa57b9adbe1ee762b0ad0e5f8fa1f71e1f20 | /python/tests/utils_test.py | a552d125000c72741270f610a5266754f5b25655 | [
"Apache-2.0"
] | permissive | bitcard/olm-mirror | 8c97257bdca8f9083a0234fd37e941883b298a9d | 769d013ef7b20757d2f83ab2e933f660e38de2a7 | refs/heads/master | 2022-01-05T22:09:17.326695 | 2019-04-30T22:25:21 | 2019-04-30T22:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | import base64
import hashlib
from future.utils import bytes_to_native_str
from hypothesis import given
from hypothesis.strategies import text
from olm import sha256
from olm._compat import to_bytes
class TestClass(object):
@given(text(), text())
def test_sha256(self, input1, input2):
first_hash = sh... | [
"poljar@termina.org.uk"
] | poljar@termina.org.uk |
c6e39b32c297764a3fc74e78ce267124c7b3f7c6 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit1234.py | a61dcbaea83a919bfe4685829b0e23fb28706788 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | # qubit number=5
# total number=49
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as np
import networkx as ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3342dd166c1a4b52cda6b0d424dc3bfcc3d8b674 | 677002b757c0a1a00b450d9710a8ec6aeb9b9e9a | /tiago_public_ws/build/openslam_gmapping/catkin_generated/pkg.installspace.context.pc.py | 00673387ed81d830eb08b81f6a79356ed99d2359 | [] | no_license | mrrocketraccoon/tiago_development | ce686c86459dbfe8623aa54cf4279021342887fb | a0539bdcf21b67ab902a4649b516dcb929c54042 | refs/heads/main | 2023-06-16T19:39:33.391293 | 2021-07-08T21:20:03 | 2021-07-08T21:20:03 | 384,249,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lgridfastslam;-lscanmatcher;-lsensor_base;-lsensor_... | [
"ricardoxcm@hotmail.com"
] | ricardoxcm@hotmail.com |
476f0c57827cb630f96d2cdcc3a9bbfa4bc31fe1 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano1572.py | 9508e1481ef4684c791d1baaeeb34cc17137599f | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
5c9577919a2bb8b1da8842933a4f2f8656fe7c2c | c63fa9ad899c461aa6550a5404ffddb2d868a674 | /scripts/simulator_scripts/simple_international_simulator.py | cf96c290d24922ef5d7c76a84d31d714f0a0e017 | [] | no_license | cooperoelrichs/model_of_australia | 4f7dc065f8afad456c9700a33f11399731c91eff | 40eb9d8bf093aa7af0ae939108e1ed13fe08e6a2 | refs/heads/master | 2021-07-20T03:43:29.293008 | 2017-10-26T04:30:14 | 2017-10-26T04:30:14 | 103,367,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | n_years = 20
n_iter = 1e4
simple_internation_gdp_sim = SimpleInternationalGDPSimulator.run(
un_gdp_pc['Australia'].values,
shared_variance_international_gdp_model_parameters,
n_years, n_iter
)
subset = un_gdp_pc.columns.difference(['date'])
fig = plt.figure(figsize=(20, 10))
plt.plot(un_gdp_pc['date'], u... | [
"c.oelrichs@gmail.com"
] | c.oelrichs@gmail.com |
137013bc6c827f23d04f9a51bc94c8f868126e7f | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nntunisian.py | 247a867961e9f4f0a39b6810bca6b24b970ef959 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 24 | py | ii = [('CoopJBT.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
454ad9a3d78b7229f76b2ccc28782e5ec2a0a0a2 | ecf62aae48e02420cd99008f58c4725c6da56d22 | /models/city.py | 3cf1c50199c3fed43886a70749accf1730c301a9 | [] | no_license | ThibautBernard/AirBnB_clone | e3110415acd98b56134928eee0d2befb6bd68a25 | d495dd85add4332880eacf00b338704c2799d3e5 | refs/heads/main | 2023-03-08T15:51:46.968249 | 2021-03-03T15:58:29 | 2021-03-03T15:58:29 | 337,568,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | #!/usr/bin/python3
from models.base_model import BaseModel
"""
Class that represent a city
"""
class City(BaseModel):
state_id = ""
name = ""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
| [
"thibautbernard@sfr.fr"
] | thibautbernard@sfr.fr |
b5e0a9f369d3fccfbf3ceeae1aacce0df53aed4a | e3f64d087afb4f6dfd09940370d77e724a1886d7 | /ex12.py | 30b8c31a817dec36e526eb26c0ebe73fc45b2122 | [] | no_license | wangyi26/lpthw | 41e95d0414bb706b8c85d61737be982cd8c712f5 | 8e8705bf5f0eb070cacf7e82648d70c5637e6ec4 | refs/heads/master | 2020-03-26T19:27:17.014680 | 2018-08-19T02:04:16 | 2018-08-19T02:04:16 | 145,265,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | age = input("How old are you?")
height = input("How old are you?")
weight = input("How much do you weigh?")
print(f"So,you're {age} old,{height} tall and {weight} heavy.") | [
"you@example.com"
] | you@example.com |
107ffaf4a6924bb92f6a0915474629036599fe63 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Basic Programming/Implementation/Basics of Implementation/Very Cool Numbers/solution.py | d0b76a17de7dac94d7100683084222e2f12c7eb2 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 567 | py | from collections import Counter
from re import findall
t = int(input())
cases = []
x = 0
for _ in range(t):
r, k = map(int, input().strip().split())
cases.append((r, k))
x = max(x, r)
cools = []
for i in range(x + 1):
cools.append(len(findall("(?=101)", bin(i)[2:])))
cache = {}
for case in cases:
i... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
ff921394e8df92a8806a79e4023bf057ce4b5314 | b7125b27e564d2cc80a2ce8d0a6f934aa22c8445 | /.history/sudoku_20201101151526.py | 388887e85bc5a316b4aaff19358fd78c533e9129 | [] | no_license | JensVL96/Puzzle-solver-for-fun | 4c15dcd570c3705b7ac555efb56b52913e81083c | 6d8a4378a480372213a596a336a4deca727a00fc | refs/heads/master | 2021-07-15T05:19:42.185495 | 2020-11-08T13:59:49 | 2020-11-08T13:59:49 | 224,855,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,354 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from config import *
from create_board import *
from solve_bloard import *
from display_board import *
from string import *
import pygame as pg
import numpy as np
# For error highlighting
def set_highlight(row, col, blk, lock):
global input_lock
in... | [
"jle040@uit.no"
] | jle040@uit.no |
71800abbf276d7b24cd982bdac42bd2ef4473a07 | b8fb00ee277478c368f5b7512bfd265f3ecea356 | /python/if_condition/venv/Scripts/pip3.7-script.py | 9ef9b0fdd160350cb17bebb111a37435f82b0d3d | [] | no_license | DharmilShahJBSPL/DharmilShah | 574477c38a8b76616618130f3b0679a23a9c1af8 | 0d197189c8dcf794d38145e8f1edba6766b02df9 | refs/heads/master | 2021-07-07T11:47:03.770219 | 2019-01-19T13:13:38 | 2019-01-19T13:13:38 | 152,415,037 | 0 | 1 | null | 2020-07-20T10:44:20 | 2018-10-10T11:48:36 | Python | UTF-8 | Python | false | false | 414 | py | #!E:\dharmil\python_task\if_condition\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"dharmil@jbspl.com"
] | dharmil@jbspl.com |
b7ba8e7bdee898506b7d76ce65bc25678a96140d | fe22e8ffdb1b2f1e11becc027e71a7a512fe56eb | /util/merge.py | 83aafc267e2cfcc1d70ca06e26f9f32cd1dd0443 | [] | no_license | HEP-KBFI/stpol | 3cdb5dc125bb0394f4531abfdfe9629b0c8d0fa4 | 962837a3341dd26391025b9a07a9c1c93084bf64 | refs/heads/master | 2020-06-03T16:15:14.743807 | 2015-08-05T09:00:28 | 2015-08-05T09:00:28 | 5,716,481 | 0 | 1 | null | 2015-03-04T08:23:28 | 2012-09-07T12:27:30 | Python | UTF-8 | Python | false | false | 426 | py | from subprocess import check_call
from os import walk
from os.path import join
import sys
from glob import glob
if __name__=="__main__":
ind = sys.argv[1]
for root, dirs, items in walk(ind):
items_in_dirs = map(lambda x: glob(join(root, x, "*.root")), dirs)
tot = sum(map(lambda x: len(x), items... | [
"joosep.pata@gmail.com"
] | joosep.pata@gmail.com |
4550cce6732f67469786d7760b44a1040f883e0d | 0e647273cffc1fb6cbd589fa3c7c277b221ba247 | /configs/hpt-pretrain/bdd_crop_blur/moco_v2_800ep_basetrain/5000-iters.py | 1294176225d78d0b2d97f068e432c64d14c478c4 | [
"Apache-2.0"
] | permissive | Berkeley-Data/OpenSelfSup | e9976bf011b69ebf918506ba184f464b1073ec13 | 221191b88d891de57725b149caf237ffef72e529 | refs/heads/master | 2023-05-12T07:34:52.268476 | 2021-04-08T00:58:37 | 2021-04-08T00:58:37 | 343,654,823 | 0 | 1 | Apache-2.0 | 2021-04-08T00:58:37 | 2021-03-02T05:20:27 | Python | UTF-8 | Python | false | false | 222 | py | _base_="../base-bdd_crop_blur-config.py"
# this will merge with the parent
model=dict(pretrained='data/basetrain_chkpts/moco_v2_800ep.pth')
# epoch related
total_iters=5000
checkpoint_config = dict(interval=total_iters)
| [
"taeil.goh@gmail.com"
] | taeil.goh@gmail.com |
d12df0b6db88ebaebc427c001808a879ac88303e | f655a4f1575842190007736f0977c3cb68a70189 | /pycat | 454bcb45e1e76bea259a3ebd128c6ba331d1b5b6 | [] | no_license | bytesid19/PythonAdhoc | 4d869455b289db860a90f5379f7bfeeaa47c2bec | e358dd02def3d116e533051010f0711eadb7552f | refs/heads/master | 2022-05-03T16:30:27.533716 | 2019-02-02T15:50:53 | 2019-02-02T15:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | #!/usr/bin/python2
import os,sys
c_name=sys.argv[1:]
for i in c_name:
f=open(i,'r')
print f.read()
f.close()
| [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
9bbf7a1e9839497b6c4bf70667b9bdd845fc9d37 | 552bc626603a1757cf7836401cff5f0332a91504 | /flask/doit_JumpToFlask/chap03/03-8/회원가입_기능추가/views/question_views.py | 613d79cb4fa7e8e0f4c9bf1896a9b710c5702646 | [] | no_license | anifilm/webapp | 85f3d0aae34f46917b3c9fdf8087ec8da5303df1 | 7ef1a9a8c0dccc125a8c21b22db7db4b9d5c0cda | refs/heads/master | 2023-08-29T18:33:00.323248 | 2023-08-26T07:42:39 | 2023-08-26T07:42:39 | 186,593,754 | 1 | 0 | null | 2023-04-21T12:19:59 | 2019-05-14T09:49:56 | JavaScript | UTF-8 | Python | false | false | 1,448 | py | from datetime import datetime
from flask import Blueprint, render_template, request, url_for, g
from werkzeug.utils import redirect
from pybo import db
from pybo.models import Question
from pybo.forms import QuestionForm, AnswerForm
from pybo.views.auth_views import login_required
bp = Blueprint("question", __name__,... | [
"anifilm02@gmail.com"
] | anifilm02@gmail.com |
cabf99b46a69479e6f2d4ebc046f5591e50b087b | 09c39de5aad7b283cfac2f09a2b93e43086846d2 | /Unit 10 Advanced Topics in Python/01 Advanced Topics in Python/Review/15-Iterating Over Dictionaries.py | f3e71da8c2d4077bb403646af94b8975a0d49188 | [
"MIT"
] | permissive | lpython2006e/python-samples | b4e84080259faf75b41fb2fd4fb9d2fbc9f857aa | b94ba67ce0d7798ecf796dadae206aa75da58301 | refs/heads/master | 2023-01-21T13:16:13.295163 | 2020-11-29T11:01:50 | 2020-11-29T11:01:50 | 278,653,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | movies = {
"Monty Python and the Holy Grail": "Great",
"Monty Python's Life of Brian": "Good",
"Monty Python's Meaning of Life": "Okay"
}
print(movies.items())
| [
"lent@hivetech.vn"
] | lent@hivetech.vn |
5855ed722d94538a3f665167b38f410e54779d80 | c51eef37bb983a9c35635c7ccc96a0cf689a7438 | /sites/ncbi/04_links.py | 8f13b4f8f330a1d06c2cd610f90644165411818d | [] | no_license | Kyeongrok/python_crawler | 0a717b43be36584af1b0f7c1ad0c79108a5d11e0 | 5a5da8af7bb080f752a9a066741ac8adab136a3a | refs/heads/master | 2022-09-13T03:15:08.053639 | 2022-08-02T15:45:03 | 2022-08-02T15:45:03 | 124,719,435 | 40 | 34 | null | 2019-02-27T08:29:52 | 2018-03-11T03:20:32 | HTML | UTF-8 | Python | false | false | 564 | py | from bs4 import BeautifulSoup
def getLinks(pageStr):
bs_obj = BeautifulSoup(pageStr, "html.parser")
rprts = bs_obj.findAll("div", {"class":"rprt"})
links = []
for item in rprts:
atag = item.find("a")
links.append(atag["href"].replace("/pubmed/", ""))
return links
links = []
for n... | [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
cdbcfbbd7551dcd8dd76c054b1f050e4cc635f35 | 5e9bb224cc0e79670016c78f5262f530a343f71a | /run/get_rede_3_class_counts.py | d28773b0a2251ba3271deaba6ac6d518753d6a22 | [
"MIT"
] | permissive | olavosamp/semiauto-video-annotation | 6f86bb3b8b98bb1b910be1c95abf5474cd8526bb | b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd | refs/heads/master | 2020-06-06T02:48:16.677814 | 2020-03-10T05:22:49 | 2020-03-10T05:22:49 | 192,616,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import numpy as np
import pandas as pd
from tqdm import tqdm
from glob import glob
from pathlib import Path
# from copy import copy
import libs.dirs as dirs
import libs.utils as utils
import libs.data... | [
"olavosamp@poli.ufrj.br"
] | olavosamp@poli.ufrj.br |
fbff749542a7d8d29c63a1b8284959aa9c8f310d | 865aeaf85b7cf0a27b04b5c563dee2b79443e6b7 | /docs/support/trace_support.py | f5044d28a57d4fbd35f16e3094092849c63f2f4c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | pmacosta/peng | d8cc6e8757d62fb9968a42eaf11b5b87227a8b47 | ab05fac3c0a6c0f8c70ab3e456b5cc57f0484389 | refs/heads/master | 2021-01-21T14:32:42.863574 | 2019-06-11T14:30:38 | 2019-06-11T14:30:38 | 58,596,416 | 0 | 2 | MIT | 2019-03-08T15:49:44 | 2016-05-12T01:24:18 | Python | UTF-8 | Python | false | false | 3,331 | py | # trace_support.py
# Copyright (c) 2013-2019 Pablo Acosta-Serafini
# See LICENSE for details
# pylint: disable=C0111,C0411,E0401,E0611,W0212
# Standard library imports
from __future__ import print_function
import collections
import copy
import datetime
import os
import warnings
# PyPI imports
with warnings.catch_warn... | [
"pmasdev@gmail.com"
] | pmasdev@gmail.com |
3ef27a31c380abbfdb38ff95db3f8d2b9b8d285f | 36e12b65922ebbb6d95aff6cbac0777c47e24153 | /distinctregions_cGcC.py | 352b42f3b5be614d3c66d47944522d02075bcf1d | [
"MIT"
] | permissive | NailouZhang/AnalysisScripts | d0d00174f642d6722cc907f9a392084600630780 | 3df37d2f8fca9bc402afe5ea870c42200fca1ed3 | refs/heads/master | 2023-06-06T08:14:39.064920 | 2021-06-22T16:46:26 | 2021-06-22T16:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,677 | py | #Want to look at cGcC scores for "distinct" 3' UTR regions to get weighted cGcC scores based on the "distalness" of a sequence.
import re
import sys
from Bio import SeqIO
import numpy as np
import gffutils
#Need to get UTR regions that are distinct to each isoform
#Start with gff of 3' UTR regions
def getdistinctregi... | [
"taliaferrojm@gmail.com"
] | taliaferrojm@gmail.com |
356b615d823669751feac2502978c4b41465f695 | 17ec70a0387905f84f7fc1e3ee7f3428dd4e7874 | /Aoj/dpl/dpl_1_b.py | b1eb71bc3859fb849884a5eabde842e4d01b4db4 | [] | no_license | onikazu/ProgramingCompetitionPractice | da348e984b6bcb79f96f461d9df15a33730169b2 | 5a682943976bcac8646176feef9b70a6784abd8a | refs/heads/master | 2021-02-09T06:27:54.994621 | 2020-03-14T02:28:50 | 2020-03-14T02:28:50 | 244,252,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | n, limit = map(int, input().split())
items = [tuple(map(int, input().split())) for _ in range(n)]
dp = [([0] + [0] * limit) for _ in range(n+1)]
for i in range(1, n+1):
v, w = items[i-1]
for j in range(limit+1):
if j < w:
dp[i][j] = dp[i-1][j]
else:
dp[i][j] = max(dp[i... | [
"programingmanagement@gmail.com"
] | programingmanagement@gmail.com |
40bf41cc14776bfc93ee66abe4f2e8c67807d90d | 3090b3e964601e0392a03c903d28f324b4351936 | /src/demo/urls.py | fd264174fd4d5bde963b1d4b28312df4909f73b0 | [] | no_license | infoxchange/django-verification | eeebb4f7372ed95d43d8afd6f7b20ebdaa0e295e | 51ac7a648863393d44fe7a2813eccbfbee2eb615 | refs/heads/master | 2021-01-24T23:42:01.913727 | 2014-07-29T08:29:12 | 2014-07-29T08:29:12 | 24,980,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from __future__ import unicode_literals
from django.contrib import admin
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
admin.autodiscover()
urlpatterns = staticfiles_urlpatterns()
urlpatterns += ... | [
"kaleissin@gmail.com"
] | kaleissin@gmail.com |
e9406c5e1be4ae6d6959da2fb43a7d0f3fdd50d9 | 779afab3a8fd338a8a5b82284ca1269090ff92ee | /3 Processing/2D/BubbleSort/BubbleSort.pyde | 77c8f6c2685f9e8c88d84b4121f49d1b271ba1ac | [] | no_license | vitroid/PythonTutorials | 341ea037d168f744bee42c26c1c9408763b4bb50 | 32dd7325ca7099954f5eb33927ec9e122bb54066 | refs/heads/master | 2023-08-03T05:15:48.254380 | 2023-08-01T08:29:52 | 2023-08-01T08:29:52 | 36,958,329 | 3 | 0 | null | 2016-05-06T01:13:23 | 2015-06-05T22:22:43 | Python | UTF-8 | Python | false | false | 835 | pyde | """
ソーティング(並べ替え)のプロセスを可視化したものです。
"""
def bubblesort(data):
for x in range(len(data)):
for y in range(x+1,len(data)):
if data[x] > data[y]:
data[x],data[y] = data[y],data[x]
yield data
pix = 8
import random
data = [random.random() for i in range(50)]
iter = bub... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
e6d8834ca974ac3aabfaa64cbd846a640643e735 | d57ebd908a78ad6b34f6b217f14d53fc894ff791 | /Algorithm/1836.py | e826069535f81c8de1cf17c21aeef474811d8727 | [] | no_license | ruanhq/Leetcode | df732730b63988b808a382ad17bddc49e00bc3a5 | fcb4ccbc9e84e1d2bd4541efc040bd957a96a3a2 | refs/heads/master | 2023-07-05T04:01:43.097980 | 2021-08-08T06:12:14 | 2021-08-08T06:12:14 | 320,983,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | #1836. Remove duplicates from an unsorted linked list:
import collections
class Solution:
def deleteDuplicatesUnsorted(self, head: ListNode) -> ListNode:
currentHead = head
freqMap = {}
#Construct a frequency map of the element in the linked list by scanning through.
while currentHea... | [
"hruan@ucdavis.edu"
] | hruan@ucdavis.edu |
e38ce9a9d274b921ae53a30071c5f87e314be6a9 | 67487a6df520e3ddbd918fdf4b9c8dcd4c783147 | /PythonExercicios/Mundo 3/17_modulos_e_pacotes/ex111/teste.py | a08e94b1c22d868580dc033e894c3bfcd761062e | [
"MIT"
] | permissive | GuilhermoCampos/Curso-Python3-curso-em-video | c7d7a25f87f5a8fd706f34030282f12b1dc88e01 | 723767bc6069e9c1fa9e28fe412e694f9eb8d05e | refs/heads/master | 2021-05-18T22:33:48.062467 | 2020-09-20T10:52:40 | 2020-09-20T10:52:40 | 251,457,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Crie um pacote chamado utilidadesCeV que tenha dois módulos
# internos chamados moeda e dado.
# Transfira as funçoesutilizadas nos desafios 107, 108 e 109
# para o primeiro pacotee mantenha tuo funcionando
from utilidadescev import moeda
# Programa Principal
num = float(input('Digite um valor: '))
moeda.resumo(num,... | [
"GuilhermoCampos@users.noreply.github.com"
] | GuilhermoCampos@users.noreply.github.com |
352740fa47b921639904c9a26c20c6b293eda782 | 61357ffa1e3b1174864a52da12c23500cfbc462a | /chatter.py | 02689dcecbb652d21784630c84d74085dc2c3d74 | [] | no_license | alexcg1/wechat-tools | 6968229a6c3440552b5612f9f9402bd3e613dc46 | 0709dedec7127a78a21eab2d56c49958aedd199f | refs/heads/master | 2022-12-13T12:00:43.164734 | 2018-10-17T04:06:14 | 2018-10-17T04:06:14 | 149,095,345 | 0 | 0 | null | 2022-12-08T02:56:23 | 2018-09-17T08:45:44 | Python | UTF-8 | Python | false | false | 5,843 | py | #!/usr/bin/env python3
import pyperclip
import readline
import threading
import time
import sys
import os
import itchat
from datetime import datetime
from itchat.content import *
from wem_functions import *
from pprint import pprint
from colorama import Fore, Back, Style
global chat_partner
App.start()
global outp... | [
"alexcg@outlook.com"
] | alexcg@outlook.com |
03f1ca426fc4cd4120dc4c58bf06a5217f7229ac | 282b1d7bce60803580f9e0e234606dfc69a3be9e | /cougar/graphs/loss/triplet_loss.py | 99ca2e66090e3da78d7b8a820ed097ac7837906d | [
"MIT"
] | permissive | Swall0w/cougar | 4b2894089ac4857dcd319e388077b7330c228512 | 9161b2b1d0c256f4bb952ec190351684f28ec1b7 | refs/heads/master | 2022-11-01T14:57:18.077650 | 2019-09-17T14:30:56 | 2019-09-17T14:30:56 | 205,391,913 | 1 | 0 | MIT | 2022-10-18T19:27:35 | 2019-08-30T13:51:48 | Python | UTF-8 | Python | false | false | 771 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class TripletLoss(nn.Module):
"""
Triplet loss
Takes embeddings of an anchor sample, a positive sample and a negative sample
"""
def __init__(self, margin):
super(TripletLoss, self).__init__()
self.margin = margin
... | [
"technext.jpn@gmail.com"
] | technext.jpn@gmail.com |
68915f0176b12bb9db7d9f9e48a878345db3dade | 1f96392824039390531a17b43156b2a26a956d4e | /treeserver/manage.py | 02da027d3b243dbf10e99cfffe063c9e7598ae1e | [] | no_license | benthomasson/tree | 9eca1e61406effa95b3d707fde44fe0f309180f6 | 4ccf7fa47e614f1a263a312f477c08af5f2f8d0b | refs/heads/master | 2020-04-10T22:46:04.574886 | 2012-12-22T22:11:05 | 2012-12-22T22:11:05 | 5,841,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "treeserver.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"ben.thomasson@gmail.com"
] | ben.thomasson@gmail.com |
a09540e730eb83a0c3a0246cfa219f1c85e7a390 | 7daab7f2e91d62ba0383fa050f3dea1dc9752975 | /iniciante/1005_media_1.py | 2bb3032ceadcdd803fe1baa29f46f26b6c0055c2 | [] | no_license | luandadantas/URI-Python | 97ccdaa3835b2d2fa403f148969ca7e893d3f119 | 2cb67f39725b20e6fcbbeaf27d04c4ba05dba665 | refs/heads/master | 2022-12-04T02:51:14.374361 | 2020-08-14T17:59:58 | 2020-08-14T17:59:58 | 255,736,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | A = float(input())
B = float(input())
MEDIA = (A * 3.5 + B * 7.5) / 11
print("MEDIA = {:.5f}".format(MEDIA)) | [
"ludanttas@gmail.com"
] | ludanttas@gmail.com |
77c039872c643f8c0558f8ab043ab89b3592b680 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/workloads/azext_workloads/aaz/latest/workloads/sap_database_instance/_stop.py | d2c2f9063b3cc24eb222e50a23af4c4ccc2e0eb5 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 12,353 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
00b77addd4d58bcfcf481433d1298aaedd8b394f | bbd4d550b5f60763872b2ecd58c5b2bde21ecd0b | /test2/file_workflow.py | 7b5ed83826e9c4a2c7b196c1f39780e76410aa0d | [] | no_license | MaLei666/workflow_test | 4894a96f1b9858e6beb454f62cb6acad34e8fc3e | 312d23e36086bb0967f20b290a3f9b1f5f6be184 | refs/heads/master | 2022-07-31T00:13:46.307736 | 2020-05-24T14:32:18 | 2020-05-24T14:32:18 | 266,557,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | # #-*- coding:utf-8 -*-
# # @author : MaLei
# # @datetime : 2020/4/21 7:22 下午
# # @file : file_workflow.py
# # @software : PyCharm
#
# from SpiffWorkflow.specs import WorkflowSpec,ExclusiveChoice,Simple,Cancel
# from SpiffWorkflow.serializer.json import JSONSerializer
# from SpiffWorkflow.operators import Equal,Attrib
... | [
"826908021@qq.com"
] | 826908021@qq.com |
7b213d9375e083dc0cfcf3d970c4b04d5b6fc55d | d9d75e429261d3f2b1075e0f7b598c756cb53a56 | /env/lib/python3.9/site-packages/django/db/migrations/state.py | 9432b726363321672c239d106b0d143a1bffa281 | [] | no_license | elisarocha/django-tdd-course | f89ccff07c8fd5114ae10fcb9a400be562f088db | 7333fb9b5a5f8ea0f8fe7367234de21df589be59 | refs/heads/main | 2023-02-25T11:22:23.737594 | 2021-02-01T19:53:42 | 2021-02-01T19:53:42 | 334,710,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,307 | py | import copy
from contextlib import contextmanager
from django.apps import AppConfig
from django.apps.registry import Apps
from django.apps.registry import apps as global_apps
from django.conf import settings
from django.db import models
from django.db.models.fields.related import RECURSIVE_RELATIONSHIP_CONSTANT
from d... | [
"ecdgrocha@gmail.com"
] | ecdgrocha@gmail.com |
200d1b874c07190b35bb0877add010ffb64f521a | 780900f95f56d9272a01bd50f01642efa771bd16 | /scrape.py | 95fbb4de529518f0b2404683a92f94fd932e7c8b | [] | no_license | pallih/veidigjald-signatures | 107ab19153807ee45ab0cdbfe4142e5c9731a49e | 78e301e55f76c3ff5c3672a7bf21b779080864a9 | refs/heads/master | 2021-01-22T02:49:02.968416 | 2013-06-20T00:37:59 | 2013-06-20T00:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | import scraperwiki
import requests
import lxml.html
url = 'http://www.petitions24.com/signatures/obreytt_veidigjald/start/%s'
headers = {'User-Agent': 'Mozilla/5.0'}
#setup at start
'''
record = {}
record['last_page'] = '0'
scraperwiki.sqlite.save(['last_page'], data=record, table_name='runtime_info')
exit()
'''
sel... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
03151d8300aa740a122197a386f399d7e9451450 | d272b041f84bbd18fd65a48b42e0158ef6cceb20 | /catch/datasets/tho.py | 58fee5408125281b49c221f55d5e91b94fc7a0a6 | [
"MIT"
] | permissive | jahanshah/catch | bbffeadd4113251cc2b2ec9893e3d014608896ce | 2fedca15f921116f580de8b2ae7ac9972932e59e | refs/heads/master | 2023-02-19T13:30:13.677960 | 2021-01-26T03:41:10 | 2021-01-26T03:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | """Dataset with 'T'Ho virus' sequences.
A dataset with 1 'T'Ho virus' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
ds = GenomesDatasetSingleChrom(__name__, __file__, __spec__)
ds.add_fasta_path("data/tho.fasta.gz", ... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
cf7c9dcfbb59460a88b0b3e568306304f7583811 | ff853d7b3773db8de783fd26a76bd92742f85384 | /0x0F-python-object_relational_mapping/2-my_filter_states.py | c480b9cf408630749b250433478da0e0b9fde823 | [] | no_license | stuartses/holbertonschool-higher_level_programming | 1b3315f624f9c2dc0c63ee3481021c5ed093a81d | 40497b632bf71c3b877cb61fce79b9d82b4519da | refs/heads/master | 2020-09-29T00:51:57.791491 | 2020-05-14T16:51:44 | 2020-05-14T16:51:44 | 226,905,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | #!/usr/bin/python3
"""2. Filter states by user input
This module make a MySQL Query using MySQLdb
Filter states with a input name
Holberton School
Foundations - Higher-level programming - Python
By Stuart Echeverry
"""
if __name__ == "__main__":
import sys
import MySQLdb
len_args = len(sys.argv) - 1
... | [
"stuart.ses@hotmail.com"
] | stuart.ses@hotmail.com |
8ce62413b34f91d34f9f8084f3428a42d543ee3b | 037d5d18b9b81205305e158d7d9fdad131d318cb | /tests/revert/test_many_to_many_relationships.py | 973dd97bac9f110e036e38a0e9b662a28abc0024 | [] | permissive | kvesteri/sqlalchemy-continuum | ee7acf2c961b27eab3dd8f61598d9159d801ee21 | a7a6bd7952185b1f82af985c0271834d886a617c | refs/heads/master | 2023-08-24T09:14:33.515416 | 2022-11-17T05:41:09 | 2023-07-24T23:37:12 | 10,312,759 | 479 | 134 | BSD-3-Clause | 2023-09-12T20:07:04 | 2013-05-27T10:30:55 | Python | UTF-8 | Python | false | false | 2,806 | py | import sqlalchemy as sa
from tests import TestCase
class TestRevertManyToManyRelationship(TestCase):
def create_models(self):
class Article(self.Model):
__tablename__ = 'article'
__versioned__ = {
'base_classes': (self.Model, )
}
id = sa.Co... | [
"konsta.vesterinen@gmail.com"
] | konsta.vesterinen@gmail.com |
780ab5e21cc1064a813e791e44a1b898e0b246be | 783aa622b5435e202c157dfa5ff75af5df2fcf95 | /moodis/views.py | a98493daa6f11905f0ed8e9853b21b4b0e31ce2f | [] | no_license | adiram17/moodisproject | 0eac4c73e46fbfeeaa436128a57d6b6d5e0cba70 | 634ff76b85eddfd5dba6fc4061cfc54b5718477a | refs/heads/master | 2023-03-09T19:10:29.880559 | 2021-03-04T09:13:38 | 2021-03-04T09:13:38 | 342,731,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,724 | py | from django import forms
from .decorators import is_checked_today
from django.shortcuts import redirect, render
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from .forms import ContactForm, PatientCheckForm, PatientForm, PatientViewForm, UserCreationForm
from django.contr... | [
"adi.ramadhan@sigma.co.id"
] | adi.ramadhan@sigma.co.id |
124e0cf8a41934ebf92b0eb5a3efd1570477083a | 9d36c0a474edb00750e08d0a82bf31a2e3d5af00 | /src/qibo/tests/test_core_circuit_features.py | 30251523f9f2268cc8d9dd88e041a88e5f74d766 | [
"Apache-2.0"
] | permissive | ZDQpeter/qibo | b2b48bbc46077a76ea886eff1ddbf1b96c83c37b | d8bd2d3de0d8eb12a428a9125302e318480e982a | refs/heads/master | 2023-08-11T03:55:32.241032 | 2021-10-14T10:06:25 | 2021-10-14T10:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,767 | py | """Test how features defined in :class:`qibo.abstractions.circuit.AbstractCircuit` work during circuit execution."""
import numpy as np
import pytest
from qibo import K, gates
from qibo.models import Circuit
@pytest.mark.parametrize("compile", [False, True])
def test_circuit_vs_gate_execution(backend, compile):
"... | [
"35475381+stavros11@users.noreply.github.com"
] | 35475381+stavros11@users.noreply.github.com |
6d355c5c5093df76111c6227f1d90df7885f252b | 2744fbd0c33c181f6bb71abbb26982f57a07ae9a | /config.py | ff0067d0d32bc4e56fcd10d7032f29d1dfc7de97 | [] | no_license | mehulchopradev/yannick-webapp | f2d777cfc23786b142551deefb2437cd24fb7592 | 4eb18a574177fb3f2d595255b4d3d421d5518944 | refs/heads/master | 2020-04-01T21:01:15.273151 | 2018-10-18T14:01:47 | 2018-10-18T14:01:47 | 153,633,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | class Config:
SQLALCHEMY_DATABASE_URI='mysql+mysqlconnector://root:root@localhost/yannickwebapp_db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
| [
"mehul.chopra.dev@gmail.com"
] | mehul.chopra.dev@gmail.com |
317568248fa7b20af7cf4cfac25cb622ab9e5eb1 | 46244bb6af145cb393846505f37bf576a8396aa0 | /algorithms/ch4/4.1.13.py | 1d5cc8e306e2a491210d8e21daa6a91adca28254 | [] | no_license | aoeuidht/homework | c4fabfb5f45dbef0874e9732c7d026a7f00e13dc | 49fb2a2f8a78227589da3e5ec82ea7844b36e0e7 | refs/heads/master | 2022-10-28T06:42:04.343618 | 2022-10-15T15:52:06 | 2022-10-15T15:52:06 | 18,726,877 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import graph
class BreadthFirstPaths:
def __init__(self, g, s):
self.g = g
self.s = s
self.marked = set()
def dist_to(self, v):
# the queue for the vertex list
return dist_to_wrapper(self.s, v, 0)
def dist_to_wrapper(... | [
"sockpuppet.lea@gmail.com"
] | sockpuppet.lea@gmail.com |
ebc5a7e1b4004327a673f2af979efc3495396138 | 9fcd6a91132fd12731d259fe7d709cdf222381bb | /2020/19/foo.py | 8c0e0c373ff1f394ff39b4c49fbfbf9a2b6b2b61 | [] | no_license | protocol7/advent-of-code | f5bdb541d21414ba833760958a1b9d05fc26f84a | fa110cef83510d86e82cb5d02f6af5bb7016f2c7 | refs/heads/master | 2023-04-05T15:33:26.146031 | 2023-03-18T14:22:43 | 2023-03-18T14:22:43 | 159,989,507 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import sys
from collections import *
import re
rs, msgs = sys.stdin.read().split("\n\n")
rules = defaultdict(list)
for r in rs.split("\n"):
a, b = r.split(": ")
if '"' in b:
rules[a] = b[1:-1]
else:
for o in b.split(" | "):
rules[a].append(o.split())
def build(rule):
reg =... | [
"niklas@protocol7.com"
] | niklas@protocol7.com |
ed6a9ce70978a4f43af6c5e0df07abcb7cda0242 | c61a28aba19f7cdf9a5127e8a782bf115c265e70 | /apps/recruitpro/recruitpro/recruitpro/doctype/project_user/project_user.py | 2485ab02a13cefca8d30d07a52de8ce60c0592d9 | [
"MIT"
] | permissive | sharmilaviji/RecruitPRO-NEW | fa72c8fc00f469a41798b1047c11dcc470fbc495 | dcfaedebe56b45acd6ddcab7e24c939b853a2c8c | refs/heads/master | 2021-05-26T12:14:12.611154 | 2020-04-27T04:40:50 | 2020-04-27T04:40:50 | 254,125,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, teampro and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class ProjectUser(Document):
pass
| [
"sharmiviji1997@gmail.com"
] | sharmiviji1997@gmail.com |
7977a21d9cd1ff00ad98f7bdf786cad24b051af1 | 423ba09a145b3468a322acf4ddf7d2c2446e227d | /atcoder/abc119/abc119_c.py | 4d8b05eaf0c2223837bb66ee8d6761db24fbe938 | [] | no_license | hirosuzuki/procon | 13d3bc332d6e4368fd54fec742b32b09729658ed | 533f40e13456542b202905a61814ad926c3c206e | refs/heads/master | 2021-05-12T10:42:51.920561 | 2020-05-20T15:49:05 | 2020-05-20T15:49:05 | 117,356,746 | 0 | 0 | null | 2018-01-29T14:46:28 | 2018-01-13T15:56:40 | Python | UTF-8 | Python | false | false | 832 | py | N, A, B, C = [int(_) for _ in input().split()]
L = [int(input()) for i in range(N)]
from itertools import combinations
def combi(xs, left):
for i in range(len(xs) - left):
for r in combinations(xs, i + 1):
yield r
def diff(a, b):
result = a[:]
for x in b:
if x in result:
... | [
"hirosuzuki@users.noreply.github.com"
] | hirosuzuki@users.noreply.github.com |
ecb100331d176a8a055fc506bdae23a213d460f5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_10099.py | 4e2bc685592970fe8cc2e352b2e7c291cafac756 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | # How can I get Bottle to restart on file change?
from bottle import run
run(reloader=True)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
cb551e3a871a6f00f0bc6847baa76f890601f945 | 6ad55b80c944e123fef29468aa018e15505cd4a3 | /references/lr/parser/adder.py | 41435d2272f198ac21eec7fa984834313768a71b | [] | no_license | ramalho/kaminpy | c7799d58edd81ada1ba7914528d16872ecb771f2 | 2f5038a9ebacb378fc45fd7fd840a50ac47c940e | refs/heads/master | 2021-01-13T02:22:16.765278 | 2018-11-19T12:34:45 | 2018-11-19T12:34:45 | 2,436,569 | 17 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import token as py_token
import util
class Token:
def __init__(self, src, start, end, line):
self.src = src
self.start = start
self.end = end
self.line = line
self.evaluate()
def evaluate(self):
pass
def nud(self):
raise SyntaxError('unexpected %... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
044e6cd2bcf67dd9722c851da59f18e8d33316c7 | c6dfa13fad324443e1e93a6a3e165938f6114bfe | /mysite_register/views.py | 8f05f5163c8230d657018d89d436baab542e335a | [] | no_license | keystonecyberstop/testTimePass | d94687647b2ad5b933a1ac99db856778e96a4acd | ff505f12889157c69694b648fe608de9f9511e43 | refs/heads/master | 2022-12-24T03:24:52.013959 | 2020-10-11T11:32:38 | 2020-10-11T11:32:38 | 303,101,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from django.shortcuts import render
from django.views.generic import ListView
from .models import Entry
class HomeView(ListView):
model = Entry
template_name = 'entries/index.html'
# def get_context_data(self, **kwargs):
# print(kwargs)
# context = super().get_context_data(**kwargs)
# ... | [
"--global"
] | --global |
492309989d063058f709494cce513673f29adee7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2190/48117/253305.py | 9bedb5ef7bc7e20973cbbca26cc70d059c294ec9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | questNum = int(input())
for i in range(questNum):
quest = input().split(' ')
s = quest[0]
k = int(quest[1])
sa = []
index = 0
for count in range(1, len(s) + 1):
for i in range(len(s)):
if i + count <= len(s):
sa.append(s[i:i + count])
countList = [0] * l... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2ed3942ae4abf416e93c8b60d8e80353a2aeb6ce | 62b066da43081895098e43b31e843a1af3700546 | /CNN/FractalNet/test.py | 136d42b6cc9bbe3229ba7c4cb1573cdeec72665b | [
"MIT"
] | permissive | bssrdf/Paper2Code | 6945251cf508e99c2d7d40b2b8639e993ab30bff | 2fb18b3d4ed66b68cab86139c4d9a0dcbf1eba39 | refs/heads/master | 2022-03-30T16:52:21.834511 | 2020-04-18T13:25:59 | 2020-04-18T13:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import os
import glob
from keras.callbacks import LearningRateScheduler, ModelCheckpoint
from keras.datasets import cifar10
from keras.layers import Activation, Input, Dense, Flatten
from keras.models import Model
from keras.optimizers import SGD, RMSprop, Adam, Nadam
from keras.utils import plot_model
from keras.utils... | [
"cutz309@gmail.com"
] | cutz309@gmail.com |
c72e1e6f41a202b2b1cd09a03a1bee06830d0410 | 1f1e8b335470065b67cce28338cfb4a6da503c95 | /0x08-python-more_classes/1-rectangle.py | 3c53e4b25f9cde658c140933cf6de96b3862d9a7 | [] | no_license | guxal/holbertonschool-higher_level_programming | 48353071e719a509e10f3067f0c3f88cb44bd27d | fffd287c510602dc45e36df486f60cdfa1205335 | refs/heads/master | 2020-07-22T23:40:03.266880 | 2020-02-14T02:42:11 | 2020-02-14T02:42:11 | 207,370,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | #!/usr/bin/python3
class Rectangle:
"""
The Rectangle class create a new object
Args:
width (int): integer value of the width
height (int): integer value of the height
Attributes:
width (int): integer value of the width
height (int): integer value of the height
"""... | [
"jonathanacp93@gmail.com"
] | jonathanacp93@gmail.com |
a79112df59f5d14d3ae00fe0a7bcfb6ee357574e | 87af51366dd4597fb6ecf7887e44a53dacf67364 | /juaphe/wsgi.py | 19cbcbef0a0746d16594e05a93fdf826304ac291 | [] | no_license | MoTechStore/CIS | 8707e17c1a1702dfdf17dbbba08e6ccf232acb45 | b169cf374efdf1db315fde345f865f0831e58694 | refs/heads/master | 2023-06-24T07:43:14.144910 | 2021-04-22T15:31:50 | 2021-04-22T15:31:50 | 360,562,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for juaphe project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"mosesnoel02@gmail.com"
] | mosesnoel02@gmail.com |
b44f9382471ab49f9894512005ab77ff77173ff7 | 81d955c3ac886e690ceb01026ed769b1784dbef9 | /purity_fb/purity_fb_1dot8/models/subnet.py | d5f081f13b76b165b6e17f82183ae01b07055c45 | [
"Apache-2.0"
] | permissive | etsangsplk/purity_fb_python_client | bc525ef1a18f6a79c1536cb4519a7efd58d09d89 | 0807a0fa2eab273bc08f73266d9cda9fa33b37bd | refs/heads/master | 2020-06-03T05:49:03.015147 | 2019-05-16T06:11:40 | 2019-05-16T06:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,340 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API (1.0 - 1.8), developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.8
Contact: info@purestorage.com
... | [
"azaria.zornberg@purestorage.com"
] | azaria.zornberg@purestorage.com |
15e6250031174b4e039ad1e59a431cd4543e313f | 25e481ef7fba79285f4c8a7fa2e81c8b2b7f9cce | /saleor/product/urls.py | 792a3322de14affc3b6b5778fce32134a08c3d1e | [
"BSD-2-Clause"
] | permissive | arslanahmd/Ghar-Tameer | 59e60def48a14f9452dfefe2edf30e362878191d | 72401b2fc0079e6d52e844afd8fcf57122ad319f | refs/heads/master | 2023-01-31T04:08:26.288332 | 2018-06-07T18:02:01 | 2018-06-07T18:02:01 | 136,231,127 | 0 | 0 | NOASSERTION | 2023-01-11T22:21:42 | 2018-06-05T20:28:11 | Python | UTF-8 | Python | false | false | 423 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^(?P<slug>[a-z0-9-_]+?)-(?P<product_id>[0-9]+)/$',
views.product_details, name='details'),
url(r'^category/(?P<path>[a-z0-9-_/]+?)-(?P<category_id>[0-9]+)/$',
views.category_index, name='category'),
url(r'(?P<slug>... | [
"arslanahmad085@gmail.com"
] | arslanahmad085@gmail.com |
65784261a12349ca676e73e89cd86d05c20a0261 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/N/NicolaHughes/oecd_international_ngo_identifiers.py | 9f0a72e55aef8b2b9a0796f890d51a673f3013f3 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import scraperwiki
from bs4 import BeautifulSoup
url = "http://old.iatistandard.org/codelists/organisation_identifier_ingo"
html = scraperwiki.scrape(url)
soup = BeautifulSoup(html)
table = soup.find("tbody")
for td in table.find_all("tr"):
code = td.find("td", "column-1").get_text()
country = td.find("td", ... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
2d2260b9fe36da45dcd750354ca6cccbdf07ab61 | d49f90aac10fe247d3dab988860c47fc4cb6a38e | /test_coverage_site/wsgi.py | 874b39ec3bf368563be03bcda8346571b0c4c8d2 | [] | no_license | slobdell/test-coverage-site | ae12220c8302f683f5513372920d471897b3c07f | 95c9caff146061f602a1283e3bf87486daf9a8c6 | refs/heads/master | 2021-01-16T19:20:47.312548 | 2015-05-04T23:41:40 | 2015-05-04T23:41:40 | 34,973,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | """
WSGI config for test_coverage_site 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.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_coverage_site.settings... | [
"slobdell@hearsaycorp.com"
] | slobdell@hearsaycorp.com |
376eab9712e3e1c83a72a34acad7e20b5e24faf4 | c17ecfd1294c1d0834c96cf35ae76feb2bba75a6 | /detectron2/utils/visualizer.py | 7b9e774780e02b03f79cf953048b790a94e2b1c4 | [
"Apache-2.0"
] | permissive | Arithmeticjia/detectron2 | 6ccb116d9b84a6d98dc75cfb53593d3cec2c2057 | 06b14b4eae81c23acdb18e3e18c1a1fbc5dbb26c | refs/heads/master | 2020-08-16T19:17:28.933746 | 2019-10-16T12:20:58 | 2019-10-16T12:20:58 | 215,541,226 | 0 | 0 | Apache-2.0 | 2019-10-16T12:20:24 | 2019-10-16T12:20:23 | null | UTF-8 | Python | false | false | 38,794 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import colorsys
import numpy as np
from enum import Enum, unique
import cv2
import matplotlib as mpl
import matplotlib.colors as mplc
import matplotlib.figure as mplfigure
import pycocotools.mask as mask_util
import torch
from matplotlib.backends.ba... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7fea7b0f0a2dc5011bde9c1504e953d155324690 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/oauthlib/oauthlib/oauth2/rfc6749/grant_types/base.pyi | ba8171b0111fc0f9461d642587b7be5a8fd91df1 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,127 | pyi | from typing import Any
log: Any
class ValidatorsContainer:
pre_auth: Any
post_auth: Any
pre_token: Any
post_token: Any
def __init__(self, post_auth, post_token, pre_auth, pre_token) -> None: ...
@property
def all_pre(self): ...
@property
def all_post(self): ...
class GrantTypeBase... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
6eb33391091d6da8cb07157f81214fd33aad700a | 1424812c4f211d3d5e356e8b3889a689162062f3 | /arcade/python/65_calc_bonuses.py | f7049b69442fdc3417020fec21d30b0c0719e3bf | [] | no_license | nazomeku/codefights | cb7d3c40be0809695ec524a87c88dbebcf5b47bc | b23f6816f9b5b0720feac1c49c31163923e0a554 | refs/heads/master | 2021-01-22T12:49:35.905165 | 2017-11-21T19:03:37 | 2017-11-21T19:03:37 | 102,357,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | """Given the bonuses the player got, your task is to return his final
score for the level."""
def calc_bonuses(bonuses, n):
it = (x for x in bonuses)
res = 0
try:
for _ in range(n):
res += next(it)
except StopIteration:
res = 0
return res
| [
"cols.nazo@gmail.com"
] | cols.nazo@gmail.com |
a68323c8d34f11fe9205e298a3142449f9f35bd1 | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/scipy-master/benchmarks/benchmarks/go_benchmark_functions/go_funcs_Z.py | 948d35ef731d2bb98ed71725b8de543e3329add0 | [
"MIT"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,799 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
from numpy import abs, sum, sign, arange
from .go_benchmark import Benchmark
class Zacharov(Benchmark):
r"""
Zacharov objective function.
This class defines the Zacharov [1]_ global optimization problem. This
i... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
3b2216beb520976143f093e59125545a5bcd1e06 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_045/ch86_2019_06_06_19_48_22_074445.py | cf67642da9ca8f73290bdf4b1207220f46923a28 | [] | 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 | 122 | py | with open('dados.csv','r') as arquivo:
t=arquivo.replace(',','')
with open('dados.tsv','a') as arquivo:
arquivo=t | [
"you@example.com"
] | you@example.com |
9324e5dad5c5d41d9712524e5664e5b589a4683a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02735/s229136257.py | 7525f09b2d7be32d9b898770a7896fc24d111e97 | [] | 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 | 696 | py | H,W = map(int,input().split())
s = []
for i in range(H):
S = list(input())
s.append(S)
dis = [[float("inf")] * W for i in range(H)]
if s[0][0] == "#":
dis[0][0] = 1
else:
dis[0][0] = 0
for i in range(H):
for j in range(W):
if i != H-1:
if s[i][j] == "." and s[i+1][j] == ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9413a725aad2bb388d989390be97a3ad761e3fa6 | be1545a48c113cc497340a9d68ec05a9e8eedbe1 | /controller/access/models.py | 19cbb8274d16ffe408e5f9e7fb065812c1aa491b | [
"Apache-2.0"
] | permissive | helena-project/beetle | 318d82691391247c6542eb8067b094907cce0cde | 6f07d864c38ea6aed962263eca20ecf8436cfb4e | refs/heads/master | 2021-01-18T04:00:55.208424 | 2017-02-04T16:30:25 | 2017-02-04T16:30:25 | 59,785,058 | 16 | 2 | null | 2016-07-09T06:15:43 | 2016-05-26T21:41:51 | C++ | UTF-8 | Python | false | false | 9,348 | py | from __future__ import unicode_literals
from datetime import timedelta
from dateutil.relativedelta import relativedelta
from django.db import models
from django.utils import timezone
from polymorphic.models import PolymorphicModel
from passlib.apps import django_context as pwd_context
from main.constants import NUM... | [
"james.hong@cs.stanford.edu"
] | james.hong@cs.stanford.edu |
e7c530faea76708714903acd3aee7445bd19cd73 | 6bf336bc8d6ba061e0c707bdd8595368dee4d27b | /algorithms/implementation/chocolate_feast.py | 167c71bac7ce61c4730dfdc418b5534bdd26088e | [
"MIT"
] | permissive | avenet/hackerrank | aa536214dbccf5a822a30ea226e1dbaac9afb243 | e522030a023af4ff50d5fc64bd3eba30144e006c | refs/heads/master | 2021-01-01T20:15:06.647873 | 2017-11-24T23:59:19 | 2017-11-24T23:59:19 | 98,801,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | n = int(input())
for i in range(n):
money, item_price, exchange_wrapper = [int(x) for x in input().split(' ')]
bought = money // item_price
answer = bought
wrappers = bought
while wrappers >= exchange_wrapper:
extra_items = wrappers // exchange_wrapper
answer += extra_items
... | [
"andy.venet@gmail.com"
] | andy.venet@gmail.com |
f9f5c7d65ca52302442ac3af9842e3e0c2658298 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4042/261004042.py | 270e503879fc4b824982174d8abaee91802da7e1 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,478 | py | from bots.botsconfig import *
from records004042 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'ME',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'TRN', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
2e93b69a71388f075c9082fa5e2e275073673eb8 | edeeb2fa2ece9f2f19a792bedbf842319e90e417 | /model/model.py | d77c10ee6a5a18179c282acd64d92cee86ba17fa | [] | no_license | ywl0911/TextCnn | 9461023cba84b24cf46d79c42720822baebe0c4c | 15af406ba05c71f9d18929ecd6d958216a1b53c2 | refs/heads/master | 2021-02-06T07:14:55.221200 | 2018-12-15T00:30:09 | 2018-12-15T00:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | from __future__ import print_function
from model.text_cnn import TextCnn
import tensorflow as tf
from tensorflow.contrib import layers
import json
import os
path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
config_path = os.path.join(path, 'config')
params_path = os.path.join(config_path, 'kaggle_mo... | [
"1318394945@qq.com"
] | 1318394945@qq.com |
ef769839a59990c6826e9653ae4644fea223c00c | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/protocol/spanning_tree/pvst/timer_config/__init__.py | 8ed3d677f21d649bba233810117b6f647a2c7bc7 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,366 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
024c1ce5c3908c2e84353f3e0600a60e88bec43e | 59aed92059824381f34e1585e9600878d91cadb0 | /supervised_learning/0x0D-RNNs/5-bi_forward.py | 3bea5f82bfbcd5608895cf8bd8aabce38d00fccf | [] | no_license | jdarangop/holbertonschool-machine_learning | 3509eaa6d191f6887be9bbbb5a1df565b0b51cc8 | 75274394adb52d740f6cd4000cc00bbde44b9b72 | refs/heads/master | 2021-05-17T04:51:44.675655 | 2020-12-02T02:52:31 | 2020-12-02T02:52:31 | 250,633,089 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | #!/usr/bin/env python3
""" Bidirectional Cell Forward """
import numpy as np
class BidirectionalCell(object):
""" BidirectionalCell class. """
def __init__(self, i, h, o):
""" Initializer.
Args:
i: the dimensionality of the data.
h: the dimensionality of th... | [
"juandiegoap33@gmail.com"
] | juandiegoap33@gmail.com |
de4c00c73081f0dda8a034561dd5cb691964b608 | 38515045dbc990087c34a6847c6905020b5849b7 | /micro-benchmark/snippets/lists/slice/main.py | a6f22430847b4ca7ea8f2bb7a928c62f6c6cd7f8 | [
"Apache-2.0"
] | permissive | Tim-eyes/PyCG | 9dbb7867e9f6037869ec6bf1218397d986638836 | ef121c7ffb5ee06f4952fbe209b326bb7bf12647 | refs/heads/master | 2023-08-30T07:54:40.761229 | 2021-07-25T13:08:46 | 2021-07-25T13:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | def func1():
pass
def func2():
pass
def func3():
pass
ls = [func1, func2, func3]
ls2 = ls[1:3]
ls2[0]()
| [
"vitsalis@gmail.com"
] | vitsalis@gmail.com |
579bff385dfa8e145f010cd9a5919a7d939ee332 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/ShopOrderModifyResult.py | 9082302886be32ebbbbaf87862cab8d4893c57bb | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,321 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class ShopOrderModifyResult(object):
def __init__(self):
self._ext_infos = None
self._result_code = None
self._shop_id = None
self._store_id = None
@property
de... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
78336ba51d32b62181a4ce2bb2a6dbf2229c8c53 | dde7259b842de982208caff054d9c9cb3c18c7be | /debug .rock.py | 71e80dfc08454845c7b70946650d47577162cdad | [] | no_license | pooja-pichad/more_excersise | d1137ab4b757e68bf8109405d7a8cf47e9a0bbfd | f9f94b04ad533a5a5ca983d33775b94af8bd146e | refs/heads/main | 2023-06-18T22:21:03.690142 | 2021-07-20T06:56:34 | 2021-07-20T06:56:34 | 387,700,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | from random import randint
def win():
print ('You win!')
def lose():
print ('You lose!')
while True:
player_choice = input('What do you pick? (rock, paper, scissors)')
player_choice.strip()
random_move = randint(0, 2)
moves = ['rock', 'paper', 'scissors']
computer_choice = moves[random_mo... | [
"noreply@github.com"
] | pooja-pichad.noreply@github.com |
b1ae0c007b11135e8f16664aa1a43c6d13c5c89c | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/9276216/snippet.py | 27e3f6d7e286538a706d09b067ed2b79a247d7b7 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,494 | py | #!/usr/bin/python
''' Python command line argument example using argparse module
Example output:
./parser.py --server=pyserver --port=8080,443,25,22,21 --keyword=pyisgood
Server name: [ pyserver ]
Port: [ 8080 ]
Port: [ 443 ]
Port: [ 25 ]
Port: [ 22 ]
Port: [ 21 ]
Keyword assigned: [ pyisgood ]
'''
import argpa... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
746f58db6baa85c1093e025491da54c87739e1c6 | dd6c5f31a2a14f610bd9ae7ebffa37586cfdf6fa | /jingfen_app/manage.py | 7a8b7fb2debbfdb45fa14d397a32c43df9c8696f | [] | no_license | wean/jingfen | 534945e8fe12686e25a3fd9788b29bca2ba49be1 | ed9cc88f57b83c5c77ff85fab58ddf5094f7793f | refs/heads/master | 2020-04-05T07:11:46.721676 | 2018-04-10T05:21:33 | 2018-04-10T05:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #! /usr/bin/python
# -*- coding:utf-8 -*-
# @Time : 2018/3/12 下午9:21
# from jingfen.jingfen_app import create_app, d
# b
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'hello world!'
pass
if __name__ == '__main__':
app.run(debug=True)
| [
"448290415@qq.com"
] | 448290415@qq.com |
6df0cb04a29969a2e6fb06c94560c3eb5217a2e8 | 5e22728a45dc131b5abcdde3c10928557177898b | /tests/nb_test.py | 0634d44b1e6eb8abdd7c5d0d810154d9280e95fc | [
"MIT"
] | permissive | microsoft/msticnb | 74fc9636964be68900702ee0c85b0c992f0779ad | cefc4ee5a22285d33e7abd91371c617fe42f8129 | refs/heads/main | 2023-06-30T02:00:29.253130 | 2023-03-16T20:14:27 | 2023-03-16T20:14:27 | 250,417,186 | 25 | 11 | MIT | 2023-03-16T20:14:28 | 2020-03-27T02:00:17 | Python | UTF-8 | Python | false | false | 3,942 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Noteboo... | [
"ianhelle@microsoft.com"
] | ianhelle@microsoft.com |
41fc9b8079910692b8adde95dc4604182ba9dbc7 | 58ade65dffc7cbe103d93d7c769096a20d9f9815 | /src/smach_based_introspection_framework/offline_part/anomaly_classification_feature_selection/msg_filters_with_scaling_and_clip.py | a375c305a1c8e01a004943519b8b7a4c2b4adc1a | [
"BSD-3-Clause"
] | permissive | birlrobotics/smach_based_introspection_framework | 2cff69ecec030a5b5046dea99f9e15105f52361b | f16742339cddfc86effba4dbf6e5062304704b89 | refs/heads/master | 2021-05-09T12:02:26.946473 | 2019-05-29T02:46:47 | 2019-05-29T02:46:47 | 119,001,821 | 7 | 1 | null | 2018-07-05T04:58:40 | 2018-01-26T03:37:58 | Python | UTF-8 | Python | false | false | 634 | py | from rostopics_to_timeseries import TopicMsgFilter
import numpy as np
class TactileStaticStdScaleClipMaxFilter(TopicMsgFilter):
def __init__(self):
super(TactileStaticStdScaleClipMaxFilter, self).__init__()
def convert(self, msg):
ret = np.array([
np.std(msg.taxels[0].values),
... | [
"sk.law.lsq@gmail.com"
] | sk.law.lsq@gmail.com |
724e03976eb11b0ba1df23167f2f294516dc6dad | a6719f4815ff41d3a1f09e9a63a64c4582d03702 | /error_handling/try-except.py | 881cf6cfddef1e2ef9f597573159206f16b57db8 | [
"MIT"
] | permissive | thanh-vt/python-basic-programming | 8136007b8435dae6339ae33015fe536e21b19d1d | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | refs/heads/main | 2023-01-30T12:57:36.819687 | 2020-12-13T17:27:05 | 2020-12-13T17:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | try:
print(x)
except NameError:
print("Variable x is not defined")
except Exception as ex:
print(ex.__cause__)
print("An exception occurred")
try:
print("Hello")
except Exception as ex:
print(ex)
print("Something went wrong")
else:
print("Nothing went wrong")
| [
"thanhvt@vissoft.vn"
] | thanhvt@vissoft.vn |
5ed01a03bd11edf9b7d88470801ecb14f19ac080 | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /trunk/repy/tests/ut_repytests_veryslownetsend-testsend.py | 29cb9e30a07108c0c3fa576534605471fbacbae1 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 331 | py | #pragma repy restrictions.veryslownetsend
def foo(ip,port,mess, ch):
stopcomm(ch)
exitall()
if callfunc == 'initialize':
ip = getmyip()
recvmess(ip,<messport>,foo)
sleep(.1)
sendmess(ip,<messport>,'hi')
sendmess(ip,<messport>,'Hello, this is too long of a message to be received in such a short time')
... | [
"USER@DOMAIN"
] | USER@DOMAIN |
715954a2482e5085e098e307bb78aba19ebfadb5 | 38797130eaa7f4eb24ba54d5785820b6d0c40672 | /axsemantics/resources.py | 92f6310fbb3dbc4e9711da515f493a71b26d0e80 | [
"MIT"
] | permissive | niklaskks/axsemantics-python | 92cf438fc3250da68e605efd782935109e84994c | 5f80ec8e91be040a7fc409b44f321f666a351396 | refs/heads/master | 2021-01-19T18:01:02.925525 | 2016-05-23T09:15:36 | 2016-05-23T09:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | from axsemantics import constants
from axsemantics.base import (
APIResource,
ListResource,
)
from axsemantics.mixins import(
ContentGenerationMixin,
CreateableMixin,
DeleteableMixin,
ListableMixin,
UpdateableMixin,
)
from axsemantics.utils import create_object
class ThingList(ListResource... | [
"rixx@cutebit.de"
] | rixx@cutebit.de |
f7a79c683a39a157ca334486bf2720da61880c5f | f0fa96d39a66c3ddaae4266442a13ec3feb7a462 | /binary_search/ceil_ele_sorted_arr.py | b38b7525c50fb69b6e0caad422b862b18198fcdd | [] | no_license | ashishgupta2014/problem_solving_practices | 14d587e98d9996a95efe822335ca4baccb39b1a1 | bc4f4b07e1e33273010e34428e0c31d2d6656c14 | refs/heads/master | 2023-04-26T03:47:40.766508 | 2021-06-07T04:55:52 | 2021-06-07T04:55:52 | 298,063,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | def binay_search_itr(arr, x):
"""
https://www.geeksforgeeks.org/ceiling-in-a-sorted-array/
Given a sorted array and a value x, the ceiling of x is the smallest element in array greater than or equal to x,
and the floor is the greatest element smaller than or equal to x. Assume than the array is sorted ... | [
"ashish.2007g@gmail.com"
] | ashish.2007g@gmail.com |
f2db1d747f336b5f33ca131fd532125e465c57d1 | 12f83344cdfe561db39ad9106dbf263ccd919f7e | /Projects/miami_metro/social_discovery/pipeline_constants.py | f6e86c7a8ce6044eaf24b5533b5971606e998a59 | [] | no_license | TopWebGhost/Angular-Influencer | ebcd28f83a77a92d240c41f11d82927b98bcea9e | 2f15c4ddd8bbb112c407d222ae48746b626c674f | refs/heads/master | 2021-01-19T10:45:47.039673 | 2016-12-05T01:59:26 | 2016-12-05T01:59:26 | 82,214,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | # QUEUES for Pipeline modules categories
CREATORS_QUEUE_NAME = 'profiles_pipeline_creators'
CLASSIFIERS_QUEUE_NAME = 'profiles_pipeline_classifiers'
PROCESSORS_QUEUE_NAME = 'profiles_pipeline_processors'
UPGRADERS_QUEUE_NAME = 'profiles_pipeline_upgraders'
CONNECT_PROFILES_QUEUE_NAME = 'profiles_pipeline_connect_to_inf... | [
"ivanfridrich1981129@yandex.com"
] | ivanfridrich1981129@yandex.com |
63c74473adda43589e07e31deb7538094f80aea3 | 615e9d142587c965d4f593ce68cae1811824026d | /22-functions/javoblar-22-02.py | 5232d042489e863a3b22af62d546f0f804cd2c91 | [] | no_license | XurshidbekDavronov/python-darslar | 0100bb8ea61c355949e81d1d3f3b923befeb80c9 | 4fcf9a3e0c2facdedaed9b53ef806cdc0095fd9d | refs/heads/main | 2023-06-21T03:33:19.509225 | 2021-07-13T13:04:56 | 2021-07-13T13:04:56 | 377,176,205 | 1 | 0 | null | 2021-06-15T13:40:33 | 2021-06-15T13:40:32 | null | UTF-8 | Python | false | false | 324 | py | """
24/12/2020
Dasturlash asoslari
#22-dars: *args va **kwargs
Muallif: Anvar Narzullaev
Web sahifa: https://python.sariq.dev
"""
def talaba_info(ism, familiya, **kwargs):
kwargs['ism']=ism
kwargs['familiya']=familiya
return kwargs
talaba = talaba_info('olim','olimov',tyil=1995,fakultet='IT',yonalish='... | [
"anvarbek@gmail.com"
] | anvarbek@gmail.com |
739ba7fb3598067a85c67fefdb82248cd9e6b11f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02410/s505213341.py | 11027f146f2932df5fc0f7919c70fcbe05860869 | [] | 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 | 207 | py | n,m=map(int,input().split())
A=[list(map(int,input().split())) for i in range(n)]
B=[int(input())for i in range(m)]
for i in range(n):
kotae=0
for j in range(m):
kotae+=A[i][j]*B[j]
print(kotae)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a906220bf4be30eeb1f4fd9ee66dd0cae473407c | 03ff89c04cd325d3f7b4266c59e39011f5b466ba | /ogs5_transectplot/venv/lib/python2.7/site-packages/pkg_resources/_vendor/pyparsing.py | d95fde26cc37f807aebc37a870c6b56dde666ca6 | [] | no_license | timohouben/python_scripts | dabd35a7778fc459beddd5286141d405af32be1c | 15c622645725560c6450cd31ff194aa95394bfc9 | refs/heads/master | 2021-02-03T21:14:29.916525 | 2020-02-27T15:02:04 | 2020-02-27T15:02:04 | 243,537,745 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236,265 | py | # module pyparsing.py
#
# Copyright (c) 2003-2016 Paul T. McGuire
#
# 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 u... | [
"timo.houben@ufz.de"
] | timo.houben@ufz.de |
2426d938b5176cd170534198a1082ae7f41d8643 | 0e4860fecfdd34a3255003cc8c8df086c14083dd | /python/source_code/source_code_of_lp3thw/ex41.py | da1766ed9d59b79276ec183aa6177f3cb3732590 | [] | no_license | anzhihe/learning | 503ab9a58f280227011da5eaa4b14b46c678e6f3 | 66f7f801e1395207778484e1543ea26309d4b354 | refs/heads/master | 2023-08-08T11:42:11.983677 | 2023-07-29T09:19:47 | 2023-07-29T09:19:47 | 188,768,643 | 1,443 | 617 | null | 2023-08-24T02:10:34 | 2019-05-27T04:04:10 | Python | UTF-8 | Python | false | false | 6,262 | py | '''
# 关键词 训练:
class :告诉python你要做个新型式的东西出来。
object:有两层意思:第一,事物的最基础的类型;第二,any instance(建议、情况?) of thing.
instance:建议、情况。当你告诉 python 去创作一个 class 的时候,你得到的东西。
def :你在 class 里你定义了一个函数。
self :在 class 里的函数,self是一个为 instance、object可以被访问的一个变量。
inheritance :继承。这个概念是说一个 class 可以继承另一个 class 的特质,就像你和你的父母一样。
composition :合成。这个概... | [
"anzhihe1218@gmail.com"
] | anzhihe1218@gmail.com |
c292d4351f077c622810d312a769321ec9aaf9cc | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_size256/pyr_0s/bce_s001_tv_s0p1_L6/step10_a.py | c878c87ed7d82d627aa11997e884698d36ad3924 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,896 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
d27dace65bdd94863a402b1a7e7a1fb8e6f2467c | 48122a5eca895dd926e1568e143babb6cfbef3a8 | /pyunit_address/__init__.py | d8c1e5f1e58e91c8350b9c9578bb031ad3b4be4d | [] | no_license | pyunits/pyunit-address | 5994b640cf837e5167bc1a97d17d83d440c6f2fd | f754285feaaf136c802aaf4b8b554783e50262fb | refs/heads/master | 2023-04-01T21:32:47.223824 | 2021-03-31T09:54:40 | 2021-03-31T09:54:40 | 242,957,473 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2020/2/18 15:23
# @Author: Jtyoui@qq.com
from .address import Address # 地址初始化
from .addressType import AddressType # 得到地址类型
from .correctionAddress import correct_address # 纠错地址
from .findAddress import find_address # 查询地址
from .supplementAddress import supple... | [
"jtyoui@qq.com"
] | jtyoui@qq.com |
3b4419a56b551d58042ccc953eecbe24d80c9d9a | c4a3eeabe660e5d6b42f704d0325a755331ab3c5 | /hyperion/setup_hyperion_old.py | 8a8e354ec45d8ae1005859b0afad19f86c6726c6 | [] | no_license | yaolun/misc | dfcfde2ac4a6429201644e1354912d3a064f9524 | 049b68ce826ddf638cec9a3b995d9ee84bf6075a | refs/heads/master | 2021-01-21T23:54:08.953071 | 2018-06-02T19:46:18 | 2018-06-02T19:46:18 | 26,666,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,602 | py | def setup_model(outdir,record_dir,outname,params,dust_file,tsc=True,idl=False,plot=False,\
low_res=True,flat=True,scale=1,radmc=False,mono=False,record=True,dstar=178.,\
aperture=None,dyn_cav=False,fix_params=None,alma=False,power=2,better_im=False,ellipsoid=False,\
TSC_d... | [
"allenya@gmail.com"
] | allenya@gmail.com |
2382fa20e7fc0ba8a0cc593ed64f1cbe10471611 | 737c11da973590b7ae70845128caa7ca2c03be43 | /acorn/test/AcornTest/AcornUtil.py | cf04be8f05831ac48fb523f7a7565bc580cb0ff3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | hobinyoon/apache-cassandra-3.0.5-src | c04a0309eb52a8517c74a3526680ba9d68592fd1 | fc6710f9ce117e22286b9f42955b3e7632844160 | refs/heads/master | 2020-12-21T00:02:50.636174 | 2017-05-19T14:10:27 | 2017-05-19T14:10:27 | 57,812,287 | 0 | 3 | null | 2017-05-19T14:10:28 | 2016-05-01T20:41:06 | Java | UTF-8 | Python | false | false | 1,810 | py | import os
import pprint
import sys
sys.path.insert(0, "/home/ubuntu/work/acorn-tools/util/python")
import Cons
import Util
sys.path.insert(0, "/home/ubuntu/work/acorn-tools/ec2")
import DescInst
def GenHostfiles():
dn = "%s/.run" % os.path.dirname(os.path.realpath(__file__))
fn_pssh_hn = "%s/pssh-hostnames" % dn
... | [
"hobinyoon@gmail.com"
] | hobinyoon@gmail.com |
cd9ea9f6995583d04647f40306bbc383cf0ce446 | ff3c4368081cd83b4fc30315d4ef2228d4682406 | /pipeline/sam-calc-refcov-cmp.py | 8efada185432d49997791096dc7dffd4d6cd2ad2 | [
"BSD-3-Clause"
] | permissive | dib-lab/2014-streaming | 8489aaa8ab86b409865dd1cc82f6dd68397303e3 | 4873ebfb87a7a95efdb1fbd4607ffdf76e750bbb | refs/heads/master | 2021-01-24T21:26:41.208661 | 2016-10-25T18:08:05 | 2016-10-25T18:08:05 | 28,547,623 | 1 | 1 | null | 2016-10-25T18:08:05 | 2014-12-27T22:14:19 | Jupyter Notebook | UTF-8 | Python | false | false | 2,711 | py | #! /usr/bin/env python
import sys
import argparse
import screed
import math
def ignore_at(iter):
for item in iter:
if item.startswith('@'):
continue
yield item
def main():
parser = argparse.ArgumentParser()
parser.add_argument('genome')
parser.add_argument('samfile1')
p... | [
"titus@idyll.org"
] | titus@idyll.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.