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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb76168acd060f61720726e831f2a0a94fe00c53 | 260499100ef43361cbf2815e2c0eb5288755862c | /Intro/07_almostIncreasingSequence.py | 873528d2d7f438a47ea824f35b3e78211ab9d83a | [] | no_license | Cheng0639/CodeFights_Python | c4640a3cfb6be89049fd3d0d04702b06071b4e39 | 6b536b851016510ee79359e33da662de21cb3d3a | refs/heads/master | 2021-05-09T09:54:57.762593 | 2018-07-24T14:53:15 | 2018-07-24T14:53:15 | 109,243,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | def almostIncreasingSequence(sequence):
count_decreasing_sq = 0
for i in range(len(sequence) - 1):
if sequence[i + 1] <= sequence[i]:
count_decreasing_sq += 1
if (i >= 1) and (sequence[i + 1] <= sequence[i - 1]):
if (len(sequence) - 2 > i) and (sequence[i + 2] <= ... | [
"dongdon0639@gmail.com"
] | dongdon0639@gmail.com |
8c754a532e50d2046cfeb41f5c5df7af538ee122 | f854ef28002a3931a8d8b8d0b9cc691b8a449db3 | /home-assistant/custom_components/browser_mod/binary_sensor.py | 16333806a3baa1bbffe7e5797049573fb21ccf12 | [
"MIT"
] | permissive | Burningstone91/smart-home-setup | 030cdaa13d05fb19a82b28ea455614d3276522ab | c2f34cc8b8243bc6ce620b3f03e3e44ff28150ca | refs/heads/master | 2023-02-23T06:25:04.476657 | 2022-02-26T16:05:02 | 2022-02-26T16:05:02 | 239,319,680 | 421 | 36 | MIT | 2023-02-08T01:16:54 | 2020-02-09T14:39:06 | JavaScript | UTF-8 | Python | false | false | 1,646 | py | from datetime import datetime
from homeassistant.const import (
STATE_UNAVAILABLE,
ATTR_BATTERY_CHARGING,
ATTR_BATTERY_LEVEL,
STATE_ON,
STATE_OFF,
)
from homeassistant.components.binary_sensor import DEVICE_CLASS_MOTION
from .helpers import setup_platform, BrowserModEntity
PLATFORM = "binary_sens... | [
"dimitri.steiner.gl@gmail.com"
] | dimitri.steiner.gl@gmail.com |
9d338275db0bb2d0043d091a349c50f9ffa5ffa9 | e9c11f173507a06b40523714591cf1c443efcd89 | /autoencode_project/vae.py | aea6bebb4650219215bdaca9cac090ed3b326ee3 | [] | no_license | IanEisenberg/CBMM | 55100773b157981122aa261d70186c42ca04b685 | 6a1e2eda7308b1334187036ef37983b940b5d186 | refs/heads/master | 2021-01-19T07:40:30.735971 | 2017-08-31T01:16:32 | 2017-08-31T01:16:32 | 100,642,436 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,793 | py |
from keras.layers import Input, Dense, Lambda, Layer
from keras.models import Model
from keras import backend as K
from keras import metrics
import numpy as np
from os import path
import pandas as pd
from scipy.stats import norm
import seaborn as sns
from sklearn.preprocessing import scale
# load data
data_loc = pat... | [
"ianeisenberg90@gmail.com"
] | ianeisenberg90@gmail.com |
3c1cb2eabb7a69bd4c6859d78945c5be3c53996c | 15b71fe940708d3c04581bfb012c8d61705d6108 | /compiler/src/thryft/compiler/parse_exception.py | 18fec9277995932a528ee0f15e5e57fdd1b8d97c | [
"BSD-2-Clause"
] | permissive | adam-singer/thryft | 2f426c1751c02f95c4785f499065b28b853df42d | 26cfd2148fa408aa5da8ac93bbe7b8722a0dfd8e | refs/heads/master | 2021-05-27T00:42:19.358530 | 2014-07-27T19:09:34 | 2014-07-27T19:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | #-------------------------------------------------------------------------------
# Copyright (c) 2013, Minor Gordon
# 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 s... | [
"github@minorgordon.net"
] | github@minorgordon.net |
78851915cd48b3fa3a3b346632c40c8be0e4232d | 51f1a5f544fd00c7449edeb28538dd99d4b5a1c2 | /spyderpro/test/insert_scenece_history_data.py | 5e97225b102be51df53dd91c6f3390ee4c72f6f0 | [] | no_license | LianZS/spyderpro | aab6f7f5c88c87f683f6cdacd19629d11da74009 | 5e34873cd13950dd3b5dc6341aad144522af0eae | refs/heads/master | 2020-05-31T10:38:30.143573 | 2020-02-16T02:43:43 | 2020-02-16T02:43:43 | 190,239,345 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | import csv
import os
import pymysql
from threading import Thread, Semaphore
user = 'root'
password = 'lzs87724158'
host = "localhost"
port = 3306
scencefilepath = os.getcwd()
city_file_path = os.getcwd()
database = 'digitalsmart'
db = pymysql.connect(host=host, user=user, password=password, database=database,
... | [
"2214057556@qq.com"
] | 2214057556@qq.com |
ff9fc9c3b9bbd3652a26b7aa1af092f08760aecf | 4a83925d00f26b57db9a77553fbacf30735d1171 | /open/core/betterself/tests/views/test_measurement_views.py | 9bc05ae6117eed20260d67dd63e7475525afa9ea | [
"MIT"
] | permissive | mmangione/open | 581f622a6c2fe465fc7bd5cd0dc43a2a5f098248 | 5163e47ea6ba6160bf12a3ebe18bc76d078ea62c | refs/heads/master | 2021-07-15T09:34:14.355559 | 2020-10-14T09:08:14 | 2020-10-14T09:08:14 | 217,483,795 | 0 | 0 | MIT | 2020-10-14T09:08:16 | 2019-10-25T08:05:58 | Python | UTF-8 | Python | false | false | 945 | py | from django.contrib.auth import get_user_model
from test_plus import TestCase
from open.core.betterself.constants import BetterSelfResourceConstants
from open.core.betterself.factories import MeasurementFactory
from open.core.betterself.models.measurement import Measurement
from open.core.betterself.tests.mixins.resou... | [
"jeffshek@gmail.com"
] | jeffshek@gmail.com |
919842e59adaa424c81909c1e5e0a91ed3666ca8 | a6bf211d2b31c2d7fdb927924d77ac00f1fb4d5f | /scripts/chart-total-checks-all.py | ad25b40f96661a760cd0c1901cb00d14c3cd0c9a | [
"MIT"
] | permissive | tzor1234/nics-firearm-background-checks | f96770c4d7e4ac6eed16ad2dff94717f51c8611c | 9e752e891124de16c2fd911050f853498c577260 | refs/heads/master | 2023-09-05T21:42:49.096106 | 2021-11-01T19:25:43 | 2021-11-01T19:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/env python
import sys, os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import StrMethodFormatter
import seaborn as sb
sb.set()
checks = (
pd.read_csv(sys.stdin)
.assign(
month_dt = lambda df: pd.to_datetime(df["month"], format = "%Y-%m")
)... | [
"jsvine@gmail.com"
] | jsvine@gmail.com |
29800f47bd874f8ef18582517b30b1a222c6d4f7 | aa4aa51465d79e0447cbe22281f0402ca95bdaa2 | /python/project/gibbs.py | 6332c91e98afb6236718f6b588e65561703cc60e | [] | no_license | zuozuo12/usualProject | 2ca06bb7a1ff6f99343f1997053ba8d5a48e00a7 | 335bcef5d76d6cf0c84dd3209176089b3b07fbba | refs/heads/master | 2020-11-27T17:02:33.252884 | 2019-10-22T06:46:32 | 2019-10-22T06:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | from scipy.stats import norm
import matplotlib.pyplot as plt
import random
import math
def gibbs(N=500, thin=10):
pi = [];
x = 0
y = 0
for i in range(N):
for j in range(thin):
x = norm.rvs(loc=y, scale=2, size=1, random_state=None)
y = norm.rvs(loc=x, scale=3, size=1, ra... | [
"llfwyyx@163.com"
] | llfwyyx@163.com |
9430c9ef1326c8401d3de54c76f50e4741fbcd27 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_083/ch11_2020_03_18_03_05_56_266683.py | daa8a1dbf71d778dd8294f4e1e22a98e871fce67 | [] | 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 | 176 | py | import math
def distancia_euclidiana(x1,x2,y1,y2):
return (((x2-x1)**2) + ((y2-y1)**2))**1/2
a=2
b=3
c=4
d=5
e=((3-2)**2) + (5-4)**2
raiz= math.sqrt(e)
print(raiz) | [
"you@example.com"
] | you@example.com |
327458930aa320ef01199a11641fa16213635e1d | f1fcd165cd8444310ce5d201e481e3982dc28110 | /medium/1901/190127/jang.py | c9913b842429b52e94d07f0ea82989fad994fc40 | [] | no_license | JoosJuliet/algoStudy | 310a71a0fcc8f3c23281544cf3458ed999040176 | 3fc1e850f9d8b9f290f41fddd59ff403fbfffa05 | refs/heads/master | 2020-04-20T19:26:25.485875 | 2019-03-27T22:37:27 | 2019-03-27T22:37:27 | 169,049,593 | 1 | 0 | null | 2019-02-04T08:43:07 | 2019-02-04T08:43:07 | null | UTF-8 | Python | false | false | 592 | py | n = int(input())
arr = list(map(int, input().split()))
enum_arr = sorted(enumerate(arr, start=1), key=lambda t: t[1])
frm = []
to = []
for i in range(1, len(enum_arr)+1):
if enum_arr[i-1][0] != i:
frm.append(i)
to.append(enum_arr[i-1][0])
cvted = list(range(frm[0], frm[-1]+1))
if len(cvted) % 2 ... | [
"wkdtjsgur100@naver.com"
] | wkdtjsgur100@naver.com |
1711a379bd8678b699bd7719b130703e9f437539 | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/MSYS/python/Lib/test/test_venv.py | c8a36a77b3510ec2e05fc87a0bd98207927f2d4d | [
"bzip2-1.0.6",
"LicenseRef-scancode-proprietary-license",
"OpenSSL",
"Python-2.0",
"LicenseRef-scancode-newlib-historical",
"TCL",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | Python | false | false | 20,420 | py | """
Test harness for the venv module.
Copyright (C) 2011-2012 Vinay Sajip.
Licensed to the PSF under a contributor agreement.
"""
import ensurepip
import os
import os.path
import re
import shutil
import struct
import subprocess
import sys
import tempfile
from test.support import (captured_stdout, capt... | [
"jczhang@bouffalolab.com"
] | jczhang@bouffalolab.com |
4d51c21e128583698658ed9af9d417243d4275fe | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /raw_scripts/132.230.102.123-10.21.11.29/1569578047.py | 23acb9e0de056e6062a2453e8fecf4cce4d3df5d | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | import functools
import typing
import string
import random
import pytest
# Lösung Teil 1.
def list_filter(x, xs):
"""
x: Int
xs: List
Diese funktion returnt die werte der liste, welche kleiner als x sind."""
L = []
for i in xs:
if i <= x:
L.append(i)
return L
##########... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
10992b85ca307716f9540574e49c699529f6575f | 59b18dec434fc54cdaf6fd6c224fea9c783f2043 | /MyBlog/comments/migrations/0001_initial.py | a6c7e5dfd249072e98c81326c4d5ee7adbb88c97 | [] | no_license | InformationX/MyBlog | 00e95f27a78be39338fbaa462b1fa069cdfad3e6 | 2a5b15535c17b0eee0d1fa9bcebc5f7207dd46db | refs/heads/master | 2021-04-10T00:54:09.002419 | 2019-10-09T11:56:24 | 2019-10-09T11:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | # Generated by Django 2.1.4 on 2019-06-13 09:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('blog', '0004_auto_20190613_1527'),
migrations.swappable_depende... | [
"javs_shao@163.com"
] | javs_shao@163.com |
ea7744864101673132321095636165fa4a0cbc9b | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/dataflow/modeling/model/model_serializer.py | 8e578fb7093c3752167b0baac4b745d5530625d1 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 4,831 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
f2febac8f4268f36933396a59726a5d1d8eaee71 | 31747dd8c61085421d7bd4166f7bd4f9429cf914 | /tests/test_visitors/test_ast/test_naming/conftest.py | c365a79530f1db42a9abe5b5ddc0d39fee60ac86 | [
"MIT"
] | permissive | edytagarbarz/wemake-python-styleguide | 0e9ed4080a13a6727b8e80785e113b8407409352 | 74b86156d73c2a4fe9c755138f6953fec41fab3b | refs/heads/master | 2021-03-03T19:21:54.807089 | 2020-03-07T23:35:15 | 2020-03-07T23:35:15 | 245,981,718 | 1 | 1 | MIT | 2020-03-09T08:31:55 | 2020-03-09T08:31:54 | null | UTF-8 | Python | false | false | 4,646 | py | import pytest
from wemake_python_styleguide.compat.constants import PY38
# Imports:
import_alias = """
import os as {0}
"""
from_import_alias = """
from os import path as {0}
"""
# Function names:
function_name = 'def {0}(): ...'
method_name = """
class Input(object):
def {0}(self): ...
"""
# Function argum... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
e80bab55c48ceccf23ecc4e67e62307d15f29969 | 929d12e11ed2fb69476b9d07932e38662f0ce6fc | /Queues/Reversing Elements Of Queue.py | 468388212a76ab4d1e361cdeb721eb786c208301 | [] | no_license | arnabs542/Data-Structures-And-Algorithms | b8f341a31ca18044bf179294fbcb0fac1f835216 | ffcc2f8a25520ce37cd1f67e6225281c85141a65 | refs/heads/master | 2022-12-13T14:09:55.005341 | 2020-09-13T11:58:58 | 2020-09-13T11:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | """
Reversing Elements Of Queue
Problem Description
Given an array of integers A and an integer B. We need to reverse the order of the first B elements of the array, leaving the other elements in the same relative order.
NOTE: You are required to first insert elements into an auxiliary queue then perform Reversal of... | [
"rishu1998jain@gmail.com"
] | rishu1998jain@gmail.com |
c541305cafe96c7c8667b45be1618611178980d9 | 23ec357d5df7addf06cb70c10ba9173521c70a9b | /core/migrations/0018_auto_20210621_0048.py | 9a7276bde29db5d951039b362455c331c431ca68 | [] | no_license | blimp666/d_job | b8e8b93ef6b94e24a38bd94195a779bfff7f3c30 | 18904ac12af6593bf59b1ba379f722bd69d00863 | refs/heads/main | 2023-06-07T21:50:34.596128 | 2021-06-22T11:15:20 | 2021-06-23T19:36:48 | 376,893,878 | 0 | 0 | null | 2021-06-15T19:30:46 | 2021-06-14T16:48:17 | Python | UTF-8 | Python | false | false | 911 | py | # Generated by Django 3.2.4 on 2021-06-21 00:48
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0017_auto_20210619_1206'),
]
operations = [
migrations.AlterField(
model_name='application',
... | [
"email@example.com"
] | email@example.com |
f301d8c1426299d986f583448ef5069d417a5f45 | 30a2f77f5427a3fe89e8d7980a4b67fe7526de2c | /analyze/BHistograms_trigjetht_eta1p7_CSVM_cfg.py | 4ae59fa9d3b2fae9f267eb69dbd0e0b841e7c040 | [] | no_license | DryRun/QCDAnalysis | 7fb145ce05e1a7862ee2185220112a00cb8feb72 | adf97713956d7a017189901e858e5c2b4b8339b6 | refs/heads/master | 2020-04-06T04:23:44.112686 | 2018-01-08T19:47:01 | 2018-01-08T19:47:01 | 55,909,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py | import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
import sys
options = VarParsing.VarParsing()
options.register('inputFiles',
'/uscms/home/dryu/eosdir/BJetPlusX/QCDBEventTree_BJetPlusX_Run2012B_v1_3/160429_121519/0000/QCDBEventTree_567.root',
VarParsing.VarParsing.multipli... | [
"david.renhwa.yu@gmail.com"
] | david.renhwa.yu@gmail.com |
b3573574645dab4a14085dbbfc1ceed3c185f247 | 231f8a898b20e475a5cabff439600de211d825c0 | /superlists/urls.py | 1b817a2f4121136d79814f362f95857a779149c2 | [
"MIT"
] | permissive | thewchan/superlists | f7370b341ce7c37b8cae506eb5bafdd2fb31b07a | af41636b2cdafb45c638e36076b9cdefc5586aad | refs/heads/master | 2023-05-26T11:01:24.310480 | 2021-06-11T21:12:20 | 2021-06-11T21:12:20 | 361,209,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | """superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"thewchan@gmail.com"
] | thewchan@gmail.com |
3b6cce24b6bf09f2d048fa65cbaea2b432e16d92 | 4dda597dac544b237cf8f8b04b3c9e662b988a92 | /11-1/mydata/applitions/views.py | 8f8ffa4a104ff5767a5aa416a9ebb19e76647a2d | [] | no_license | beriuta/history | 02ac9414c0475fde59f6a455c23c56235fe3c4bc | 026c965f694e84120825069bedf7bfac235318b5 | refs/heads/master | 2020-04-11T17:24:39.558174 | 2018-12-16T02:08:18 | 2018-12-16T02:08:18 | 161,959,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,618 | py | from django.shortcuts import render
from datetime import datetime,timedelta
# Create your views here.
def t(request):
name = '测试'
d1 = {'name': '小鬼', 'age': 18, 'hobby': 'eat', 'items': 'hello'}
class People:
def __init__(self, name, age):
self.name = name
self.age = age
... | [
"2457409765@qq.com"
] | 2457409765@qq.com |
597fbc69d4aed8fb08abfb60305685cb6ea0b27e | 5db3009eb36afe7110ed5402be3a9e570c58c540 | /my_plugins/YouCompleteMe/third_party/ycmd/third_party/jedi_deps/jedi/test/completion/import_tree/flow_import.py | a0a779ecab8b9a6a6806a92a54c8aa4a01ba5453 | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | imfangli/vimrc | ced2c6caece1cf19421c6ea7deb017bec4ca3a27 | d2d14e7d083d70cc8627ddccb5b99c53c3c38be3 | refs/heads/master | 2022-02-01T00:34:31.855421 | 2022-01-22T15:57:28 | 2022-01-22T15:57:28 | 211,766,038 | 2 | 0 | MIT | 2019-09-30T03:15:03 | 2019-09-30T03:15:02 | null | UTF-8 | Python | false | false | 39 | py | if name:
env = 1
else:
env = 2
| [
"fangli@zhiai2019.com"
] | fangli@zhiai2019.com |
676e52de08ecbf08fbb59988ca58614c255892d8 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/devel/.private/vector_map_msgs/lib/python2.7/dist-packages/vector_map_msgs/msg/_RailCrossingArray.py | c5485493b9388cf7c0c77f72f2f28ac09a8f6105 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,277 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from vector_map_msgs/RailCrossingArray.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import vector_map_msgs.msg
import std_msgs.msg
class RailCrossingArray(genpy.Messag... | [
"907097904@qq.com"
] | 907097904@qq.com |
00465e54f148270106631a6302c36d295425dfe7 | 4e678f6967745c3da2a3e8899204e34d99fc3be0 | /python-quest-1.py | 6e6922acc790a0eff4ffcedd901c28ea8e2f4366 | [] | no_license | pratikshah1701/hackerrank | bf689a583b462c0fde697abd536ae0638d14ced9 | 73fde2a0d9dc063e1c06d42f0572ce01f5dd04b9 | refs/heads/master | 2021-01-19T18:47:15.278811 | 2017-04-13T09:16:27 | 2017-04-13T09:16:27 | 88,381,516 | 1 | 1 | null | 2017-04-16T00:20:00 | 2017-04-16T00:20:00 | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/env python3
def main():
for i in range(1, int(input())): # More than 2 lines will result in 0 score. Do not leave a blank line also
print((10 ** i - 1) // 9 * i)
if __name__ == '__main__':
main()
| [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
6b6f314619290d1abeedd0e25f056113994f73bd | 4861398f925ae2cc01189577c71c4983fd7d097b | /kakao_().py | 88bd003daf8d8bcebc4b1e7d1320be8a73a7a17d | [] | no_license | fightnyy/programmers_algorithm | 1c682220aedc078f7a184109f06aa95f673d1d43 | 5efe26a12661f3d278bfcca66753ccfd10451002 | refs/heads/master | 2023-05-02T15:53:22.116662 | 2021-04-27T00:59:30 | 2021-04-27T00:59:30 | 328,570,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | def solution(p):
answer = ''
def _is_empty(inputs_e):
if inputs_e == "":
return ""
def _divide(inputs_d):
u, v = inputs_d[:2], inputs_d[2:]
return u,v
def _is_corret(inputs_c):
stack = []
for c in inputs_c:
if c == '(':
... | [
"fightnyy@naver.com"
] | fightnyy@naver.com |
6ff0110e98ad5e642d3aed34dc2cf15987a7b382 | ad553dd718a8df51dabc9ba636040da740db57cf | /.history/app_20181209011747.py | f315e62e16bac6e29a0065fac970aaec00ade91b | [] | no_license | NergisAktug/E-Commerce-PythonWithFlask-Sqlite3 | 8e67f12c28b11a7a30d13788f8dc991f80ac7696 | 69ff4433aa7ae52ef854d5e25472dbd67fd59106 | refs/heads/main | 2023-01-01T14:03:40.897592 | 2020-10-19T20:36:19 | 2020-10-19T20:36:19 | 300,379,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,172 | py | import datetime
import sqlite3 as sql
from flask import Flask,flash, request, render_template_string, render_template
from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string
from flask_babelex import Babel
from flask_sqlalchemy import SQLAlchemy
from flask_user impo... | [
"nergis.aktug2014@gmail.com"
] | nergis.aktug2014@gmail.com |
47ec1eb674eb47c0d01660f188daff40943df5e2 | b5fb45288ed2a204692051ab78e72d8aa6e5accd | /argo_data_scripts/vis/vis_contrast.py | 51dc949c3ad92268e7c9143fa92182c57a7c0d8f | [
"Apache-2.0"
] | permissive | nithinksath96/MMdetection_TensorRT_FP16 | d4987f003798f5d6d4fe5bde2f30dd5ee2e8596d | c8379b209d4deeff9350baf5bbedfc95fb8941f4 | refs/heads/master | 2023-02-13T20:00:21.834541 | 2021-01-06T09:24:20 | 2021-01-06T09:24:20 | 327,260,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,937 | py | # Merge and convert real-time results
# Optionally, visualize the output
# This script does not need to run in real-time
import argparse
from os import scandir
from os.path import join, isfile
from tqdm import tqdm
import numpy as np
from PIL import Image, ImageFont, ImageDraw
import sys; sys.path.insert... | [
"nsathish@compute-0-32.local"
] | nsathish@compute-0-32.local |
65f48d5c7bdf634c88c47b5df4e34a43fb7061f4 | dfaa71f8064d3d0773941cf14ab86ff57ff67284 | /part35/blog/models.py | e096fa50faab3cc7fd3ab30abcc1c60a66a4db46 | [
"Apache-2.0"
] | permissive | yllew36/WellyGI | e94c5000ff3a7f2fd7316d22ad166fbf7916ea23 | 7d53fac4c81bb994f61b22761e5ac7e48994ade4 | refs/heads/master | 2020-09-05T15:49:37.386078 | 2019-11-15T08:16:59 | 2019-11-15T08:16:59 | 220,148,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from django.db import models
# Create your models here.
class PostModel(models.Model):
judul = models.CharField(max_length=20)
body = models.TextField()
category = models.CharField(max_length=20)
published = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)
def __str__... | [
"yllew36@gmail.com"
] | yllew36@gmail.com |
059945b503bc8e858ff2111eb171506610714b02 | 8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6 | /venv/Lib/site-packages/mypy/typeshed/third_party/2and3/markdown/extensions/legacy_attrs.pyi | 035b589a9f34a9529d88c4a202238e44166669ca | [] | no_license | RodrigoNeto/cursopythonyt | fc064a2e6106324e22a23c54bdb9c31040ac9eb6 | 279dad531e21a9c7121b73d84fcbdd714f435e7e | refs/heads/master | 2023-07-03T00:54:09.795054 | 2021-08-13T12:42:24 | 2021-08-13T12:42:24 | 395,646,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | pyi | from typing import Any, Pattern
from markdown.extensions import Extension
from markdown.treeprocessors import Treeprocessor
ATTR_RE: Pattern
class LegacyAttrs(Treeprocessor):
def handleAttributes(self, el, txt): ...
class LegacyAttrExtension(Extension): ...
def makeExtension(**kwargs): ...
| [
"rodrigoneto.forseti@gmail.com"
] | rodrigoneto.forseti@gmail.com |
5fc3082edcd76e319526f196ca4f0ac1f08de570 | d10d6d037ad741e2383eb1bb8bbc5dd3b3f09e41 | /python3/practice/classic_puzzle/easy/pirates-treasure.py | b6637587260c3ffcd0f4ba3521b9a43ac09effcb | [] | no_license | jz4o/codingames | 4614d34a3d9be07205747ee3617479e1e77fd6ed | 1f2222d23aaf670c7ddb658e7aca1a8e12e9bcab | refs/heads/master | 2023-08-18T03:30:04.640290 | 2023-08-17T14:24:04 | 2023-08-17T14:24:04 | 102,266,024 | 6 | 2 | null | 2021-05-01T13:33:34 | 2017-09-03T13:20:10 | Java | UTF-8 | Python | false | false | 1,193 | py | # import sys
# import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
w = int(input())
h = int(input())
grid = []
grid.append([1] * (w + 2))
for i in range(h):
row = []
row.append(1)
for j in input().split():
v = int(j)
r... | [
"26317360+jz4o@users.noreply.github.com"
] | 26317360+jz4o@users.noreply.github.com |
98348901cc25f5b865ce5e0c8986c4f5c88a3439 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_297/ch13_2019_06_06_20_45_46_311950.py | 0b921552630eff594c165545c6ad10f88e51165d | [] | 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 | 54 | py | def calcula_posicao(t,so,v):
s=so+v*t
return s | [
"you@example.com"
] | you@example.com |
4c04be0c1b62494ac0091aebed2588dc3cae107f | bcc916eb6c5ce649758c903fba6065f6d53dc6d2 | /datalad_webapp/__init__.py | 9ebfad5fa15a49e81b35bb43c19031ae832458dd | [
"MIT"
] | permissive | bpoldrack/datalad-webapp | ed4d432d3a6fc49eff40bfcc296e5426ae3ab3b6 | c6107ba0460b7a967cabe5cecbf2b8e18b3fbf49 | refs/heads/master | 2021-05-25T11:44:53.770310 | 2018-03-29T13:38:53 | 2018-03-29T13:38:53 | 127,297,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,220 | py | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ##... | [
"michael.hanke@gmail.com"
] | michael.hanke@gmail.com |
670cd19658bb9118b6186e4645afd044289372ac | 82042141439ae004fc38bb2ef6238f36ec6bb050 | /attendance/settings.py | 03f8fb508ead9f5f52ebcd48f3f82c239a48a82e | [] | no_license | psteichen/clusil-intranet | 2e9a2cf3b00692a4ef441ebf669af4e63945e9a2 | 5c028d33f6a8559af57a4eeb02fc0f612cb1b261 | refs/heads/master | 2021-07-13T15:40:06.464105 | 2020-06-30T19:51:00 | 2020-06-30T19:51:00 | 27,195,950 | 2 | 1 | null | 2021-06-10T20:06:47 | 2014-11-26T20:59:46 | Python | UTF-8 | Python | false | false | 1,458 | py | # Application settings for attendance app
# coding=utf-8
ACTIONS = {
'invite': (
{
'label' : u'Invite (a) collegue(s).',
'grade' : 'info',
'icon' : 'plus',
'url' : '/meetings/invite/',
},
),
}
ATTENDANCE_TMPL_CONTENT = {
'template' : 'done.html',
'too_la... | [
"pst@libre.lu"
] | pst@libre.lu |
c5e49b4de1ac2ec9e848c99af5781b7e842799cf | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/RANet_ID0994_for_PyTorch/dataloader.py | 8d73f52aa9fc6f2e781b3bfbb395740fb1153839 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,745 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
485f03dae69df4b6ada9fb3ae69c80c9a25a63be | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03018/s073874742.py | f981861b7dd86b3250675915160c0c2a28113c5c | [] | 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 | 516 | py | S = input()
rlt = 0
b = ''
tA = 0
A = 0
BC = 0
for s in S:
if s == 'A':
if b == 'A':
tA += 1
elif b == 'B':
rlt += A*BC
tA = 1
A = 0
BC = 0
else:
rlt += A*BC
tA = A + 1
A = 0
BC = 0
elif s == 'B':
if b == 'B':
rlt += A*BC
tA = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fd1b448e1f6e22bb748d5cd5bbcdcab1faedf382 | ce7fe0c3c46b0cc3dbd8836f007464e320eefda6 | /main.py | f4f8306490673dc070f7b3ed8ff33c15d92215e3 | [] | no_license | happyday521/vunet | 2da3013399ec5660544d2b69b61486e8e1033bb7 | f0d6ef73b02e6099d3b5e4f37e4ddaaa5f8437e6 | refs/heads/master | 2021-09-24T15:12:07.310072 | 2018-04-13T14:48:40 | 2018-04-13T14:48:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,013 | py | import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = False
session = tf.Session(config = config)
import os, logging, shutil, datetime
import glob
import argparse
import yaml
import numpy as np
from tqdm import tqdm, trange
import nn
import models
from batches import get_batches, plot_ba... | [
"Patrick.Esser@gmx.net"
] | Patrick.Esser@gmx.net |
5771286c57f461941cc57f7ef650d4dca16a9e7e | cc14a65db9243584879726349af66297f7363298 | /docs/conf.py | 8ac01a18279ac15494881932a56749457a85e4b1 | [
"MIT"
] | permissive | AyraHikari/telegram-upload | bed549b358a457870a112d69d775d2bb8d251099 | b29ba50ba0df03e9991eccd64e6a42a6ca69c73f | refs/heads/master | 2020-04-29T00:31:40.889784 | 2019-03-08T19:49:19 | 2019-03-08T19:49:19 | 175,696,591 | 1 | 1 | MIT | 2019-03-14T20:44:22 | 2019-03-14T20:44:22 | null | UTF-8 | Python | false | false | 9,070 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# telegram_upload documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in th... | [
"contacto@nekmo.com"
] | contacto@nekmo.com |
5086248faf63027b66d09017218bbf3019c4625f | 881a76acaf0b6a26fd34548f0b1abbcf176a37b2 | /ezgal/__init__.py | 70fdcaa0ab7a97b7b8f4f8afe7ec51d6a94d571a | [
"MIT"
] | permissive | gsnyder206/ezgal | 930ed644b00332e3fc1f733a32afc72d511b7cb0 | f10e57021ca88c7139a28b058b8716c5507ce48c | refs/heads/master | 2021-01-11T11:17:09.551803 | 2017-01-11T16:44:50 | 2017-01-11T16:44:50 | 78,657,426 | 0 | 0 | null | 2017-01-11T16:28:50 | 2017-01-11T16:28:50 | null | UTF-8 | Python | false | false | 1,767 | py | import ezgal,utils,astro_filter,ezgal_light,wrapper,sfhs,weight,dusts
__all__ = ["model", "utils", "wrapper", "sfhs", "weight"]
__author__ = 'Conor Mancone, Anthony Gonzalez'
__email__ = 'cmancone@gmail.com'
__ver__ = '2.0'
ezgal = ezgal.ezgal
model = ezgal
astro_filter = astro_filter.astro_filter
ezgal_light = ezgal... | [
"cmancone@gmail.com"
] | cmancone@gmail.com |
2929024e5b2b882ef9940eb706da9e2ad2f7e2c7 | 482297526ed7eedc7c3600a4b98c45e775065852 | /emsapi/models/adi_ems_web_shared_tableau_rest_view_py3.py | 9815d11e7c037465cd2c29f30ceddec172074ad0 | [
"MIT"
] | permissive | ge-flight-analytics/emsapi-python | 9c441095c0f9c9dc8a42ee918f830a5261f4f4d1 | d3de16397c6f3a35c0965e4dfc76741d1379145e | refs/heads/master | 2023-08-03T20:47:45.950550 | 2023-07-26T16:13:01 | 2023-07-26T16:13:01 | 233,153,982 | 0 | 1 | MIT | 2023-07-26T16:13:31 | 2020-01-11T00:38:20 | Python | UTF-8 | Python | false | false | 1,008 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"cody.owens@ge.com"
] | cody.owens@ge.com |
972e173dd684f111e265003215339e68adb7e6fb | cac36b279aa1ea889a5e3803efd615449c55922b | /src/012_costMinimize.py | 2d75190ae9e5e749cffd703687dcfa87d42aa3ce | [] | no_license | GunSik2/ml | 6e16cbbe04406686e394f59c634ed105bf90f849 | bdc7ad59c113e13eb13d01d05e30ec77cc96035f | refs/heads/master | 2020-06-12T09:53:30.965606 | 2017-01-05T03:37:34 | 2017-01-05T03:37:34 | 75,591,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | import tensorflow as tf
# Single variable linear regression
# Hypothesis: H(x) = Wx + b
# Cost Fun.: cost(w,b) = 1/m * Sum(H(x) - y)^2
# Gradient descent: W := W - alpah * 1/m * Sum((W*x - y) * x)
# training data
x = [1., 2., 3., 4.]
y = [2., 4., 6., 8.]
# Initial value (w, b)
W = tf.Variable(tf.random_uniform([1], ... | [
"you@example.com"
] | you@example.com |
272780c50836d3f265770a3986bd720199357fd3 | 5337ddfe3adf3a044bae5cdd530e8836b9000db1 | /tests/structshape_test.py | 0766479528b059d1cc38582a4d7d205a6395bf01 | [] | no_license | 404cafe/Swampy | ef1d3206e9fece098910fb41d542ac7195dde50a | 82fdafb27e219d0544b74a745f516bfb2264fdaf | refs/heads/master | 2020-12-01T06:27:08.869741 | 2020-03-04T08:41:59 | 2020-03-04T08:41:59 | 230,575,461 | 0 | 0 | null | 2019-12-28T07:30:18 | 2019-12-28T07:30:17 | null | UTF-8 | Python | false | false | 1,260 | py | """This module is part of Swampy, a suite of programs available from
allendowney.com/swampy.
Copyright 2011 Allen B. Downey
Distributed under the GNU General Public License at gnu.org/licenses/gpl.html.
"""
import unittest
from swampy.structshape import structshape
class Tests(unittest.TestCase):
def test_lump... | [
"downey@allendowney.com"
] | downey@allendowney.com |
3c71832b90889a937d8108b84c77854b939df05d | 5dd190725aaaeb7287d935b3c99c20480b208816 | /official/vision/beta/modeling/backbones/resnet_3d.py | 0911b3ea6fadbbc3015c511ed20b32defd858db6 | [
"Apache-2.0",
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,335 | py | # Copyright 2021 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... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
1e0051a965e57364e9feb7ed0b8838ad82f4619a | 95978243568bee7c33a2d6c100f42e0c5a15c933 | /coremltools/converters/mil/mil/ops/defs/iOS16/tensor_transformation.py | 473b7c683407b03e7a405cbd4224e62ba2dda7be | [
"BSD-3-Clause"
] | permissive | cclauss/coremltools | 6cc68874c45ce1035b1b59417eacfdce738d725d | 0c63b0aeb63acedce0d39446c19b80cc47d57a7a | refs/heads/master | 2023-05-01T16:56:43.042564 | 2023-04-14T20:16:24 | 2023-04-14T20:16:24 | 106,254,817 | 0 | 1 | null | 2017-10-09T08:11:43 | 2017-10-09T08:11:43 | null | UTF-8 | Python | false | false | 6,920 | py | # Copyright (c) 2022, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clausefrom coremltools.converters.mil.mil import types
import numpy as np
from coremltools.converters.mil.m... | [
"noreply@github.com"
] | cclauss.noreply@github.com |
729cda05f7cf671ee84fa46f47321cf0aba2496a | b1c97831338b0c2f8099a56f23bddf394561e0e3 | /Chapter 05/queueJoin.py | 440160eac7fb2079148b0631868f55e20a0c9aca | [
"MIT"
] | permissive | PacktPublishing/Learning-Concurrency-in-Python | 03b242f64a0b6515a41ceccab86936dc54b20e15 | bafc928ce9edc601e3def4441b51555ede13c973 | refs/heads/master | 2023-02-06T00:51:37.297067 | 2023-01-30T08:05:25 | 2023-01-30T08:05:25 | 100,243,064 | 77 | 51 | MIT | 2018-10-26T12:14:45 | 2017-08-14T08:03:03 | Python | UTF-8 | Python | false | false | 530 | py | import threading
import queue
import time
def mySubscriber(queue):
time.sleep(1)
while not queue.empty():
item = queue.get()
if item is None:
break
print("{} removed {} from the queue".format(threading.current_thread(), item))
queue.task_done()
myQueue = queue.Queue()
for i in range(5):
my... | [
"ketank@packtpub.com"
] | ketank@packtpub.com |
bb8ab784baecc945d7331bba2ea31191ffddd9fb | 10d98fecb882d4c84595364f715f4e8b8309a66f | /f_net/configs/classification.py | 2d1e0d6deb8ebaa8cff5ae3928c884995cda95e1 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 2,352 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
09d1805c4d1b7e98881a9a7b658b3a20a6a61e32 | 2c07ae4239d217f4a4b3d356ca4be31629dea4d5 | /assets.py | 2c3cc15e2b9d049fc77ed0707642012353ae75fc | [] | no_license | themylogin/thelogin.ru | 771afe0e3afbdc1072695fb2d4920f6ec3b7c6d3 | 1f66ff940dfafe6d065c63e832d51b5e16522edc | refs/heads/master | 2023-04-25T22:02:56.004822 | 2020-03-22T18:02:40 | 2020-03-22T18:02:40 | 7,691,963 | 0 | 0 | null | 2023-04-15T01:17:22 | 2013-01-18T18:31:57 | Python | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import cssmin
import glob
import jsmin
import os
from config import config
assets = {}
assets_dir = os.path.join(config.path, "asset")
for asset, function, separator in [("css", cssmin.cssmin, ""), ("js", jsmin.jsmin, ";")]:
asset_dir = os.path.join(assets_dir, asset)
... | [
"themylogin@gmail.com"
] | themylogin@gmail.com |
a6c00c649c8adf9f2fd19814f9961b8051ffa0c4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/dccf58efe393b6912faf2e89cf7e87942e28273e-<_connect>-fix.py | 166d99bac0993991bbe9ef5d461007d89ccd7f3a | [] | 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 | 427 | py | def _connect(self):
if (not HAS_WINRM):
raise AnsibleError(('winrm or requests is not installed: %s' % to_text(WINRM_IMPORT_ERR)))
elif (not HAS_XMLTODICT):
raise AnsibleError(('xmltodict is not installed: %s' % to_text(XMLTODICT_IMPORT_ERR)))
super(Connection, self)._connect()
if (not s... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
68f4a6ea2404ea0483d10235fd5a32b3766bdc86 | bbe6f37f7347cb83f08846d505ac4aa6bc0031e6 | /purity_fb/purity_fb_1dot9/apis/targets_api.py | 2e7e2860b4552661aeceb860da0277f2a1e17e47 | [
"Apache-2.0"
] | permissive | bsamz-ps/purity_fb_python_client | 02ff7213075cf1948e2db7b0835cc5fcc56f328a | 11f27ef0c72d8aac1fc4e1ed036cca038b85dfa4 | refs/heads/master | 2021-02-19T08:11:04.042758 | 2020-02-12T23:56:08 | 2020-02-12T23:56:08 | 245,294,511 | 0 | 0 | NOASSERTION | 2020-03-06T00:14:27 | 2020-03-06T00:14:26 | null | UTF-8 | Python | false | false | 28,372 | py | # coding: utf-8
"""
Pure Storage FlashBlade REST 1.9 Python SDK
Pure Storage FlashBlade REST 1.9 Python SDK. Compatible with REST API versions 1.0 - 1.9. Developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
42a408a3006e99347d1520d5d60ec745b032b23a | 289e56599c3755e81d642a104b7861a4fab91142 | /pub/entities.py | 4d4df366c77dc0f6cb6db6143db7e20391423b43 | [] | no_license | chaselgrove/cs-pub-portal | 79ebae04b6dc1537cb10a15ddb369fd4636ebd8d | 657e157585ac42b157cd05ed3e281f3f293b6144 | refs/heads/master | 2021-01-17T14:30:49.850801 | 2016-07-28T18:29:22 | 2016-07-28T18:29:22 | 52,994,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,472 | py | from collections import OrderedDict
from . import errors
from .utils import annot_url
from .fields import *
class Entity(object):
"""base class for entities"""
@classmethod
def _get_from_def(cls, pub, id, values):
obj = cls(pub, id)
for (annotation_id, name, value) in values:
... | [
"christian.haselgrove@umassmed.edu"
] | christian.haselgrove@umassmed.edu |
448bcd261807fa05a45781f836527a3b1d6f27f8 | 8d2e5b5ea408579faa699c09bdbea39e864cdee1 | /ufora/util/ThreadSafeDict.py | 75509f50e6a673f9c5cf633da81f7f424242c589 | [
"dtoa",
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | iantuioti/ufora | 2218ef4c7e33c171268ce11458e9335be7421943 | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | refs/heads/master | 2021-01-17T17:08:39.228987 | 2017-01-30T16:00:45 | 2017-01-30T16:00:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | # Copyright 2015 Ufora Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"braxton.mckee@gmail.com"
] | braxton.mckee@gmail.com |
e4cb407440b02134b7fb10f738ba19ed0698aa2f | 786de89be635eb21295070a6a3452f3a7fe6712c | /pyimgalgos/tags/V00-00-13/src/image_crop.py | 3c24a7427ffe5f080f718d92b120ac8d33ba992e | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,994 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Pyana/psana user analysis module image_crop...
#
#------------------------------------------------------------------------
"""User analysis module for pyana and psana frameworks.
Thi... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
7fef47453d50a19daade3ccb1cac7c5cf2db9935 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/-1317042838/_codecs.py | 19d1dd99bb98e64143e5afef560b11128f7229a6 | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 8,128 | py | # encoding: utf-8
# module _codecs
# from (built-in)
# by generator 1.147
# no doc
# no imports
# functions
def ascii_decode(*args, **kwargs): # real signature unknown
pass
def ascii_encode(*args, **kwargs): # real signature unknown
pass
def charmap_build(*args, **kwargs): # real signature unknown
pass
... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
419ece67d00ba37f7460c57ca43884e4ca9e0b2f | dafd25bce1c1fe6c667119e7a541b3cdb44b6181 | /youtube_tranding/auto.py | 454beae653fc6832b41abb2c345f1805d9012b0e | [] | no_license | armannurhidayat/python_scraper | 23fd84dfb7263b7e23a96bb72ee8b7ce68cb52df | 5b0b56247e753f190a9dfdd0bbc150f84d1609f9 | refs/heads/master | 2023-02-05T00:00:48.380383 | 2020-12-27T02:28:29 | 2020-12-27T02:28:29 | 250,330,177 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | import mysql.connector
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
config = {
'user' : 'root',
'password': 'root',
'host' : 'localhost',
'port' : 8889,
'database': 'yt_trending',
'raise_on_warnings': True
}
url = 'https://www.youtube.com/feed/t... | [
"armannurhidayat7@gmail.com"
] | armannurhidayat7@gmail.com |
de900b93a39989817a16977f10cddadf7b234e32 | 06292f96cba132ca57777672a447cfff7c5abee6 | /Asm1/ThamKhao/testPhuc/ParserSuite.py | 940fca2dcbd72c810ca6309115c038b9b10115ef | [] | no_license | kietteik/ppl | 1746440b12affe71e67d6f958922b32b1fdaab5c | 2ee60582e81595b8d8b5d0f8212d20151cfe9264 | refs/heads/master | 2023-03-01T00:24:36.969189 | 2021-01-31T05:15:13 | 2021-01-31T05:15:13 | 305,802,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,965 | py | import unittest
from TestUtils import TestParser
class ParserSuite(unittest.TestCase):
def test_var_dec_1(self):
input = """Var: a = 5;"""
expect = "successful"
self.assertTrue(TestParser.checkParser(input,expect,201))
def test_var_dec_2(self):
input = """Var: ;"""
expec... | [
"kietteikdoi@gmail.com"
] | kietteikdoi@gmail.com |
7c7c20cdfdc1ad53c73c20ab931e5efcff7528aa | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/15174011.py | d436adf8e9635a383cb4126186976d45e43be6ef | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/15174011.py generated: Fri, 27 Mar 2015 16:10:06
#
# Event Type: 15174011
#
# ASCII decay Descriptor: [Lambda_b0 -> D+(-> K- pi+ pi+) mu-]cc
#
from Configurables import Generation
Generation().EventType = 15174011
Generation().SampleGenerationTool = "Sign... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
6dae49d404619d13917ca5e5dd08fa811d287aad | 37db56765276c0835a2c7e3955c412ce204836c1 | /241.py | 19a44d3fb46bd049d5ae60b83250f8d7f974f167 | [] | no_license | supperllx/LeetCode | 9d0a3a7258d1cff6afa6e77f61a2e697834914ca | df3a589ea858218f689fe315d134adc957c3debd | refs/heads/master | 2023-05-01T06:57:17.403568 | 2021-05-19T18:29:25 | 2021-05-19T18:34:03 | 288,351,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | class Solution:
@functools.cache
def diffWaysToCompute(self, input: str) -> List[int]:
if input.isnumeric():
return [int(input)]
else:
ops = {'+': operator.add, '-': operator.sub, '*': operator.mul}
res = []
indexes = []
for i, ch in en... | [
"supperllx@outlook.com"
] | supperllx@outlook.com |
ab05aff12541f245de8fe7bd4437943a46a928ec | 77166c6ed9b872fa69b454d3682f63527f5f3951 | /tests/unit2/test_load_textures.py | 9f74bd64ebe79c8225596d0f8f2a84e1267ace5a | [
"MIT"
] | permissive | biggzlar/arcade | d72d936f3c244a9d5173b6f36bca3ede3382a0ae | fc444db356452660ac6cb2ffe241f0b1a3d4bcf3 | refs/heads/master | 2020-12-14T06:30:18.997456 | 2020-01-18T04:44:03 | 2020-01-18T04:44:03 | 234,668,560 | 1 | 0 | NOASSERTION | 2020-01-18T02:07:41 | 2020-01-18T02:07:40 | null | UTF-8 | Python | false | false | 4,737 | py | import os
import arcade
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
LINE_HEIGHT = 20
CHARACTER_SCALING = 0.5
COIN_SCALE = 0.25
class MyTestWindow(arcade.Window):
def __init__(self, width, height, title):
super().__init__(width, height, title)
file_path = os.path.dirname(os.path.abspath(__file__))
... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
ca40a4e3bed0d8bd97234170a3f8ec82dfa77d02 | 4b44a299bafbd4ca408ce1c89c9fe4a449632783 | /python3/14_Code_Quality/04_mocking/example_2/test_calculator.py | 773fb6d377820f066c3352f19151f1de0c8dade3 | [] | no_license | umunusb1/PythonMaterial | ecd33d32b2de664eaaae5192be7c3f6d6bef1d67 | 1e0785c55ccb8f5b9df1978e1773365a29479ce0 | refs/heads/master | 2023-01-23T23:39:35.797800 | 2020-12-02T19:29:00 | 2020-12-02T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from unittest import TestCase
from main import Calculator
class TestCalculator(TestCase):
def setUp(self):
self.calc = Calculator()
def test_sum(self):
answer = self.calc.sum(2, 4)
self.assertEqual(answer, 6)
| [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
1965d29d375c6499f282d0e556160f23324bf4c5 | bec623f2fab5bafc95eb5bd95e7527e06f6eeafe | /django-gc-shared/visitor_analytics/migrations/0001_initial.py | 8f99c744d9c12c4a97d23a04880458deedb220fe | [] | no_license | riyanhax/a-demo | d714735a8b59eceeb9cd59f788a008bfb4861790 | 302324dccc135f55d92fb705c58314c55fed22aa | refs/heads/master | 2022-01-21T07:24:56.468973 | 2017-10-12T13:48:55 | 2017-10-12T13:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"ibalyko@ubuntu-server-16-04"
] | ibalyko@ubuntu-server-16-04 |
c51fe65b0eea696958298037853329c6a2320d97 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/62/usersdata/172/29550/submittedfiles/ex1.py | c6a1b4c62ab0c54ae5cb58541624113d1e9cb84a | [] | 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 | 194 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = float(input('Digite a: '))
b = float(input('Digite b: '))
c = float(input('Digite c: '))
#COMECE A PARTIR DAQUI!
d=b*b-4(a*c)
print(d) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7d24a6875659d927451451cfe5c01e242aee20e7 | 417ab6024a95e97b4d2236c67e28d00e6d1defc0 | /python/fetch/mayi01/img.py | 589afd6265b67e6b4c17fef51b293b349378b05d | [] | no_license | zeus911/myconf | 11139069948f7c46f760ca0a8f1bd84df5ec4275 | 6dc7a6761ab820d6e97a33a55a8963f7835dbf34 | refs/heads/master | 2020-04-18T02:16:09.560219 | 2019-01-22T18:15:08 | 2019-01-22T18:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,826 | py | #!/usr/bin python
# -*- coding: utf-8 -*-
import datetime
import threading
from common import common
from baseparse import *
from common import db_ops
from common.envmod import *
from common import dateutil
from fetch.profile import *
global baseurl
class ImgParse(BaseParse):
def __init__(self):
threadin... | [
"liguoqing19861028@163.com"
] | liguoqing19861028@163.com |
54a4f16e087a850dd1d3dd642d82d5f350eae00e | de28d64694919a861760fa8db8ff5ff781c9e4e3 | /wild_card_matching.py | 653f701bd6d307a858b2dc5d5dc736c7214b34a3 | [] | no_license | pramitsawant/interview_prep_python | 2202ac6bd7574316885f6067a8c6ac98fc5e88af | 7a3dad53b954f874995bafdbfd5677959f8b8de7 | refs/heads/master | 2020-09-25T06:34:26.903728 | 2016-12-12T13:59:46 | 2016-12-12T13:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # coding=utf-8
'''
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover the entire input string (not partial).
The function prototype should be:
bool isMatch(const char *s, const char *p)
Some examples:
isMatch("aa","a") → false
isMatch("a... | [
"yask123@gmail.com"
] | yask123@gmail.com |
8f4bb724abec5c2be28133f11fadc5f0306fc94f | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/from.py | 59ac01b9a307e3cca82f10539aba98acaab784ca | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,246 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
d3920561c0ee2d24d702c2e5d3ce5eb4d555dbd3 | b94ab99f9c1f8bbb99afd23e1bfcd2332060b4bd | /run.py | 4e3d7e4f1400e503e81bde7fd29bd036b083e6d3 | [] | no_license | georgecai904/bookshelf | e54ccae00d4ee48e91ca1564a425ba4586b52d93 | 0002207dc8ca586ce1127d3ea98bb53102d043df | refs/heads/master | 2021-01-02T22:52:26.046535 | 2017-08-05T15:32:13 | 2017-08-05T15:32:13 | 99,409,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import time
def run_bash_command(command):
import subprocess
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stdin=subprocess.PIPE)
print(process.communicate())
while True:
run_bash_command("python manage.py runcrons")
time.sleep(60) | [
"georgemail608@gmail.com"
] | georgemail608@gmail.com |
09ab405b4618a48b3621a5259a4853a7ee190e10 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/HPN-ICF-MULTICAST-SNOOPING-MIB.py | f19c2866685a9ddc231b0cb4568dcf6412d89090 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 44,155 | py | #
# PySNMP MIB module HPN-ICF-MULTICAST-SNOOPING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-MULTICAST-SNOOPING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:40:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3cd0cb1f539962e82c9f27b78dcb28ab1cbaeb63 | 5821e83ccdd97c7d4d472b6d854490950854ba9f | /code/pike_ex1.py | 7de4a0dee8d596e0ba3e94f7e626d74c313856d9 | [
"CC-BY-4.0"
] | permissive | dhellmann/presentation-regex-implementations | b44b6b0a2ed6304c1c7f63c8702d23f7aa54cdb2 | c02b74651876b596201c59b0d35758ef36298081 | refs/heads/master | 2022-12-15T20:21:24.953111 | 2019-11-03T20:34:06 | 2019-11-03T20:34:06 | 219,158,579 | 1 | 0 | null | 2022-12-11T11:47:57 | 2019-11-02T13:35:33 | CSS | UTF-8 | Python | false | false | 65 | py | #!/usr/bin/env python3
import pike
pike.match('ab*c', 'abccd')
| [
"doug@doughellmann.com"
] | doug@doughellmann.com |
757ea65c43bbe012863e19534632fc725f47f4b1 | 1ec6d8691fa9355a53fbcf93d3a47b4a15a80fe6 | /build/lib/lcopt/__init__.py | 2ad3293a32502e9c30c5fc0a521d5a5c76c8588a | [
"BSD-3-Clause"
] | permissive | cmutel/lcopt | f3be8bbd0808323de807c56a8a501993d2e7fd8b | 4c9087a5812f0d86804cdda999ef3bdf491a6fa8 | refs/heads/master | 2021-01-22T14:45:51.072282 | 2017-08-18T11:33:08 | 2017-08-18T11:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from lcopt.io import *
from lcopt.model import * | [
"pjamesjoyce@gmail.com"
] | pjamesjoyce@gmail.com |
c9ea21dbe986fc835e4e862c46e843454f7a3906 | 1c78b144662c5d0473e53ff5622e6cbf8c593ef9 | /nba_matchup/yfs.py | 6f89a3e678a6563409b64ce31519d6b5e36ce0aa | [
"MIT"
] | permissive | sharadmv/nba-fantasy-optimize | fe1eb45df26a8c23b47de1ff5ad98ada877dfd77 | 81fdfa78fce4ce356220c91a1063a6efcfa4ff02 | refs/heads/master | 2022-12-13T10:34:51.756539 | 2021-11-23T05:54:12 | 2021-11-23T05:54:12 | 168,676,401 | 4 | 0 | MIT | 2022-12-08T01:44:37 | 2019-02-01T09:48:53 | Python | UTF-8 | Python | false | false | 774 | py | from yaspin import yaspin
import datetime
from yahoo_oauth import OAuth2
from fantasy_sport import FantasySport
__all__ = ['yfs', 'LEAGUE_KEY', 'CURRENT_WEEK', 'START_DATE']
LEAGUE_KEY = "nba.l.64384"
oauth = OAuth2(None, None, from_file='oauth.json', base_url='https://fantasysports.yahooapis.com/fantasy/v2/')
yfs =... | [
"sharad.vikram@gmail.com"
] | sharad.vikram@gmail.com |
5c48e7effb0eb65a92e95ec6ab09a44a7f7f028d | 192dec1ea734fd67a3c3720228826cf754b2da5a | /valeo/vr/models.py | a1a86f3d91add9b73c1e35fc55c2fc8182a5293b | [] | no_license | fafaschiavo/cpi_valeo | a4df4e64161e58e44ade276f0b6284abfb5af6d2 | 777ef6173bbc4bf5941098cb2ea3b13fccf490c1 | refs/heads/master | 2020-04-06T04:14:59.226013 | 2017-05-02T22:39:00 | 2017-05-02T22:39:00 | 82,980,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class joystick(models.Model):
joystick_data = models.CharField(max_length=200)
angle = models.IntegerField(default=90)
pedal = models.FloatField(default=0)
left_buttons = models.IntegerField(default=0)
... | [
"fayschiavo@gmail.com"
] | fayschiavo@gmail.com |
f6dba0a7e196a8718ed2fb1a7978fd42953ee6e8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_322/ch30_2019_03_26_18_43_32_991323.py | 901b0a5a75d9547c3b7aa65aa4eecdd7ec4a9796 | [] | 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 | 328 | py | import math
velocidade = int(input("Qual a velocidade?:"))
angulo = int(input("Qual o angulo?:"))
distancia = (((velocidade ** 2) * (math.sin(2 * math.radians( angulo))))) / (9.8)
if distancia >= 98 and distancia <= 102
print('Acertou!')
if distancia < 98:
print('Muito perto')
if distancia > 102:
print('Muito... | [
"you@example.com"
] | you@example.com |
e8fedba445c7d316d56ebdb5ed0292e721f568e9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/162/61510/submittedfiles/testes.py | fdf544d79486196cce5adcbccad32091483213bf | [] | 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 | 925 | py | import numpy as np
def menorlinha(a):
for i in range(0,a.shape[0],1):
for j in range(0,a.shape[1],1):
if a[i,j]==1:
return(i)
def menorcoluna(a):
for j in range(0,a.shape[1],1):
for i in range(0,a.shape[0],1):
if a[i,j]==1:
return(j)
def ma... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f97d1a8d1a8a7dc659883a5b5bc249e619f17c03 | f1c071430a352ef82a4e7b902d6081851e5d569a | /neuronunit/capabilities/channel.py | 87c52e19babe3b1c5dbc25efe5553022cee45991 | [] | no_license | rgerkin/neuronunit | b1e5aeadc03c0be3507b0182ae81c89371c5f899 | 85330f1c4e4206b347d5a5e7792d41536ae71a0a | refs/heads/master | 2021-01-17T05:41:06.109463 | 2015-10-23T22:22:30 | 2015-10-23T22:22:30 | 8,037,496 | 2 | 1 | null | 2015-06-25T15:32:01 | 2013-02-05T20:37:39 | Python | UTF-8 | Python | false | false | 1,382 | py | """Channel capabilities"""
import inspect
import sciunit
class NML2_Channel_Runnable(sciunit.Capability):
"""Capability for models that can be run using functions available in pyNeuroML.analsysi.NML2ChannelAnalysis"""
def NML2_channel_run(self,**run_params):
return NotImplementedError("%s not implemen... | [
"rgerkin@asu.edu"
] | rgerkin@asu.edu |
e7391ef71192ed06e3c4ff224131362673034076 | 2b4badbedab24ed4376ab65818d0e59af6539144 | /messcode/mail_first.py | 5e2d1b63c30dd456564b90b3732846639eeebee1 | [] | no_license | matthewangbin/Python | 878d8180d12d235f8d238574414bb41edad5ceee | c9a94b4203380a06364da1f7466aafc4b141d951 | refs/heads/master | 2021-10-11T01:45:22.890144 | 2019-01-21T02:44:25 | 2019-01-21T02:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # -*- coding: utf-8 -*-
# @Time : 2017/12/25 21:55
# @Author : Matthew
# @Site :
# @File : mail_first.py
# @Software: PyCharm
from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
import smtplib
def _format_addr(s):
... | [
"wb2847@163.com"
] | wb2847@163.com |
87cc4210ce4c5b742377c17cba6924f894a19b86 | c1ba3127b3526aba8b9bf25fddd172020a8858a8 | /easy/array/max_product_of_3_numbers/max_product_of_3_numbers.py | 92170a0b39e7a4c064842c5fbae87866cdf17d9c | [
"MIT"
] | permissive | deepshig/leetcode-solutions | f5c627215e79323dba3bb6d4005e35e33f31c858 | 1e99e0852b8329bf699eb149e7dfe312f82144bc | refs/heads/master | 2022-11-30T20:50:02.007164 | 2020-08-06T19:21:02 | 2020-08-06T19:21:02 | 279,260,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | class Solution(object):
def maximumProduct(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
first_min, second_min = float("inf"), float("inf")
first_max, second_max, third_max = - \
float("inf"), -float("inf"), -float("inf")
for n in nums:
... | [
"deepshi1104@gmail.com"
] | deepshi1104@gmail.com |
fdf0aba38c57fae8c11e4e5cdb741c8e4a0951be | 743ad4ed116b838da917f105909d9e84e10a4b31 | /day06/ResponseAndRequest/ResponseAndRequest/spiders/myspider.py | 7568ce3d3f4c4f39a6c46469c61ae47cf2fc81a5 | [] | no_license | heiyouyou/Scrapy | 62bb90638a8d6ee1aa62dcf525463c6b0a6a46e6 | afa74f885d30ae3486b1da52dc90d0b7118f4dc1 | refs/heads/master | 2021-09-07T12:44:11.063627 | 2018-02-23T03:05:39 | 2018-02-23T03:05:39 | 113,541,279 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import scrapy
class MySpider(scrapy.Spider):
name = 'myspider'
start_urls = ['http://example.com']
def parse(self,response):
print('Existing settings: %s' % self.settings.attributes.keys()) | [
"1337238043@qq.com"
] | 1337238043@qq.com |
6f0728d8e2f5aeeb689a2bb3c96ffab2ed3f3d84 | 3d154d9b3fe7487356d155c23d2b3541dacae1c1 | /dao/userhelper.py | dc1d343b7a1cb51c8d4dcdd22c7e3441947cccc7 | [] | no_license | igortereshchenko/python_oracle_orm_service | ef847fff7d0762813edf64f54235f471cdccd62f | d824fa0f01b2fdcc92b053ea942bb382266a0b43 | refs/heads/master | 2020-05-23T12:06:54.729982 | 2019-05-16T19:12:05 | 2019-05-16T19:12:05 | 186,751,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from dao.db import OracleDb
import cx_Oracle
class UserHelper:
def __init__(self):
self.db = OracleDb()
def getSkillData(self, skill_name=None):
if skill_name:
skill_name="'{0}'".format(skill_name)
else:
skill_name='null'
query = "select * from table... | [
"tereshchenko.igor@gmail.com"
] | tereshchenko.igor@gmail.com |
cc7e03607b31f4438fef4e654117ffd8353d2dc4 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/minimum-initial-energy-to-finish-tasks/422867377.py | 4ecf5f68fe76384049941bdc723c184406bd6d20 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | # title: minimum-initial-energy-to-finish-tasks
# detail: https://leetcode.com/submissions/detail/422867377/
# datetime: Sun Nov 22 14:20:04 2020
# runtime: 1260 ms
# memory: 59.4 MB
class Solution:
def minimumEffort(self, tasks: List[List[int]]) -> int:
'''
假设T是tasks列表的最优排列,初始energy等于E,最后剩余的energy... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
4085500854bc565a03cb7ed04cbd39c6bb4c3dca | b7255be7fc09f7fd8178b820c6ff3c69d7e4d750 | /flask-api/python_go/pythonjs/runtime/go_builtins.py | 52c0758a59fb24623525b8c7a61e7f2eaaca7eb8 | [] | no_license | divyajyotiuk/go-asn-playground | e65bcd5474674005fb64567ec205b3b5f757e438 | ee7fd0c57e86f84e045bbc888fb3c4f265bdb969 | refs/heads/master | 2021-02-05T02:09:02.338834 | 2020-04-13T10:40:31 | 2020-04-13T10:40:31 | 243,732,017 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | # PythonJS Go builtins
# by Brett Hartshorn - copyright 2014
# License: "New BSD"
import strconv
inline("""
type __object__ struct {
__class__ string
}
type object interface{
getclassname() string
}
func (self __object__) getclassname() string {
return self.__class__
}
func ord(x string) int {
r := []rune(x... | [
"you@example.com"
] | you@example.com |
bd866540d8720bd5ec59b2b3bc0c4f34b4c1c817 | 4cf14ded3e404a9801f7fc1103d7a72019fecd0c | /alembic/unused_versions/b70252e34014_use_sqlitecompat_module.py | f581905adf8096ee4040a7550b77a921cd531c63 | [] | no_license | elthran/RPG-Game | 8315aac6b0b162e9233a901d5af5c018ca4bf9d1 | 6168d7938c72a5a0bb36ca40b96a2a7232021cb5 | refs/heads/master | 2018-09-23T14:51:27.111954 | 2018-06-12T18:28:02 | 2018-06-12T18:28:02 | 64,792,548 | 0 | 0 | null | 2018-06-12T18:32:20 | 2016-08-02T21:05:58 | Python | UTF-8 | Python | false | false | 992 | py | """Use SQLiteCompat module to drop a column.
Also first revision, yay!
IMPORTANT!!
Fancy method to drop a column when using SQLite.
Yes, it it super long and stupidly complex.
All it does is replicate:
op.drop_column('forum', 'title')
Revision ID: b70252e34014
Revises:
Create Date: 2018-01-31 20:48:18.530044
"""
f... | [
"klondikemarlen@gmail.com"
] | klondikemarlen@gmail.com |
567b57a6d4840a4a37fbb66684b700fe4a6dd28f | 74983098c5de53007bde6052a631845c781b5ba8 | /hartmann6/hartmann6_54/hartmann6.py | bbbeab0123de21bfab6548b67e88e58a1eaed978 | [] | no_license | numairmansur/Experiments | 94ccdd60f4c2cf538fab41556ac72405656c9d77 | 592f39916461c7a9f7d400fa26f849043d1377ed | refs/heads/master | 2021-04-29T12:39:16.845074 | 2017-02-15T07:36:47 | 2017-02-15T07:36:47 | 78,043,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import numpy as np
import sys
import math
import time
import csv
from hpolib.benchmarks.synthetic_functions import Hartmann6
from time import gmtime, strftime
def main(job_id, params):
print '!!! Entered Main !!!'
print 'Anything printed here will end up in the output directory for job #:', str(job_id)
print par... | [
"numair.mansur@gmail.com"
] | numair.mansur@gmail.com |
1bf849a5f322986e8eb6180f2477adc70b8f1651 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /yukicoder/MMA Contest 016/f.py | 8898f332475726cac9f98f6195e8c1c880d65675 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | S = input()
N = len(S)
alp = [[] for _ in range(26)]
ans = 0
for i, v in enumerate(S):
alp[ord(v)-65].append(i)
for i in range(26):
for j in range(1, len(alp[i])):
idx = alp[i][j]
tmp = j*(N-idx-1-(len(alp[i])-j-1))
ans += tmp
print(ans)
| [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
eb3684cf5f531df58ed97cd89a662dc3087080a9 | d951b8b2d87121947d7c0bfb7ad659d0ddb247ee | /thermo/electrochem.py | 7502bbbfb717815d2e9d71c321eec47f79b8becc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alchemyst/thermo | 5c86cadfe41cbbd7c6fb15825b3dfa5981f94439 | 745ea4733e7ec5d3a4e0cad43f9e8b855ab5968b | refs/heads/master | 2020-12-02T06:35:55.370811 | 2017-07-09T18:46:16 | 2017-07-09T18:46:16 | 96,860,644 | 3 | 0 | null | 2017-07-11T06:50:02 | 2017-07-11T06:50:02 | null | UTF-8 | Python | false | false | 26,515 | py | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
dad7e56953388c605ffb3cee21d10c587cc1f059 | 3002ce1c3a5628386fe747c8f1733b2f482780b9 | /tests/densities/test_posterior_gp_classification_ard.py | ce104a3bdc897f1397b9c19df1fb5cae0676e0e7 | [] | no_license | exord/kernel_hmc | eb74f58d4c4a5a121f7383ba11dabfc1f1c95220 | f74e9eafe5637c4c95af1823d629140ca3b4b909 | refs/heads/master | 2020-03-19T10:28:05.767470 | 2018-06-06T19:01:04 | 2018-06-06T19:01:04 | 136,373,212 | 0 | 0 | null | 2018-06-06T18:54:42 | 2018-06-06T18:54:42 | null | UTF-8 | Python | false | false | 674 | py | # depends on shogun, which might not be available
from nose import SkipTest
import numpy as np
try:
from kernel_hmc.densities.posterior_gp_classification_ard import GlassPosterior
glass_available = True
except ImportError:
glass_available = False
def test_glass_posterior_setup_execute():
if no... | [
"heiko.strathmann@gmail.com"
] | heiko.strathmann@gmail.com |
552b996cc76cd62cf2dd0b73ebf1972aec0af841 | 988176bcdae841e08106b0fe5cf07aabbc210c83 | /minimum sum of the maximum elements obtained by considering all consecutive pairs of adjacent elements after rearranging the array suitably.py | c871699196e8fd15530261a7480607de06e2522f | [] | no_license | gopiprasad008/GUVI_CODEKATA_PYTHON_CODE | ce1a63c7eea2a099c01748162c1deb47172dcd0a | 78f374e344df25aab181408d8f41b3ebe03b34ef | refs/heads/master | 2023-03-16T00:27:31.539524 | 2020-05-16T11:46:08 | 2020-05-16T11:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from itertools import permutations
n = int(input())
l = [int(x) for x in input().split()]
n = len(l)
m = list(permutations(l,len(l)))
a = 0
for i in range(len(m)):
b = 0
for j in range(len(m[i])-1):
b += max(m[i][j], m[i][j+1])
if b > a:
a = b
print(a)
| [
"noreply@github.com"
] | gopiprasad008.noreply@github.com |
087a01950facd0b6e12f0c2c3ec8eeef6135feb5 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/response/KoubeiTradeOrderEnterpriseQueryResponse.py | d46129cc828bcc061ec6d475c1359df544675c21 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 4,551 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiTradeOrderEnterpriseQueryResponse(AlipayResponse):
def __init__(self):
super(KoubeiTradeOrderEnterpriseQueryResponse, self).__init__()
self._buyer_user_id = Non... | [
"ben.zy@antfin.com"
] | ben.zy@antfin.com |
0fa7fd97a12aa5fda184f563ef020c56e3b9b228 | 3209e66f38b23400916296daa022be3f19ab4f98 | /venv/bin/easy_install-3.8 | b0ac408f2f89f56349c3aee83a8c3b68105f9ed6 | [] | no_license | surajbeston/multi_tenant | 5fd5ae88e6585592fa8f2a34f19591aad1febf6d | 205c7360cb58e32ec53387ab222a7c28d82b426b | refs/heads/master | 2023-06-02T16:50:42.931252 | 2021-06-28T18:22:06 | 2021-06-28T18:22:06 | 380,757,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | 8 | #!/home/suraj/projects/work/multi_tenant/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"surajbeston@gmail.com"
] | surajbeston@gmail.com |
55a28b610c9796ee5d9f9724c9a0bfe4eb09061c | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4M/4M-4J_wat_20Abox/set_3.py | 4e1279d74cc1ddc180be8d4b21bde67aa12bb920 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4M/wat_20Abox/ti_one-step/4M_4J/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_3.in'
temp_pbs = filesdir + 'temp_3.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
b84e8238b02903cb56003a86f49f4d732686de63 | 2ec26d004a653c0576594e48ac13dd71f539b30a | /gist_dump/sine_destruction.py | 48a1342ece579d42dc108367e41efe8f91e1bd2b | [] | no_license | kastnerkyle/research_megarepo | 6aca5b2c3b2413e0def1093b23f2826e3e7e5e97 | ab182667650fd59b99f75d4b599d7ace77a3f30b | refs/heads/master | 2021-01-17T20:31:52.250050 | 2016-12-27T01:28:54 | 2016-12-27T01:28:54 | 68,341,074 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Author: Kyle Kastner
# License: BSD 3-clause
import matplotlib.pyplot as plt
import numpy as np
fs = 100 # sample rate of 100 samples / sec, with max f 50
f = 5 # 5 Hz frequency
samples = 25 # .25 seconds of samples @ 100 samples / sec
x = np.arange(samples)
y1 = np.sin(2 * np.pi * f * x / fs + .5 * np.pi)
y2 = ... | [
"kastnerkyle@gmail.com"
] | kastnerkyle@gmail.com |
cf9c444fa59eb0b67c60813865bf38503df80ad9 | e728a7b5447c4ca03ba799bec61459528f30fd88 | /esvi/model.py | 6effe6136b1881fe62efa747a7f8180ffab43f4b | [] | no_license | reritom/Esvi | deb75c0ca4b17494ed80adc3b735be008e0b3352 | 1e3242c61ec86af7b7479cd71f12a8677fcbde1f | refs/heads/master | 2020-03-20T02:08:01.695643 | 2018-11-04T18:35:52 | 2018-11-04T18:35:52 | 137,100,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py | from esvi import fields
from esvi.query import Query
from esvi.model_instance import ModelInstance
from esvi.query_executor import QueryExecutor
from esvi.model_set import ModelSet
from typing import Optional
class Model():
"""
This class is to be inherited by child models. The static methods for interacting w... | [
"reikudjinn@gmail.com"
] | reikudjinn@gmail.com |
18cb063d140ca52402076ae16b83ac2bbdaa92cb | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /third_party/pyasn1_modules/pyasn1_modules/rfc3779.py | aaf856e822b6d15286373124b860200a0e6768d6 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 2,750 | py | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley with assistance from asn1ate v.0.6.0.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# X.509 Extensions for IP Addresses and AS Identifiers
#
# ASN.1 source from:
# https://www.rfc-editor.org/... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
08ef2eccd84d514f3ce0b256c869f809ca0f08a9 | 7caa438706a423dd9779a81f8345fcf1ec11e921 | /NXT-Python/pyglet-1.2.4/examples/soundspace/soundspace.py | 82d76b2cabf3419b1931d08ad73170c7c952cb6b | [
"BSD-3-Clause"
] | permissive | tamarinvs19/python-learning | 5dd2582f5dc504e19a53e9176677adc5170778b0 | 1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9 | refs/heads/master | 2021-07-15T13:23:24.238594 | 2021-07-08T07:07:21 | 2021-07-08T07:07:21 | 120,604,826 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,493 | py | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are ... | [
"slavabarsuk@ya.ru"
] | slavabarsuk@ya.ru |
4eb2f293067b5f57a370ad4125140d766cdc0ad6 | 4374b25bd4d7ea4a8d890b08b68ae52ed93c5eaf | /neural_sp/bin/model_name.py | 2121447c1841b0f00c16ed8c596d9bf4f95d6c89 | [
"Apache-2.0"
] | permissive | smilelite/neural_sp | 61833dc20f6ddd36b21e55663f539929c69a9399 | 86fee124982f7483656aa6b8d5db3715fda12460 | refs/heads/master | 2023-04-06T23:31:19.258575 | 2021-04-06T16:02:11 | 2021-04-06T16:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,097 | py | # Copyright 2019 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Set model name."""
import os
from neural_sp.bin.train_utils import load_config
def _define_encoder_name(dir_name, args):
if args.enc_type == 'tds':
from neural_sp.models.seq2seq.encoders.... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
4a94d4e0f476fcbb73a0a653a656166d0438ab10 | 2be678ddc49b9ce9c2f7bd198d12b6be94374ddd | /precise/scripts/graph.py | 14cf83e4ec816dd3eabc2a3e18c0d72b66f281b2 | [
"Apache-2.0"
] | permissive | andreselizondo-adestech/mycroft-precise | 2a7f08c7d74d39a1455ea1c15ded47fdedc89096 | 0e0ac5b8b14ff6a6ecffd300c40049131990e8c9 | refs/heads/dev | 2021-05-21T01:21:30.066505 | 2020-08-19T19:37:05 | 2020-08-19T19:37:05 | 252,484,092 | 3 | 1 | Apache-2.0 | 2020-08-19T19:32:00 | 2020-04-02T14:49:40 | Python | UTF-8 | Python | false | false | 5,814 | py | #!/usr/bin/env python3
# Copyright 2019 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"matthew331199@gmail.com"
] | matthew331199@gmail.com |
f6835052381793f2c861225e2220abd09398454e | 61dd3524e904ee055a761815239da55db26f03eb | /PYTHON-SALA DE AULA/Exercicios condicionais/exe-37.py | 42797fee163339669239668fce6cbf3207f3a018 | [
"Apache-2.0"
] | permissive | JaumVitor/HOMEWORK-PYTHON | 149e4cb6d10421d1e980dd5b75a92f87355582f8 | 7be3299f36af3a924fc5c6f4a63aeed0fd8fb38e | refs/heads/master | 2022-09-15T11:00:55.019562 | 2022-08-26T18:46:06 | 2022-08-26T18:46:06 | 256,103,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | print ('- salários até R$ 280,00 (incluindo) : aumento de 20%')
print ('- salários entre R$ 280,00 e R$ 700,00 : aumento de 15%')
print ('- salários entre R$ 700,00 e R$ 1500,00 : aumento de 10%')
print ('-salários de R$ 1.500,00 em diante : aumento de 5%')
print ('='*43)
sal = float ( input ('Qual valor do salario ? '... | [
"joao.vitor.pires.060@gmail.com"
] | joao.vitor.pires.060@gmail.com |
dde80391d1a289f17f39b3d1db3696e9b50a41ec | 530797702626216b6aebc8fa5b55fc0cb494ad3e | /cryptid/cryptid_maps_generator.py | 684018146052a3fe0e77e6788d3135746871f012 | [] | no_license | trung-hn/fun-stuffs | fbe3951bad6a12a5c703892268f0422640aa2232 | afadd2788e8eeff256e47a2c6a23ee6089bd2595 | refs/heads/master | 2023-08-31T20:55:28.662905 | 2023-08-29T20:38:54 | 2023-08-29T20:38:54 | 203,461,969 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,782 | py | #%%
import base64
import json
from selenium import webdriver
from pathlib import Path
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
import time
DRIVER_PATH = "D:\Workspace\sandbox\chromedriver.exe"
driver = webdriver.Chrome(executable_path=DRIVER_PATH)
driver.get("https... | [
"trung.nang.hoang@gmail.com"
] | trung.nang.hoang@gmail.com |
0f43d2c8b893f082d38427beb7a50cfa5047b97d | f60eb7d15ce3ca06e2db1dc0af8b3b87bed08c37 | /home/migrations/0026_auto_20170613_1726.py | c701f4e2b1b402be2ac5c422cd43ebada3d8feb6 | [] | no_license | wlminimal/epc | 96136f0c5f2b4ddc04fbc7e7b76d6a41c631ea26 | 2127a4e273a69a3ca0d5711fd1452c1bc5ab7590 | refs/heads/master | 2022-12-12T11:33:57.711869 | 2019-04-12T16:33:58 | 2019-04-12T16:33:58 | 92,700,181 | 0 | 0 | null | 2022-12-07T23:58:05 | 2017-05-29T02:20:33 | Python | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-13 17:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0025_auto_20170613_1721'),
]
operations = [
migrations.AlterField(
... | [
"wlminimal@gmail.com"
] | wlminimal@gmail.com |
54a0fca131604d36c4f3e8a1caf9b2e7d1d89f9f | a945bbf73016b1689a0dc9811171fac51fad0bba | /research/limited_gradient_smoothing/utils.py | 5638b9cceadc87fb45822807b1342e110ba9cef1 | [
"MIT"
] | permissive | jamietknight/AutoEq | a40cc47e5c19625191903c404cb785ac1ca3883b | 8ef7ffefcfe8786d318f59b2004ec68af09ed61d | refs/heads/master | 2023-01-14T21:09:16.405027 | 2020-11-29T12:49:00 | 2020-11-29T12:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,055 | py | # -*- coding: utf-8 -*-
import sys
from pathlib import Path
ROOT_PATH = Path().resolve().parent.parent
if str(ROOT_PATH) not in sys.path:
sys.path.insert(str(ROOT_PATH))
import numpy as np
import scipy
from frequency_response import FrequencyResponse
def limited_slope_plots(fr, limit):
fr.equalization = -fr.... | [
"jaakko.o.pasanen@gmail.com"
] | jaakko.o.pasanen@gmail.com |
d35824f9c7bc1d9b5bdf9ab1821580ea4c94cc6e | 3d9640bf3fb1da00f2739424723fbf6d74b574c0 | /project/accounts/migrations/0002_auto_20200809_1536.py | 9bb3a316cc8f71e82a6646748c93e6a9df7fbec6 | [] | no_license | brahim024/django-user-auth | 265df0de18bdce4756c53c616ba097755175b519 | 41339d449f6d2abb07ab30e087234915ada59186 | refs/heads/master | 2022-12-22T06:13:02.973405 | 2020-09-26T00:08:58 | 2020-09-26T00:08:58 | 279,684,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 3.1 on 2020-08-09 13:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='phone',
fi... | [
"ifninos168@gmail.com"
] | ifninos168@gmail.com |
bba7005497f25a02a0b5b5133051bdc931a6245d | 64327166debec734cdbdceed673affc7ef806901 | /backend/test_expo_app_23831/settings.py | 267df1ccc5565082c44b00a4f948a140ec41ff5d | [] | no_license | crowdbotics-apps/test-expo-app-23831 | 85aa164045a6d6988b4507ecb316d72a1482db74 | 67c0d3990ecc85359f9897676d58dad00bcdd3e7 | refs/heads/master | 2023-02-16T00:18:19.859203 | 2021-01-14T00:33:41 | 2021-01-14T00:33:41 | 329,466,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | """
Django settings for test_expo_app_23831 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
431e0d44cfd2d2914eee2be9382d559ed9d7fc01 | 4daff90cfce1f253a3d8b14583dc0a038d553ca5 | /PyMess/MAG/SaveAllDip.py | 0e4e30b2180fcae15b7a47f17ab897311e2a895b | [
"MIT"
] | permissive | mattkjames7/PyMess | 42d0119a91d130649b3c601889ef132e38facb4f | f2c68285a7845a24d98284e20ed4292ed5e58138 | refs/heads/master | 2021-06-28T14:43:32.748427 | 2020-10-27T10:27:52 | 2020-10-27T10:27:52 | 174,409,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | import numpy as np
from ._SaveDip import _SaveDip
from .DataAvailability import DataAvailability
def SaveAllDip(Minute=False,StartI=0,EndI=None):
'''
This procedure should save all magnetometer data rotated into
a coordinate system useful for studying waves, with components in
the poloidal, toroidal and paralle... | [
"mattkjames7@gmail.com"
] | mattkjames7@gmail.com |
6a244720c1ec569ef5ad9d6d031558d08080eddc | 87f574548a321a668f325bc3d120a45366b0b76b | /booking/migrations/0029_auto_20151020_1527.py | a7ae5a2639c51692d05636dbc2675c9b1f1421d8 | [] | no_license | judy2k/pipsevents | 1d19fb4c07e4a94d285e6b633e6ae013da0d1efd | 88b6ca7bb64b0bbbbc66d85d2fa9e975b1bd3081 | refs/heads/master | 2021-01-14T11:11:26.616532 | 2016-10-07T20:47:39 | 2016-10-07T20:55:13 | 36,600,721 | 0 | 0 | null | 2015-05-31T11:51:14 | 2015-05-31T11:51:14 | null | UTF-8 | Python | false | false | 5,457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
import django_extensions.db.fields
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"rebkwok@gmail.com"
] | rebkwok@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.