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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9af39db942c3e1dde49345526d12a0c37972f44a | 739e41d4f24f79c772d266cded0de9b759c6e953 | /venv/lib/python3.6/site-packages/datasets/__init__.py | eb40f7f2cfc457e3e42b84454b398c6c73b9dd70 | [
"MIT"
] | permissive | MachineLearningBCAM/Minimax-risk-classifiers-NeurIPS-2020 | 24b7bbdecf459292f8b58be286feab3b9aa341ba | 82586c632268c103de269bcbffa5f7849b174a29 | refs/heads/main | 2023-05-18T15:41:13.495286 | 2021-06-11T18:21:35 | 2021-06-11T18:21:35 | 304,268,819 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | # flake8: noqa
# coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets 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.... | [
"adiaz@bcamath.org"
] | adiaz@bcamath.org |
9685449d5e5645b6666498b20dc26c867e5091a9 | 946748c5c4bc70df42e852cc285a0fe5317bec45 | /ax/core/experiment.py | 1033e9b88d204cbedcbf68fb785d40d1e1cee43d | [
"MIT"
] | permissive | isabella232/Ax | 34cf41fde3f7ed7f478149b83aa8b72bfa8f5116 | 051054c6f21617937fc263af174773fa55c37818 | refs/heads/master | 2023-04-11T11:49:22.097326 | 2021-04-17T17:22:53 | 2021-04-17T17:25:14 | 359,406,904 | 0 | 0 | MIT | 2021-04-19T09:51:19 | 2021-04-19T09:46:11 | null | UTF-8 | Python | false | false | 35,976 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from collections import OrderedDict, defaultdict
from datetime import datetime
from enum import Enum
fro... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b21cdd6b34ce845121a1bedbe1cbd7d5fcb287c1 | 2834f98b53d78bafc9f765344ded24cf41ffebb0 | /weblayer/renderer/DEPS | e83c233386cd4f75dd17543c345adb86342e4984 | [
"BSD-3-Clause"
] | permissive | cea56/chromium | 81bffdf706df8b356c2e821c1a299f9d4bd4c620 | 013d244f2a747275da76758d2e6240f88c0165dd | refs/heads/master | 2023-01-11T05:44:41.185820 | 2019-12-09T04:14:16 | 2019-12-09T04:14:16 | 226,785,888 | 1 | 0 | BSD-3-Clause | 2019-12-09T04:40:07 | 2019-12-09T04:40:07 | null | UTF-8 | Python | false | false | 784 | include_rules = [
# This is needed for error page strings/resources.
# TODO(1024326): If WebLayer stays with WebView's error pages implementation
# long-term, componentize these strings/resources as part of componentizing
# that implementation and remove the need for this dependency.
"+android_webview/grit",
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
f2785e274517171e84c495bf5d95f3995c8dc2d8 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-resource/generated_samples/templatespecs/template_spec_versions_list.py | c4ccd74ea392cff33ce63cf02c753bf0b0fdf13a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,616 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f2635347110c452a2d60ced4e5326758ef7f8b40 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03359/s972946578.py | 710fd6d1cfa4dd159230bf87a4c4b7c3ef86d7e3 | [] | 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 | 95 | py | a,b=(int(x) for x in input().split())
if a <= b:
count = a
else:
count = a - 1
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4a4f00b6246f6d1d9b4c2c40a515f494e23e5d1f | 6448c040f56d443673e25068a09ff904df8cb37a | /digital_comms/mobile_network/transmitter_module.py | 4f26e411bb277c982f0ce90ef9e6c91910ef470d | [
"MIT"
] | permissive | tg137/digital_comms | d6604e09dafad8079a9a2d1231b472457a07aef6 | 2b669833ceaa3d6cb28c820859c1ed5d0a5ce691 | refs/heads/master | 2020-05-25T04:46:46.758874 | 2019-05-19T17:04:12 | 2019-05-19T17:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,777 | py | import os, sys, configparser
import csv
import glob
from rtree import index
import fiona
from shapely.geometry import shape, Point, Polygon, MultiPoint, mapping
from shapely.geometry.polygon import Polygon
from shapely.wkt import loads
from shapely.prepared import prep
import numpy as np
from pyproj import Proj, trans... | [
"edward.oughton@gmail.com"
] | edward.oughton@gmail.com |
352bab04b5f300ec488b2c2277b3fcce8aa5430d | 0fd92b7d882a1edb5542f6600bb177dcad67ed50 | /powerful104/2476.py | 59884bdebe88950cc45e5841b1b8de057f17569f | [] | no_license | alpha-kwhn/Baekjun | bce71fdfbbc8302ec254db5901109087168801ed | f8b4136130995dab78f34e84dfa18736e95c8b55 | refs/heads/main | 2023-08-02T11:11:19.482020 | 2021-03-09T05:34:01 | 2021-03-09T05:34:01 | 358,347,708 | 0 | 0 | null | 2021-04-15T17:56:14 | 2021-04-15T17:56:13 | null | UTF-8 | Python | false | false | 317 | py | ans=0
for _ in range(int(input())):
a, b, c= map(int, input().split())
prize=0
if a==b==c:
prize=10000+a*1000
elif a==b or a==c:
prize=1000+a*100
elif b==c:
prize=1000+b*100
else:
prize=max(a,b,c)*100
if ans<prize:
ans=prize
print(ans) | [
"noreply@github.com"
] | alpha-kwhn.noreply@github.com |
b3a89023ea3508c3e11a114dd212533d8cafa3d2 | c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5 | /ml/m30_pca2_5_diabetes_RF.py | cf6c7c7cf6d4e1510dfd2fa544ccd37999038961 | [] | no_license | 89Mansions/AI_STUDY | d9f8bdf206f14ba41845a082e731ea844d3d9007 | d87c93355c949c462f96e85e8d0e186b0ce49c76 | refs/heads/master | 2023-07-21T19:11:23.539693 | 2021-08-30T08:18:59 | 2021-08-30T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | # PCA : 차원축소, 컬럼 재구성
# RandomForest로 모델링
import numpy as np
from sklearn.datasets import load_diabetes
from sklearn.decomposition import PCA
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
fro... | [
"hwangkei0212@gmail.com"
] | hwangkei0212@gmail.com |
9db9821260783c8ab2205fe0109af946caaa20e8 | 3806db5b4bb7a638f30c818a29ccaf2b0ddb2836 | /test_141.py | 47edc016610b2369996717a30fdc8799c917f569 | [] | no_license | EomAA/fenics-qa | d0a687a7b84c51417e96eeeef9855c0d4ba27dea | c37a36a14450d0e7f6432c4726c5d96e0d6c4e96 | refs/heads/master | 2021-12-15T12:07:10.316478 | 2017-08-18T09:16:01 | 2017-08-18T09:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import dolfin
mesh = dolfin.UnitSquareMesh(1,1)
dX = dolfin.dx(mesh)
fe = dolfin.FiniteElement(
family="Quadrature",
cell=mesh.ufl_cell(),
degree=1,
quad_scheme="default")
cppExprCode='''
namespace dolfin
{
class CppExpr : public Expression
{
public:
CppExpr(): Expression(0)
{
}
vo... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
571ad1ed92f668725894fda736f6a256d49267df | c4f01eec090833762b884c2078161df087d09b0d | /Design of software systems/Лаба 6/Scrapyard_Python/main.py | 0f4823e7f1f4c5f38b15f88f0869b4765e3609a9 | [] | no_license | areyykarthik/Zhukouski_Pavel_BSU_Projects | 47a30144c5614b10af521a78fba538a0e9184efa | 3540979e680732d38e25a6b39f09338985de6743 | refs/heads/master | 2023-08-07T02:49:34.736155 | 2021-10-05T21:57:03 | 2021-10-05T21:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,386 | py | from tkinter import *
from tkinter import messagebox
import sqlite3
CurrentID = 1
CurrentName = ""
CurrentPrice = 0.0
CurrentAmount = 0
CurrentGood = [0, "", 0.0, 0]
CurrentOrder = []
Window_SignIn = Tk()
Window_SignIn.withdraw()
Window_SignUp = Toplevel(Window_SignIn)
Window_SignUp.withdraw()
Window_OnlineShop =... | [
"shist.pupust@mail.ru"
] | shist.pupust@mail.ru |
e358e020b0dd01cb1f401a59c6dc293c3929cbad | 6ea69f9a4431837a36b04ab926ac9c565b8a5eb6 | /pydemic_ui/i18n.py | 53f5ca158c862fef6e82e4716ab8fbbb4df02fcd | [
"MIT"
] | permissive | WillAllmeida/pydemic-ui | e9fad4845c428f3e2f0e7a65913391c3216083b3 | f7c05d97489918736b0c7b1da4b0992bd77ed9a1 | refs/heads/master | 2023-01-24T13:49:27.219863 | 2020-10-07T18:11:02 | 2020-10-07T18:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | from gettext import gettext
from pathlib import Path
import sidekick as sk
LOCALEDIR = Path(__file__).parent / "locale"
def set_i18n(lang, language=None):
"""
Set locale and translations.
Examples:
set_i18n('pt_BR.UTF-8') -> set locale to pt_BR.UTF-8 and language to pt_BR.
"""
import ge... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
a344bfbfba2175a962b94b0450d79418dd1cd225 | 8246e9fbdecdb37651e0d09497fd9428e434f33c | /ServiceCatagory/urls.py | e17e6184bb33e3ef9d66c52d6ec20aae7d197828 | [] | no_license | rajeev1234/Landing-Page | 479995026ab01fc504a1e9502e7763dc04266009 | 4bfd22a6a1776907ba78b3dc9037064c820b049e | refs/heads/master | 2020-03-08T13:37:20.253252 | 2018-04-05T06:33:26 | 2018-04-05T06:33:26 | 128,162,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py |
from django.urls import path
from . import views
urlpatterns = [
# Path to list view of ServiceCatagory : ServiceCatagory_list
path('', views.ServiceCatagoryListView.as_view(), name='ServiceCatagory_list'),
# Path to create new ServiceCatagory : ServiceCatagory_new
path('new/', views.ServiceCata... | [
"ccrcian.rajeev1@gmail.com"
] | ccrcian.rajeev1@gmail.com |
0e535165547e2b25ce06072821dc32d3a608475f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-244.py | 29dca34d6015fcd1da12c7a36d7a12abcdf185e5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
47ab96d26333bbbb7fe7e511845362084c6c14f8 | 6c838b17ff4e68a958045bcaab17371250748100 | /python/looping/assignment/no2).py | b250ed9ef617c2218f40abb71273cc256b779b70 | [] | no_license | suchishree/django_assignment1 | b0938c5de2d0b508f711e569110a12d229b6c0f5 | 1e6b83dce9505c35d7a1b31414c81f2596a00943 | refs/heads/main | 2023-07-15T05:10:15.842262 | 2021-08-13T14:25:39 | 2021-08-13T14:25:39 | 376,197,760 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | for i in range(10):
print(i, end=" ") | [
"suchishree99@gmail.com"
] | suchishree99@gmail.com |
aab3d5f4fcf039292e9e675febb1d2c545bee017 | d9e08fdaf07a242a6fb071ff47bb8aaadba86c72 | /2016Vertexing/GenerateEfficiencyTable_KillTracks.py | 4c63bf0afa83f0518d2e6deb06ccfc74c7c2853a | [] | no_license | mrsolt/HPS | 8d6577b54979b463c2ca8cc6d66db8b704df4ed4 | 2678da7801daf0eb314d11f837e235138ebe8340 | refs/heads/master | 2021-01-19T03:43:50.264869 | 2020-09-24T18:35:19 | 2020-09-24T18:35:19 | 46,081,219 | 1 | 2 | null | 2020-08-05T21:54:12 | 2015-11-12T21:13:52 | Python | UTF-8 | Python | false | false | 49,043 | py | #!/usr/bin/env python
#Author Matt Solt mrsolt@slac.stanford.edu
import sys
import array, math
import numpy as np
import random
import ROOT
from ROOT import gROOT, gStyle, TFile, TTree, TChain, TMVA, TCut, TCanvas, gDirectory, TH1, TGraph, gPad, TF1, TH1F, TLegend, TLatex, TGraphErrors
import getopt
def print_usage():... | [
"mrsolt@stanford.edu"
] | mrsolt@stanford.edu |
836f316ea7373f660f670c441dd647f0fbff730c | 6eb9078ce34bed9c895b821aae30f97bcc50ea7d | /前端第二课:Django/muggle/blog/admin.py | 1eb06d37c9dd952bfd268205ff4916ceb34a5fa1 | [] | no_license | yinsendemogui/Atomspace | e7b9e24f8e541f57bdbae2e4d935a3b67133bc69 | 1053d7e3e71365f6acca99431c2d4295243d3df1 | refs/heads/master | 2020-06-11T19:24:53.123006 | 2016-12-19T16:53:51 | 2016-12-19T16:53:51 | 75,628,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from blog.models import UserProfile, Topic, Question, Answer, Comment,Ticket
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
# Register your models here.
class UserProfileInline(ad... | [
"215379068@qq.com"
] | 215379068@qq.com |
de9fb2ae97800642eda88142b72a772c8c9c47c5 | 2b14ef0b8c086a2dd047f6fab6f565f27c3634c6 | /BOJ/브루트포스/호석이두마리치킨.py | 48feda541fda601099cc09a058365b61117ed8f8 | [] | no_license | psj8532/problem_solving | 055475bbdc8902ed4d19fd242d95dff461cc9608 | 8ae06fc935c3d0a3c5ec537f13677b0534869df3 | refs/heads/master | 2023-06-09T10:16:01.248293 | 2021-05-07T03:09:38 | 2021-05-07T03:09:38 | 240,618,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from itertools import combinations
from _collections import deque
def bfs(here, depth, chicken_house):
if here in chicken_house: return 0
deq = deque([[here, depth]])
visited = [False] * (N + 1)
visited[here] = True
while deq:
h, d = deq.popleft()
if h in chicken_house:
... | [
"psj8532@naver.com"
] | psj8532@naver.com |
e719c824c41b673746fdbfe99ee5d27001eb7e45 | 5f92dd6164c41e5756842da0a053b207005be252 | /tests/models/test_dagcode.py | 6f3c5d64cdf66aa29dc7df109dcd370d4f0fa3d5 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | mans2singh/airflow | 24d17446457ebfbf17850d336722f79e46b06404 | de9633f93a366ebc0a46d1ec4df2c4aa9a18357d | refs/heads/main | 2023-03-20T17:56:18.506101 | 2022-10-22T19:41:57 | 2022-10-22T19:41:57 | 168,956,212 | 0 | 0 | Apache-2.0 | 2019-02-03T14:51:24 | 2019-02-03T14:51:23 | null | UTF-8 | Python | false | false | 6,409 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | mans2singh.noreply@github.com |
2f3246645ae2b648b8a03a0fbdc252ec71da5335 | 119646d6e1f13582c577fd7b87c9654839a0b806 | /hubspot/cms/domains/api/__init__.py | b4e60c2edbcb4bf654f47d3f798df161efd090c9 | [] | permissive | HubSpot/hubspot-api-python | 446daaceeb3a6ce27edcd0414603c6d4bc07e327 | d51a64c413461c0b82d8a41743e752d878747ca1 | refs/heads/master | 2023-08-31T09:52:56.583803 | 2023-08-07T11:00:27 | 2023-08-07T11:00:27 | 248,865,684 | 227 | 98 | Apache-2.0 | 2023-09-14T15:25:19 | 2020-03-20T22:41:24 | Python | UTF-8 | Python | false | false | 146 | py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from hubspot.cms.domains.api.domains_api import DomainsApi
| [
"atanasiuk@hubspot.com"
] | atanasiuk@hubspot.com |
d09be6ac32398bbd0397467b2ebf8504d775e116 | 356740062993a5967717098a7a3ee78ac6c6cf3f | /chapter15/projects/brute_force_pdf/pdf_password_breaker.py | 814c051fc597e336a223e62a06f1d762f59c9ba6 | [] | no_license | xerifeazeitona/autbor | 79588302f14c0c09b1f9f57fcb973e656ee1da5c | c37ccbfa87c1ac260e728a3a91a8f2be97978f04 | refs/heads/main | 2023-04-03T18:01:34.588984 | 2021-04-07T17:59:26 | 2021-04-07T17:59:26 | 348,749,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | """
Brute-Force PDF Password Breaker
Say you have an encrypted PDF that you have forgotten the password to,
but you remember it was a single English word. Trying to guess your
forgotten password is quite a boring task.
Instead you can write a program that will decrypt the PDF by trying
every possible English word until... | [
"juliano.amaral@gmail.com"
] | juliano.amaral@gmail.com |
b9f7406f059d850f23f3e542f6e85d3ad59ee508 | cd555725b300579d44c0bd3f6fc8f6a968912dfb | /UF2/Practica 25/Ejercicio4/main.py | b5ab8a5b60b80fa92c11bf55fc828788bc6704fe | [] | no_license | aleexnl/aws-python | 2da5d8a416927f381618f1d6076d98d5e35b3b5e | 03fce7744b443b2b59a02c261067ecae46ecc3d9 | refs/heads/master | 2022-11-24T08:58:24.686651 | 2020-04-18T15:58:32 | 2020-04-18T15:58:32 | 221,772,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from module import functions as fc # Llamamos al modulo que contiene las funciones
print(fc.mcd(30, 3)) # Llamamos a la funcion y le pasamos dos parametros
| [
"alex.nieto0027@gmail.com"
] | alex.nieto0027@gmail.com |
ff3e197365e7f7fe3ed5a2b0db876a287e1fc0d4 | 1b9523e970edace631326d652c1ac88bbc5e4921 | /Launchkey/Launchkey.py | 3ba423fd3d56201b2b02de22f6b9c4a41ce5e104 | [] | no_license | pinterre/AbletonLive9_RemoteScripts | 3d612d9620109125eb127a6119b067e3b21d74ab | 760c2991d39b5b4288ca0c012c12f2036556a4ef | refs/heads/master | 2020-12-25T03:21:37.827211 | 2014-06-04T19:59:52 | 2014-06-04T19:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,587 | py | #Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/Launchkey/Launchkey.py
from __future__ import with_statement
import Live
from _Framework.ControlSurface import ControlSurface
from _Framework.InputControlElement import InputControlElement, MIDI_CC_TYPE, MIDI_NOTE_TYPE
fr... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
a7bf7e1b684f8cbdcd574f13eed72023cf50bd3d | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/statistics/view/formulacatalog/formulacatalog.py | b878626afcde61247e92d719fe488330d5646617 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 2,267 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
68154eff9922df9e73a7cc26900053f1c09742e8 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/secretstorage/collection.py | cb7de6508e71b59c58873630fbbd3cc64da134b5 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/94/7c/12/3a414ee6c46ca60714068048f191b66aed9b71448ee97eb892c55d9ec4 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
3629c99cabd1fa8d37fb6433b4c595dcf55e3483 | 6c816f19d7f4a3d89abbb00eeaf43dd818ecc34f | /venv/Scripts/easy_install-3.6-script.py | a95d3aabec1724ba66e9a38d3cbc071eb631e331 | [] | no_license | reo-dev/bolt | 29ee6aa7cfc96bd50fa7a7dae07fbaafc2125e54 | d1a7859dd1ebe2f5b0e6e295047b620f5afdb92e | refs/heads/master | 2023-07-13T04:05:57.856278 | 2021-08-27T09:07:03 | 2021-08-27T09:07:03 | 382,195,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!C:\Users\kwongibin.DESKTOP-KIC4V0D\PycharmProjects\bolttnut\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.arg... | [
"75593016+reo-dev@users.noreply.github.com"
] | 75593016+reo-dev@users.noreply.github.com |
4e775386203f7562b4f2575de0d1b52520df4054 | eb677df036fb922c36be3ac309a6b51137161343 | /bin/alpha | fd242e28ca7f18e5ca9be924643804c1d152bc05 | [] | no_license | kmyk/dotfiles | f1be5f1732a22a44605faca92a003de7a40968fa | 33fbd461135fa6bc4b954c403402d4433cc45abd | refs/heads/master | 2021-07-02T03:17:12.814548 | 2020-09-20T05:56:52 | 2020-09-20T05:56:52 | 11,720,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | #!/usr/bin/env python
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--upper', action='store_true')
parser.add_argument('-l', '--lower', action='store_false', dest='upper')
parser.add_argument('-d', '--delimiter', type=str, default=' ')
parser.add_argument('-1', action='store_c... | [
"kimiyuki95@gmail.com"
] | kimiyuki95@gmail.com | |
77c3d84a6a26cc77989a45e2fc4ac568d1945e4d | 1e78c5b957b31fe6c7ff9ad54694e7fa0048b46b | /movie_reviews/urls.py | 25f160118eaefb656b03eb7481ebbaa1e53536e1 | [] | no_license | chloe-codes1/movie-reviews | c7c0baa951f5d43ccc924d2a53f458e368193e37 | df0c5e1c0d32a97df1908489964cea427c9479d0 | refs/heads/master | 2021-05-26T15:45:19.743155 | 2020-04-27T04:06:49 | 2020-04-27T04:06:49 | 254,127,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | """django_pjt2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"juhyun.kim@lindsey.edu"
] | juhyun.kim@lindsey.edu |
f79b600165531bc2f99a143d492fcdd1979da970 | d5ea367d4cb6381c4ccb79448d41ad5e46c77a46 | /querycorrect/recovery.py | 524f0999718a28c719f70b734cdf864014326750 | [
"Apache-2.0"
] | permissive | zouning68/QueryCorrector | cbe712f6e89c34b020d05ccd7a274adccd0f1ab6 | afe3814c7dbd536089611510e82dacc56ef36413 | refs/heads/master | 2020-09-13T03:47:49.813394 | 2020-01-19T09:15:13 | 2020-01-19T09:15:13 | 222,647,649 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,912 | py | import codecs, operator, os, time, logging, kenlm, jieba, re
from pypinyin import lazy_pinyin
import numpy as np
#***********************************************************************************************************************
PUNCTUATION_LIST = ".。,,,、??::;;{}[]【】“‘’”《》/!!%……()<>@#$~^¥%&*\"\'=+-_——「」"
re... | [
"noreply@github.com"
] | zouning68.noreply@github.com |
bde40d296203cf014d6fa9584b60e567c306d60d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/64f6942fedc844af848cc19de6e53748.py | bc316926c867570f3906523b44066297c83447b6 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 239 | py | #didnt work out with replace method
#so i used the translate method with a map
#Is translate deprecated in Python3.4?
def to_rna(what):
mapper = what.maketrans('GCTA','CGAU')
what = what.translate(mapper)
return what
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
848502b51141149a40a491138906f07fd3f8693d | c96cd25f0a74a7feecbf363948bab51018b719f1 | /tests/modules/jmeter/test_JMX.py | 7dad01cad775949d32372aaf1ec674e835b7fc08 | [
"Apache-2.0"
] | permissive | YajanaRao/taurus | ee7468ec287a4b07ea56ca671537f363906bbe26 | c08e5b90063bf4f7904e8ec4eb5f3c50a8e89ac0 | refs/heads/master | 2020-03-28T10:38:43.563353 | 2018-09-10T14:58:35 | 2018-09-10T14:58:35 | 148,129,849 | 0 | 0 | Apache-2.0 | 2018-09-10T09:17:42 | 2018-09-10T09:17:42 | null | UTF-8 | Python | false | false | 14,515 | py | # coding=utf-8
from . import MockJMeterExecutor
from bzt.engine import Provisioning
from bzt.jmx import JMX, LoadSettingsProcessor
from tests import BZTestCase, RESOURCES_DIR
class TestLoadSettingsProcessor(BZTestCase):
def configure(self, jmx_file=None, load=None, settings=None, has_ctg=None):
executor =... | [
"apc4@ya.ru"
] | apc4@ya.ru |
a3b15afa593d694915db65262098bf26c3ff1509 | 5e5610e07441b320e4b6a088c0f6cc93334bba91 | /transportation/management/commands/services.py | c2a831900e54fb88826d3c55805a063f27071ef5 | [] | no_license | pixmin/poimap | cdea21aeb753e358166474033dc68f9eac8e929f | b736a2bbf40467307aa2e12012347fb44be34cf9 | refs/heads/master | 2020-05-02T07:42:18.298709 | 2019-03-26T16:10:53 | 2019-03-26T16:10:53 | 177,825,011 | 0 | 0 | null | 2019-03-26T16:12:00 | 2019-03-26T16:12:00 | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.core.management.base import BaseCommand
from django.contrib.gis.geos import GEOSGeometry
from django.utils.text import slugify
from geopy.geocoders import GoogleV3
from poimap.models import POIType
from transportation.models import Line, Route, RouteS... | [
"alban.tiberghien@gmail.com"
] | alban.tiberghien@gmail.com |
bb1416137eb4f898b55ecbf227c26ea57e6b504b | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/addon_library/local/weight_layers/layer_scripts/WLAYER_procedural_texture.py | 3c74ed302830f717ee1cea767d61171ba2ba06b6 | [
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 1,328 | py | from .WL_layer_functions import CustomLayerSettingsBase
import bpy
class CustomLayerSettings(CustomLayerSettingsBase):
def texture_enum_items(self, context):
items = []
for node in self.layer.layer_group.nodes:
if "TEX" in node.type:
name = node.name
it... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
753b42ccddf3a2b6b07464b8a1830571ae36357c | 9a72da59caf9d829cb3981a4b5e8bcde640732be | /releng_tool/engine/post.py | 91998ef0745137254bcc8301649d44f51dd92fcd | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | releng-tool/releng-tool | 0fa8c44b864ee10e7a8c8eeb54af7acc62b3cd56 | d05eb2153c72e9bd82c5fdddd5eb41d5316592d6 | refs/heads/main | 2023-08-22T09:52:12.341285 | 2023-08-06T21:27:18 | 2023-08-06T21:27:18 | 155,482,664 | 12 | 2 | BSD-2-Clause | 2023-01-03T06:21:00 | 2018-10-31T01:54:18 | Python | UTF-8 | Python | false | false | 1,775 | py | # -*- coding: utf-8 -*-
# Copyright releng-tool
# SPDX-License-Identifier: BSD-2-Clause
from releng_tool.util.io import interim_working_dir
from releng_tool.util.io import opt_file
from releng_tool.util.io import run_script
from releng_tool.util.log import note
from releng_tool.util.log import verbose
import os
import... | [
"james.d.knight@live.com"
] | james.d.knight@live.com |
e73b0c2f931c70d88a494d81742b662b1f9f794a | d346c1e694e376c303f1b55808d90429a1ad3c3a | /easy/412.fizzBuzz.py | 1d68ac4f80bf7dfcb5ab984bf7365445d85410af | [] | no_license | littleliona/leetcode | 3d06bc27c0ef59b863a2119cd5222dc94ed57b56 | 789d8d5c9cfd90b872be4a4c35a34a766d95f282 | refs/heads/master | 2021-01-19T11:52:11.938391 | 2018-02-19T03:01:47 | 2018-02-19T03:01:47 | 88,000,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | class Solution(object):
def fizzBuzz(self, n):
"""
:type n: int
:rtype: List[str]
"""
#mine
L = []
for i in range(1, n+1):
if i%15 == 0:
L.append("FizzBuzz")
elif i%3 == 0:
L.append("Fizz")
elif i%5 == 0:
... | [
"aria@Arias-MacBook-Pro.local"
] | aria@Arias-MacBook-Pro.local |
02bdabe52bc097773b81a49357863b67bc913c97 | 73332abdcadb62f4f262d0c30856c3c257a9ee7d | /tests/mixins/test_iomixin.py | 5446c85b67adfa439bc9fec1f77da92295621017 | [
"BSD-2-Clause"
] | permissive | code-google-com/oyprojectmanager | 454435604cc150c1b54ec2c54294e0fa05490f82 | 3085ecbe1cc04a73ec69b4848b789009546feae7 | refs/heads/master | 2021-01-19T02:40:56.342086 | 2015-01-26T16:40:00 | 2015-01-26T16:40:00 | 32,266,400 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,925 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2009-2012, Erkan Ozgur Yilmaz
#
# This module is part of oyProjectManager and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
import os
import shutil
import tempfile
import unittest
from sqlalchemy import Column, Integer
from oyProjectMana... | [
"eoyilmaz@gmail.com"
] | eoyilmaz@gmail.com |
a74b1db5a96cc5517f157ef2a3dd75e49245b3eb | 06e34e2dface0b87fa785cab7e65422a5f20ba18 | /Solutions/165-Compare-Version-Numbers/python.py | 048bbf21130c6b62a12402c9c0159f5b6c6472cd | [] | no_license | JerryHu1994/LeetCode-Practice | c9841b0ce70451c19c8a429a3898c05b6233e1d4 | b0ce69985c51a9a794397cd98a996fca0e91d7d1 | refs/heads/master | 2022-02-10T04:42:28.033364 | 2022-01-02T04:44:22 | 2022-01-02T04:44:22 | 117,118,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | class Solution(object):
def compareVersion(self, version1, version2):
"""
:type version1: str
:type version2: str
:rtype: int
"""
v1list, v2list = [int(i) for i in version1.split(".")], [int(i) for i in version2.split(".")]
cmplen = min(len(v1list), len(v2list... | [
"hjr01211@gmail.com"
] | hjr01211@gmail.com |
9c4db63f3fccff9b34f02d52409ad971da14fb48 | 069a4ac8e931b77571f90fcc845b2c88ce18e069 | /Chapter5/stack_queue_notes.py | 4b2ebe26b0e772e5387d2cc623594c35e635490c | [
"Apache-2.0"
] | permissive | qimanchen/Algorithm_Python | 0f60c38e01119d7a99469f76194fdeb363008229 | 72eabb5fcc9fafb17172879c1250d3c9553e583d | refs/heads/master | 2020-04-28T17:16:28.520904 | 2020-01-31T07:27:48 | 2020-01-31T07:27:48 | 175,440,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
栈和队列:
容器 包含 元素(其他数据结构)
只支持数据项的存储和访问,不支持数据项之间的任何关系
最重要的功能: 元素的存入和取出
两种访问顺序:
先进先出
后进先出
栈概念:
元素之间只有时间的先后顺序关系,而无其他关系
后进先出
应用:
前缀表达式: 每个运算符的运算对象,就是它后面出现的几个完整表达式
后缀表达式: 与前面相反
栈与函数调用:
1、进入新的函数调用之前,保存一些信息 -- 函数调用的前序动作
2、退出上一次函数调用,... | [
"1033178199@qq.com"
] | 1033178199@qq.com |
aa9c859721f3cf61a743cb7f21d7af7caf49b2b0 | cf2959812b89424dfc537d3df4b4e64f7b50cd60 | /tests/test_issues.py | 881b8fd4a50a188b5e17b383c2be12b212cd3ef5 | [
"Apache-2.0"
] | permissive | Pandziura/PyRFC | 1c91808f6897d56743a5a7e66fb24e938c672960 | 0718eeb73d45732283d117f33e3395d35e4b2795 | refs/heads/master | 2020-03-23T04:54:20.141190 | 2018-07-13T13:20:25 | 2018-07-13T13:20:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import socket
import pyrfc
import pytest
from tests.config import PARAMS as params, CONFIG_SECTIONS as config_sections, get_error
def utf8len(s):
return len(s.encode('utf-8'))
class TestIssues():
def setup_method(self, test_method):
"""... | [
"srdjan.boskovic@sap.com"
] | srdjan.boskovic@sap.com |
e92416720e9d10d9c0f591929294d10b632b2e17 | 77b16dcd465b497c22cf3c096fa5c7d887d9b0c2 | /Francisco_Trujillo/Assignments/flaskolympics/olympics6/server.py | 29f43c7f8562278fb156e038802a32014712f696 | [
"MIT"
] | permissive | curest0x1021/Python-Django-Web | a7cf8a45e0b924ce23791c18f6a6fb3732c36322 | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | refs/heads/master | 2020-04-26T17:14:20.277967 | 2016-10-18T21:54:39 | 2016-10-18T21:54:39 | 173,706,702 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from flask import Flask, render_template, session, request, redirect
import random
app = Flask(__name__)
app.secret_key = 'my_secret_key'
@app.route('/')
def index():
if not 'gold' in session:
session['gold'] = 0
if not 'activities' in session:
session['activities'] = []
return render_templ... | [
"43941751+curest0x1021@users.noreply.github.com"
] | 43941751+curest0x1021@users.noreply.github.com |
c6c5b98d66abced8eee513b103a30429094cface | 6879a8596df6f302c63966a2d27f6b4d11cc9b29 | /abc/problems030/028/c.py | 33699ae14e6f2767c00684d9ab5c770609c9fcae | [] | no_license | wkwkgg/atcoder | 41b1e02b88bf7a8291b709306e54cb56cb93e52a | 28a7d4084a4100236510c05a88e50aa0403ac7cd | refs/heads/master | 2020-07-26T03:47:19.460049 | 2020-03-01T18:29:57 | 2020-03-01T18:29:57 | 208,523,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | # ABC028 : C - 数を3つ選ぶマン
from itertools import combinations
ins = list(map(int, input().split()))
res = []
for xs in combinations(ins, 3):
res.append(sum(xs))
print(sorted(res, reverse=True)[2])
| [
"yujin@komachi.live"
] | yujin@komachi.live |
022c0a5b59b6ab927a9a5f4463dd7ea34fc79202 | 3624e9f0a026b57ebdafa4e842b93f56e5a8504d | /Codeforces/54 Beta Division 2/Problem A/A.py | e71f611141ffce1faa0d2fef75b77557ad7af796 | [
"MIT"
] | permissive | ailyanlu1/Competitive-Programming-2 | 54109c8644d3ac02715dc4570916b212412c25c0 | 6c990656178fb0cd33354cbe5508164207012f24 | refs/heads/master | 2020-03-23T07:48:20.560283 | 2018-02-15T06:49:49 | 2018-02-15T06:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | s = raw_input()
l = len(s)
if 'h' in s:
i = s.index('h')
s = s[i+1:]
if 'e' in s:
i = s.index('e')
s = s[i+1:]
if 'l' in s:
i = s.index('l')
s = s[i+1:]
if 'l' in s:
i = s.index('l')
s = s[i+1:]
if 'o' in s:
print "YES"
else:
print "NO"
else:
print "NO"
else:
prin... | [
"adityapaliwal95@gmail.com"
] | adityapaliwal95@gmail.com |
10a59fb483b870d8565088d936df3af229200397 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/servicebus/v20180101preview/namespace_authorization_rule.py | dae834124429d04d4271d6518385cfa5be49f153 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,831 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
a03cd0b74173e423e1504dfeef024bbbf613678d | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/eventhub/v20150801/event_hub.py | c58558ab4ee10df9503de6c7df040f6b0f34cf5d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 7,517 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
5666f7847d1dd2aede0d1d0572c957bc26bf50ed | 14d940630ab365be939fc08d3d95b0a98789bae7 | /lab103_robo_testes.py | 53c976a5f967be537db278f7a9d6ac845b034565 | [] | no_license | accolombini/python_completo | 1da6f58f0c57b978d70582d96dc12b80c2d5b8a8 | 935102173a1112273b09734392dca08d76e9c749 | refs/heads/master | 2023-01-09T07:51:15.494101 | 2020-10-11T23:39:08 | 2020-10-11T23:39:08 | 283,790,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | """
# Motivando -> observe os teste antes de serem rafatorados -> note a repetição dos códigos
class RoboTestes(unittest.TestCase):
def test_carregar(self):
megaman = Robo('Mega Man', bateria=50)
megaman.carregar()
self.assertEqual(megaman.bateria, 100)
def test_dizer_nome(self):
... | [
"accolombini@gmail.com"
] | accolombini@gmail.com |
56bae0ea261cac580770b5cc789b04b6b2ad0c17 | a275cec1fddb6e034b4e9df72f8039536c009990 | /codes/leetcode/merge-sorted-array.py | 0ddbcf9899003e159cb71c435e5f14e50ece09e7 | [] | no_license | taoste/dirtysalt | a3cbd16710c81de65f00aa919f4e67a1fc66d226 | bd68294fb7727d598ea1c8bf0a559247e07c1aea | refs/heads/master | 2021-08-24T10:44:47.607924 | 2017-12-09T08:47:12 | 2017-12-09T08:47:12 | 113,807,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #!/usr/bin/env python
# coding:utf-8
# Copyright (C) dirlt
class Solution(object):
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
:rtype: void Do not return anything, modify nums1 in-place instead.
... | [
"dirtysalt1987@gmail.com"
] | dirtysalt1987@gmail.com |
d7223e33cf1a53d89ca0729366e2b0ddfc6f1740 | d2e82d8bc2a4604b6e734f7521ddae2716486b96 | /20190521/futureData_model4/record/draw_record.py | bf0bc758b03291cdde27003399b6195b2623e921 | [] | no_license | JudyPhy/spider | af74dbf8b74b335b64247b382e73b669796e5c1a | eb32aab272269f13a97ecea17eb6135f9e7e3d49 | refs/heads/master | 2021-07-05T19:07:50.427310 | 2020-08-14T09:29:49 | 2020-08-14T09:29:49 | 159,917,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from common import common
def __getDrawRecords(draw, history_raceResults_rows):
draw_records = [0, 0, 0, 0, 0] # [No1, No2, No3, No4, All]
for race_date_No, dict in history_raceResults_rows.items():
for horse_code, row in dict.items():
plc = row['plc'].replace('DH', '')
... | [
"pujie@chinatsp.com"
] | pujie@chinatsp.com |
97c069ca064fb33b7d4719f5d2073453efe1716a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_296/ch6_2019_04_22_18_58_02_325401.py | 499aadc8a44219fa30fdbadc9ec1e86a5ba174aa | [] | 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 | 198 | py | def encontra_maximo(a):
i = 0
b = 0
while i < len(a):
if a[i] >= a[i-1]:
b = a[i]
i += 1
return b
lista = []
print(encontra_maximo(lista))
| [
"you@example.com"
] | you@example.com |
0805d0d3bab7db888f1100aaa875e33667988239 | 1f7fce552cc68731f683ded3f831e8f4650c7197 | /Axis16/main/migrations/0009_kartavyaregistration.py | 1be3f60f6b5585457a1db0143d9da9c6a1c78c22 | [] | no_license | tanaypatil/axis-website | 3985068cf1c52bb038b7174cbdf938b8b4084c03 | b5eda2906150a38b1bb0daf8b23c9194572b849c | refs/heads/master | 2020-06-13T03:14:05.855948 | 2019-06-30T13:12:11 | 2019-06-30T13:12:11 | 194,514,303 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-15 08:24
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0008_ornithoregistration'),
]
operations = [
... | [
"tanaypatil197@gmail.com"
] | tanaypatil197@gmail.com |
6b785ccf6de401b6de6be7b80935b38f0153b522 | 8a6cf531ed72310d7114237407302ef075171937 | /ores/ores.py | 8b81ab5f852c87b9c7043f4eebd231d7dbbbe645 | [
"MIT"
] | permissive | ureesoriano/ores | 64a7f3c8a8917fe33449302c55cff23952a5719c | dda9db6c8737d12acbae5b0d43938d93c9e7ea8e | refs/heads/master | 2020-03-17T21:54:12.610518 | 2018-05-20T08:36:13 | 2018-05-20T08:36:13 | 133,980,352 | 0 | 0 | MIT | 2018-05-18T16:43:18 | 2018-05-18T16:43:18 | null | UTF-8 | Python | false | false | 1,552 | py | """
This script provides access to a set of utilities for ORES
* precached -- Starts a daemon that requests scores for revisions as they happen
* score_revisions -- Scores a set of revisions using an ORES API
* stress_test -- Scores a large set of revisions at a configurable rate
* test_api -- Runs a series of tests a... | [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
f3b095aab2099cf1a4956081a8357cf4160ac645 | 9ac16f3a952475715756cd4985e9355c6c0059b6 | /docker/app/app/backend/apps/_archive/accounts_new/profiles/models.py | ccc1478f984975ead9d71f229d8be54404e828e1 | [
"BSD-3-Clause",
"ISC"
] | permissive | JTarball/docker-django-polymer-starter-kit | 14a9900bb1f4402ffffaf8a428fd600d2430d35c | b5250030b1646e29567c15d01ba4668c6ad535c9 | refs/heads/master | 2021-01-19T22:14:36.890793 | 2015-11-18T18:49:14 | 2015-11-18T18:49:14 | 46,353,679 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import AbstractUser
class AccountsUser(AbstractUser):
USERNAME_FIELD = 'username' # name of field on the User that is used as the unique identfier.
activation_key = models.CharField(_('activat... | [
"james.tarball@gmail.com"
] | james.tarball@gmail.com |
aeee10979dd5fd6b4e0388c3fdfc64f99aa5f61d | 9d4ed31ebe11eb3fa40b7ab809e40762446708e0 | /Python diye Programming sekha 2nd/Tracking mails.py | 2fe4654d874fd2edd55cfbcbc3d191bb4e519754 | [
"MIT"
] | permissive | mitul3737/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning | 299dc5abbfc98ea66cda94b2b3de31ac32ab2b3c | ca2c15c597a64e5a7689ba3a44ce36a1c0828194 | refs/heads/main | 2023-04-17T20:49:03.252440 | 2021-05-16T19:07:16 | 2021-05-16T19:07:16 | 360,768,274 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | text="Email us for any feedback here: shahriyarmitul3737@gmail.com py.book@subeen.com book_py@subeen.com thank you"
import re
print(re.findall(r'[.\w]+@\w+[.]\w+',text)) | [
"shahriyarmitul3737@gmail.com"
] | shahriyarmitul3737@gmail.com |
df45bd3b7577e0039d27c223860742502e62e05f | 4ea832d725d820b0c3796a87cdb9f763a8b657cd | /MyTensorFlow/utils.py | 8658fe74d9d950be224ba88447c47f03c2a9b5a1 | [] | no_license | Ollitros/DataScienceProject | 07cc6b9577ae63eb3aede152e46d4dd5a07f8a09 | b14e6add0c929a0820647e8d085e0c1e131d573e | refs/heads/master | 2022-02-28T01:09:43.441967 | 2019-10-05T14:51:47 | 2019-10-05T14:51:47 | 120,162,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,778 | py | import numpy
def scale_to_unit_interval(ndar, eps=1e-8):
""" Scales all values in the ndarray ndar to be between 0 and 1 """
ndar = ndar.copy()
ndar -= ndar.min()
ndar *= 1.0 / (ndar.max() + eps)
return ndar
def tile_raster_images(X, img_shape, tile_shape, tile_spacing=(0, 0),
... | [
"Ollitros@gmail.com"
] | Ollitros@gmail.com |
68be9becb1f195d995195e96a0a50ba5b6a58bce | 2a788f6e0db36ea2565e6b4b161827e31cc968b7 | /test/test_convert.py | c00c417416589d4931e0e7b63a2f89583b2675de | [] | no_license | djairdutra/scan-pdf | 354626f334d471e5fe4a42fff630ac676f76a325 | 0d2d96a3bbb0b97f01b93c1a290b296e85c21d37 | refs/heads/master | 2020-05-28T03:03:36.338043 | 2018-11-07T22:32:43 | 2018-11-07T22:32:43 | 188,862,507 | 0 | 1 | null | 2019-05-27T14:52:05 | 2019-05-27T14:52:04 | null | UTF-8 | Python | false | false | 732 | py | import unittest
import mock
import sys
from assertpy import assert_that
class Options(object):
pass
class ConverterTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
sys.modules['subprocess'] = mock.Mock()
def test_convert(self):
from scan_pdf import Converter
opti... | [
"andi@tryb.de"
] | andi@tryb.de |
9efef8515a5846ac87f18087a9c5a37d21d94e2b | 2bdad552a0739f39b647678938a3c79b2fdde5fe | /src/old_code/mini_models/mini_models.py | 54bf9a31a1503ac7b23d77181cafa9f45d4bc69a | [
"MIT"
] | permissive | embeddedsamurai/single_shot_multibox_detector | 7b59e8c0a5cadaff650896764edfef18b38f344d | 2807da10b6e994ae72c1f287b0dfbf2f3f9116f9 | refs/heads/master | 2021-01-20T01:38:50.331431 | 2017-03-29T18:12:26 | 2017-03-29T18:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | import keras.backend as K
from keras.applications import VGG16
from keras.layers import Activation
from keras.layers import Convolution2D
from keras.layers import Dropout
from keras.layers import Lambda
from keras.layers import MaxPooling2D
from keras.layers import merge
from keras.layers import Reshape
from keras.mode... | [
"arriaga.camargo@gmail.com"
] | arriaga.camargo@gmail.com |
dd3ee097cfafe78022793a50500d8412420c9b94 | 7c71776030428f86eb72d58580c263ade993cd70 | /tests/Test_Memory_Shaper.py | 06e3c8410e0affef7eb61bf68b04eae4483cfce3 | [] | no_license | p-christ/Action-Grammar-Reinforcement-Learning | 0ae511039e0e86f3144644cf4b6c44249adbcb40 | cddc88995b9f5717e81c72b94f5d03177b8c4468 | refs/heads/master | 2022-03-07T16:33:27.582929 | 2019-10-31T11:58:38 | 2019-10-31T11:58:38 | 218,323,156 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,710 | py | from utilities.Memory_Shaper import Memory_Shaper
import numpy as np
buffer_size = 10
batch_size = 5
seed = 1
def new_reward_fn(cumulative_reward, length_of_macro_action):
"""Update reward to encourage usage of longer macro actions. The size of the improvement depends positively
on the length of the macro act... | [
"p.christodoulou2@gmail.com"
] | p.christodoulou2@gmail.com |
07cb99e1a52cc6e587019a5e17a328e0cf94ac78 | f5d17f536bd8617ac3d56c7d5aca4002444b481d | /requests3/toolbelt/auth/http_proxy_digest.py | 38e9013f3884cd95f06fbe355609f4c4d98fa14e | [
"Apache-2.0"
] | permissive | cclauss/requests3 | a2df822642b4ecbbf9147b1df5e804e4b3d7ca35 | 260cd50aec1bd52b58968c3dfd0d5e850d563ac2 | refs/heads/master | 2020-05-15T18:47:10.559821 | 2019-04-20T17:30:15 | 2019-04-20T17:30:15 | 182,370,659 | 0 | 0 | NOASSERTION | 2019-04-20T06:41:56 | 2019-04-20T06:41:55 | null | UTF-8 | Python | false | false | 3,668 | py | # -*- coding: utf-8 -*-
"""The module containing HTTPProxyDigestAuth."""
import re
from requests import cookies, utils
from . import _digest_auth_compat as auth
class HTTPProxyDigestAuth(auth.HTTPDigestAuth):
"""HTTP digest authentication between proxy
:param stale_rejects: The number of rejects indicate t... | [
"me@kennethreitz.org"
] | me@kennethreitz.org |
da33ecd6cb5985519aebc9f35185190401aabb93 | 17032b7326510e360adbc61d8566c42ce8a0483a | /python2.7/site-packages/firewall/core/ipXtables.py | 437808027155b96757b49e310a29f4bfd2428ca0 | [] | no_license | noslin005/wzz | d220f8ed84fe2bc8dca9b764ccc72ee807740fbc | 3a4e9fd377076b3a21730af9fca82e4b2e61702b | refs/heads/master | 2021-11-03T09:33:47.126484 | 2019-04-15T01:19:02 | 2019-04-15T01:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,988 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2016 Red Hat, Inc.
#
# Authors:
# Thomas Woerner <twoerner@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | [
"wuzhengzhong@ruiec.cn"
] | wuzhengzhong@ruiec.cn |
c7050f5f25178f18d977879c234baea3c726f0ca | d88397be1c6a31985bc2283280e743fd3b988dd1 | /nncf/structures.py | b29eca4968e93b8bf41744073ad75940d2d2a247 | [
"Apache-2.0"
] | permissive | sshyran/openvino-nncf-pytorch | f5e09066a216fa786927937a91a0e6742f347660 | fd02652950cd803a36f5283f5a5df999bb45433b | refs/heads/develop | 2023-04-18T06:58:54.646669 | 2021-03-12T15:41:39 | 2021-03-12T15:41:39 | 347,374,166 | 0 | 0 | Apache-2.0 | 2023-04-03T23:52:21 | 2021-03-13T13:11:32 | null | UTF-8 | Python | false | false | 6,486 | py | """
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"noreply@github.com"
] | sshyran.noreply@github.com |
a3de73991f302e4984380b4f57432e7d9167b0a3 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /mDzheHpwtqyXePEBE_12.py | 5d5a6c21e0b1f47994b25b44b57f1c91dbd275ce | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py |
def sum_polygon(n):
sum = (n-2)*180
return sum
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
862b20b09be678debb5763ce7aed391cdd305028 | 375f29655b966e7dbac2297b3f79aadb5d03b737 | /Image/test6.py | e0c2f30ebc95da86684e30c0aa49fd81708a4285 | [
"MIT"
] | permissive | pection-zz/FindJointwithImageprocessing | 33e0b47ca3629d85e739edcd88dcd1663af88631 | 3dd4563be88dfcf005c32f19ae97d03f9bf715ad | refs/heads/master | 2022-12-23T11:09:04.391591 | 2020-10-05T16:35:21 | 2020-10-05T16:35:21 | 301,473,183 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | import numpy as np
import cv2
# mouse callback function
def draw_circle(event,x,y,flags,param):
global human,tiger,logo
positionX = tiger.shape[1]
positionY = tiger.shape[0]
col = human.shape[1]
row = human.shape[0]
if event == cv2.EVENT_LBUTTONDOWN: # click.
y -= row/2 ... | [
"pection.naphat@gmail.com"
] | pection.naphat@gmail.com |
6f194f8fee5688dc5d7ab4e2da990b9aaf9ad2a8 | ecb286df5937cd30855335f3e9eadd3edbddbd02 | /CARSELL.py | 2c5425df7c655dd40a48d79202114e60d1bfbfba | [] | no_license | prashant97sikarwar/codechef-april-long-challenge-2020 | fbbddadb3398a285fe735f3c0049f74371b79100 | 5e459541044b54e64fd63b072ff5bf4870dea126 | refs/heads/master | 2022-04-14T21:06:41.237608 | 2020-04-13T19:48:29 | 2020-04-13T19:48:29 | 254,818,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | t = int(input())
while t > 0:
n = int(input())
arr = list(map(int,input().split()))
arr.sort()
arr = arr[::-1]
total = 0
for i in range(n):
fg = arr[i] - i
if fg > 0:
total += fg
else:
break
ans = total % 1000000007
print(ans)
t -= 1 | [
"prashant97sikarwar@gmail.com"
] | prashant97sikarwar@gmail.com |
3dfbf8c94d2352552fc10b1451ec343edf118d69 | 686d2e525b7cd7a792501309f251dbf6dcea7ef4 | /剑指offer/14.2剪绳子-贪心法.py | cd7abf147180fc0496002f548c7b684b08bfbf0b | [] | no_license | freemanwang/Algorithm | fa23c9c33c43f942e72d9d1828a95417e7c99575 | bb691c1afb460a382d7aaaa308e8b4e17f5bf4c5 | refs/heads/master | 2020-06-29T19:37:32.584724 | 2020-02-07T06:36:29 | 2020-02-07T06:36:29 | 200,605,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | def maxCuttingSolution(length:int):
if length < 2:
return 0
if length == 2:
return 1
if length == 3:
return 2
#多剪长为3的段
timeOf3 = length // 3
#当最后剩下长度为4时减2*2,比3*1好
if length - timeOf3*3 == 1:
timeOf3 -= 1
timeOf2 = (length - timeOf3*3) // 2
print('长为3... | [
"121689123@qq.com"
] | 121689123@qq.com |
56fa05c2c2209de10689e7ac05abd0c4819683e8 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/aio/operations_async/_public_ip_prefixes_operations_async.py | f793063e7b65111a6d47cd949a6ce5c76ff9a131 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 27,622 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
cf5073e4c44b95893676e26aa7ff6ef52cd01700 | ca5d7fc720217f7b073c567d389a211725ecf401 | /apps/storybase_story/migrations/0017_call_to_action_to_translation.py | 46c03d92ff8e8eecbc46ef8b28774debc414494b | [
"MIT"
] | permissive | denverfoundation/storybase | 49b533b5572b6e70cdd036574ea4c84c765cd4b3 | 15e429df850b68ee107a9b8206adc44fe1174370 | refs/heads/develop | 2020-04-04T07:12:52.203147 | 2015-08-07T05:22:13 | 2015-08-07T05:22:13 | 3,374,036 | 3 | 5 | null | 2015-11-18T14:19:11 | 2012-02-07T03:35:38 | Python | UTF-8 | Python | false | false | 17,374 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.conf import settings
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
for story in orm.Story.objects.all():
call_to_action = story.call_to_action
... | [
"geoffhing@gmail.com"
] | geoffhing@gmail.com |
9db1a5211567b08ec0bd272c70b33e7b4b2417b3 | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/rsrc/contrib/db/sqla/serializer.py | 86d9f430b9df9c7e03c90d865f5bb3be82ec6e8c | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from rsrc import settings
from jsonsir import Serializer
from jsonsir.contrib.intencoder import IntEncoder
from jsonsir.contrib.boolencoder import BoolEncoder
from jsonsir.contrib.datetimeencoder import DateTimeEncoder
# instantiate `Serializer` (bound with specified enc... | [
"48147775+BiancaChirica@users.noreply.github.com"
] | 48147775+BiancaChirica@users.noreply.github.com |
7a99160a9b41a3afe3b729d916ebd377593d9fa2 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/sprite/sprite_api.py | c0609f57f38b0754440948820163b44f8bde915a | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 5,921 | py | # coding: utf-8
from __future__ import absolute_import
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase
from bitmovin_api_sdk.common.poscheck import poscheck_except
from bitmovin_api_sdk.models.bitmovin_response import BitmovinResponse
from bitmovin_api_sdk.models.response_envelope import ResponseEn... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
63183dac12e1ac146a8ee95e08c3d767c7460535 | 76e498240a644b7ccf7e6af69f958f72af595a3c | /2018/function.py | 44fe021fe2be5eac9710967e541d465baee557c2 | [] | no_license | VladyslavHnatchenko/united | 54a868b9bdb54b510fb33f6b74562f2fb2c23c01 | 64d3319b18fcc8e1dbb96a63f7bef0c2e5766520 | refs/heads/master | 2020-04-13T07:24:28.053997 | 2019-08-23T07:22:10 | 2019-08-23T07:22:10 | 163,050,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | def function_a():
global a
a = 1
b = 2
return a+b
def function_b():
c = 3
return a+c
print(function_a())
print(function_b())
# def many(*args, **kwargs):
# print(args)
# print(kwargs)
#
#
# many(1, 2, 3, name="Mike", job="programmer")
# def keyword_function(a=1, b=2):
# retur... | [
"hnatchenko.vladyslav@gmail.com"
] | hnatchenko.vladyslav@gmail.com |
6e9202c9029c4103e41f6eb7df2b3592fa136a5c | 946469c469a07e70260143805c0b395508aad27f | /tf01_helloword/tf_01_helloword.py | 4812457f6c8033ceb7f726ff5dfe5858b9446803 | [] | no_license | jpegbert/TensorFlow1.x | 6f4bf2d658ac3cea298b0247c405f48cefa5db7f | bded173429581805324fda4bccd8180eafdd3496 | refs/heads/master | 2023-03-21T15:19:39.440658 | 2021-03-19T12:57:02 | 2021-03-19T12:57:02 | 348,709,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import tensorflow as tf
message = tf.constant('Welcome to the exciting world of Deep Neural Networks!')
with tf.Session() as sess:
print(sess.run(message).decode())
| [
"jiangpeng.jiang@zhaopin.com.cn"
] | jiangpeng.jiang@zhaopin.com.cn |
5930cfc112f15a47ff6b5e6f315d023db88b1b72 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /development/samples/SampleSyncAdapter/samplesyncadapter_server/model/datastore.py | 1f916332184373abece4825b266b23e6cfb2503a | [
"MIT",
"Apache-2.0"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 1,954 | py | #!/usr/bin/python2.5
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
946474b8afc07b9a6402d4e856c9d8b4e23a8aa7 | aed0850065dd467c0d0650c41987b61e94cad9c6 | /day 16/merging.py | a62f058715350f049773cbc9a756eca3ed872a3c | [] | no_license | parmarjh/100day-coding-challenge | 96c79cc86a8f1e0b062b72dd5992610597e289e8 | 8b3e1f6654e4a55a08b4f938f13626fcc2aa8468 | refs/heads/master | 2023-02-18T19:51:22.200057 | 2020-12-31T12:54:10 | 2020-12-31T12:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def printList(self):
temp = self.head
while temp:
print(temp.data, end=" ")
temp = temp.next
def addToList(self, newData):
newNode = Node(newData)
if self.head is Non... | [
"annamalaipalani11@gmail.com"
] | annamalaipalani11@gmail.com |
f295ae8bb445794a84f3e45c99863c3f72ad0726 | 9bbd4f00fd88474b3ab1f007cb6848cf6c2304e8 | /run.py | 93c10171ae06cd2b21a361602775df251bd21300 | [] | no_license | cappuccino213/AutoGTF | 3128deb15bf6ebd67ed811773b3ef972f51fa9b7 | e9ee23860c5f59011367fb84c646f942fb5890ef | refs/heads/master | 2020-04-16T17:52:30.603769 | 2019-01-17T03:01:46 | 2019-01-17T03:01:46 | 165,792,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/1/14 14:20
# @Author : Zhangyp
# @File : run.py
# @Software: PyCharm
# @license : Copyright(C), eWord Technology Co., Ltd.
# @Contact : yeahcheung213@163.com
from mssql import *
# from ReadConf import *
# import os
from shellcopy import *
import shutil... | [
"yeahcheung213@163.com"
] | yeahcheung213@163.com |
4fb445678a4cd023a19dc7dd202db200d82ccfba | 9331f7179c2490f9bc0141ce91ebea704124e168 | /clr.py | 3aaea86cb672e27e196ed3354ac23a1e91344fba | [] | no_license | peternara/Contrastive-learning-for-image-retrieval-self-training | 50fbb35ca4f4f8cef6f70e7f037bb65f1f58bc21 | f04bdd62a1a647207c599570394c93327fb02044 | refs/heads/main | 2023-03-24T13:01:19.448203 | 2021-03-19T07:29:32 | 2021-03-19T07:29:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,435 | py | import os
os.environ['CUDA_LAUNCH_BLOCKING']='1'
import torch
from models.BiTmodel import BiTSimCLR
from models.ViTmodel import VisionTransformerSimCLR
from models.Efficientmodel import EfficientCLR
from models.CGDmodel import CGDmodel
from torch.utils.tensorboard import SummaryWriter
import torch.nn.functional as F
fr... | [
"noreply@github.com"
] | peternara.noreply@github.com |
af0851ba8867ea8c5138700c332c611e7c3453c5 | b5fb45288ed2a204692051ab78e72d8aa6e5accd | /mmdet/models/anchor_heads/anchor_head.py | 7b1e48d5270fcdf19061e7c3c1ecbade8dfe403f | [
"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 | 13,964 | py | from __future__ import division
import numpy as np
import torch
import torch.nn as nn
from mmcv.cnn import normal_init
from mmdet.core import (AnchorGenerator, anchor_target, delta2bbox, force_fp32,
multi_apply, multiclass_nms)
from ..builder import build_loss
from ..registry import HEADS
@H... | [
"nsathish@compute-0-32.local"
] | nsathish@compute-0-32.local |
c3f066c947f48b2d598a1bc6be518303b1f2221e | 72ede563023f78da0d23f36df0106aa4cd386600 | /src/mailme/utils/text.py | 0e2e912bd533cc7e3669e3cef8cd63fa16722f59 | [
"BSD-3-Clause"
] | permissive | mailme/mailme.io | 773e8266e6ec307762d220c0a6381170f6905de3 | 3b9cc8009226bf349e96504328146c61d8afcb02 | refs/heads/master | 2020-05-31T18:59:01.947128 | 2014-07-04T14:48:17 | 2014-07-04T14:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
"""
mailme.utils.text
~~~~~~~~~~~~~~~~~
Various text realated tools.
"""
import re
_str_num_re = re.compile(r'(?:[^\d]*(\d+)[^\d]*)+')
def increment_string(s):
"""Increment a number in a string or add a number."""
m = _str_num_re.search(s)
if m:
next = str(int... | [
"cg@webshox.org"
] | cg@webshox.org |
15a028c91f53835f4b343ea7425d4e20c639cb9d | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_106_l_4/interactive_replay_config.py | 6f2cfeb97d82fa75d61d3f7f457edfa22f7668a6 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
970f5a23bdfc872d4583272bcf1f1cde513713fe | a8062308fb3bf6c8952257504a50c3e97d801294 | /test/test_1567_maximum_length_of_subarray_with_positive_product.py | be383471a80f55305d5a81b2bb7181ca2e4f326f | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from unittest import TestCase
from problems.N1567_Maximum_Length_Of_Subarray_With_Positive_Product import Solution
class TestSolution(TestCase):
def test_getMaxLen(self):
self.assertEqual(4, Solution().getMaxLen([1, -2, -3, 4]))
def test_getMaxLen_1(self):
nums = [0,1,-2,-3,-4]
self.as... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
00f7e48f26ccbff5fc6938d1b5f2dd403b2806bb | b346530b455135b224470511061cffcffa6274b5 | /pypesto/result/predict.py | 67fb95b50ac197cade10c8b3f91f9a33d34c6a7f | [
"BSD-3-Clause"
] | permissive | ICB-DCM/pyPESTO | cd3ac5c26be0648c77a409d012a6321ade968d5d | 9a754573a7b77d30d5dc1f67a8dc1be6c29f1640 | refs/heads/main | 2023-09-03T19:34:55.581478 | 2023-06-29T09:22:57 | 2023-06-29T09:22:57 | 142,321,950 | 174 | 48 | BSD-3-Clause | 2023-09-14T14:59:50 | 2018-07-25T15:51:29 | Python | UTF-8 | Python | false | false | 12,223 | py | """PredictionResult and PredictionConditionResult."""
import os
from pathlib import Path
from time import time
from typing import Dict, Sequence, Union
from warnings import warn
import h5py
import numpy as np
import pandas as pd
from ..C import (
CONDITION_IDS,
CSV,
OUTPUT,
OUTPUT_IDS,
OUTPUT_SEN... | [
"noreply@github.com"
] | ICB-DCM.noreply@github.com |
3b3ffedb0a26a37b64ae6911117d444709c961dd | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2742.py | 11f9b2447b2a937fc8b101e3bde6e62529371e24 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | def main(x):
result='Draw'
for i in range(0,4):
if x[i][0]!='.' and x[i][0]!='T':
flag=x[i][0]
else:
continue
count=0
for j in range(0,4):
if x[i][j]==flag or x[i][j]=='T':
count+=1
else:
break
if count==4:
result=flag+' won'
count=0
for i in range(0,4):
i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
059406c3a6505c171156ef98fa09d4509e2bfe85 | 66738cf02020d979410bf65be524ed9bb622e7c5 | /homework/day0214/homework02.py | 1fab74d3a284ddda1f80f9403c3284315061adc7 | [] | no_license | Liu-Zhijuan-0313/pythonAdvance | 882a2c19cf611f068e4549a8b06bdfd0036d3624 | e5b794f8d0fa0da5465fe123ac179ac09d62cf24 | refs/heads/master | 2020-04-22T09:15:57.963165 | 2019-02-23T08:02:49 | 2019-02-23T08:02:49 | 170,261,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # 2.实现需求:给订单列表,用户余额两个函数添加装饰函数,能够完成权限验证功能
# 1.原始
# def checkuser():
# username = input("请输入用户名:")
# if username == "lzj":
# print("登录成功")
# showlist()
# showmoney()
# else:
# print("未授权,登录失败")
#
#
# def showlist():
# print("订单列表")
# def showmoney():
# print("用户余额")
# ... | [
"1602176692@qq.com"
] | 1602176692@qq.com |
fea4f6f8d0ab5ce23d28edba69f6ef51f9911fa3 | 50c14feef077d97bceba2a8aee6af60091d369db | /congrads/conmap.py | 5127c5eee7fc1082562616b6750918d1b5084cfe | [
"BSD-3-Clause"
] | permissive | kristianeschenburg/congrads | 0d2ea92a521c88c752d98f5d9dfff2f8b6fe0957 | ef5f315302e9801b202e0c08b396c3f6cdbe49d9 | refs/heads/master | 2020-04-17T03:24:39.933567 | 2020-03-27T18:58:29 | 2020-03-27T18:58:29 | 166,181,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,237 | py | # usage: conmap.py [-h] -i INFILES -r ROIFILE -m MASKFILE -o OUTDIR
# [--nmaps NMAPS] [--save_eta2 SAVE_ETA2] [--norm NORM_FLAG]
#
# Developed at DCCN (Donders Centre for Cognitive Neuroimaging), Donders Institute
# for Brain, Cognition and Behaviour. Radboud University, Nijmegen, The Netherlands
#
# A... | [
"keschenb@uw.edu"
] | keschenb@uw.edu |
053462ec4a7e180cc789d1c4e57d7317a937c305 | de1d7a3d8f29f88cc81163daf13e689b6a40f059 | /email_messages/forms.py | 405125dc3385913d028d2a32af5fedf65de7a455 | [] | no_license | kelechi2020/golivecomptask | 764c8be7cdb760b492bbd203cb1831fd47ba9e0c | 76c2d3c1ad4830399be0bf41bb63731bc50fe5e6 | refs/heads/master | 2022-12-10T14:34:28.809502 | 2017-08-06T12:36:45 | 2017-08-06T12:36:45 | 98,848,170 | 0 | 0 | null | 2022-12-08T00:42:51 | 2017-07-31T04:30:17 | CSS | UTF-8 | Python | false | false | 985 | py | # -*- coding: UTF-8 -*-
from __future__ import unicode_literals
from django import forms
from django.utils.translation import ugettext, ugettext_lazy as _
from django.core.mail import send_mail
from django.contrib.auth.models import User
class MessageForm(forms.Form):
recipient = forms.ModelChoiceField(label=_("... | [
"egbosikelechi@gmail.com"
] | egbosikelechi@gmail.com |
0bbb06dc8d7cbf276b4acee582f650109dd8b1fa | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2015/12/test_builtins.py | 73601734b9176fe303b39b5ab5d9b913e6298584 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 5,411 | py | from __future__ import absolute_import
from celery import group, chord
from celery.app import builtins
from celery.five import range
from celery.utils.functional import pass1
from celery.tests.case import AppCase, ContextMock, Mock, patch
class BuiltinsCase(AppCase):
def setup(self):
@self.app.task(sha... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
d0c3bd3d778e8c722d0034f32411f2807179fe54 | aec28a032dd5788d9201d6325f2efa285116696e | /snake_iterator/t2d.py | cd291e17c7b793521c037741410e3ab47419c48d | [] | no_license | pletzer/pyterp_tests | 346addfe89ff14613e986ca2b9a14206f9b41d45 | 56be0634d8f7402ce5322a6a67c1843a593d31de | refs/heads/master | 2020-05-29T08:50:40.072549 | 2017-07-20T03:23:34 | 2017-07-20T03:23:34 | 69,289,048 | 1 | 3 | null | 2017-03-22T19:15:02 | 2016-09-26T20:15:44 | Python | UTF-8 | Python | false | false | 268 | py | n0, n1 = 3, 4
inds = []
for j in range(n0):
for i in range(n1):
indexFlat = n1*j + i
indexSnake = n1*j + (1 - j%2)*i + (n1 - 1 - i)*(j%2)
inds.append(indexSnake)
print('indexFlat = {} indexSnake = {}'.format(indexFlat, indexSnake))
inds.sort()
print(inds)
| [
"alexander@gokliya.net"
] | alexander@gokliya.net |
826e0cec2f2c532e1a1a11b0b59549a07ebdb131 | 924814aef07d17e10461ed2da54e935ea40c0456 | /links2markdown/links2markdown.py | 67b641d2f1aa7c7e6e21061f024b545880499be3 | [
"WTFPL",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | hydrargyrum/attic | edd7f302e273cd7e762c8bd8efd365ac4cd24aa1 | bf90a01ddaeb505b783ec3853c46aaaa0aa51304 | refs/heads/master | 2023-09-01T08:11:13.126290 | 2023-08-27T13:06:55 | 2023-08-27T13:08:09 | 13,541,344 | 18 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | #!/usr/bin/env python3
# SPDX-License-Identifier: WTFPL
import argparse
import re
import signal
import sys
from html.parser import HTMLParser
import requests
LINK_RE = re.compile(r"""https?://[^])'">\s]+""")
class TitleFetchParser(HTMLParser):
def __init__(self, *args, **kwargs):
super().__init__(*arg... | [
"dev@indigo.re"
] | dev@indigo.re |
5330f052d2dd394451f49779af973f7ceeeaf5ec | 658773cf775fd97c3cec3aca5f559500dec021bc | /modules/s3/s3track.py | ad41a55d76ce313b2884a60b4fc1286e1f01ef89 | [
"MIT"
] | permissive | smeissner/ifrc | f3795474219d20fba5c68192f5d9b90006288e3e | 505eb6ffbb8fc32fdbbe63fdab4c19d87e53ca86 | refs/heads/master | 2021-01-18T10:43:55.847965 | 2012-10-07T22:43:15 | 2012-10-07T22:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,525 | py | # -*- coding: utf-8 -*-
""" Simple Generic Location Tracking System
@copyright: 2011-12 (c) Sahana Software Foundation
@license: MIT
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 So... | [
"fran@aidiq.com"
] | fran@aidiq.com |
b2e6507f7cbc0024a8361d9508c6c4dc5de947ec | 3a3533b16b54d42d6889c490224345ca985bef74 | /account_loewie/stock_loewie.py | 30917e56bf0b12bb40ff4b547bbe9fbb910738b7 | [
"Apache-2.0"
] | permissive | lester-lees/extra_addons_hk | 52916ac6858d4b4484bd137b55268c7d5de177d0 | edd2c2595146bc9c99b75a2d0831a93f940fa55c | refs/heads/master | 2021-01-06T20:43:33.448307 | 2019-03-28T06:46:17 | 2019-03-28T06:46:17 | 99,546,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,228 | py | # -*- coding: utf-8 -*-
from openerp.osv import fields, osv
import logging
_logger = logging.getLogger(__name__)
class stock_move(osv.osv):
_inherit = "stock.move"
_order = 'id , date_expected desc'
def _get_sale_order_line(self, cr, uid, ids, field_name, arg, context=None):
result = {}
... | [
"346994202@qq.com"
] | 346994202@qq.com |
b1947d513d3280e30c2ad6204ed27e488a5c4920 | c09817490b36beaea98abc8c955904528c5cd4fd | /tests/test_0013-rntuple-anchor.py | 1c3cb5a8ffd9fbacef60a0be301fe4f5ae217ce2 | [
"BSD-3-Clause"
] | permissive | oshadura/uproot4 | 245b7e14a3341d87a9e655792c6ee912ad443586 | ee535f6632d371d82b5173a43d6445c854968315 | refs/heads/master | 2023-08-19T13:48:23.541016 | 2021-09-22T23:51:52 | 2021-09-22T23:51:52 | 287,539,468 | 0 | 0 | BSD-3-Clause | 2020-08-14T13:29:03 | 2020-08-14T13:29:02 | null | UTF-8 | Python | false | false | 3,610 | py | # BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE
from __future__ import absolute_import
import json
import sys
try:
import queue
except ImportError:
import Queue as queue
import numpy
import pytest
import skhep_testdata
import uproot
def test():
filename = skhep_tes... | [
"noreply@github.com"
] | oshadura.noreply@github.com |
86a7eccb3ab0a094a3ddf924c656f167236d265e | a0886d451948f51f74f44c39deda8b223b2c51aa | /src/classifiers/stream_classifier.py | 668816b5b2398017f6d5f3db46d696f2260363c2 | [] | no_license | kykamath/twitter_classifier | 651b26e8c6f015afa8aeb6f4ba8061da01d36d4d | 50b00978b1478af427b19aff81c956fbd1ae83fa | refs/heads/master | 2020-04-29T10:43:43.814202 | 2011-04-22T00:22:04 | 2011-04-22T00:22:04 | 1,498,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,183 | py | '''
Created on Apr 17, 2011
@author: kykamath
'''
import sys, math
sys.path.append('../')
from datasets import DataDirection, DocumentType, TweetType
from utilities import Utilities
from settings import Settings
from datetime import datetime, timedelta
from collections import defaultdict
from operator import itemgette... | [
"krishna.kamath@gmail.com"
] | krishna.kamath@gmail.com |
49127c9d5ec63cf0edbb76c8518ef71b738cb115 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03282/s807999610.py | ae207e71f6f810f99b64ea485d43701412aa2740 | [] | 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 | 261 | py | import sys
input = sys.stdin.readline
def main():
S = input().rstrip()
K = int(input())
ans = 1
for k in range(K):
if S[k] != "1":
ans = int(S[k])
break
print(ans)
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4c0d24e4899cef4d0b65d73aa2aadd5eccbd352e | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-LaunchServices-2.5.1/setup.py | 69e9ac501f5f908146c2de98a08b37554caf8233 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 1,339 | py | '''
Wrappers for the "LaunchServices" framework on MacOSX. The API's in this
framework enable applications to open other applictions or their document
files, simularly to how the Dock or Finder do that.
A number of tasks that can be implemented using this framework:
* Launch or activate applications
* Open documen... | [
"opensource@apple.com"
] | opensource@apple.com |
689c4a2a4fbcae5c4efd6838dbe43bd9740fbf9f | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/vrmnic005/question3.py | 1c61ad08760818ce92e029b1eb28c9a08c1f20c6 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | name = input("Enter first name: \n")
surname = input("Enter last name: \n")
money = eval(input("Enter sum of money in USD: \n"))
country = input("Enter country name: \n")
money30 = money*(30/100)
print ()
print ("Dearest ", name,
"\nIt is with a heavy heart that I inform you of the death of my father,\n"
"Gener... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
45119b2bfb441e6442a560c850e77270bbf09204 | 3b96724c917b3cbbf39a03b42a0c3570cd3714c0 | /lsstetc.py | 8ea7790fcc4440ab82fa13614169f62c758a1a7b | [] | no_license | wadawson/LSST_ETC | 44b24737a0515b7d76d74f068c21a66e1ac7f3e6 | b893ad6c8c162b2b784b67e5e2a6de05cfb1c75b | refs/heads/master | 2020-07-26T04:42:54.654982 | 2015-08-24T23:05:09 | 2015-08-24T23:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,640 | py | """An exposure time calculator for LSST. Uses GalSim to draw a galaxy with specified magnitude,
shape, etc, and then uses the same image as the optimal weight function. Derived from D. Kirkby's
notes on deblending.
"""
import numpy as np
import galsim
# Some constants
# --------------
#
# LSST effective area in me... | [
"jmeyers314@gmail.com"
] | jmeyers314@gmail.com |
fda72b8c00fbe56089e69e878bc92dd0b2d869cf | 8a9c26468d352f52e2773ee3d7f97fae25a9f4f2 | /example/geo_example.py | 81095e70b182653736e08b698dc9065e7b9ab480 | [
"MIT",
"Apache-2.0"
] | permissive | Watemlifts/pyecharts | 76b301a0013cf628e22581b10bfba94e600ba788 | 42c9af85877c812449ad8d3aa942135e95468714 | refs/heads/master | 2022-01-04T04:18:40.615309 | 2019-07-02T18:49:02 | 2019-07-02T18:49:02 | 194,917,624 | 1 | 0 | MIT | 2021-12-30T19:54:49 | 2019-07-02T18:44:50 | Python | UTF-8 | Python | false | false | 4,238 | py | from example.commons import Collector, Faker
from pyecharts import options as opts
from pyecharts.charts import Geo, Page
from pyecharts.globals import ChartType, SymbolType
C = Collector()
@C.funcs
def geo_base() -> Geo:
c = (
Geo()
.add_schema(maptype="china")
.add("geo", [list(z) for z... | [
"chenjiandongx@qq.com"
] | chenjiandongx@qq.com |
2ba1a3b3c29fa6e3f7d79aeb1519606c031c4b7d | a9a6b09c53e77c996f552bf48b4625d280044905 | /utils/annotation.py | f5b8223213824777c1f9d9d9bf62656f9cc1d7a8 | [] | no_license | yanqinghao/AiLab-detectron2 | 8f8f98ae0f3183102c9b9421a4f314c549d5a2d1 | 05d6016ae3f8c397d08eba485b97fd2a25848f3c | refs/heads/master | 2022-11-23T23:21:47.686819 | 2020-04-09T02:25:24 | 2020-04-09T02:25:24 | 229,718,014 | 0 | 0 | null | 2022-11-22T04:19:49 | 2019-12-23T09:17:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,431 | py | import os
import itertools
import numpy as np
from suanpan.utils import image, json
from detectron2.structures import BoxMode
def get_balloon_dicts(img_dir, json_file):
"""
Parsing via json
"""
imgs_anns = json.load(json_file)
dataset_dicts = []
imagefile = [i.split(".jpg")[0] + ".jpg" for i ... | [
"woshiyanqinghao@gmail.com"
] | woshiyanqinghao@gmail.com |
0cf95f6e811eca6da922c27416beebd819534e5c | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /sportsdata/nhl_projections/models/nhl_projections_penalty.py | 8466f7094f77192feb77a587001c870ba09a7517 | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,708 | py | # coding: utf-8
"""
NHL v3 Projections
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
e2fb1c3d5bc361a3e325f532bbc451d36cff636a | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Sequence+algorithms/Selection+algorithm/cmd_test.py | 3ddfb17e55983232b9aa2709af1bedd5b4f12fc2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,549 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 12 10:11:34 2018
@author: Casey
file to test command line stuff
"""
import sys
#sys.path.append(C:\\Users\\Casey\\Anaconda3\\Lib\\site-packages;C:\\Users\\Casey\\Anaconda3\\Library\\bin;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
b0b2d646e0da85e1252012bdb744b3cc410bbd8f | 687a3cc0e531d77e91fbdb27ace757197bc287e3 | /test/dist_utils.py | 476e7cecc2456da911283791382cf69d9a887ea7 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | aporter1350/pytorch | b4871331e0a225c0cd028bd176e9ebb5ee730921 | bb1d9b238dbda5da1ba7b65953558fd2deea1f00 | refs/heads/master | 2020-09-13T15:18:00.562350 | 2019-11-20T01:21:34 | 2019-11-20T01:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,929 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import threading
from functools import partial, wraps
from os import getenv
import torch.distributed as dist
import torch.distributed.rpc as rpc
if not dist.is_available():
print("c10d not available, skipping tests")
sys.exit... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
5648aac33570ad9b8a37e766c09a6bf0f2449f3d | ed11f664cbc459c7a4456dd58f2b231edcb22f33 | /ctm_saas_client/models/variable_names.py | 6dd582aa1ba63cf9a8ffd6bc9cc44f1eac2484e0 | [
"BSD-3-Clause"
] | permissive | jpmc216/ctm_python_client | c8b8ba60580bf869b3d1e6af9b99737e0a7ea527 | de44e5012214ec42bb99b7f9b4ebc5394cd14328 | refs/heads/main | 2023-08-26T22:06:34.022576 | 2021-10-25T13:41:31 | 2021-10-25T13:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.30
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from ctm_saas_cl... | [
"cmoraes@bmc.com"
] | cmoraes@bmc.com |
f0bc1f5d3eaba5d03fdf3717b4edf8d85c9cf035 | 3649dce8b44c72bbfee56adf4e29ca6c5ba2703a | /code_up2721.py | 95431018d2d23835e6f09154a0044a6cddea5ccd | [] | no_license | beOk91/code_up | 03c7aca76e955e3a59d797299749e7fc2457f24a | ca1042ce216cc0a80e9b3d3ad363bc29c4ed7690 | refs/heads/master | 2022-12-06T08:23:00.788315 | 2020-08-20T11:21:59 | 2020-08-20T11:21:59 | 284,844,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | num1=input()
num2=input()
num3=input()
if num1[len(num1)-1]==num2[0]:
if num2[len(num2)-1]==num3[0]:
if num3[len(num3)-1]==num1[0]:
print("good")
else:
print("bad")
else:
print("bad")
else:
print("bad") | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
d91bc0db5f2379799c817125ffb8dd2f36f295e9 | b81668a2cc43654cf6a3ed952d781310876838f9 | /venv/Lib/site-packages/spacy/tests/regression/test_issue4924.py | b240f6d4a49a39413e8609221ea61fab8295918d | [] | no_license | gowthamr1999/docbot-1 | 6a8b873407f15035fb8b30b69ed66ded343bd1e4 | 3119958d68e95673b4c9187d58d8cad5c18a6b2c | refs/heads/master | 2023-04-07T02:16:55.574750 | 2021-04-16T02:52:38 | 2021-04-16T02:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import pytest
from spacy.language import Language
def test_issue4924():
nlp = Language()
docs_golds = [("", {})]
nlp.evaluate(docs_golds)
| [
"42891786+kiranm211@users.noreply.github.com"
] | 42891786+kiranm211@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.