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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59552bfeb3e6cb2649a5334c9a4c291503b6ae0b | 7a4ed01a40e8d79126b26f5e8fca43c8e61e78fd | /Geeky Shows/Core Python/116.Repeatiton_Of_List[147].py | feeee5ac5b66da72179c3094835a2867ae909b8b | [] | no_license | satyam-seth-learnings/python_learning | 5a7f75bb613dcd7fedc31a1567a434039b9417f8 | 7e76c03e94f5c314dcf1bfae6f26b4a8a6e658da | refs/heads/main | 2023-08-25T14:08:11.423875 | 2021-10-09T13:00:49 | 2021-10-09T13:00:49 | 333,840,032 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | a=[1,2,3]
print(a)
result=(a*3)
print(result) | [
"satyam1998.1998@gmail.com"
] | satyam1998.1998@gmail.com |
7f0a3b4cf231688870f1ccb012e66543d6081890 | 1f51c4e89a71ea3fcc2cc921613aacc19e078b69 | /12_Intermediate Data Visualization with Seaborn/04_Creating Plots on Data Aware Grids/03_Using a lmplot.py | aee3af259f8f12560c7148b332368b1feb8eb862 | [
"MIT"
] | permissive | CodeHemP/CAREER-TRACK-Data-Scientist-with-Python | 871bafbd21c4e754beba31505965572dd8457adc | 13ebb10cf9083343056d5b782957241de1d595f9 | refs/heads/main | 2023-03-26T08:43:37.054410 | 2021-03-22T15:08:12 | 2021-03-22T15:08:12 | 471,015,287 | 1 | 0 | MIT | 2022-03-17T13:52:32 | 2022-03-17T13:52:31 | null | UTF-8 | Python | false | false | 1,781 | py | '''
03 - Using a lmplot
The lmplot is used to plot scatter plots with regression lines
on FacetGrid objects. The API is similar to factorplot with the
difference that the default behavior of lmplot is to plot regression
lines.
For the first set of exercises, we will look at the Undergraduate
popula... | [
"ifaizymohd@gmail.com"
] | ifaizymohd@gmail.com |
05526859fa830c2257da165a2815d19e26920e2b | 99b784550a6d306147c022c8d829800b0fbb8c68 | /Part_1_Basics/Chapter_2_Variables_and_Simple_Data_Types/name_cases.py | 4b259296e67ac7f3957a8f82465fa0660458b0a9 | [] | no_license | apuya/python_crash_course | 116d6598f656d8fed0b4184edbce8e996cd0f564 | 0b2e8a6e9849a198cfb251706500a919d6f51fe7 | refs/heads/main | 2023-06-03T22:41:03.203889 | 2021-06-16T04:07:28 | 2021-06-16T04:07:28 | 367,812,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # Python Crash Course: A Hands-On, Project-Based Introduction To Programming
#
# Name: Mark Lester Apuya
# Date: 05/19/2021
#
# Chapter 2: Variables and Simple Data Types
#
# Exercise 2.4 Name Case:
# Use a variable to represent a person’s name, and then print that person’s
# name in lowercase, uppercase, and title ... | [
"contact@mapuya.com"
] | contact@mapuya.com |
1e476e210066950d20e85b2282342ee6eeb394f1 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_arm/source/setuptools/namespaces.py | 44939e1c6d40539eb8173bf1527db926c5a54658 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 3,093 | py | import os
from distutils import log
import itertools
flatten = itertools.chain.from_iterable
class Installer:
nspkg_ext = '-nspkg.pth'
def install_namespaces(self):
nsp = self._get_all_ns_packages()
if not nsp:
return
filename, ext = os.path.splitext(self._get_target())... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
7b35d43e27d73e0b99176b92115cf1a65246056d | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/All_Solutions/0308.二维区域和检索-可变/0308-二维区域和检索-可变.py | 283691842822d4b94c1e098dfe296cbe0cad893c | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | GB18030 | Python | false | false | 1,364 | py | class NumMatrix:
def __init__(self, matrix: List[List[int]]):
if matrix == [] or matrix == [[]]: return
row, col = len(matrix), len(matrix[0])
sum_arr = [[0] * (col + 1) for _ in range(row + 1)]
self.update_dic = collections.defaultdict(int)
for i in range(row):
... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
76c019cd915eabfd7f4d624b5f5b605482da9d8a | fe3e85aa2051eba7b90f454484816037f39fbba6 | /make_projects.py | 1fe379a5608bc5915b6cd5eb97ea09885228c45a | [] | no_license | spencerwuwu/didactic-octo-happiness | 4299719f4cb62521f299f9bb2a3afea3548622de | 103c83c439b5dd9246822d22c0852113724480d7 | refs/heads/master | 2022-07-29T15:47:52.780664 | 2021-03-31T19:19:37 | 2021-03-31T19:19:37 | 213,309,861 | 0 | 0 | null | 2022-07-06T20:19:39 | 2019-10-07T06:23:38 | Python | UTF-8 | Python | false | false | 5,146 | py | #!/usr/bin/env python3
import sys
import os
import logging
import json
from subprocess import Popen, PIPE
def _run_cmd(cmd, log):
log.info(cmd)
try:
process = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True)
out, err = process.communicate()
if process.returncode != 0:
log.... | [
"spencerwu85@gmail.com"
] | spencerwu85@gmail.com |
65608afd38741b5265b596ab0f137a5b10a85d7b | 9a46784244d544445c01c6f0d564f4da65efcfaf | /CodeUltimateFlaskCourse/08. Flask-WTF/wtf_field_enclosures/app.py | c2354dcfae2d9406976ea8ca5249660996d13c4c | [] | no_license | ammbyrne/Flask | f55a606ec234c6a00b4d264a48e11b2f487d4ef7 | 7922ab46b8a4c388346043d2393173e7e49e43bb | refs/heads/main | 2023-04-19T16:07:08.224824 | 2021-05-07T03:21:44 | 2021-05-07T03:21:44 | 365,101,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | from flask import Flask, render_template
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, IntegerField, BooleanField, Form, FormField
from wtforms.validators import InputRequired, Length, AnyOf, Email
app = Flask(__name__)
app.config['SECRET_KEY'] = 'Mysecret!'
app.config['WTF_CSR... | [
"andy_m_byrne@yahoo.co.uk"
] | andy_m_byrne@yahoo.co.uk |
61a43e0b3b8c6137b8ef821676d7b27f351cf09a | 74549d7c57b4746ac2a9c275aa12bfc577b0e8af | /kaprekar-numbers.py | 86a8403c9fbc659eda1857a9fc1307552c469b73 | [] | no_license | abidkhan484/hackerrank_solution | af9dbf6ec1ead920dc18df233f40db0c867720b4 | b0a98e4bdfa71a4671999f16ab313cc5c76a1b7a | refs/heads/master | 2022-05-02T11:13:29.447127 | 2022-04-13T03:02:59 | 2022-04-13T03:02:59 | 99,207,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # this is not what i should do
# karNum is get from wikipedia.
# write the code again
karNum = [1, 9, 45, 55, 99, 297, 703, 999, 2223, 2728, 4950, 5050, 7272, 7777, 9999, 17344, 22222, 77778, 82656, 95121, 99999]
length = len(karNum)
p = int(input().strip()); q = int(input().strip())
c = 0
for i in range(len... | [
"noreply@github.com"
] | abidkhan484.noreply@github.com |
0c8a48cfb399b46d6e799a0165710e2b33d74eaa | 88d32cff45c04a069714101ba03b630758478767 | /DaGuan_TextClassification_Rank11/src/ensemble/stacking.py | 5706a1dbf1430f18136092cdeb86f70ed0b91ec0 | [] | no_license | wsh85340390/daguanbei2019 | 857a0a519edd0a4580c9df16f03581cb3aff6cab | f48052caa018c32b99daf58ce7e528897049b33d | refs/heads/master | 2020-06-28T13:58:11.938096 | 2019-08-03T01:30:13 | 2019-08-03T01:30:13 | 200,249,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,682 | py | import warnings
warnings.filterwarnings('ignore')
import os
import numpy as np
from lightgbm import LGBMClassifier
from sklearn.metrics import f1_score
from sklearn.model_selection import StratifiedKFold
def softmax(x):
e_x = np.exp(x - np.max(x, axis=1, keepdims=True))
return e_x / np.sum(e_x, axis=1, keepd... | [
"mac@Macs-MacBook-Pro.local"
] | mac@Macs-MacBook-Pro.local |
e51fa70c58d0dd267306405b5c1d3c044b1e274d | 746cd1d11eb24e7a987f2dd4db72b68a8e0a5b99 | /android/external/adt-infra/build/scripts/slave/recipe_modules/git/__init__.py | 40527937e0b129354f1ab3fda583114362379726 | [] | no_license | binsys/BPI-A64-Android7 | c49b0d3a785811b7f0376c92100c6ac102bb858c | 751fadaacec8493a10461661d80fce4b775dd5de | refs/heads/master | 2023-05-11T18:31:41.505222 | 2020-07-13T04:27:40 | 2020-07-13T12:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | DEPS = [
'path',
'platform',
'properties',
'python',
'raw_io',
'step',
]
| [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
d2cb444f323988b2a9db7dbce4a6307011f0e34c | b2baf5d4eb6246a5bca48c4fc11363029d1a58ad | /feaPyFoFumEditor.roboFontExt/lib/feaPyFoFumLexer.py | 6f424d30596978644ed685a39ee075dc06524628 | [
"MIT"
] | permissive | typemytype/feaPyFoFumEditorRobofontExtension | 438aaf1b67c4766edce4e2de6961a8a1e6537804 | ed004d393bd9e1ad8405e5a0fe084ca990f46a64 | refs/heads/master | 2023-09-04T03:29:14.648563 | 2021-05-05T09:02:55 | 2021-05-05T09:02:55 | 58,588,263 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | from lib.features.featureEditor import languagesIDEBehavior, FeatureLexer
from pygments.token import *
from pygments.lexers.python import PythonLexer
languagesIDEBehavior["FeaturePyFoFum"] = dict(languagesIDEBehavior["Feature"])
# lexer
class FeaPyFoFumLexer(FeatureLexer):
name = "FeaturePyFoFum"
aliases... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
8eaf5797bdb9cb9a917d59ed49526ae7f590126a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03221/s622625944.py | ddcc6daa9a57e896de7ff122710cc39d7840241c | [] | 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 | 451 | py | from collections import deque
n,m = map(int,input().split())
prefs = [{} for _ in range(n)]
cities = deque()
for i in range(m):
p, y = map(int,input().split())
prefs[p-1][y] = -1
cities.append((p,y))
for p in prefs:
years = list(p.keys())
years.sort()
for y in range(len(years)):
p[years... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
335f004bbd766015ae61203402129e20c2dd8f0f | 8bbe9e951a244f2518fa267db0091dd9ec8c2238 | /.history/FirstName-LastName_20181130002809.py | 46c953fac803139a5f33b0ba377228e2df440174 | [] | no_license | 1811november05hadoop/python-emersonargueta78 | 08c07d5d1e5d231753a833edc04d0269178fb4a2 | 41c1205299c430e6b145e185c8da4040c243dbc9 | refs/heads/master | 2020-04-08T21:45:42.138613 | 2018-12-01T19:38:52 | 2018-12-01T19:38:52 | 159,757,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,910 | py | #!/usr/bin/env python3
'''
Revature is building a new API! This API contains functions for validating data,
solving problems, and encoding data.
The API consists of 10 functions that you must implement.
Guidelines:
1) Edit the file to match your first name and last name with the format shown.
2) Provide tests in ... | [
"emersonargueta78@yahoo.com"
] | emersonargueta78@yahoo.com |
ed3ae2943bf713d19fa38878d40c9e7931655efd | 77a014156f639330f10162b79e6fa31fce7e88f9 | /adminacttools/tests/test_config.py | 5df2d12502eb7fb58f37de67b8152134c90c6162 | [
"Apache-2.0"
] | permissive | tmbx/teambox-acttools | 1d50e6cdc2c78fb31f1bf8da05897971439645c5 | 4ca2e0a59d37cfa9756047e9655f6a769b688a9e | refs/heads/master | 2016-09-05T19:12:05.439175 | 2013-05-16T19:56:42 | 2013-05-16T19:56:42 | 3,780,293 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | #
# Copyright (C) 2010-2012 Opersys 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... | [
"karim.yaghmour@opersys.com"
] | karim.yaghmour@opersys.com |
67937aea7304153b3b94057087c662504b620b81 | 2500a2ab1f43c649fb0b4fe3b9e3420efa017efa | /_MxDCore/MxDCore.py | e835cab1e525b3e6694b80b054f608a5dada11ae | [] | no_license | cappytan3/AbletonLive9_RemoteScripts | 0ce3e2d728190ba2ff5d2422cd03ae8a5df9d46f | 65d08fd4ccdadd8366eca6f3c0fa7932516147bf | refs/heads/master | 2021-01-15T11:50:14.152579 | 2014-04-11T17:37:22 | 2014-04-11T17:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,094 | py | #Embedded file name: /Users/versonator/Hudson/live/Projects/AppLive/Resources/MIDI Remote Scripts/_MxDCore/MxDCore.py
import Live.Base
from functools import partial
import _Framework
from _Framework.Debug import debug_print
from MxDUtils import TupleWrapper, StringHandler
from LomUtils import LomInformation, LomIntrosp... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
0293f5ce5ab61391d4bba970bf2c79b4191f45dc | 78e315299f77b06db363bb305c2b11b9ad07aea9 | /strategies/branch/__init__.py | 16abf5ce9edd96441f9751b5cb52f208fd7b9581 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | logpy/strategies | e45e7d72249210d9db555dc5ea20b4ee29ae83cf | f23e3bcc9e48c5de2a0c7d8357845e641787c438 | refs/heads/master | 2021-01-25T07:34:44.402024 | 2015-08-23T17:55:07 | 2015-08-23T17:55:07 | 8,736,848 | 13 | 2 | null | 2017-08-05T04:59:00 | 2013-03-12T19:48:38 | Python | UTF-8 | Python | false | false | 129 | py | from .core import (condition, debug, multiplex, exhaust, notempty,
chain, onaction, sfilter, yieldify, do_one, identity)
| [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
751378684ee4d6497cc28736bd888a43808c99ec | 9b35cf8db615e9972240b6870ba163c0649cb087 | /web/test.py | 08afbfabf85d9b8bfd8198b7c103365089d44496 | [] | no_license | qunER006/Data-analysis-and-visualization | 3b4d4897d58af9f8710b749ac152d92bbe415ad1 | 56ccb070bd5d34f525f16a7237d38d2c09bdb9bd | refs/heads/main | 2023-06-27T06:48:34.062191 | 2021-07-22T03:45:37 | 2021-07-22T03:45:37 | 388,314,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,367 | py | # import jieba
# from model import mysql
# import re
# res = mysql.get_comment_data()
# data = []
# stopwords = {}.fromkeys([line.rstrip() for line in open('stopword.txt','r',encoding='utf-8')])
# with open('comments.txt','w') as f:
# for i in res:
# s = ''
# m = re.split(r'\t|\n|&hellip|&ldquo|&rd... | [
"szqszq00766@163.com"
] | szqszq00766@163.com |
1cdc1a330f4f13546102ed4afc350ad6df3a4c2d | 7b8f68ecf2f75e1568ece86b8f4c60d32606ee5d | /TheoreticalUncetainties/crossSectionsFromMcM.py | c0592ceb7af91f3b41f7eaa82bf5b4d3246e2cb3 | [] | no_license | kjaffel/ZA_FullAnalysis | c86c3f265817e7b9fc4877943c0bd4f3937eed10 | 30df434202df51017309b5bf88a1d9b94041b6ef | refs/heads/master | 2023-08-19T10:42:53.054337 | 2023-08-13T10:47:02 | 2023-08-13T10:47:02 | 194,130,550 | 11 | 4 | null | 2023-03-07T10:21:22 | 2019-06-27T16:38:34 | Python | UTF-8 | Python | false | false | 1,560 | py | #!/usr/bin/env python
# Usage ./crossSectionsFromMcM -d "datasetname"
# Before using, run bash getCookie.sh to get the private cookie file
#
# Wildcards are supported. Note that it's always best to put them
# in quotes so they aren't expanded by bash
#
# Kenneth Long U. Wisconsin -- Madison
# 2016-05-12
#
import reque... | [
"khawla.jaffel@cern.ch"
] | khawla.jaffel@cern.ch |
7d23d7fe7461bbac34c18fab4fea34ebc59819a5 | d543c03d5f6993a260049ae645228e5e00f7238e | /python27/win32/Lib/test/test_compile.py | cfc6389b59a7c2c306ae71f387f3986994eb5b76 | [
"MIT",
"bzip2-1.0.6",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-newlib-historical",
"BSD-3-Clause",
"OpenSSL",
"Sleepycat",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scan... | permissive | hehahovip/oss-ftp | 8ea4a5b7a0f5b0a156bbd9c9586e71b89c39f021 | 400b934b2fa625e31da41b3c6af98fc14f4f63ab | refs/heads/master | 2020-04-04T12:47:59.959182 | 2018-11-16T06:49:27 | 2018-11-16T06:49:27 | 155,938,177 | 1 | 0 | MIT | 2018-11-03T01:18:23 | 2018-11-03T01:18:23 | null | UTF-8 | Python | false | false | 21,193 | py | import math
import unittest
import sys
import _ast
from test import test_support
import textwrap
class TestSpecifics(unittest.TestCase):
def test_no_ending_newline(self):
compile("hi", "<test>", "exec")
compile("hi\r", "<test>", "exec")
def test_empty(self):
compile("", "<test>", "exe... | [
"scorpion@yanghaorandeiMac.local"
] | scorpion@yanghaorandeiMac.local |
a0fbce5f0f32bb8fe4b8dd1e5ca9c4064d098b9d | 6d9fc5fb6c56f85fc89e26fad04fa4b16d75d3a2 | /bug1/views.py | 5ebf4a02d1b78dfde6b4938d05aa1f83a2591ea2 | [] | no_license | spookylukey/django-bug-1-test | f285b8d8cfc6aa9d9f2e2e2a19bef95f59d5f89a | 57aad158d1fe29293300f943bf3a7d0aae345d3d | refs/heads/master | 2020-06-30T13:28:35.894327 | 2019-08-06T11:47:12 | 2019-08-06T11:47:12 | 200,840,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.shortcuts import render
def test_view(request):
return render(request, "test.html", {}) | [
"L.Plant.98@cantab.net"
] | L.Plant.98@cantab.net |
950221391148263afe12ffc0d8170ca6ef306ff0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_151/ch49_2020_09_30_21_08_35_482182.py | 91d5ec7e349a95e8dd1874de540e3b71a84511fd | [] | 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 | 136 | py | def inverte_lista(x):
i = len(x)
j = i
y = []
while j < i:
y.append(i-1)
j = j - 1
return y
| [
"you@example.com"
] | you@example.com |
e42c4180af4c0662932ca1dacacce63075348fea | 35b46a27beafd35171ec614209c9830499f627bc | /dashboard/dashboard/pinpoint/models/quest/run_gtest_test.py | 6b1e2a5fa520e478b75dfbc0fa0549506baf33d9 | [
"BSD-3-Clause"
] | permissive | ncalexan/catapult | 386650a377e677ac4ee83838737d4309b87af3d7 | d21a98f0ee0bc0394eb93922d0b274fd6ac281d5 | refs/heads/master | 2020-04-23T13:08:02.406162 | 2019-02-17T23:18:06 | 2019-02-18T01:19:20 | 171,193,111 | 0 | 1 | BSD-3-Clause | 2019-02-18T01:17:17 | 2019-02-18T01:17:16 | null | UTF-8 | Python | false | false | 1,200 | py | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from dashboard.pinpoint.models.quest import run_gtest
from dashboard.pinpoint.models.quest import run_performance_test
from dashboard.pinpoi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
0f5e0bdc1ce6d2f044ed70d1ebc209d093058cfb | 5f3cfd876c77a7831c42f6b378bc8acb57c6efd9 | /manage.py | 792eea50de75d6f49d308b20c0d681ec4dfc80a4 | [] | no_license | eduardogpg/important_people | f48fb48fb3150d53e30f270e9bde0abc7e0a0868 | cbf02ee9deeccd1f37cb2f30d1436694d376a7f2 | refs/heads/master | 2020-12-08T10:49:02.644401 | 2016-09-11T17:38:14 | 2016-09-11T17:38:14 | 67,936,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Eduardo Ismael García Pérez'
__contact__ = '@eduardo_gpg'
from flask import Flask
from flask import render_template
from flask import request
from flask import session
from flask import redirect
from flask import url_for
from flask import flash
from flask im... | [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
c98cd7479edc8437620885da00b123b6590df651 | 5e9fca77e8663682e05b6054a59b5cc8a45b375d | /appengine/swarming/swarming_bot/api/platforms/posix.py | bc366143bad20f13c64ba96ed30585598c2de0d0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Swift1313/luci-py | c8a8f41b8101d6fc1e52286b756c5c326333dc0f | 0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4 | refs/heads/master | 2020-04-21T18:40:43.968106 | 2019-02-08T15:16:25 | 2019-02-08T15:16:25 | 169,779,399 | 0 | 0 | Apache-2.0 | 2019-02-08T18:20:59 | 2019-02-08T18:20:59 | null | UTF-8 | Python | false | false | 2,143 | py | # Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""POSIX specific utility functions."""
import os
import subprocess
import sys
def _run_df():
"""Runs df and returns the output.
The outpu... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ac3fcef60284b4a66a3d5ed285273fc282ce02e0 | 692eceac2533150b86aa173b451698b7a12ff735 | /PycharmProjects/lession1/hello.py | 2195e602faa32488cbaec2f2afcc9b9e8c383251 | [] | no_license | linlufeng/LufengLearnPython | cb74f34926663dc9b7d4d6789e6e7e044dd73db3 | bedcbf4fea6d048a3903a623a4386ac5d484a70d | refs/heads/master | 2022-09-12T22:14:19.243757 | 2022-08-25T02:54:13 | 2022-08-25T02:54:13 | 200,183,327 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | # -*- coding: UTF-8 -*-
print "你好,世界"
| [
"yuzhibo_8486@qq.com"
] | yuzhibo_8486@qq.com |
e204b0f6b83ad74a898cb2ce008091f7903dbcf2 | 3f28b697f570ded0502de70c706200005ab62525 | /env/lib/python2.7/site-packages/skimage/external/tifffile/tifffile_local.py | 4ddd67634e4ffc9b08d197860f57973afeeba53c | [
"MIT"
] | permissive | Ram-Aditya/Healthcare-Data-Analytics | 5387e41ad8e56af474e10fa2d1c9d8a2847c5ead | d1a15d2cc067410f82a9ded25f7a782ef56b4729 | refs/heads/master | 2022-12-09T12:49:59.027010 | 2019-11-23T20:10:55 | 2019-11-23T20:10:55 | 223,639,339 | 0 | 1 | MIT | 2022-11-22T00:37:48 | 2019-11-23T19:06:20 | Jupyter Notebook | UTF-8 | Python | false | false | 173,370 | py |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2014, Christoph Gohlke
# Copyright (c) 2008-2014, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or w... | [
"ramaditya.danbrown@gmail.com"
] | ramaditya.danbrown@gmail.com |
43ac38bcb410093a5e985cc37bb073b66ba40430 | 3e334aee189a01f4c82d47bd6e1a06e0bc667f73 | /hazelcast/protocol/codec/client_authentication_custom_codec.py | 05e0d67b6d0a02aa93616c647c2690872a03ae59 | [
"Apache-2.0"
] | permissive | SaitTalhaNisanci/hazelcast-python-client | d7ef3709e36f0a82754195a93d1055a7a2588d0b | af382081da02a360e826163b1026aa0f68b6e9b8 | refs/heads/master | 2020-04-05T08:00:17.830918 | 2018-11-08T08:40:01 | 2018-11-08T08:40:01 | 156,697,115 | 0 | 0 | Apache-2.0 | 2018-11-08T11:32:12 | 2018-11-08T11:32:12 | null | UTF-8 | Python | false | false | 2,455 | py | from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.custom_codec import *
from hazelcast.protocol.codec.client_message_type import *
REQUEST_TYPE = CLIENT_AUTHENTICATIONCUSTOM
RESPONSE_TYPE = 107
RETRYABLE = True
def calculate_size(credential... | [
"arslanasim@gmail.com"
] | arslanasim@gmail.com |
d23a4fbd5600dbe1e74c03eef32b625cb9f2a104 | 85fd21cdb44eee7707411be98d25cf68a8dc8aa2 | /python/ray/_private/ray_logging.py | fb0609a64017c5d0e2401f43629acd8736facb96 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | wuisawesome/ray | e232e83bfc7f1284d2419dd8f09a9f39139534bb | de3df47447f1db547f1844298593f5243a4a077a | refs/heads/master | 2023-05-24T19:18:00.119750 | 2023-05-18T22:27:47 | 2023-05-18T22:27:47 | 235,706,109 | 0 | 1 | Apache-2.0 | 2023-03-22T00:23:20 | 2020-01-23T01:59:12 | Python | UTF-8 | Python | false | false | 14,417 | py | import colorama
from dataclasses import dataclass
import logging
import os
import re
import sys
import threading
from logging.handlers import RotatingFileHandler
import time
from typing import Callable, Dict, List, Set, Tuple, Any, Optional
import ray
from ray.experimental.tqdm_ray import RAY_TQDM_MAGIC
from ray._priv... | [
"noreply@github.com"
] | wuisawesome.noreply@github.com |
2b93ef9976777030d284ee0fa5bf442352af42ce | bfaf64c553eb43684970fb3916eedaafbecf0506 | /Player/set8/diuct_num.py | 88e1f0104a204ce152ec1a1bba240320e30dbd9f | [] | no_license | santhoshbabu4546/GUVI-9 | 879e65df0df6fafcc07166b2eaecf676ba9807a2 | b9bfa4b0fa768e70c8d3f40b11dd1bcc23692a49 | refs/heads/master | 2022-01-24T15:22:34.457564 | 2019-07-21T14:20:35 | 2019-07-21T14:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | n1=int(input())
l=[int(i) for i in input().split()]
c=0
for i in range(len(l)):
for j in range(i+1,len(l)):
if(l[i]<l[j]):
c=c+1
print(c)
| [
"noreply@github.com"
] | santhoshbabu4546.noreply@github.com |
3f54e5777b952325ef98159b382624c73a7474f7 | 1be65c272e2788f647534db9b3b003fc98228a71 | /tim-mobile/security.py | e308046aa8781ff48bd01d8a1a072e89c83f3c78 | [] | no_license | camwes/thisis.me | e93e530cdddaab08d8796985ef88c0882ae142d0 | e1c32d237a7410298fdb034cab8378d5ecc14973 | refs/heads/master | 2021-01-20T21:45:09.389189 | 2012-09-12T00:45:19 | 2012-09-12T00:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from sqlalchemy.orm import join
from mi_schema.models import Author
from mi_schema.models import AccessGroup
from mi_schema.models import AuthorAccessGroupMap
from globals import DBSession
# get the groups the user is a member of
#
def groupfinder(authorname, request):
dbsession = DBSession()
author = dbsess... | [
"howard@mobileidentity.me"
] | howard@mobileidentity.me |
9ef1bcd6b92b570bde10354069006a114736df1c | f9ed6d4ef53874453ff429bd67bfdc91369c5d82 | /kaidee/category_distribution.py | 5f0e9c8fd365f749059beb13a4a3579841026ae4 | [] | no_license | axeltidemann/propeller | 35a79464f6f0ee249c2d5e91d5e31d2fe6c08b33 | b9485f523812bf37c40404d052e05a43f6dc0799 | refs/heads/master | 2020-04-04T07:37:07.430215 | 2019-06-05T04:45:48 | 2019-06-05T04:45:48 | 39,445,622 | 5 | 1 | null | 2019-05-29T04:55:46 | 2015-07-21T13:02:33 | Python | UTF-8 | Python | false | false | 808 | py | # Copyright 2016 Telenor ASA, Author: Axel Tidemann
import argparse
import pandas as pd
parser = argparse.ArgumentParser(description='''
Calculates the distribution of ad categories.
''', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument(
'in_file',
help='CSV file with counts... | [
"axel.tidemann@gmail.com"
] | axel.tidemann@gmail.com |
ee866bb188c0b251a8ff46992f675a545468e6c6 | 209c876b1e248fd67bd156a137d961a6610f93c7 | /python/paddle/fluid/tests/unittests/collective/fleet/test_fleet_localsgd_meta_optimizer.py | 2765b8c3eaea00242cc4b5373b18d5a0a412927c | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 3,614 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | Qengineering.noreply@github.com |
b2968d5f97d88784bc6825f72b99fc4eca06a589 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201023163444.py | 643d40665eb55aa8cef4d446697b1ac22592d56b | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
9a2f9d9f2ce34b81e986f73e1c73742578e30029 | 6942eee54db7923ba9edac9319aa3a96c1f77ac2 | /dxtbx/command_line/show_matching_formats.py | 7152304379497770bb163c9a476e80ed8749dfc1 | [] | no_license | hainm/cctbx_project | e7eeaddb032b7c4695db2f52538c14ddb2885627 | 7fd9c4281e86af11fe44571fb1bd8c6454c388be | refs/heads/master | 2020-06-14T07:21:02.536499 | 2016-11-30T00:42:45 | 2016-11-30T00:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from __future__ import division
def recurse(fmt, arg):
for _fmt in fmt._children:
if _fmt.understand(arg):
print _fmt.__name__, _fmt.understand(arg)
recurse(_fmt, arg)
else:
print fmt.__name__, fmt.understand(arg)
def show_matching_formats():
import sys
from dxtbx.format.Registry im... | [
"graeme.winter@gmail.com"
] | graeme.winter@gmail.com |
5637edf495f5d4385ed19451b72ab62528eb4d67 | 7ed9b1d87012cd11ecc1625cadbea861223e82c5 | /plugins/worlds/Pyrobot/LightInMaze.py | 09285797ca5174dd70b14b47514ff436af0e7162 | [] | no_license | dsblank/pyrobot | 577bdcb1cd68777b76aaada11ff3d3c3c5231c38 | d9c19947767a97980ec31d2096ec157bafa55f0d | refs/heads/master | 2021-01-21T21:19:48.788998 | 2019-04-01T03:55:06 | 2019-04-01T03:55:06 | 94,819,207 | 2 | 2 | null | 2019-03-30T17:03:32 | 2017-06-19T20:43:18 | Python | UTF-8 | Python | false | false | 1,185 | py | """
A PyrobotSimulator world. A large room with a robot
and many walls.
(c) 2005, PyroRobotics.org. Licensed under the GNU GPL.
"""
from pyrobot.simulators.pysim import TkSimulator, TkPioneer, \
Pioneer16Sonars, PioneerFrontLightSensors
def INIT():
# (width, height), (offset x, offset y), scale:
sim = T... | [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
dfecb8f07a01434b87b34907e5d3a4d8003aceae | a6106cedc42dcab94ccc4ee6d681372d2246ce5e | /python/활용자료/예제/07/ex7-15.py | 8f0f7aec640ca585d3b037ffd0601472ae3eea07 | [] | no_license | leemyoungwoo/pybasic | a5a4b68d6b3ddd6f07ff84dc8df76da02650196f | 481075f15613c5d8add9b8c4d523282510d146d2 | refs/heads/master | 2022-10-08T19:57:26.073431 | 2020-06-15T06:50:02 | 2020-06-15T06:50:02 | 267,502,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | scores = ['김소영 82 80 93 97 93 88',
'정예린 86 100 93 86 90 77',
'이세영 91 88 99 79 92 68',
'정수정 86 100 93 89 92 93',
'박지수 80 100 95 89 90 84']
data = ''
for item in scores :
data += item + '\n'
# 화면 출력하기
print(data)
# 파일(scores.txt)에 저장하기
file = open('scores.txt', 'w', e... | [
"mwlee2587@gmail.com"
] | mwlee2587@gmail.com |
96bd85d7944289995707118553758a25de2fa9f1 | 8b1945b9698fcba3ea409e838c3ed9b18bba05b1 | /day05/mydjango/app7/dateview/showTeachings.py | 6f9d88887e92cf6c6bf4aa9a690ce5a25a83e97b | [
"Apache-2.0"
] | permissive | Vanessa-kriby/Python | 659a67c9c9b1a79490374c3991fcd63bfbde9d56 | 1fbef67852fb362712fc48fa5c3c29eac68fe202 | refs/heads/main | 2023-08-22T19:40:03.538141 | 2021-10-16T10:09:03 | 2021-10-16T10:30:15 | 417,788,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from app1.models import *
from app1.util.utils import *
def showTeachings(request):
'''
url:
http://127.0.0.1:8000/app7/showTeachings?teid=002&couid=002
调用参数:
老师工号:teid
课程编号:couid
'''
try:
if(request.method=='POST'):
data = json.loads(request.body)
data =... | [
"1823954042@qq.com"
] | 1823954042@qq.com |
9eabcd8047c7ab95ce8ccef99b3a8a83585ee000 | 3de3dae722829727edfdd6cc3b67443a69043475 | /edexOsgi/com.raytheon.uf.tools.gfesuite/cli/src/siteActivation/ActivationTopicListener.py | e557c04c8a5df61da1c4c9d30ae056eec5e89384 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | Unidata/awips2 | 9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb | d76c9f96e6bb06f7239c563203f226e6a6fffeef | refs/heads/unidata_18.2.1 | 2023-08-18T13:00:15.110785 | 2023-08-09T06:06:06 | 2023-08-09T06:06:06 | 19,332,079 | 161 | 75 | NOASSERTION | 2023-09-13T19:06:40 | 2014-05-01T00:59:04 | Java | UTF-8 | Python | false | false | 2,151 | py | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non... | [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
a56e305489fff4e0e0c0cf3520242229a26e2e82 | 36de14c6b188886df6a284ee9ce4a464a5ded433 | /Solutions/0592/0592.py | 02fc481f2da92e10a8f2e0c7d89dca50d05e73b3 | [] | no_license | washing1127/LeetCode | 0dca0f3caa5fddd72b299e6e8f59b5f2bf76ddd8 | b910ddf32c7e727373449266c9e3167c21485167 | refs/heads/main | 2023-03-04T23:46:40.617866 | 2023-02-21T03:00:04 | 2023-02-21T03:00:04 | 319,191,720 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # -*- coding:utf-8 -*-
# Author: washing
# DateTime: 2022/7/27 10:40
# File: 0592.py
# Desc:
class Solution:
def fractionAddition(self, expression: str) -> str:
l = expression.replace("+", " ").replace("-", " -").strip().split(" ")
l = [map(eval, i.split("/")) for i in l]
fz1 =... | [
"1014585392@qq.com"
] | 1014585392@qq.com |
13cda31fa44c5834a3bfbd669904d73256f9c63b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class375.py | 214c1dc47ac4de518f68db71b136e3ae83bc677c | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | # qubit number=3
# total number=68
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
052ee16e0df0920a6b836f08bd369c78db04f8fa | b0dd7779c225971e71ae12c1093dc75ed9889921 | /tools/build/v2/tools/common.py | c75752eb922baf5f08659b63a5c3a85c5ef55c57 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | Python | false | false | 32,595 | py | # Status: being ported by Steven Watanabe
# Base revision: 47174
#
# Copyright (C) Vladimir Prus 2002. Permission to copy, use, modify, sell and
# distribute this software is granted provided this copyright notice appears in
# all copies. This software is provided "as is" without express or implied
# warran... | [
"tvaneerd@rim.com"
] | tvaneerd@rim.com |
5b48aee080d34ad36324547fabd9478094677963 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/instructor_task/__init__.py | 476eeca191524b0a1515e9d94af4599dfaaef3fe | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 137 | py | # lint-amnesty, pylint: disable=missing-module-docstring
default_app_config = 'lms.djangoapps.instructor_task.apps.InstructorTaskConfig'
| [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
92e5a8212625e0dc1e182ae7154f48f166c45382 | d4eb113c44c86322b3811513a7286d176f106eb6 | /experiments/simple_autoencoder_activations/softmax/autoencoder.py | 4531934f323fb483d15c8b65045b08eaa10d5bd8 | [] | no_license | philip-brohan/Machine-Learning | 67a2eb780383b3436da4fef1d763f39d255ae696 | dc53b9c336d5f12272257f327abe49dec436ea04 | refs/heads/master | 2021-03-27T12:33:07.518279 | 2020-04-30T19:38:02 | 2020-04-30T19:38:02 | 56,614,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,618 | py | #!/usr/bin/env python
# Very simple autoencoder for 20CR prmsl fields.
# Single, fully-connected layer as encoder+decoder, 32 neurons.
# Very unlikely to work well at all, but this isn't about good
# results, it's about getting started.
# This version uses softmax activations
import os
import tensorflow as tf
impo... | [
"philip@brohan.org"
] | philip@brohan.org |
b8305ae6e2ae250bc20a8a9de428b29d436d7164 | 57015f325c4a6e6a1d9caa8017bec699534add89 | /process/migrations/0013_auto_20190206_0918.py | bf8a8368d37ddbd352fd76034029358beac29450 | [] | no_license | mrCrendel/mathPlatform | 102d4e2e77f86767b864f8d2c51cea832d329a67 | 71c9836a3ba3568d1724dd22ba205a68da0b303e | refs/heads/master | 2022-12-11T18:54:16.673128 | 2019-05-29T08:59:48 | 2019-05-29T08:59:48 | 164,434,667 | 1 | 0 | null | 2022-12-08T01:31:26 | 2019-01-07T13:11:39 | Python | UTF-8 | Python | false | false | 543 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2019-02-06 09:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('process', '0012_auto_20190206_0853'),
]
operations... | [
"tggrmi@gmail.com"
] | tggrmi@gmail.com |
6f866358f6f46cdfdea99747878b33c9b728de14 | 4806f706b703a4b9ccd8cbca8fcbf300621c32ec | /medium/Populating Next Right Pointers in Each Node/solution.py | f396767d850e7515567818eb1d369a06bfb78b90 | [
"MIT"
] | permissive | vishsanghishetty/LC-Python | aa46151162d74ae3d1edb89462848c56e6e39575 | 65f99a3694549af88c7702b598de1a8ccb7db5fb | refs/heads/main | 2023-07-19T00:08:50.813224 | 2021-09-14T15:32:09 | 2021-09-14T15:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # Time complexity: O(n)
# Approach: Straight forward joining.
"""
# Definition for a Node.
class Node:
def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None):
self.val = val
self.left = left
self.right = right
self.next = next
"""
class Sol... | [
"ashutoshhathidara98@gmail.com"
] | ashutoshhathidara98@gmail.com |
fd6baa196a08115cb6e43440b97763bab4c351ea | 84c2fa4aed9094b5ec3cc612d28980afe5d42d34 | /leetcode/day11_26.py | fc1545a87b3b7dd08f867f5d95592cb74b155502 | [] | no_license | cyg2695249540/generatewework | 186831a1b5c788e9b99e90d1a08bf6a8638131ce | cd01b0fc4a69cc2f2ed4c109afdf8771bee3bffd | refs/heads/master | 2023-01-20T17:13:13.186034 | 2020-12-01T12:05:01 | 2020-12-01T12:05:01 | 310,201,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | # !/usr/bin/env Python3
# -*- coding: utf-8 -*-
# @FILE : day11_26.py
# @Author : Pluto.
# @Time : 2020/11/26 17:18
"""
exp:1487. 保证文件名唯一
给你一个长度为 n 的字符串数组 names 。你将会在文件系统中创建 n 个文件夹:在第 i 分钟,新建名为 names[i] 的文件夹。
由于两个文件 不能 共享相同的文件名,因此如果新建文件夹使用的文件名已经被占用,系统会以 (k) 的形式为新文件夹的文件名添加后缀,其中 k 是能保证文件名唯一的 最小正整数 。
返回长度为 n 的字符... | [
"2695249540@qq.com"
] | 2695249540@qq.com |
7151d1a4080440c107a72259271f17c6cca70494 | 759c049123aa88daa4dd7b4c1b710fd2de869136 | /Chap0/project/ex31.py | 6ae2ea831297f000161c274af6b14543978d0590 | [] | no_license | AIHackerTest/perfectfoolish_Py101-004 | f0399e510ff2ba1eacfd027d754acd3d6e2f9a47 | af9c0a8682320a6fc13d64b19e71e27a5b2c9632 | refs/heads/master | 2021-03-27T13:08:21.449237 | 2017-09-12T08:29:20 | 2017-09-12T08:29:20 | 103,240,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | print("You enter a dark room with two doors. Do you go through door #1 or door #2?")
door = input(">")
if door == "1":
print("There's a giant bear here eating a cheese cake. What do you do?")
print("1.Take the cake.")
print("2.Scream at the bear.")
bear = input(">")
if bear == "1":
print... | [
"xiaowan5219@gmail.com"
] | xiaowan5219@gmail.com |
99b255b9a2414a6bf4bbec5cba65a32973586b78 | 97a7b8bab5365548f10b8a4b92fb5ade0ead0add | /homedisplay/info_tea/models.py | 405c12ab7c153fa83ba1e44a997c777117e3b5d3 | [
"BSD-3-Clause"
] | permissive | ojarva/home-info-display | a337b71e517607e6ac74808d5395e1efe0e01e92 | 873d022308732baff94d0dc2381cf9dc7dce23b7 | refs/heads/master | 2021-07-02T11:44:13.256764 | 2021-05-18T11:14:50 | 2021-05-18T11:14:50 | 28,542,835 | 1 | 1 | BSD-3-Clause | 2021-05-18T11:14:51 | 2014-12-27T17:59:00 | Python | UTF-8 | Python | false | false | 1,396 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core import serializers
from django.db import models
from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver
from homedisplay.utils import publish_ws
import datetime
import json
class NfcTag(models.M... | [
"olli@jarva.fi"
] | olli@jarva.fi |
ddadb1fd5dc4487a0a8bf529385353160f21158e | 689a78e08c957abc02ea5f89fb657b1f78f88b6e | /det3d/utils/buildtools/command.py | 9d5ed565c3ebdf8b2624360ae8d94ddeb422327d | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tianweiy/CenterPoint | 2bb9a7def8d4bf87b66af2e3b671736eae6fa275 | d3a248fa56db2601860d576d5934d00fee9916eb | refs/heads/master | 2023-08-30T23:11:49.528882 | 2022-10-24T13:09:52 | 2022-10-24T13:09:52 | 274,006,091 | 1,692 | 476 | MIT | 2023-05-06T10:30:06 | 2020-06-22T00:32:05 | Python | UTF-8 | Python | false | false | 8,487 | py | import multiprocessing
import os
import re
import subprocess
from concurrent.futures import ProcessPoolExecutor
from enum import Enum
from functools import partial
from pathlib import Path
import fire
from det3d.utils.find import find_cuda, find_cuda_device_arch
class Gpp:
def __init__(
self,
sou... | [
"yintianwei@utexas.edu"
] | yintianwei@utexas.edu |
3476df4de74248403643a8c436c3c5a6890149b8 | 9baa9f1bedf7bc973f26ab37c9b3046824b80ca7 | /venv-bck/lib/python2.7/site-packages/jinja2/environment.py | 681a2c8235837e410d10733bbaea4ec14e013cbc | [] | no_license | shakthydoss/suriyan | 58774fc5de1de0a9f9975c2ee3a98900e0a5dff4 | 8e39eb2e65cc6c6551fc165b422b46d598cc54b8 | refs/heads/master | 2020-04-12T05:36:59.957153 | 2017-01-08T06:12:13 | 2017-01-08T06:12:13 | 59,631,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,211 | py | # -*- coding: utf-8 -*-
"""
jinja2.environment
~~~~~~~~~~~~~~~~~~
Provides a class that holds runtime and parsing time options.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import sys
from functools import reduce
import os
from jinja2 import nodes
from ... | [
"shakthydoss@gmail.com"
] | shakthydoss@gmail.com |
297eb9ffbcd2e8b8195e6d421fa864e9a563c82d | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/access_context_manager/perimeters/update.py | 7bf9455bf3c28f0b74a50d14b2d57f8e3f8979e3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 4,115 | py | # -*- coding: utf-8 -*- #
# Copyright 2018 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
614373784dfac5bf6f3ed0aa18009ca4690c457a | af57b26ad50ab4c6517aa6c309165d66383841a1 | /ctc_with_lm.py | 8834abb09b9e7bd1965e3615ac3c0b3585984f2e | [] | no_license | JesseYang/TextRecognizeBak | ef9c9a2e457a9a9ab779cf6a12b705d2ed678575 | 46acecac1aedd8995354651e6288c6eecdc3b052 | refs/heads/master | 2021-09-09T00:24:23.441188 | 2018-03-12T22:53:01 | 2018-03-12T22:53:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,587 | py | import numpy as np
import copy
import operator
import pickle
import kneser_ney
from tensorpack import *
import pdb
try:
from .cfgs.config import cfg
except Exception:
from cfgs.config import cfg
def confirm_prefix(container, prefix):
if prefix not in container.keys():
container[prefix] = [0, 0]... | [
"jesse.yang1985@gmail.com"
] | jesse.yang1985@gmail.com |
4b8be3183f4268c6858158d1370760e23bb63fb1 | 854b94d7be92582bd191a7cb63143a95e5b5c337 | /hyfetch/distros/wii_linux_ngx.py | 7e4768e99e23f748fe24ad4024fff15edb557271 | [
"MIT"
] | permissive | hykilpikonna/hyfetch | 673c0c999d0f3f542349824495ad6004f450ebac | 98863df16d70b030696f4b94080d114396320f35 | refs/heads/master | 2023-08-17T10:41:10.289997 | 2023-08-17T03:37:23 | 2023-08-17T03:37:23 | 479,913,941 | 447 | 78 | MIT | 2023-09-14T14:39:18 | 2022-04-10T04:38:15 | Shell | UTF-8 | Python | false | false | 1,271 | py | # This file is automatically generated. Please do not modify.
from . import AsciiArt
wii_linux_ngx = AsciiArt(match=r'''*"wii-linux-ngx"*|*"whiite-linux"*| *"gc-linux"*''', color='6 7', ascii=r"""
${c1}''''''' `~;:` -'''''' ~kQ@@g\ ,EQ@@g/
h@@@@@@' o@@@@@9` `@@@@@... | [
"me@hydev.org"
] | me@hydev.org |
c28caccb6b7110a1e6f544681fd85df28e7d2aee | 8dabfb03a1016f23a319ee27fe507442ceefcce6 | /setup.py | 5bf8b12ce9a141ec86049d3c69a059a471880bdc | [
"MIT"
] | permissive | redhog/socket-tentacles | 7aec3b732e81a4784ef14efba661bae1bb01f3aa | 87e35ef34584d458f17fc127e7360e7a194de0f2 | refs/heads/master | 2020-09-01T14:41:17.792472 | 2019-10-16T08:49:36 | 2019-10-16T08:49:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
import setuptools
setuptools.setup(name='socket-tentacles',
version='0.0.8',
description="""Simple tcp client/server that divorces the concept of server/client from which side opens the tcp connection.""",
long_description="""Simple thread based tcp client/server that divorces ... | [
"egil.moller@freecode.no"
] | egil.moller@freecode.no |
36f241ab9c7ae4f75b7ba845c71decd3f5b5b391 | e424b8a028a8066fbd1146ba1b763ef90191bc9a | /.venv/bin/jupyter-labextension | 1f7df5865197bc77bc698dade35ce96d7c60dff5 | [] | no_license | MohammedGhafri/soloStatistics2510 | 317ac57a27abacc39ead9a9627b9352c144be327 | d06a3fc342c43315e8fe548a303a1d640b097c83 | refs/heads/main | 2023-01-07T16:36:50.771789 | 2020-11-09T12:58:57 | 2020-11-09T12:58:57 | 307,134,411 | 0 | 0 | null | 2020-11-09T12:58:58 | 2020-10-25T15:53:32 | Python | UTF-8 | Python | false | false | 256 | #!/home/ghafri/soloStatistics2510/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyterlab.labextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"eng.m.ghafri@gmail.com"
] | eng.m.ghafri@gmail.com | |
0ba50acfbeed10862505f05a1da8b689bc624354 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/availablehardware/chassis/card/port/tapsettings/parameter/parameter.py | b153b25d188a6c84b6b8bd655e7e93b419ca270c | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,067 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 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,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
1c2e64e1b4096dfadf92a63a5b65f493e29f7c8e | 1eef839cf49943b1ef869f2841c89b68865ea6a5 | /backend/home/management/commands/load_initial_data.py | 7936143846b48313402c8142208da76c88784ec9 | [] | no_license | crowdbotics-apps/googlevision-2076 | 1704c9682f91d1e8ddfc9fde475ec1cd128a6cf1 | 64cc5327272a418d4d4546510162f9de17034c32 | refs/heads/master | 2022-12-13T00:47:35.948925 | 2019-04-08T14:04:56 | 2019-04-08T14:04:56 | 180,162,128 | 0 | 0 | null | 2022-12-06T17:15:57 | 2019-04-08T14:04:52 | JavaScript | UTF-8 | Python | false | false | 737 | py |
from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">googlevision_2076</h1>
<p class="lead">
This is the sample application created and deployed from the crowdbotics ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ea5601a3fe347e977766fc8f3aa36f7e713c5929 | e11dff811ca981f428644fd70d10a7369c671bcb | /src/tools/ecos/cvxpy/cvxpy/atoms/affine/sum_entries.py | fb2c25a29f5877aab3f953dfc928c1024a96fcb2 | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"MIT"
] | permissive | riadnassiffe/Simulator | 3c4a036b5635534929fdb04b0e9c96d64c0da71f | 7d9ff09f26367d3714e3d10be3dd4a9817b8ed6b | refs/heads/master | 2021-06-20T09:31:36.033427 | 2021-04-17T00:03:17 | 2021-04-17T00:03:17 | 16,033,879 | 0 | 0 | MIT | 2021-03-22T23:20:34 | 2014-01-18T20:58:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,828 | py | """
Copyright 2013 Steven Diamond
This file is part of CVXPY.
CVXPY 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 3 of the License, or
(at your option) any later version.
CVXPY is distributed i... | [
"riad.nassiffe@gmail.com"
] | riad.nassiffe@gmail.com |
ae597411a6945c07b448ad1f6c67ba4faf26865b | 9a9d6052f8cf91dd57be9a9b6564290b0fac9e52 | /Algorithm/BOJ/2116_주사위 쌓기.py | f494fc01ddc883e6b46464d4aa89b959695f7bba | [] | no_license | Gyeong-Yeon/TIL | 596ec6a093eec34a17dad68bcd91fa9dd08690e8 | eb1f43ee0525da93233b70716cd35caab8d82bda | refs/heads/master | 2023-03-31T19:56:30.979062 | 2021-03-28T13:09:27 | 2021-03-28T13:09:27 | 280,307,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | N = int(input())
arr = [list(map(int,input().split())) for _ in range(N)]
# index = 0:5, 1:3, 2:4
match = {0:5, 1:3, 2:4, 3:1, 4:2, 5:0}
adds = [] # 합 리스트
for i in range(6): # arr[0][i]
bottom = arr[0][i]
top = arr[0][match[i]]
initial_max = 0
for j in range(6):
if j != i and j != match[i]:
... | [
"lky4156@naver.com"
] | lky4156@naver.com |
da64295392d8afc7e29227c50fac87e76231d8be | e29c21a7249f2b566553a1e24706bea8c08eba95 | /Create_Blog/my/bin/pip | 0f6e18f78ce8fc8a6d94e480e10e65dfdf749cdf | [] | no_license | NyangUk/Django | fa575f6e2874a97b67b3563cbd5796d8bd2a3d11 | 895124471bee5e0c20be3de23e9713377a87f7c1 | refs/heads/master | 2023-03-03T09:37:34.136253 | 2021-02-15T15:59:15 | 2021-02-15T15:59:15 | 329,477,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/home/jaeuk/JaeUk/Django/my/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lobgd9150@gmail.com"
] | lobgd9150@gmail.com | |
113f24100f87187303d4fce638376a725ba60f5c | 62b736eff115a6d9cfd323c1b396c94f8a9302fe | /gen_al/old/Travelling_Salesperson_Problem_Projects/tsp_2/turtle_func.py | 191975ff56757ee28aca872f5ed1b7395afb8113 | [] | no_license | ccnelson/Python | dccbb9a2c00f8124216f2f4d4202b94907134083 | ebd0c401b23aee7467332d692588f02cda0ff935 | refs/heads/master | 2023-04-02T09:09:55.716686 | 2021-03-28T18:16:15 | 2021-03-28T18:16:15 | 184,681,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | # turtle functions (drawing)
# new tsp project
# C.NELSON 2019
# v1.2 updated 12/03
# Python 3.6
############################
import turtle
def setup_turtle(canv):
""" prepare turtle return turtle
and screen object """
# t = turtle.Turtle()
t = turtle.RawTurtle(canv)
t.speed(0)... | [
"noreply@github.com"
] | ccnelson.noreply@github.com |
de820da903246a69f7c90adb173912c6450dcaae | 85b402cd9e762b2749c978105ea362b10d335e5c | /251_satellite_image_to_maps_translation/251_pix2pix_maps.py | 3286d791ef3287e37f49e5c4a7535959450b7fff | [] | no_license | bnsreenu/python_for_microscopists | 29c08f17461baca95b5161fd4cd905be515605c4 | 4b8c0bd4274bc4d5e906a4952988c7f3e8db74c5 | refs/heads/master | 2023-09-04T21:11:25.524753 | 2023-08-24T18:40:53 | 2023-08-24T18:40:53 | 191,218,511 | 3,010 | 2,206 | null | 2023-07-25T07:15:22 | 2019-06-10T17:53:14 | Jupyter Notebook | UTF-8 | Python | false | false | 3,787 | py | # https://youtu.be/6pUSZgPJ3Yg
"""
Satellite image to maps image translation using Pix2Pix GAN
Data from: http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/maps.tar.gz
Also find other datasets here: http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/
"""
from os import listdir
from numpy import asarray,... | [
"noreply@github.com"
] | bnsreenu.noreply@github.com |
0b128ab5be76ea74d4b4f4f499d711d894c30a40 | e7ef4e1933fd13b1c1259f6fbadd60d3ede1fbee | /osmessages_24733/wsgi.py | 4821d8a1dba5415226372796f5ce0987e23c85aa | [] | no_license | crowdbotics-apps/osmessages-24733 | 14226472cb59aa3f2726e8d5b47115a4ceed3cec | 0bc236e2a9bf4288cedc6722aac04952f0ee154b | refs/heads/master | 2023-03-12T18:01:27.649671 | 2021-02-27T02:36:53 | 2021-02-27T02:36:53 | 342,753,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for osmessages_24733 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
0ea17e3dc66a474be668489033ac2b787f376f4d | 64d923ab490341af97c4e7f6d91bf0e6ccefdf4b | /tensorforce/core/networks/keras.py | aa2bf35c0e726548cde7abb23ce762143bd75cf3 | [
"Apache-2.0"
] | permissive | tensorforce/tensorforce | 38d458fedeeaa481adf083397829cea434d020cd | 1bf4c3abb471062fb66f9fe52852437756fd527b | refs/heads/master | 2023-08-17T17:35:34.578444 | 2023-08-14T20:14:08 | 2023-08-14T20:14:08 | 85,491,050 | 1,312 | 246 | Apache-2.0 | 2023-08-14T20:14:10 | 2017-03-19T16:24:22 | Python | UTF-8 | Python | false | false | 4,461 | py | # Copyright 2020 Tensorforce Team. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
c46739db37cc0d8d6f66b8088d2c8cdddfb6de28 | 37e87b3d5e1ee9009f0ea0671bc0c6edf0e233b7 | /214_2.py | 3b61a632caade66702456fc9ceb28cca7655b778 | [] | no_license | Jane11111/Leetcode2021 | d9f4987792938597bf89ff72ba6bbcb4a3f9d081 | a95b871578aae0103066962c33b8c0f4ec22d0f2 | refs/heads/master | 2023-07-14T21:29:41.196752 | 2021-08-23T03:28:02 | 2021-08-23T03:28:02 | 344,804,297 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # -*- coding: utf-8 -*-
# @Time : 2021-06-29 16:08
# @Author : zxl
# @FileName: 214_2.py
class Solution:
def shortestPalindrome(self, s: str) -> str:
base = 131
mod = 1000000007
h1 = 0
h2 = 0
mul = 1
l = 0
for i in range(len(s)):
n = ord(... | [
"791057615@qq.com"
] | 791057615@qq.com |
e515ff5a0ecccaac1a76f07b6c2939263f989829 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/embed/embed/tests/test__parse_type.py | 40425580b6fed79c705693c035314f72161e03dd | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 619 | py | import vampytest
from ..fields import parse_type
from ..preinstanced import EmbedType
def _iter_options():
yield {}, EmbedType.rich
yield {'type': EmbedType.gifv.value}, EmbedType.gifv
@vampytest._(vampytest.call_from(_iter_options()).returning_last())
def test__parse_type(input_data):
"""
Tests wh... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
f1d198ebc68355b45ed1d8a198fb331cf580631a | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/common/Lib/plat-mac/Carbon/AppleHelp.py | b3a1eb71ee91095744f834691f576b5c4c72e21a | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 222 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/plat-mac/Carbon/AppleHelp.py
kAHInternalErr = -10790
kAHInternetConfigPrefErr = -10791
kAHTOCTypeUser = 0
kAHTOCTypeDeveloper = 1
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
335aeaa24a5acc26b604f77f1b185944aaa1eec0 | 8cb210f5a7b9a46dcdd1c4f4cdebb9b006e16d2f | /cedm/policy/Wizard.py | 60a2da0b8967a89d66834335869e728a29270b07 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | drwiner/Py3Dial | 0ed4572c3d110907a27a8a8f3167299db0de1919 | 0aa5b68f4548bb15e9d167165c17306fd267ee4f | refs/heads/master | 2020-03-26T19:13:53.511897 | 2018-08-18T21:45:32 | 2018-08-18T21:45:32 | 145,254,529 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,481 | py | ###############################################################################
# PyDial: Multi-domain Statistical Spoken Dialogue System Software
###############################################################################
#
# Copyright 2015 - 2018
# Cambridge University Engineering Department Dialogue Systems Grou... | [
"drwiner131@gmail.com"
] | drwiner131@gmail.com |
35b48c0c9437127813b557f04216cc6e646c9a22 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02725/s834414031.py | 4ea7ae85f73f038b9396e7adaf897e35aedc1d80 | [] | 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 | 169 | py | K, N = map(int, input().split())
A = list(map(int, input().split()))
d = [a1 - a2 for (a1, a2) in zip(A[1:], A[:-1])]
d.append(A[0] + K - A[-1])
print(sum(d) - max(d)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cafb9e153bb80550540eb935a4b6be4ea7fc0b44 | 022cec04ce91ab45cc9fd6ce77b2fc23bba1e1fa | /cellar_app/apps.py | 3d0f722502d5af3f9130ae5236512901b48da98c | [] | no_license | AndresOsorio0710/BackenMarca | fa1181234380c38be4815dabc0554766d55f2100 | 78e4f33f585e556c6dbb3d2739339857464d7043 | refs/heads/master | 2023-05-02T05:29:29.977869 | 2021-05-01T02:10:47 | 2021-05-01T02:10:47 | 362,198,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class CellarAppConfig(AppConfig):
name = 'cellar_app' | [
"andres.osorio0710@gmail.com"
] | andres.osorio0710@gmail.com |
02753662837aeffc964c4affc5dc2aaa36b7142b | 1a220abd21c56728aa3368534506bfc9ced8ad46 | /백준/Bronze/11365. !밀비 급일/!밀비 급일.py | 77b139edee3333df8d90c7e2c2295478df3d5b5c | [] | no_license | JeonJe/Algorithm | 0ff0cbf47900e7877be077e1ffeee0c1cd50639a | 6f8da6dbeef350f71b7c297502a37f87eb7d0823 | refs/heads/main | 2023-08-23T11:08:17.781953 | 2023-08-23T08:31:41 | 2023-08-23T08:31:41 | 197,085,186 | 0 | 0 | null | 2023-02-21T03:26:41 | 2019-07-15T23:22:55 | Python | UTF-8 | Python | false | false | 168 | py |
while True:
seq = input()
if seq == "END":
break
list_seq = list(seq)
reversed_seq = reversed(list_seq)
print("".join(reversed_seq)) | [
"43032391+JeonJe@users.noreply.github.com"
] | 43032391+JeonJe@users.noreply.github.com |
5594f85458ee92193d63e15a164455811be06b15 | b946b727ed7382af746cc45cbbc3920de4af1a6a | /dcard/dcard/utils.py | a465c17750c5d9b3dfa33d9256be45d8f32a7fa4 | [
"MIT"
] | permissive | UDICatNCHU/KCM-Data-Source-Extractor | b8ac304adf69571982b36594c3437d7755eeb1b5 | f23d587538686f2dd722d3eb3a9a711823adfca0 | refs/heads/master | 2021-07-05T23:18:17.032594 | 2017-10-01T10:02:20 | 2017-10-01T10:02:20 | 82,277,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | # -*- coding: utf-8 -*-
import logging
import itertools
from multiprocessing.dummy import Pool
from six.moves import http_client as httplib
import requests
import prequests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
from requests.exceptions import Retry... | [
"davidtnfsh@gmail.com"
] | davidtnfsh@gmail.com |
f7e91c26f0a0012e64a3b4d978d1274820fb0a97 | ab9b75fcdd2b7352968886e5ed41ee7788216226 | /src/gamesbyexample/sandfall.py | 98fdce06afdf41e4d83aab3388f2f504ac601ee8 | [
"MIT"
] | permissive | mgocken/PythonStdioGames | d7b48cafbc33a027548cab08ad08aea6c0c81abd | 036d2f142581fb74a38400721aecce15a695e1bc | refs/heads/master | 2020-09-29T18:35:34.589307 | 2019-12-06T00:15:46 | 2019-12-06T00:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | # Sand Fall, by Al Sweigart al@inventwithpython.com
# A falling sand animation.
# Inspired by https://asciinema.org/a/6515
__version__ = 1
# This program MUST be run in a Terminal/Command Prompt window.
import random, time, os, sys
WIDTH = 80
HEIGHT = 25
X = 0
Y = 1
PAUSE_LENGTH = 0.2
SAND = chr(9617) # Character 9... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
26e8374e62eee7079be97121b85843109b85b254 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_snowboarded.py | 48e56120e5e640bf93d4c6bffe86e0c3d656db48 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
#calss header
class _SNOWBOARDED():
def __init__(self,):
self.name = "SNOWBOARDED"
self.definitions = snowboard
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['snowboard']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4f6ed962219fc9a5c29c8960f2eb3e6c09fba5c8 | 84e661d5d293ec0c544fedab7727767f01e7ddcf | /newsroom/migrations-old/0051_useredit_changed.py | 391cb4b99bdcb8e91ddb0f49a8f6a037902ee35f | [
"BSD-3-Clause"
] | permissive | groundupnews/gu | ea6734fcb9509efc407061e35724dfe8ba056044 | 4c036e79fd735dcb1e5a4f15322cdf87dc015a42 | refs/heads/master | 2023-08-31T13:13:47.178119 | 2023-08-18T11:42:58 | 2023-08-18T11:42:58 | 48,944,009 | 21 | 23 | BSD-3-Clause | 2023-09-14T13:06:42 | 2016-01-03T11:56:48 | JavaScript | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-29 10:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsroom', '0050_auto_20170116_2109'),
]
operations = [
migrations.AddField... | [
"nathangeffen@gmail.com"
] | nathangeffen@gmail.com |
cfe32ff880588ea44c2a6e1ac2acc69a57538e1e | a259551b1e6be667c1ac048ed309e54f005d25fb | /test/test_datasets.py | 3ba3553ea6d04658ef51ff4e2a39ce01d0929d53 | [] | permissive | cokelaer/spectrum | 6b2747e3a62014f8747cc6841c09cc1f287e71db | 5966c4ba5d07722ff7b05ad4471fecd76b7992f5 | refs/heads/master | 2023-01-13T18:55:02.306026 | 2022-12-28T23:06:31 | 2022-12-28T23:06:31 | 23,551,663 | 314 | 101 | BSD-3-Clause | 2022-12-28T23:06:32 | 2014-09-01T18:26:09 | Python | UTF-8 | Python | false | false | 589 | py | #from spectrum import datasets
from spectrum.datasets import *
def test_marple_data():
d = marple_data
assert len(d) == 64
def test_timeseries():
data = data_cosine(N=1024, A=0.1, sampling=1024, freq=200)
ts = TimeSeries(data, sampling=1)
#assert ts.N == 1024
#assert ts.sampling == 1024
t... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
47551324220fb39497184bbe7c61a3dcb06479ec | 5ecabca09cfd1850d07fce8bfdf3792a4bc63074 | /__init__.py | 1df3fcc74206510e9eb921ff58ebe9d31355f2cf | [] | no_license | chrisjbillington/image_reconstruction | 2668156d4872a0067e078f71bb3246300394a875 | 2ec548c9874a69fac842086172c3df0189d58380 | refs/heads/master | 2020-12-30T02:49:34.806907 | 2020-07-07T01:02:53 | 2020-07-07T01:02:53 | 238,835,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import numpy as np
def reduced_chi2(a, b, unc, mask=None):
"""Compute the sum squared error/uncertainty per degree of
freedom between arrays a and b with given uncertainties and mask"""
if mask is None:
# No masek
mask = np.ones(a.shape, dtype=bool)
else:
# Convert to bool if n... | [
"chrisjbillington@gmail.com"
] | chrisjbillington@gmail.com |
405d3e760ab7d565533c7d24e0fc2a22cd5bdfe0 | 9b5597492e57313712c0a842ef887940f92636cd | /judge/sessions/2018Individual/jinxi@g.ucla.edu/PA_01.py | 689fe72d4bcbd5d40edd869440e3a4a32a031804 | [] | no_license | onionhoney/codesprint | ae02be9e3c2354bb921dc0721ad3819539a580fa | fcece4daf908aec41de7bba94c07b44c2aa98c67 | refs/heads/master | 2020-03-11T11:29:57.052236 | 2019-05-02T22:04:53 | 2019-05-02T22:04:53 | 129,971,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | import sys
number = int(sys.stdin.readline())
# return the max sum smaller than total
# a is array
# def find_max(a, p):
# if a[0] > p:
# return 0
# i = 0
# j = len(a) - 1
# while (i < j):
# mid = (i + j) / 2
# if (a[mid] < p):
# i = mid + 1
# elif (a[mid] == p):
# return p
# else:
# j = mid - ... | [
"root@codesprintla.com"
] | root@codesprintla.com |
51de58ff151ba858090d3fc91a75415a8121d12a | eed7b5aa4861086d34e539e7bbfeff4286506692 | /src/Game/Events/multi_zone_event.py | 9102f440aebfe46cb980b30331b2c8ecbdb39b71 | [] | no_license | dfwarden/DeckBuilding | 0be2ccb68fc9a69c8eaa1d8acedeaa7cebef1a31 | 0b5a7573a3cf33430fe61e4ff8a8a7a0ae20b258 | refs/heads/master | 2021-01-18T09:52:51.880892 | 2015-02-03T03:21:17 | 2015-02-03T03:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py |
class MultiZoneEvent:
""" Represents an Event to wrap cards from multiple zones """
def __init__(self, zones, context):
""" Initialize the Cards Event with the cards and where they came from """
self.zones = zones
self.context = context.copy()
self.context.event = s... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
db45468074d3fef707506348bb572cc7960f4c2d | c709247afa306cf27c6773796eabe257645290a2 | /sorting-algorithms/radixSort.py | 93d8b84dee9a6662b829ae67a0d9b73d624b95bb | [] | no_license | sarthikg/python-algorithms | fe7ca1b1b5e6f3836c4b16f16b55af6591923b13 | cf86c3e76f577eb56282483bdaeb44ccb2b15615 | refs/heads/master | 2023-01-07T21:04:26.240692 | 2020-10-31T19:06:58 | 2020-10-31T19:06:58 | 289,223,708 | 1 | 0 | null | 2020-10-31T19:06:59 | 2020-08-21T08:53:54 | Python | UTF-8 | Python | false | false | 696 | py | import math
def getDigit(number, place):
return ((number // (10 ** place)) % 10)
def getTotalDigits(number):
if number == 0:
return 1
return math.floor(math.log(number, 10)) + 1
def getMaxDigits(array):
maxDigits = 0
for num in array:
tempMax = getTotalDigits(num)
if tempMax > maxDigits:
... | [
"sarthikg@gmail.com"
] | sarthikg@gmail.com |
4ef2667cd365d4be7b12d942ac301cbead507d0b | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/comparison/test_chart_axis08.py | a6201f3a50f4b14f0950e6f7115c83fff4a31cf5 | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 1,418 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
99c98cfc4dbdd8d99c387daf73a9cf9549a4f6b1 | f6a5a048d0b3f00c997ab1583a122f1d2027a321 | /get_images_from_baidu.py | e50cc8fa65b7dd93253f51ef887dba61651edf27 | [] | no_license | wangyitao/migicCode | 74b7b71f2aa19c341a8f3080d20df495241ee40b | 9b2bfa2c4923d786c818a16f39c01045a38c4f8d | refs/heads/master | 2020-04-12T07:51:53.632965 | 2019-12-11T14:11:45 | 2019-12-11T14:11:45 | 162,372,775 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,519 | py | # -*- coding: utf-8 -*-
# @Time : 19-1-10 下午9:44
# @Author : Felix Wang
import re
import requests
import json
import random
from multiprocessing import Pool
def translate(content, tolang='zh', fromlang=None):
User_Agent = [
'Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/... | [
"1403179190@qq.com"
] | 1403179190@qq.com |
d990be3e0d49aeebec431d4937106f1fcb583efb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /4AtqpqKdXAFofa566_11.py | ea968a4150eadae1e4ed7655d420211362b019b8 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | """
Create a function that takes in a _number as a string_ `n` and returns the
number **without trailing and leading zeros**.
* **Trailing Zeros** are the zeros _after_ a decimal point which _don't affect the value_ (e.g. the _last three_ zeros in `3.4000` and `3.04000`).
* **Leading Zeros** are the zeros _be... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
43a791ceda13379d69bcca4e24e3c486b1c96201 | 5825e26a618b4153c03b63b52a4f200fb734efbc | /ccatcracker/OnlineTest/migrations/0003_test.py | d6c9e0be977ddc177384220aaa696efd554da992 | [] | no_license | asheteh/myproject | ff6ea4f4aff69cd19a5973601c301c90e0f85742 | 300071cf19edc11ff902bcb70f2cf0841970e9e5 | refs/heads/master | 2023-03-08T14:15:52.180462 | 2020-08-24T08:55:43 | 2020-08-24T08:55:43 | 195,670,319 | 0 | 0 | null | 2023-02-15T23:12:20 | 2019-07-07T15:55:40 | HTML | UTF-8 | Python | false | false | 900 | py | # Generated by Django 2.2.1 on 2019-10-22 05:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('OnlineTest', '0002_auto_20191022_1119'),
]
operations = [
migrations.CreateModel(
name='Test',
fields=[
... | [
"abhijit.shete@happiestminds.com"
] | abhijit.shete@happiestminds.com |
212280e342b1daaed424182e661187429d2518b7 | 6e3da68be6eb3c1c604c55d6b0209493f1567bc4 | /tests/test_commands.py | 37be23a37ac5b3fbc3f0e7743a4105ad1c78b611 | [] | no_license | flaviogf/the_password | 53027bce78334dedfe3f9daa7be6cf0e7fafe5af | 69ec788be01b4a882ccf8c3112e05226d8daa068 | refs/heads/master | 2020-06-25T13:59:03.630954 | 2019-09-19T01:10:38 | 2019-09-19T01:10:38 | 199,329,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from app.commands import create_user
from app.models import User
class TestCreateUser:
def test_should_output_return_success_message_when_create_user(self, runner):
result = runner.invoke(create_user,
['--name', 'Naruto',
'--email', 'naruto@em... | [
"flavio.fernandes6@gmail.com"
] | flavio.fernandes6@gmail.com |
b1ac1da4668652db9c041d3ea20058e816a55fce | f4996d975ce705c1d09fdad168cd1225bbb99dd8 | /chemex/experiments/cpmg/n_atrosy/data_point.py | 5b7bb883cba16d36bd9f2ae38e06985e0b7f2b90 | [
"BSD-3-Clause"
] | permissive | chriswaudby/chemex | d0d39d834989d92f738f17de737167b7f9118884 | c3424bb8891b05de43c969108311d3ea50ba3428 | refs/heads/develop | 2020-01-23T21:05:04.695331 | 2016-11-08T13:29:16 | 2016-11-08T13:29:16 | 74,578,043 | 0 | 1 | null | 2016-12-24T12:58:50 | 2016-11-23T13:11:30 | Python | UTF-8 | Python | false | false | 4,603 | py | """
Created on Aug 5, 2011
@author: guillaume
"""
# Standard imports
from inspect import getargspec
from scipy import pi
# Local imports
from chemex.parsing import parse_assignment
from chemex.experiments.base_data_point import BaseDataPoint
from chemex.constants import xi_ratio
from .back_calculation import make_c... | [
"gbouvignies@gmail.com"
] | gbouvignies@gmail.com |
b9e6c9e8a66bdc8d7f6314e4499b95a36df56eea | a7f855efff14e0b15cffb3f035d8dc9f7f102afe | /mfb/binWin/2.69/python/lib/numpy/core/tests/test_dtype.py | c4f146734b2c68be93d5bc27b2809bbbf6291f55 | [] | no_license | BlenderCN-Org/FlipbookApp | 76fcd92644c4e18dd90885eeb49e5aecae28f6f0 | 0df2acebf76b40105812d2e3af8f0ef4784ab74c | refs/heads/master | 2020-05-27T14:33:25.330291 | 2014-07-10T17:47:29 | 2014-07-10T17:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,763 | py | import sys
import numpy as np
from numpy.testing import *
def assert_dtype_equal(a, b):
assert_equal(a, b)
assert_equal(hash(a), hash(b),
"two equivalent types do not hash to the same value !")
def assert_dtype_not_equal(a, b):
assert_(a != b)
assert_(hash(a) != hash(b),
... | [
"mike.c.pan@gmail.com"
] | mike.c.pan@gmail.com |
a79d3ce8a8a44aa25d8c0e6f2ece018118e9c430 | e9ee140f6ba8dc5dccd7ab836784ae691f7700cc | /aslprep/smriprep/workflows/base.py | 84661fad6f18ea62729c88d2ba3da8cc5b3ae4cb | [
"BSD-3-Clause"
] | permissive | mattcieslak/aslprep | 1fc2b6148d120b4a9b3db8b8830715ea27093cdb | 180004ddfec9fc00691754e00a43191fd17c7801 | refs/heads/master | 2022-11-11T02:21:45.238212 | 2020-04-18T09:26:01 | 2020-04-18T09:26:01 | 258,595,461 | 0 | 0 | null | 2020-04-24T18:43:40 | 2020-04-24T18:43:39 | null | UTF-8 | Python | false | false | 13,447 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""*sMRIPrep* base processing workflows."""
import sys
import os
from copy import deepcopy
from nipype import __version__ as nipype_ver
from nipype.pipeline import engine as pe
from nipype.interfaces impor... | [
"azeez.adebimpe@outlook.com"
] | azeez.adebimpe@outlook.com |
5b51d8375f7b97518dfb920d0af77cf07dfedcb6 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyAttributeOutsideInitInspection/innerClass.py | ccb4f5cc051a63995f0d40a32b228efcfd42349c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 127 | py | __author__ = 'ktisha'
class A:
def foo(self):
class B:
def __init__(self):
self.x = 1 | [
"Ekaterina.Tuzova@jetbrains.com"
] | Ekaterina.Tuzova@jetbrains.com |
fe3e0cef1342b09b851c4842822fcbc3016e4974 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /carbon/common/lib/werkzeug/contrib/profiler.py | 3a261838f4a49835c5d266bd0b50a055737e1ddb | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | #Embedded file name: carbon/common/lib/werkzeug/contrib\profiler.py
"""
werkzeug.contrib.profiler
~~~~~~~~~~~~~~~~~~~~~~~~~
This module provides a simple WSGI profiler middleware for finding
bottlenecks in web application. It uses the :mod:`profile` or
:mod:`cProfile` module to do the profiling an... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
a3d6ecfd9438ecf971dfe749997a6d14d707ff5f | d0aade2edd6ba5750d70c70198a4bfe16356355e | /maskrcnn_benchmark/structures/segmentation_for_rbox.py | 015a7c590c7ae24a83c5688ba3ee3fae0f89f179 | [
"MIT"
] | permissive | mjq11302010044/RRPN_pytorch | ca3a6b781d49b80323671581ea0a5c13ca500a7a | a966f6f238c03498514742cde5cd98e51efb440c | refs/heads/master | 2022-08-29T07:29:20.311262 | 2020-10-16T02:29:19 | 2020-10-16T02:29:19 | 184,703,273 | 305 | 68 | MIT | 2020-04-30T06:37:19 | 2019-05-03T05:28:03 | Python | UTF-8 | Python | false | false | 8,468 | py | import torch
import pycocotools.mask as mask_utils
# transpose
FLIP_LEFT_RIGHT = 0
FLIP_TOP_BOTTOM = 1
import math
class Mask(object):
"""
This class is unfinished and not meant for use yet
It is supposed to contain the mask for an object as
a 2d tensor
"""
def __init__(self, masks, size, mod... | [
"mjq11302010044@gmail.com"
] | mjq11302010044@gmail.com |
15e275e395224c3485b07a4667b24ed5dc279a8d | d2a7907fd06aebce3d27a36bb1e8231289d07e6f | /jobs/settings/dev.py | fe732a818d6cfcea52bf04fdecec241d55899962 | [] | no_license | drucko/djobs | d27042764f8ed05d7f8ab95ab2d2a57590d986aa | 88faa924c67c05aab3f87ba06a826866488bd74e | refs/heads/master | 2020-04-05T01:19:16.536894 | 2012-12-13T19:27:45 | 2012-12-13T19:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from .base import *
DEBUG = TEMPLATE_DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
try:
import debug_toolbar
except ImportError:
pass
else:
INSTALLED_APPS.append('debug_toolbar')
INTERNAL_IPS = ('127.0.0.1',)
MIDDLEWARE_CLASSES.insert(0, 'debug_toolbar.middleware.De... | [
"jacob@jacobian.org"
] | jacob@jacobian.org |
185069027b3c475113ca541fdb8ffc67a5bdaa99 | b1303152c3977a22ff9a0192c0c32310e65a6d77 | /python/537.complex-number-multiplication.py | 7626daf37fcafcb80ca751c1232ee6c6219c1190 | [
"Apache-2.0"
] | permissive | stavanmehta/leetcode | 1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27 | 1224e43ce29430c840e65daae3b343182e24709c | refs/heads/master | 2021-07-15T16:02:16.107962 | 2021-06-24T05:39:14 | 2021-06-24T05:39:14 | 201,658,706 | 0 | 0 | Apache-2.0 | 2021-06-24T05:39:15 | 2019-08-10T16:59:32 | Java | UTF-8 | Python | false | false | 85 | py | class Solution:
def complexNumberMultiply(self, a: str, b: str) -> str:
| [
"noreply@github.com"
] | stavanmehta.noreply@github.com |
6a570bcf70c24a704f152686c9a94ebd637b57b0 | 914aa18d6420b9b920e2a20df238302f891f79f1 | /arda_db/browser/migrations/0013_auto_20150331_2016.py | 4df15d91a86f78e40180471d2a32baaa1dbd912d | [
"MIT"
] | permissive | rwspicer/ARDA | 2152405c911afacad14dd1478b040f5af9246ba2 | 9bd98786feff4afbd45afdf3f3f1c2549f6356cf | refs/heads/master | 2016-08-05T10:08:13.719344 | 2015-05-01T00:56:27 | 2015-05-01T00:56:27 | 30,052,617 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('browser', '0012_auto_20150331_2002'),
]
operations = [
migrations.AlterField(
model_name='resource',
... | [
"rwspicer@alaska.edu"
] | rwspicer@alaska.edu |
616b91a9692764dea3f270915c2c2289d98a684b | c001930958cb94f8b91b1f734108671f1db9e9f1 | /tests/unit/pages/test_pages_config.py | 958580422dc149f58ac9c53a26be307cb4cdb2f5 | [
"MIT"
] | permissive | plotly/dash | 73c752135937e27975071fbd144e3fb21618e7b4 | 6eaf2e17c25f7ca1847c41aafeb18e87c586cb9f | refs/heads/dev | 2023-08-30T21:21:06.056499 | 2023-08-29T16:49:04 | 2023-08-29T16:49:04 | 33,702,544 | 20,553 | 2,355 | MIT | 2023-08-31T20:51:14 | 2015-04-10T01:53:08 | Python | UTF-8 | Python | false | false | 2,789 | py | from contextlib import contextmanager
from pathlib import Path
import pytest
from dash import Dash, exceptions as _exc
from dash._configs import pages_folder_config
THIS_DIR = Path(__file__).parent
@contextmanager
def does_not_raise():
"""Context manager for testing no exception is raised"""
yield
@pyte... | [
"nletcher@gmail.com"
] | nletcher@gmail.com |
fb64c44e7ffeb4b9e06d2f208dcc3b754b4f85cf | 51dfd0bc540f386b56f419152fbaee21a439b65e | /testmile-setu/setu/core/guiauto/automator/drivercaps.py | d32f6452b2b58f73f532df9de1b9efcd37af032c | [
"Apache-2.0"
] | permissive | test-mile/setu | 3a791c3f19e46496ff91aa9c0df9b142fc3c4e55 | b273a11e7f9462e64a370bda16f1952ecdbfb5a5 | refs/heads/master | 2020-04-20T10:52:05.539023 | 2019-03-14T15:18:27 | 2019-03-14T15:18:27 | 168,800,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,173 | py | from setu.core.constants import SetuConfigOption
from setu.dispatcher.broker import SetuActorDriverConfigOption
import copy
import pprint
class DriverCapabilities:
# Selenium
UNEXPECTED_ALERT_BEHAVIOUR = "unexpectedAlertBehaviour" # accept,dismiss,ignore
UNHANDLED_PROMPT_BEHAVIOUR = "unhandledPromptBehavio... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
06856d4948c5f8700c2bcff1fda2baa18ed7b834 | 644a2a6b691d5e79292eea4a1e0de34536bf54b4 | /tensorflow/python/training/distribute_test.py | 20b6d4f977d799281ffbf12cef5dc54607bd9fba | [
"Apache-2.0"
] | permissive | nemoNoboru/tensorflow | b6917537caf01cba0f47e261d6748a14b769cc44 | 9a608da83605d162be891e69db903f581ca9566b | refs/heads/master | 2020-04-06T18:35:00.922299 | 2018-11-15T09:02:45 | 2018-11-15T09:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,478 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
02ae7a06a7aef32aff8fa2ed0f7aea193b717c0f | 4e3eedbf46a032c42665c3b212a48bc30652c1ed | /day38/03 存储引擎.py | 05934ddc5283d9c1f7d610e9d39380ec3bc9a5d4 | [] | no_license | zranguai/python-learning | 7eb2a842f6f4624f550ee1c4ff7cd64ac948097a | acf19c9f85eec4bee3e3e3a00712c4a53aa9d249 | refs/heads/master | 2023-03-24T14:36:32.248437 | 2021-03-15T08:24:01 | 2021-03-15T08:24:01 | 347,874,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # 存储引擎 -- 存储数据的方式
# 一张表
# 数据
# 表的结构
# 索引(查询的时候使用的一个目录结构)
# Innodb存储引擎 ***** mysql5.6之后的默认的存储引擎
# 数据和索引存储在一起 2个文件
# 数据索引\表结构
# 数据持久化
#
# 支持事务 : 为了保证数据的完整性,将多个操作变成原子性操作 : 保持数据安全
# 支持行级锁 : 修改的行少的时候使用 : 修改数据频繁的操作
# 支持表级锁 : 批量修改多行的时候使用 : 对于大量数据的同时修改
# 支... | [
"zranguai@gmail.com"
] | zranguai@gmail.com |
189d5d2e47d6496fb3b56107c142a75e13f2663a | aa265e03e73f718d4008cfe30ada7ee32c852eec | /ARC_A/ARC032_A.py | 1cb865f08e8809bd4f8369e25f9f05bde3cb9d6a | [
"MIT"
] | permissive | ryosuke0825/atcoder_python | 4fb9de9733cd9ef41c2ad9ad38b3f190f49d3ad5 | 52d037d0bc9ef2c721bf2958c1c2ead558cb0cf5 | refs/heads/master | 2023-03-11T22:47:56.963089 | 2023-03-05T01:21:06 | 2023-03-05T01:21:06 | 181,768,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | n = int(input())
nsum = 0
for i in range(1, n+1):
nsum += i
if nsum == 1:
print('BOWWOW')
elif nsum <= 3:
print('WANWAN')
else:
for i in range(2, n+1):
if n % i == 0:
print('BOWWOW')
break
else:
print('WANWAN')
| [
"ayakobon@gmail.com"
] | ayakobon@gmail.com |
5ae97a4ec65305d7d5bbaa117021333a62f6416b | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/surface/compute/images/export.py | 46000f6c6a5173eb952a5f03d0f1389e70997754 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 3,925 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.