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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed8306c08a8e419a2ded4aea0ef8cf8222dbdc06 | 30a2f77f5427a3fe89e8d7980a4b67fe7526de2c | /analyze/BHistograms_trigjetht500_eta1p7_CSVM_cfg.py | 997496691c837cd4dca4f3093e8fd3e8b1c3cfd4 | [] | no_license | DryRun/QCDAnalysis | 7fb145ce05e1a7862ee2185220112a00cb8feb72 | adf97713956d7a017189901e858e5c2b4b8339b6 | refs/heads/master | 2020-04-06T04:23:44.112686 | 2018-01-08T19:47:01 | 2018-01-08T19:47:01 | 55,909,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,632 | py | import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
import sys
options = VarParsing.VarParsing()
options.register('inputFiles',
'/uscms/home/dryu/eosdir/BJetPlusX/QCDBEventTree_BJetPlusX_Run2012B_v1_3/160429_121519/0000/QCDBEventTree_567.root',
VarParsing.VarParsing.multipli... | [
"david.renhwa.yu@gmail.com"
] | david.renhwa.yu@gmail.com |
5ea32706b22f4c1e48cb23b8886f3e3df3d91e25 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901090012/1001S02E05_string.py | e71588946e9eb67f1c9fa471a58baa40eac41897 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 1,183 | py | str = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although p... | [
"46160162+EthanYan6@users.noreply.github.com"
] | 46160162+EthanYan6@users.noreply.github.com |
c42629d89614c8314f3d2663c0538bbccebedb25 | 38d93c5fd72fee380ec431b2ca60a069eef8579d | /Baekjoon,SWEA, etc/프로그래머스/경주로 건설.py | 2cdea97359bc34f435388bc297c0774193a060ef | [] | no_license | whgusdn321/Competitive-programming | 5d1b681f5bee90de5678219d91cd0fa764476ddd | 3ff8e6b1d2facd31a8210eddeef851ffd0dce02a | refs/heads/master | 2023-01-01T01:34:22.936373 | 2020-10-24T11:05:08 | 2020-10-24T11:05:08 | 299,181,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py |
def dfs(y, x, board, dp, n, mode):
dp[y][x] = n
h = len(board)
w = len(board[0])
if y == h and x == w:
return
right = [(y, x+1), (y, x-1)]
up = [(y+1, x), (y-1, x)]
if mode == 'down':
for ny, nx in right:
if 0<=ny<h and 0<=nx<w and dp[ny][nx] >= n + 500 and boar... | [
"blackgoldace@naver.com"
] | blackgoldace@naver.com |
324462ca0e87f7e808df4fee2e9d61aae130a9e7 | 7f52845b5aca331ac200565f897b2b1ba3aa79d9 | /m251/exp_groups/paper/ablations/reg_intermediate/launch/launch_fisher.py | 08a2048f9548880d8b25e0b4830dea7da80cae64 | [] | no_license | mmatena/m251 | f8fb4ba9c10cd4dfcf5ee252f80e4832e4e86aa0 | e23249cf0896c5b42bcd07de70f7b9996d8b276b | refs/heads/master | 2023-05-06T10:44:10.945534 | 2021-06-03T15:07:29 | 2021-06-03T15:07:29 | 321,217,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | """
export PYTHONPATH=$PYTHONPATH:~/Desktop/projects/m251:~/Desktop/projects/del8
python3 m251/exp_groups/paper/ablations/reg_intermediate/launch/launch_fisher.py
"""
from del8.executors.gce import gce
from del8.executors.vastai import vastai
from del8.executors.vastai import api_wrapper
from m251.exp_groups.paper.a... | [
"michael.matena@gmail.com"
] | michael.matena@gmail.com |
7291c077f29384a0575867612672d234f52945ef | 0674b9d8a34036a6bbe2052e1cae0eee9a44554b | /SWEA/2819.py | 7d8af0a98a560adf5d023ddc155ace8677c6cce2 | [] | no_license | timebird7/Solve_Problem | 02fb54e90844a42dc69a78afb02cc10a87eda71c | 2d54b6ecbe3edf9895fd8303cbca99b3f50f68f3 | refs/heads/master | 2020-04-14T23:37:15.354476 | 2019-04-15T14:32:41 | 2019-04-15T14:32:41 | 164,208,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | dx = [0,1,0,-1]
dy = [1,0,-1,0]
def dfs(i,j,result):
global results, nums
if len(result) == 7:
results.add(result)
return
else:
for k in range(4):
x = i+dx[k]
y = j+dy[k]
if 0<=x<4 and 0<=y<4:
dfs(x,y,result+nums[x][y])
TC = in... | [
"timebird7@gmail.com"
] | timebird7@gmail.com |
18c6913fb81bb7788f18e1237a2b7dc2fcdbd837 | 1edfd072fae205d766e7c488f1af64f3af9fc23a | /src/python/shared/resend_new_sensor_messages.py | be8f468dc97b084dc81da4b2226a4c064fde4aec | [] | no_license | kth-social-robotics/multisensoryprocessing | 17fc96eb3776642de1075103eeb461125020c892 | 867abe6c921fbf930ac26e0f43a8be0404817bcd | refs/heads/master | 2021-01-21T11:50:16.348566 | 2018-11-05T14:48:42 | 2018-11-05T14:48:42 | 102,027,696 | 4 | 2 | null | 2018-02-20T15:14:22 | 2017-08-31T17:39:58 | C++ | UTF-8 | Python | false | false | 371 | py | import zmq
import time
from threading import Thread
def resend_new_sensor_messages():
def run():
time.sleep(2)
context = zmq.Context()
s = context.socket(zmq.REQ)
s.connect('tcp://localhost:45322')
s.send_string('new_sensor')
s.recv()
thread2 = Thread(target = ... | [
"pjjonell@kth.se"
] | pjjonell@kth.se |
2b8fd85409da823f4be40451742e7f66a75e29b9 | d0f2f7f220c825d827643ca81a08a23cfb871965 | /backend/code/rankor/events/actions.py | a6967842eddad33fbcb6a37f79240f295caf6c74 | [] | no_license | socek/rankor | 7e5e73f8f13bc3d12bd1b18ef01bef04f8f38f0a | eaf5002dd1e852895670517a8cdcb07bf7c69f66 | refs/heads/master | 2021-04-12T07:52:20.341699 | 2018-06-03T20:07:17 | 2018-06-03T20:07:17 | 125,769,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | from rankor import app
from rankor.events.drivers import ScreenCommand
class Event(object):
def __init__(self, **kwargs):
self.data = kwargs
def send(self):
with app as context:
command = ScreenCommand(context.dbsession)
command.send_event(self.name, **self.data)
cla... | [
"d.dlugajczyk@clearcode.cc"
] | d.dlugajczyk@clearcode.cc |
786381c19e3ac9f1748404798c53e1b36386ee54 | 65c8a6a7af2ee8cdf3866d012ea814887bd68a26 | /ppro360_automation/Ppro360/CoachingAndTriadCoaching_Pages/GoalSettingandNotesForm.py | 8b48f68d9c71cdb51a156bdbf127b429440669d4 | [] | no_license | 1282270620/automation_test | 9b3c595c3f7a139ded0a638ae4bcf31e0b7f9686 | 3faf86f0d641089eaf27eba906d22157dd2c1f5d | refs/heads/master | 2020-04-01T06:35:33.873989 | 2018-10-21T03:05:17 | 2018-10-21T03:05:17 | 152,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | '''
Created on 20170703
@author: lei.tan
'''
from selenium.webdriver.common.by import By
from Tablet_pages import BasePage
class GoalSettingandNotesForm(BasePage.Action):
def __init__(self):
self.callRecordingNumber_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div/div[3]/di... | [
"1282270620@qq.com"
] | 1282270620@qq.com |
c8dbaa1c2f5647253e3c3ab032c30dfed6d6b97a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_collaborative.py | d1a3b8e956f1707aae7d0b8e2c6db302aa7bf14b | [
"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 | 441 | py |
#calss header
class _COLLABORATIVE():
def __init__(self,):
self.name = "COLLABORATIVE"
self.definitions = [u'involving two or more people working together for a special purpose: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5f373d64ed1ef5aa6fd75dcd19e8c78dffc2d86c | c33968b06f072ae36849e6e61a7e7ce3d6ae364b | /setup.py | 5fdc74fde120ab304fd3e5586df19fea92a2ae57 | [] | no_license | talkara/abita.locales | 051bb200bf81a66515cbdad61d3bb76ac44665f7 | b4135e30a9f6c703999905801f388ae8ee91e2a6 | refs/heads/master | 2021-05-27T05:01:08.192155 | 2013-05-13T10:19:36 | 2013-05-13T10:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from setuptools import find_packages
from setuptools import setup
setup(
name='abita.locales',
version='0.2.1',
description="Overrides default translations of Plone for ABITA site.",
long_description=open("README.rst").read(),
classifiers=[
"Framework :: Plone",
"Framework :: Plone... | [
"taito.horiuchi@gmail.com"
] | taito.horiuchi@gmail.com |
f3a6bbd121b4706726205070aa94817f0637d4bd | ae02e46f8bbe7a8db4a02f6e1b0523a6bb03e5d0 | /wtq/wtq/items.py | faaf346da58460e2516c1ed3fe86c297bedede8e | [
"Apache-2.0"
] | permissive | wangtianqi1993/ScrapyProject | d0cb0a2f86b4f5930067cfefed67efe0c1dc8422 | 4b7b7d1c683bc412d70d8d15be36bcc71967b491 | refs/heads/master | 2020-07-14T11:10:33.746789 | 2016-09-16T08:53:46 | 2016-09-16T08:53:46 | 67,754,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.item import Field
class WtqItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
name = Field(... | [
"1906272972@qq.com"
] | 1906272972@qq.com |
59107bc428d0d9a5dc51a319b1fba875b846ca4e | cfdc0187ca770c09fa7a5868caedd1b5de0c668f | /pythoncollections/listprograms/binarysearch.py | 7bd76665a2bbf1120255c658e143462f24c07f7c | [] | no_license | nelvinpoulose999/Pythonfiles | 41ef15c9e3423ef5c8c121db7c6196772c40aa27 | 1e2129b1e1fb2a55100622fc83822726c7836224 | refs/heads/master | 2023-03-13T22:24:38.049100 | 2021-03-04T07:12:14 | 2021-03-04T07:12:14 | 333,663,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Binary search
arr=[12,50,8,25,60,30,31]
element=int(input('enter the element'))
flag=0
arr.sort()
print(arr)
length=len(arr)
print(length)
lowl=0
uppl=len(arr)-1
print(uppl)
while (lowl<=uppl):
mid=(lowl+uppl)//2
#print(arr[mid])
if(element>arr[mid]):
lowl=mid+1
elif(element<arr[mid]):
uppl=mid-1... | [
"nelvinpoulose999@gmail.com"
] | nelvinpoulose999@gmail.com |
0fc4bbc3e8df61b80d6405cd5eb5077ec4cbbbfa | 34a478381cdf89e636315d5f4d620eeabe712b00 | /venv/lib/python3.6/site-packages/future/types/newstr.py | e01b957c1a26ef1c993c6eff4892ab0c668b25e7 | [] | no_license | 21fernando/Pygames | 67e03e9d62c64b55ea24d6b0f4a2a7b333247011 | 10bf1519012a8ed3e08dda0d23c9187c44e58c13 | refs/heads/master | 2021-01-05T07:00:17.165831 | 2020-06-01T13:42:05 | 2020-06-01T13:42:05 | 240,922,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,784 | py | """
This module redefines ``str`` on Python 2.x to be a subclass of the Py2
``unicode`` type that behaves like the Python 3.x ``str``.
The main differences between ``newstr`` and Python 2.x's ``unicode`` type are
the stricter type-checking and absence of a `u''` prefix in the representation.
It is designed to be used... | [
"tharindu.fernando@terathought.com"
] | tharindu.fernando@terathought.com |
35b37da4a41cd4e5cae2d72380c4ee7bcf1cb6c3 | bcb4c127578d2874ce445e021bf276ff07d6fa70 | /476.number-complement.py | 6faf920375a12022c3628e2e374cc57b3bd0135b | [] | no_license | SilverMaple/LeetCode | 3f9a4ef95cbaaed3238ad1dd41b6e6182c64575c | 581486a1e08dbceddcb64da4f6c4ed6c73ed5e84 | refs/heads/master | 2020-07-26T06:37:08.897447 | 2020-03-31T14:55:18 | 2020-03-31T14:55:18 | 208,566,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #
# @lc app=leetcode id=476 lang=python
#
# [476] Number Complement
#
# @lc code=start
class Solution(object):
def findComplement(self, num):
"""
:type num: int
:rtype: int
"""
if num == 0:
return 1
mask = 1<<30
while num&mask == 0:
ma... | [
"1093387079@qq.com"
] | 1093387079@qq.com |
9d96fadf5961ab0e99b70dc45911f05a86b5c463 | f42c91f5fa040c739ab6bc1803f3253561f670fd | /mongodb/pymongo_page.py | 073513604cb6653301062657c400ed3be9b35c45 | [] | no_license | hackrole/daily-python | 11f29c698464172118ae30d7e5920692a63c3d8e | 2f1fb3b9646fa1c7131df6e336b6afd38128fbbd | refs/heads/master | 2022-10-16T08:06:14.067055 | 2022-09-19T13:35:17 | 2022-09-19T13:35:17 | 9,448,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | #!/usr/bin/env python
#coding=utf8
"""
使用pymongo实现的分页程序, 不使用skip,limit实现。
通过比较id来实现
"""
import unittest
from pymongo.connection import MongoClient
def init_connect(dbname="test", collection="page", host="localhost", port=27017):
""" init the mongodb connection """
conn = MongoClient(host, port)
coll = c... | [
"daipeng123456@gmail.com"
] | daipeng123456@gmail.com |
b82d8815d2881d84d7c9ed9d1df9ecbc36139998 | 25040bd4e02ff9e4fbafffee0c6df158a62f0d31 | /www/htdocs/wt/lapnw/data/item_32_3.tmpl.py | fc25344506c03475ee3a5f02879f2ed019e7c021 | [] | no_license | erochest/atlas | 107a14e715a058d7add1b45922b0f8d03bd2afef | ea66b80c449e5b1141e5eddc4a5995d27c2a94ee | refs/heads/master | 2021-05-16T00:45:47.585627 | 2017-10-09T10:12:03 | 2017-10-09T10:12:03 | 104,338,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
from lap.web.templates import GlobalTemplate, SubtemplateCode
class main(GlobalTemplate):
title = 'Page.Item: 32.3'
project = 'lapnw'
class page(SubtemplateCode):
pass
| [
"eric@eric-desktop"
] | eric@eric-desktop |
e83d7beec0fdb6a3185731cf8ce3b1b1dd178705 | ae7627dc5e6ef7e9f8db9d825a6bc097da5b34de | /python assignment ii/question_no_9.py | a029afae4c12501240f18af005dfc09016529a72 | [] | no_license | atulzh7/IW-Academy-Python-Assignment | cc5c8a377031097aff5ef62b209cb31f63241505 | 674d312b1438301865c840257686edf60fdb3a69 | refs/heads/master | 2022-11-14T13:26:16.747544 | 2020-07-12T16:06:08 | 2020-07-12T16:06:08 | 283,823,502 | 0 | 1 | null | 2020-07-30T16:24:30 | 2020-07-30T16:24:29 | null | UTF-8 | Python | false | false | 717 | py | """Binary search function
"""
def binary_search(sequence, item):
#initialization yo avoid garbage value in variable
high = len(sequence) - 1
low = 0
mid = 0
while low <= high:
mid = (high + low) // 2
if arr[mid] < item:
low = mid + 1
elif arr[mid] > ite... | [
"="
] | = |
306a7721152e9eb6b28e662d6568fd7fc185c704 | 6bf336bc8d6ba061e0c707bdd8595368dee4d27b | /tutorials/10_days_of_statistics/poisson_distribution_i.py | 37fcfd7a6e1dc201e075a552306733d0ecbb4876 | [
"MIT"
] | permissive | avenet/hackerrank | aa536214dbccf5a822a30ea226e1dbaac9afb243 | e522030a023af4ff50d5fc64bd3eba30144e006c | refs/heads/master | 2021-01-01T20:15:06.647873 | 2017-11-24T23:59:19 | 2017-11-24T23:59:19 | 98,801,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from functools import reduce
from operator import mul
E = 2.71828
def poisson_distribution(t, k):
success_probability = t ** k
distribution_part = 1.0 / (E ** t)
successes_combination = fact(k)
return (
(
success_probability * distribution_part
) / successes_combinati... | [
"andy.venet@gmail.com"
] | andy.venet@gmail.com |
779800db5ae2e1b5a46733002a5c11421a4457bb | 53955a979f974d0cc5d06f0c4fe2b4acfa4320e7 | /backend/home/migrations/0001_load_initial_data.py | c6f3d8fbdf45556f2f65de532a41a0e3b22821a6 | [] | no_license | crowdbotics-apps/late-truth-26783 | 0b3b0011a619ff2a8bdfcf640d0e26b19bf3b187 | a9a26ec5a18ba45634a9541a08a5c5f5572a2515 | refs/heads/master | 2023-04-26T16:43:25.439730 | 2021-05-17T08:13:32 | 2021-05-17T08:13:32 | 368,106,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "late-truth-26783.botics.co"
site_params = {
"name": "Late Truth",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_cr... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
06df6ae711be16094a2119dad9e994a87ba43a11 | ec7fca4065a12bada3fdf9e92fc7c52ae9cddc83 | /setup.py | 8fa2b083f93c92d20535997bf324642bd9783890 | [
"MIT"
] | permissive | SLongofono/sneakysnek | c67d913801ad3c0bb320c8fca0ad645faf56eb2d | 3001e83755da6337f42e3136cb5e29d098800ddf | refs/heads/master | 2021-09-05T15:40:56.030291 | 2018-01-29T10:45:07 | 2018-01-29T10:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = ""
packages = [
"sneakysnek",
"sneakysnek.recorders"
]
requires = []
extras_require = {
":sys_platform == 'darwin'":... | [
"info@nicholasbrochu.com"
] | info@nicholasbrochu.com |
2e6c44452b9a4d23c7de2e2283bec77b1394bc6e | 10e5b1b2e42a2ff6ec998ed900071e8b5da2e74e | /design/1381_design_a_stack_with_increment_operation/1381_design_a_stack_with_increment_operation.py | 616a72f862d666343aeae68684a63a2efdd8e0c2 | [] | no_license | zdyxry/LeetCode | 1f71092d687316de1901156b74fbc03588f0b0a5 | b149d1e8a83b0dfc724bd9dc129a1cad407dd91f | refs/heads/master | 2023-01-29T11:59:14.162531 | 2023-01-26T03:20:23 | 2023-01-26T03:20:23 | 178,754,208 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 549 | py |
class CostomStack(object):
def __init__(self, maxSize):
self.n = maxSize
self.stack = []
self.inc = []
def push(self, x):
if len(self.inc) < self.n:
self.stack.append(x)
self.inc.append(0)
def pop(self):
if not self.inc:
return -... | [
"zdyxry@gmail.com"
] | zdyxry@gmail.com |
248014df533f845174e5ea4d9eb271296a649d61 | 9feac0e0cc68891707772d5b557a44e87377dec5 | /fuzzers/071-ps8-bufg/generate_permutations.py | 58442f658c90c606f0ec59287e1638a22d31b1ea | [
"LicenseRef-scancode-dco-1.1",
"ISC"
] | permissive | daveshah1/prjuray | 8213030dd83f69b0caba488d4154d006a08c648b | 02b31b5d7c19f66f50b3a28218921433df8a9af8 | refs/heads/master | 2022-11-26T14:50:46.500424 | 2020-07-17T23:23:39 | 2020-07-17T23:23:39 | 280,824,403 | 2 | 0 | ISC | 2020-07-19T08:32:10 | 2020-07-19T08:32:10 | null | UTF-8 | Python | false | false | 2,600 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The Project U-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
import csv
from utils.clock_utils import ... | [
"537074+litghost@users.noreply.github.com"
] | 537074+litghost@users.noreply.github.com |
bc2368589f35d8fc2648dca4462a81428cd140ee | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/ProdResource.py | d6f8dde13be2bb3de55e548a2e06cf35597c36d8 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,018 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class ProdResource(object):
def __init__(self):
self._key = None
self._name = None
self._type = None
self._value = None
@property
def key(self):
return ... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
34880cf8e8a7fb475fbacb1cb45b653e69cd3101 | c44d1735c21164bb9facc7eac1412a41295130a9 | /raven/contrib/flask.py | 93e2f5420d4af502ba410fe44bd2dfd46ad0b6ba | [
"BSD-3-Clause"
] | permissive | joshma/raven-python | 082b237b73e5f8f825fe013b6fdc3144055bfeec | 9f02875b6bf120c28c455547d6f7b2618ffbf070 | refs/heads/master | 2021-01-22T13:17:16.202650 | 2013-12-13T01:48:55 | 2013-12-13T01:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,569 | py | """
raven.contrib.flask
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
try:
from flask_login import current_user
except ImportError:
has_flask_login = False
else:
has_f... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
0a76f86eb679b4c825f35a3bed80abc31b663441 | 697af415566ba649502bd18751a6521ac526892c | /2020_VERSIONS/NYS_mesonet/NYS_mesonet_save_and_plot.py | ecc27bc483fb07a28940a1a8c1a91dc250cee0c2 | [] | no_license | srbrodzik/impacts-scripts | df44c8f34746499b8397b5b1a4ad09859b4cc8d4 | 263c7545bbb912bbcea563a21d0619e5112b1788 | refs/heads/master | 2023-05-31T05:01:09.558641 | 2023-05-22T23:24:52 | 2023-05-22T23:24:52 | 215,638,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,128 | py | #!/usr/bin/python3
"""
Created August/September 2019
@author: masonf3
"""
'''NYS_mesonet_save_and_plot.py
Make 3-day plots and save daily .csv files of key weather variables for NYS mesonet stations (126 stations in network)
Data is read from UW Atmospheric Sciences LDM server
Some code modified from Joe Zagrodnik's '... | [
"brodzik@uw.edu"
] | brodzik@uw.edu |
e1c60de6b9628d02d92def760be54bcc5aad7781 | 1edee17385db53395352e91cf9f4b566a0f07b45 | /17_requests.py | 1837ed08298f814eee55c996a40c163042906474 | [] | no_license | Zerl1990/2020_python_workshop | 705fbdd280aea8d75df0c7d14f1ef617c509cd08 | 78a13962f8c1ab6bc0ef85558a0b54845ac8c3a1 | refs/heads/master | 2022-11-26T20:36:47.212113 | 2020-08-08T19:02:13 | 2020-08-08T19:02:13 | 281,791,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # Import requests library
import requests
# Define url
url = 'https://api.openaq.org/v1/cities?country=MX'
# Execute a get request to Rest services
response = requests.get(url)
# Print response object
print(f'Response from {url} is {response}')
# Print response status code
print(f'Response status code: {response.st... | [
"luis.m.rivas@oracle.com"
] | luis.m.rivas@oracle.com |
c4109be7d713a6bb1f9c59d02bfcb0a60da154a3 | 81c8baf31e15cf132b22cc489e7c8fc7b86003a4 | /fulltext/registry.py | 39ab6bd2ff12756510edfc1c3e52bf2c15d8018d | [
"MIT"
] | permissive | LinuxOSsk/Shakal-NG | 0b0030af95a8dad4b120ae076920aa3a4020c125 | 93631496637cd3847c1f4afd91a9881cafb0ad83 | refs/heads/master | 2023-09-04T04:27:05.481496 | 2023-08-30T04:10:41 | 2023-08-30T04:10:41 | 2,168,932 | 11 | 8 | MIT | 2023-08-16T03:34:02 | 2011-08-07T14:36:25 | Python | UTF-8 | Python | false | false | 724 | py | # -*- coding: utf-8 -*-
from collections import defaultdict
from django.utils.functional import cached_property
class FulltextRegister(object):
def __init__(self):
self.__registered = []
self.__by_model = defaultdict(list)
def __iter__(self):
return iter(self.__registered)
def register(self, fulltext):
... | [
"miroslav.bendik@gmail.com"
] | miroslav.bendik@gmail.com |
5486d3255f48d51f69a08aa783274980162f8ddf | bbeecb7cff56a96c580709b425823cde53f21621 | /msw/spots/australasia/northland.py | e7852f8eae15327fc509829b969672c22ac18484 | [] | no_license | hhubbell/python-msw | f8a2ef8628d545b3d57a5e54468222177dc47b37 | 5df38db1dc7b3239a6d00e0516f2942077f97099 | refs/heads/master | 2020-04-05T23:46:21.209888 | 2015-06-16T01:36:43 | 2015-06-16T01:36:43 | 37,476,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | PIHA = 90
90_MILE_BEACH = 118
FORESTRY = 122
| [
"hhubbell@uvm.edu"
] | hhubbell@uvm.edu |
6b0de98bbc67259392d7f7b7ce46d6038aa470df | 963e0c0a12699890fb8303e8272a58a9c78d5e1d | /networks/resnet_encoder.py | de62869855316ff5cfec6fd0958c60528db53a32 | [] | no_license | TWJianNuo/Stereo_SDNET | 83cb98adf083daae44382f8c0198683a672b5045 | e2a13984abb952b1083cbf06c51ffcc9d3fd511d | refs/heads/master | 2020-08-14T11:21:41.485309 | 2019-10-30T20:09:30 | 2019-10-30T20:09:30 | 215,158,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,254 | py | # Copyright Niantic 2019. Patent Pending. All rights reserved.
#
# This software is licensed under the terms of the Monodepth2 licence
# which allows for non-commercial use only, the full terms of which are made
# available in the LICENSE file.
from __future__ import absolute_import, division, print_function
import n... | [
"twjiannuo@gmail.com"
] | twjiannuo@gmail.com |
1b8d80d1332c15f78159e1c04c61c731bc87fb22 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/grains/cb2dd80523174feda773833adb8eed42.py | af33b9d4b60b65c2f8450d06dc4c77109a1c5eb3 | [] | 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 | 171 | py | #grains.py
#Surely a bread winner
def on_square(square):
return 2**(square-1)
def total_after(number):
return sum(on_square(num) for num in range(1,number+1))
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
2e257e7f0a607d965283c7f5fe7e047e6aebca51 | 3b4c8c8b2e9e372a6b5d3c2fe717a3cadab4abd0 | /stepler/nova/fixtures/hypervisor.py | c17b0bb7651f9d50c14f45c47db7bfb16df8227d | [] | no_license | Mirantis/stepler-draft | 242b25e116715c6550414826c7e5a3f212216833 | 2d85917ed9a35ee434d636fbbab60726d44af3a1 | refs/heads/master | 2021-05-01T01:02:49.670267 | 2016-12-01T10:39:37 | 2016-12-01T11:04:50 | 74,979,322 | 0 | 0 | null | 2020-02-26T12:07:21 | 2016-11-28T14:11:45 | Python | UTF-8 | Python | false | false | 1,714 | py | """
-------------------
Hypervisor fixtures
-------------------
"""
# 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 app... | [
"g.dyuldin@gmail.com"
] | g.dyuldin@gmail.com |
e5cc77396f9b9773ee72ee68e409f7e3bcb4830c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_072/ch29_2019_08_22_16_43_24_439163.py | 7ddebc7b49971299f322b1c09507e3fa1c37b784 | [] | 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 | 234 | py | a=int(input('Salário: '))
def calcula_aumento(a):
y1=a*1.1
y2=a*1.15
if a>1250:
return 'Aumento de R$ {0:.2f}'.format(y1)
else:
return 'Aumento de R$ {0:.2f}'.format(y2)
print(calcula_aumento(a))
| [
"you@example.com"
] | you@example.com |
39b0abf1f72ce243f555dbfbdf586cc1aa3f0718 | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/Tag.py | bcf96333a568a29ffa2f904b8294e9b549037c6d | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,469 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
class Tag(object):
Furniture = 0
MovieMania = 1
Scientific = 2
Military = 3
Machine = 4
Gamer = 5
Cook = 6
Farmer = 7
Sociable = 8
Officer = 9
Eerie = 10
Intellectual = 11
Hea... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
afbce37d5c69d3bef3b4fd803851db683dbf49c6 | 221cada2354556fbb969f25ddd3079542904ef5d | /Leetcode/264.py | 4a9b3389a6bab222a1a195d16eeeb4c9209d22ac | [] | no_license | syzdemonhunter/Coding_Exercises | 4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d | ca71572677d2b2a2aed94bb60d6ec88cc486a7f3 | refs/heads/master | 2020-05-24T11:19:35.019543 | 2019-11-22T20:08:32 | 2019-11-22T20:08:32 | 187,245,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # https://leetcode.com/problems/ugly-number-ii/
# T: O(n)
# S: O(n)
class Solution:
def nthUglyNumber(self, n: int) -> int:
nums = [0]*n
idx_2, idx_3, idx_5 = 0, 0, 0
nums[0] = 1
for i in range(1, len(nums)):
nums[i] = min(nums[idx_2]*2, min(nums[idx_3]*3, nums[idx_5]*5)... | [
"syzuser60@gmail.com"
] | syzuser60@gmail.com |
b7fe6b8b53471259e84556736d55859f62eb1a81 | 9ea92648cb1bb9c3d91cee76d251981f1551d70a | /Multiplayer/Harrowland/HarrowlandAlt.py | 08745253a9f26c527a94864b225b075efa738c2c | [] | no_license | 1234hi1234/CodeCombat | 5c8ac395ac605e22b3b9501325c3eefbc3180500 | 585989200d965af952d1cdb8aca76e7f3db15c64 | refs/heads/master | 2020-03-15T02:39:07.979096 | 2018-03-12T14:23:29 | 2018-03-12T14:23:29 | 131,923,000 | 0 | 0 | null | 2018-05-03T01:05:43 | 2018-05-03T01:05:43 | null | UTF-8 | Python | false | false | 4,963 | py | enemy_types = {}
enemy_types['knight'] = {'danger': 100, 'focus': 100}
enemy_types['potion-master'] = {'danger': 100, 'focus': 100}
enemy_types['ranger'] = {'danger': 100, 'focus': 100}
enemy_types['trapper'] = {'danger': 100, 'focus': 100}
enemy_types['samurai'] = {'danger': 100, 'focus': 100}
enemy_types['librarian']... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
c45ce4740fa2a925305485c01cd487ebf775fb88 | 02c6653a60df3e6cfeab65f125cb6daccb7735be | /fjord/heartbeat/urls.py | 659f237fbb4075496422816ee9bd7b9cb172adb5 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | taranjeet/fjord | 35f628afd87ac16175367bb1f82a715c1ee7d0bb | 47d6380313d010a18621b4d344d01792003d04c9 | refs/heads/master | 2021-05-29T11:44:21.254707 | 2015-08-28T14:01:51 | 2015-08-28T14:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from django.conf.urls import patterns, url
from .api_views import HeartbeatV2API
urlpatterns = patterns(
'fjord.heartbeat.views',
url(r'^api/v2/hb/?$', HeartbeatV2API.as_view(), name='heartbeat-api')
)
| [
"willkg@mozilla.com"
] | willkg@mozilla.com |
719ec4f3c3e59c60171452530146d2221945d4ee | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/pytest/test_fibo.py | b5fb18f78c4551b40119f1a0286fb195b1b872b7 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 356 | py | import fibo
def test_fibonacci_number():
assert fibo.fibonacci_number(1) == 1
assert fibo.fibonacci_number(2) == 1
assert fibo.fibonacci_number(3) == 2
assert fibo.fibonacci_number(4) == 2
def test_fibo():
assert fibo.fibonacci_list(1) == [1]
assert fibo.fibonacci_list(2) == [1, 1]
assert ... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
2bcaeeb5d8679c9c878aa8b7464b5a3b67e50e49 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200412200806.py | 9ba361ee1a74e58d4d8e25e293a01152216bd14d | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from time import time
def rho_free(x,xp,beta):
"""
Uso: devuelve elemento de matriz dsnsidad para el caso de una partícula libre en un toro infinito.
"""
return (2.*np.pi*beta)**(-0.5) * np.exp(-(... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
ff7c686a74fe29a06e92a14b49df3fabc3d41990 | f9a5e7233875989f994438ce267907d8210d60a1 | /test/cylindrical_bands/metalearning/knn_ranking/RMSE/k=3/customised_set/cylinder_prediction_custom_AUCROC.py | 0d50ab65229407ef1d6da1dd984ef51326226d83 | [] | no_license | renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough | da8d53d44a69f4620954a32af3aacca45e1ed641 | 6af1670a74345f509c86b7bdb4aa0761c5b058ff | refs/heads/master | 2022-08-29T20:21:57.553737 | 2020-05-26T18:03:46 | 2020-05-26T18:03:46 | 256,439,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | import sys, os, pickle
from pathlib import PurePath
current_dir = os.path.realpath(__file__)
p = PurePath(current_dir)
sys.path.append(str(p.parents[7])+'/metalearners/knn_ranking_method/RMSE')
from KNN_ranking_k_3_RMSE import KNN_ranking
#Load the selected meta-dataset after performing zero-variance threshold
with op... | [
"rl554@cam.ac.uk"
] | rl554@cam.ac.uk |
bac2b87e56944a01d46105dc6f7838937e6a6398 | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/data/data_20191021145012.py | 878b2b9bced3b5913cb149f5d8e0ed6dc8bbab21 | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,836 | py | import pandas as pd
import numpy as np
from typing import Union
from pathlib import Path
from nameparser import HumanName
class ExtractData:
def __init__(self, filename: Union[str, Path], age_bins=None, drop_columns=None):
# """Extract Training Data from file or Path
# Arguments:
# fi... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
a128b776ef223e142b3e63e78fa56e6498b4b60d | aadea82d00400b71de86b1906ed347d10416e69b | /p34.py | 453c37288579e9b9fd99cd90ca33d5258304399b | [] | no_license | abishekravi/guvipython | fc0f56912691cd5a41ab20f0c36b2027ebccfb00 | 4fbb83f0a131775cd9eb3f810c2d1c9ad22d710a | refs/heads/master | 2021-08-16T10:22:00.052735 | 2020-06-25T04:35:42 | 2020-06-25T04:35:42 | 196,218,458 | 2 | 27 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | #a
name=input()
for i in range(0,len(name)):
if(i%3==0):
print(name[i],end="")
| [
"noreply@github.com"
] | abishekravi.noreply@github.com |
fb45682e5225699d4d66e59229eb4b599449116a | fa889d051a1b3c4d861fb06b10aa5b2e21f97123 | /kbe/src/lib/python/Lib/smtplib.py | 09b4ea647962a7797a4ffd0097bf3f1079d9f286 | [
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0",
"MIT",
"LGPL-3.0-only"
] | permissive | BuddhistDeveloper/HeroLegendServer | bcaa837e3bbd6544ce0cf8920fd54a1a324d95c8 | 8bf77679595a2c49c6f381c961e6c52d31a88245 | refs/heads/master | 2022-12-08T00:32:45.623725 | 2018-01-15T02:01:44 | 2018-01-15T02:01:44 | 117,069,431 | 1 | 1 | MIT | 2022-11-19T15:58:30 | 2018-01-11T08:05:32 | Python | UTF-8 | Python | false | false | 38,800 | py | #! /usr/bin/env python3
'''SMTP/ESMTP client class.
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
Authentication) and RFC 2487 (Secure SMTP over TLS).
Notes:
Please remember, when doing ESMTP, that the names of the SMTP service
extensions are NOT the same thing as the option keywords for the R... | [
"liushuaigeq@163.com"
] | liushuaigeq@163.com |
803e85beedc5941fec0a4790c7e8e2d6034d23c9 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/expert/5_1.py | 25b899efb6d6d0099e799bc80911fcb7704bc88c | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,079 | py | Optparse module in Python
**Optparse** module makes easy to write command-line tools. It allows
argument parsing in the python program.
* **optparse** make it easy to handle the command-line argument.
* It comes default with python.
* It allows dynamic data input to change the output
**Code: C... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
0557e253ffe377f396b357d6b0b6fbea9fdb29fd | d9f775ba2a46b8c95d68e61bea929810a226f4b8 | /src/investigation/analyze_threshold_neural_network_classifier.py | 7760b2058f7c74e5905913aa113c842b8fd4028c | [] | no_license | barium-project/qubit-reliability | 6e25f916fa2fcd2c7a078edc7045071ffae9e0bc | 902ef98e9a51fe3cf4413ccb79e90d44051a48b7 | refs/heads/master | 2022-12-13T20:02:02.826329 | 2020-06-23T04:14:41 | 2020-06-23T04:14:41 | 251,139,645 | 0 | 0 | null | 2022-12-08T09:43:15 | 2020-03-29T21:35:40 | Jupyter Notebook | UTF-8 | Python | false | false | 2,925 | py | from src.features.build_features import *
from src.models.threshold_classifiers import *
from src.visualization.visualize import *
from sklearn.model_selection import StratifiedKFold
from sklearn.neural_network import MLPClassifier
from sklearn.pipeline import Pipeline
from sklearn.metrics import classification_repor... | [
"quentintruong@users.noreply.github.com"
] | quentintruong@users.noreply.github.com |
014809a20edc47b0f80c3f630ec3cc2a6744ad2c | ed37c6acf35ad8dfa7064c7d304f046c3657cb7a | /leetcode/google_prep/interview_process/1_unique_email.py | dcc4e4af6a4e737bc580bcd1b42c12bd29134c15 | [] | no_license | etture/algorithms_practice | 7b73753f5d579b7007ddd79f9a73165433d79b13 | ba398a040d2551b34f504ae1ce795e8cd5937dcc | refs/heads/master | 2021-11-18T20:37:11.730912 | 2021-10-03T23:25:24 | 2021-10-03T23:25:24 | 190,863,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | # Basic imports --------------------------------------------
from __future__ import annotations
import sys
sys.setrecursionlimit(10**6)
from os.path import dirname, abspath, basename, normpath
root = abspath(__file__) ... | [
"etture@gmail.com"
] | etture@gmail.com |
733fe640fa3867b0fcb26f19fc4edab1eeb4e217 | bdb3716c644b8d031af9a5285626d7ccf0ecb903 | /code/UI/OpenAPI/python-flask-server/openapi_server/test/test_translate_controller.py | 0c41ea731f2ae0627548d0524755aeed0c091282 | [
"MIT",
"Apache-2.0"
] | permissive | RTXteam/RTX | 97d2a8946d233d48cc1b165f5e575af21bda4b26 | ed0693dd03149e56f7dfaf431fb8a82ace0c4ef3 | refs/heads/master | 2023-09-01T21:48:49.008407 | 2023-09-01T20:55:06 | 2023-09-01T20:55:06 | 111,240,202 | 43 | 31 | MIT | 2023-09-14T16:20:01 | 2017-11-18T21:19:13 | Python | UTF-8 | Python | false | false | 1,003 | py | # coding: utf-8
from __future__ import absolute_import
import unittest
from flask import json
from six import BytesIO
from openapi_server.models.query import Query # noqa: E501
from openapi_server.test import BaseTestCase
class TestTranslateController(BaseTestCase):
"""TranslateController integration test stu... | [
"edeutsch@systemsbiology.org"
] | edeutsch@systemsbiology.org |
8096d340b32c90ac60bfa05eba86ddb281b636b5 | a4e2b2fa5c54c7d43e1dbe4eef5006a560cd598e | /django_silky/example_app/gen.py | 288d35821568f40c6ca93eece2162dab74d0f8b1 | [
"MIT"
] | permissive | joaofrancese/silk | baa9fc6468351ec34bc103abdbd1decce0ae2f5d | d8de1367eb70f4405f4ae55d9286f0653c5b3189 | refs/heads/master | 2023-04-01T07:30:42.707427 | 2017-02-22T14:06:05 | 2017-02-22T14:06:05 | 23,427,190 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | """generate fake data for the example app"""
from example_app.models import Blind
__author__ = 'mtford'
def main():
venetian = Blind.objects.create(name='Venetian', child_safe=False)
roller = Blind.objects.create(name='Roller', child_safe=True)
if __name__ == '__main__':
main() | [
"mtford@gmail.com"
] | mtford@gmail.com |
4a78028471cb49bb731b246301644655ed79c5c4 | 9d1491368c5e87760131ba27d252ee2d10620433 | /gammapy/time/tests/test_simulate.py | 8d7abfbdc73cb8e1bad04343c6359981797ac35e | [
"BSD-3-Clause"
] | permissive | cnachi/gammapy | f9295306a8e81d0b7f4d2111b3fa3679a78da3f7 | 3d3fc38c111d2f490d984082750f8003580fe06c | refs/heads/master | 2021-01-20T23:37:59.409914 | 2016-06-09T08:36:33 | 2016-06-09T08:36:33 | 60,764,807 | 0 | 0 | null | 2016-06-09T09:55:54 | 2016-06-09T09:55:54 | null | UTF-8 | Python | false | false | 716 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
from numpy.testing import assert_almost_equal
from astropy.units import Quantity
from ..simulate import make_random_times_poisson_process as random_times
... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
5057929f5ddc777fbf9c98216d967df1d3d54632 | 9ce80fd45e0a2a321d9285be1998133405c8cf11 | /meiduo_mall/celery_tasks/main.py | a425e9e0f64d30b876eb768fa35d6da7e31a20e8 | [
"MIT"
] | permissive | dingmingren/meiduo_project | db7d48acf2f8ad5612fe89370d9ed6633c4ac60a | 51497064e8dd24fb45f4d39ca6ed9ae623b8cb79 | refs/heads/master | 2020-07-05T04:46:55.121739 | 2019-08-27T13:00:34 | 2019-08-27T13:00:34 | 202,483,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #1、导包
from celery import Celery
#2、加载项目配置文件
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "meiduo_mall.settings.dev")
#3、实例化
app = Celery('celery_tasks')
#4、加载celery配置文件
app.config_from_object('celery_tasks.config')
#5、celery加载任务
#发短信任务
app.autodiscover_tasks(['celery_tasks.sms','celery_tasks.email'])
#发邮... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
67dfdc807efc339cf3d8aaec0ae03eafa5c61cc0 | 33b5ef4f67e9c36d45990506e6f9f39d573ce730 | /folders/python/instagram/42for_in_str.py | f2c37251d5cd5f996af3acd957604b6b5e772c93 | [] | no_license | dineshkumarkummara/my-basic-programs-in-java-and-python | 54f271e891e8d9dbdf479a9617e9355cbd0819e9 | b8a4cf455f4a057e382f7dda7581fad5b2f1e616 | refs/heads/master | 2022-12-12T06:02:55.558763 | 2020-08-19T12:14:39 | 2020-08-19T12:14:39 | 283,415,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | str="python coding" #strings
for x in str:
print(x)
str1={"a","b","c","d"} #sets
for x in str1:
print(x)
| [
"dk944176@gmail.com"
] | dk944176@gmail.com |
55890962eb32cf417864520b10bf305af50f5049 | e8abc7c32f7c1be189b93345f63d7f8f03e40b0f | /examples/launch_tor_endpoint2.py | 1adc178bf28d33da5fb8cf389ea1cccb5f45e3a5 | [
"MIT"
] | permissive | david415/txtorcon | 8e37a71a7fce678b4d7646d8b22df622b7508452 | 3d7ad0d377f3344a33c7d67a19717cc3674bed6a | refs/heads/192.fix_build_timeout_circuit.0 | 2021-01-17T17:08:52.059542 | 2016-11-22T20:34:21 | 2016-11-22T20:34:21 | 19,297,689 | 3 | 1 | MIT | 2018-04-27T18:29:52 | 2014-04-30T01:52:53 | Python | UTF-8 | Python | false | false | 1,435 | py | #!/usr/bin/env python
# Here we set up a Twisted Web server and then launch a slave tor
# with a configured hidden service directed at the Web server we set
# up. This uses serverFromString to translate the "onion" endpoint descriptor
# into a TCPHiddenServiceEndpoint object...
import shutil
from twisted.internet im... | [
"meejah@meejah.ca"
] | meejah@meejah.ca |
ea7f10d5d450eeb618cfd5da083a97fb965d9b42 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/datasets/_datasources.py | 9323f403828ae1c464366e3c9b85c70aabcba0ad | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 9,755 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
55f70e257d55919419c13c52d587546cf180076f | 8534f1109cbd6bdae8e5110e2438331ded6f1134 | /lnotab.py | f25e08d12bc38d29a9dd4ce4e5d27289fe98cc73 | [] | no_license | laike9m/TestPython | dc802053fd0eee329aca8517ccd6f2e97846f221 | 0587c33764b8f88975d1156b73400926e77014c6 | refs/heads/master | 2022-12-21T12:29:45.570030 | 2022-01-05T06:13:32 | 2022-01-05T06:13:32 | 195,931,990 | 0 | 0 | null | 2022-12-13T23:41:15 | 2019-07-09T04:21:59 | Python | UTF-8 | Python | false | false | 293 | py | """A doc string
foo
"""
import sys
import ast
import astor
import inspect
frame = sys._getframe()
print(frame.f_code.co_lnotab)
print(frame.f_code.co_firstlineno)
def f():
x = 1
frame = sys._getframe()
print(frame.f_code.co_lnotab)
print(frame.f_code.co_firstlineno)
f()
| [
"laike9m@gmail.com"
] | laike9m@gmail.com |
e5bdb2b3085ad58fa1d22f773773190fe2aebfd9 | 4cd20bc31ac7c9766bd4629024d7543262a39d69 | /apps/preference/views.py | d1c9f899f386c83b00304493495dc5cdcb4193e0 | [] | no_license | Gusquets/MYB_MVP | fcf4546b0197ab075e54af7756c831576bca9bd5 | 5d8284c90b5a47a883a69423e0bf435ffad81298 | refs/heads/master | 2021-07-01T12:36:48.715498 | 2019-04-03T04:54:07 | 2019-04-03T04:54:07 | 140,535,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | import json
from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic import CreateView, TemplateView, ListView, UpdateView
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import requi... | [
"smk950226@naver.com"
] | smk950226@naver.com |
5d74f273cd83e256d34521b9117230ddc8efebbf | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py | cf56a7fdb9f8a91aba6d59d4588a583b21c64f94 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 5,613 | 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 use this ... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
96a4b18aa1fa969114639d82147ccece6ec37150 | 1efeed0fa970b05801a29ccfdc90c52bb571dd02 | /venv/lib/python3.7/site-packages/openstack/cloud/_network.py | e0f938b77e27096b365c02f38803354c750bf5ed | [] | no_license | williamwang0/MusicGen | 2e7fe5d9b2d35d1406b8951a86a5eac6d704571e | b6411505d1fd29e13ca93e3975f3de106ad4a7d0 | refs/heads/master | 2020-07-08T15:48:33.840412 | 2020-05-27T17:30:38 | 2020-05-27T17:30:38 | 203,717,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104,859 | py | # 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 writing, software
# distributed under the... | [
"albertczhang@berkeley.edu"
] | albertczhang@berkeley.edu |
fc4acfc5e6a1ae4758a0853857d51c68969e09ca | 6e95e9b6a1fc996ebcb46c44d4ef7678f762e4f7 | /others/taobao_spider/test/service/test_job.py | c68884724f84ce028a0e969f4244394ba839f79e | [
"Apache-2.0",
"Unlicense"
] | permissive | 625781186/lgd_spiders | 3a4d6917a01e446136e7aef4c92b9b7a1f8e498d | 1c8680115beb42f4daaf6be71bf3fb14fcc2c255 | refs/heads/master | 2020-08-29T13:21:12.116395 | 2019-10-21T14:28:00 | 2019-10-21T14:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # -*- coding: utf-8 -*-
from unittest import TestCase
from mall_spider.spiders.actions.action_service import get_action_service
from mall_spider.utils.date_util import today, yesterday
class TestJob(TestCase):
__action_service = get_action_service()
def test_execute_sycm_category_job_init_actions(self):
... | [
"lgdupup"
] | lgdupup |
8c11d228b74c486ec8ebda3497329e523595d39c | aac1b8efaeccc544d229aa52093a36802250b4cf | /pre/python/lib/python2.7/dist-packages/Cryptodome/SelfTest/PublicKey/test_import_ECC.py | 22925643114a79cfc5cef097244b83fea8d145d5 | [] | no_license | ag1455/OpenPLi-PC | 4f63bbd389ff9604ab7aaf72d10ee6552b794c87 | 256401ac313df2e45c516af1a4d5398f54703b9c | refs/heads/master | 2023-08-22T18:20:07.491386 | 2023-08-14T17:29:59 | 2023-08-14T17:29:59 | 233,239,212 | 27 | 22 | null | 2020-12-28T22:09:26 | 2020-01-11T13:50:25 | Python | UTF-8 | Python | false | false | 17,460 | py | # ===================================================================
#
# Copyright (c) 2015, Legrandin <helderijs@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributio... | [
"a.g.prosat@gmail.com"
] | a.g.prosat@gmail.com |
13aecd8e724d20623266641a7ee833c0d6764d09 | e3b2c1a9f8edff7012c2e2212bd8ad668c284c6b | /vendor-local/lib/python/blessings/__init__.py | 6f8c107d8f8818da6221b3d849a0cfee8b981b62 | [] | no_license | alfredo/popcorn_maker | 977b02f484b7e6630669c1c1d2217bf6c302010f | 43ddfc8c66c6a074e823ebffdc5a7de3a1ae351f | refs/heads/master | 2021-01-16T21:00:07.709867 | 2012-07-13T11:27:22 | 2012-07-13T11:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,480 | py | from collections import defaultdict
import curses
from curses import tigetstr, tigetnum, setupterm, tparm
from fcntl import ioctl
try:
from io import UnsupportedOperation as IOUnsupportedOperation
except ImportError:
class IOUnsupportedOperation(Exception):
"""A dummy exception to take the place of Pyth... | [
"alfredo@madewithbyt.es"
] | alfredo@madewithbyt.es |
d08e4918619a53ca615232233decab9bb16ac9bb | 155cbccc3ef3b8cba80629f2a26d7e76968a639c | /thelma/repositories/rdb/mappers/rackposition.py | f42d135cfc7afb84a57fc4997a6efa5274120fc8 | [
"MIT"
] | permissive | papagr/TheLMA | 1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78 | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | refs/heads/master | 2022-12-24T20:05:28.229303 | 2020-09-26T13:57:48 | 2020-09-26T13:57:48 | 279,159,864 | 1 | 0 | MIT | 2020-07-12T22:40:36 | 2020-07-12T22:40:35 | null | UTF-8 | Python | false | false | 903 | py | """
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Rack position mapper.
"""
from sqlalchemy import func
from everest.repositories.rdb.utils import mapper
from thelma.entities.rack import RackPosition
__do... | [
"fogathmann@gmail.com"
] | fogathmann@gmail.com |
4fbd0fc8fdb23a67806ad582e85e7afbddace103 | c16aee56666e7da3532e9dd8cd065e61f25b7e50 | /week1/triangle.py | 3c5049536f1d82082cf9d94959e30383db4ee20b | [] | no_license | loganmurphy/DC_2017_Python3 | 8e6af1f9db2a927242b1bf0f8f9104eb3b32ec86 | 1a0b4b4b37537c354025dd9318d8d14b27791e87 | refs/heads/master | 2021-07-20T08:51:45.625656 | 2017-10-27T03:33:12 | 2017-10-27T03:33:12 | 103,613,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | height = 4
width = 7
star = "*"
space = " "
i = 0
while i < height:
print((space * width) + star)
i += 1
width -= 1
star = (2 * "*") + star
| [
"loganmurphy1984@gmail.com"
] | loganmurphy1984@gmail.com |
d73734d96cd230ceb5c9108f714f3714d54bf033 | 83277e8b959de61b655f614b7e072394a99d77ae | /venv/bin/pip3.7 | 004fc1d5fa6738f54b95ef6aeeedc8bac6a822c9 | [
"MIT"
] | permissive | hskang9/scalable-django | b3ed144670c3d5b244168fdd38f33e1f596253c0 | 162e0f4a3d49f164af1d33298fa9a47b66508cbf | refs/heads/master | 2023-04-29T05:33:23.460640 | 2020-03-27T00:55:28 | 2020-03-27T00:55:28 | 247,036,359 | 2 | 1 | MIT | 2023-04-21T20:53:08 | 2020-03-13T09:40:37 | Python | UTF-8 | Python | false | false | 431 | 7 | #!/Users/hyungsukkang/PycharmProjects/django_graphql_container/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$... | [
"hyungsukkang@Hyungsuks-Mac-mini.local"
] | hyungsukkang@Hyungsuks-Mac-mini.local |
6d933276903d9ffc7b771f5c55d622336661f483 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/soupsieve/css_parser.py | 8616d61b56571f69356cc441403dd95d3f6a796b | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ec6cf659d2ea0ac4f743c1c6502d5f376a92d2077bb63b5d79914e584458b656
size 43200
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
e2c7f0a8cc38b781fef073c5f1e0fc43c09ee60d | 5d28c38dfdd185875ba0edaf77281e684c81da0c | /mlflow/models/evaluation/lift_curve.py | de722164777e792d3be576fca7c1622fd425264d | [
"Apache-2.0"
] | permissive | imrehg/mlflow | 3a68acc1730b3ee6326c1366760d6ddc7e66099c | 5ddfe9a1b48e065540094d83125040d3273c48fa | refs/heads/master | 2022-09-24T05:39:02.767657 | 2022-09-20T00:14:07 | 2022-09-20T00:14:07 | 244,945,486 | 1 | 0 | Apache-2.0 | 2020-03-04T16:11:54 | 2020-03-04T16:11:53 | null | UTF-8 | Python | false | false | 6,224 | py | import matplotlib.pyplot as plt
import numpy as np
def _cumulative_gain_curve(y_true, y_score, pos_label=None):
"""
This method is copied from scikit-plot package.
See https://github.com/reiinakano/scikit-plot/blob/2dd3e6a76df77edcbd724c4db25575f70abb57cb/scikitplot/helpers.py#L157
This function gen... | [
"noreply@github.com"
] | imrehg.noreply@github.com |
37ab98f9f1a3c980df3099c0873f46050d0682e3 | 3300f61798909af363504e577bfd7677e5239e8e | /docstrings/verify.py | f83fdf1827a069f56d0a89166016d69ec1ed8e39 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | jctanner/ansible-tests | 11c6ed23ef8be5a42401d1c93c86c2693068f8de | c0a2b2aff6002b98088ceb04e435e7a95f78d655 | refs/heads/master | 2020-04-07T10:23:13.031694 | 2014-04-08T02:02:15 | 2014-04-08T02:02:15 | 13,967,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,743 | py | #!/usr/bin/env python
# http://stackoverflow.com/questions/1714027/version-number-comparison
import os
import sys
import ast
import subprocess
import shlex
from distutils.version import LooseVersion
from pkg_resources import parse_version
import cPickle as pickle
docscript = """#!/usr/bin/env python
import os
impor... | [
"tanner.jc@gmail.com"
] | tanner.jc@gmail.com |
25c1fe6db107fe48d30cd7776ecd86b05fa9d636 | a75ac3c5c641fc00a3c403b08eeb6008f648639e | /CodeForces/Python2/330A.py | 55e60b11422a3ffb790bff55aa50324aa95a0ea8 | [] | no_license | Greenwicher/Competitive-Programming | 5e9e667867c2d4e4ce68ad1bc34691ff22e2400a | 6f830799f3ec4603cab8e3f4fbefe523f9f2db98 | refs/heads/master | 2018-11-15T15:25:22.059036 | 2018-09-09T07:57:28 | 2018-09-09T07:57:28 | 28,706,177 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 23 16:15:41 2015
@author: liuweizhi
"""
## version 1 (wrong anser)
r,c=map(int,raw_input().split());cake=''
for i in range(r):
cake+=raw_input()
for i in range(r):
cake[i:i+c+1]=[cake[i:i+c+1],'o'*c][cake[i:i+c+1].find('S')==-1]
for i in range(c):
cake[i::c]=... | [
"weizhiliu2009@gmail.com"
] | weizhiliu2009@gmail.com |
9f2548aea829f1c6ec1766ca5c2aaaa73db1a037 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipy/algorithms/clustering/gmm.py | c9704aeef00c3fd12916d2065e862d4d299b6795 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 29,434 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Gaussian Mixture Model Class:
contains the basic fields and methods of GMMs
The class GMM _old uses C bindings which are
computationally and memory efficient.
Author : Bertrand Thirion, 2006-2009
"""
f... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
373580f79b535f93764e02be1ee047390c697525 | c8eff17479e46abd759dfa4f627303cefecbb6f8 | /tests/test_transaction.py | fc0dfbc401183fd3e3bb39471c16e1bc69748ab6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | snower/torpeewee | 102832fe8ccc5fd7b18a1d634207be5869e71929 | 1d2d73090972ab33bb4a0980bfed63ff74961a1a | refs/heads/master | 2021-06-10T00:14:05.294889 | 2021-05-25T10:15:40 | 2021-05-25T10:15:40 | 61,872,177 | 31 | 10 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | # -*- coding: utf-8 -*-
# 16/7/11
# create by: snower
import datetime
from tornado import gen
from tornado.testing import gen_test
from . import BaseTestCase
from .model import Test, db
class TestTestCaseTransaction(BaseTestCase):
async def run_transaction(self, transaction):
await Test.use(transaction).c... | [
"sujian199@gmail.com"
] | sujian199@gmail.com |
23d788b0c075d0f561a991487206cf5a7acfed5c | a0a5dbdf9b850092deeee5f4918ab95232c46100 | /pesquisasatisfacao/crm/migrations/0012_auto_20190409_2110.py | 0990285ee556573e172d51a5baae72b6094e0878 | [] | no_license | CoutinhoElias/pesquisasatisfacao | 55c084a2b1e27cc9d190fb4198e09b78f3c95ad1 | 870eb616917ba9e2d3179609f8764534aa3748f4 | refs/heads/master | 2022-11-30T21:59:21.102520 | 2020-04-25T14:18:05 | 2020-04-25T14:18:05 | 158,157,292 | 1 | 2 | null | 2022-11-22T03:31:14 | 2018-11-19T03:34:11 | JavaScript | UTF-8 | Python | false | false | 519 | py | # Generated by Django 2.2 on 2019-04-10 00:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crm', '0011_atendimento_department'),
]
operations = [
migrations.AlterField(
model_name='atendimento',
name='departme... | [
"coutinho.elias@gmail.com"
] | coutinho.elias@gmail.com |
32abe9d76e271c36d97481943ade34862a5989b9 | bb92245006848ceac733c14b118ef4b269daeee8 | /lab3/training/util.py | bb5cd23af014cdacb2bf3b4057fd6ff7fd5c58b1 | [] | no_license | vazzolla/fsdl-text-recognizer-project | 34a1be71469895b0daed48ed3bceafebd230645a | b32ffe24974a205dcf2a6ec0c440e318f0dbd940 | refs/heads/master | 2022-04-21T11:10:24.962783 | 2020-04-24T01:25:41 | 2020-04-24T01:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """Function to train a model."""
from time import time
from tensorflow.keras.callbacks import EarlyStopping, Callback
from text_recognizer.datasets.dataset import Dataset
from text_recognizer.models.base import Model
EARLY_STOPPING = True
def train_model(model: Model, dataset: Dataset, epochs: int, batch_size: int... | [
"sergeykarayev@gmail.com"
] | sergeykarayev@gmail.com |
219bbbdcd432ea9e368cc0634a871f1b331210be | 055a3e2c6642518c5ea59b34c7e7f989551eb45b | /bot/app_streamer.py | 0ec4848efb5f8991bf2364cb6369041c994dde4a | [] | no_license | RTC-SCTB/Constructor-code-examples | c7d2fe4fd8132d54096d6e99e2a169486dd80bc0 | 855b1712fa5fdfe9261e16a130dde3537cb8bb4f | refs/heads/master | 2020-07-21T03:53:43.160161 | 2020-02-20T10:56:48 | 2020-02-20T10:56:48 | 206,752,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,680 | py | import gi
gi.require_version('Gst','1.0')
from gi.repository import Gst
import sys
import threading
import logging
from bot.common import *
HOST = '127.0.0.1'
RTP_PORT = 5000
class AppSrcStreamer(object):
def __init__(self, video = VIDEO_MJPEG, resolution = (640, 480), framerate = 30,
onFrameCa... | [
"temka.911@mail.ru"
] | temka.911@mail.ru |
01e2cab011b97a2456551669f92df13f2a9127d8 | a1e10efa6a131e305351909a437bfa5d083d4513 | /aspl_product_alert_qty/models/product_qty_alert.py | 1f148b1fbe51eb77322158feda3c7018aa9cd7bc | [] | no_license | h3llopy/glodok_extra_addons_od12 | 5089412b36b0dafdb17235a627c8e33ed2acbb1f | 5c493962b93254fb2ca8cd674c4fe153ac86d680 | refs/heads/master | 2022-12-05T06:22:08.182302 | 2020-08-29T14:32:30 | 2020-08-29T14:32:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | # -*- coding: utf-8 -*-
#################################################################################
# Author : Acespritech Solutions Pvt. Ltd. (<www.acespritech.com>)
# Copyright(c): 2012-Present Acespritech Solutions Pvt. Ltd.
# All Rights Reserved.
#
# This program is copyright property of the author menti... | [
"kikin.kusumah@gmail.com"
] | kikin.kusumah@gmail.com |
f8e18d09a9f3e6a5653a428f33257917bcd09c34 | 2cd24ddd86e97d01c20a96bfc8ed8b541a80d608 | /apps/compra/migrations/0003_detalle_compra_subtotal.py | 0b37c02829a3de243b74a5129374ec3bcf73d820 | [] | no_license | chrisstianandres/don_chuta | 1c048db633246effb06800f28a3a4d8af2cac199 | e20abeb892e6de572a470cd71c5830c6f9d1dafa | refs/heads/master | 2023-01-07T09:14:52.837462 | 2020-11-18T20:55:10 | 2020-11-18T20:55:10 | 293,209,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # Generated by Django 2.2.14 on 2020-09-09 21:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('compra', '0002_auto_20200905_1332'),
]
operations = [
migrations.AddField(
model_name='detalle_compra',
name='subto... | [
"Chrisstianandres@gmail.com"
] | Chrisstianandres@gmail.com |
72c9b0df633711b2388d7be0bf3092da209fbca3 | 5c533e2cf1f2fa87e55253cdbfc6cc63fb2d1982 | /python/qft/dmrg.py | 3e954772416084c687ff15e6e4729d3a1b0193ae | [] | no_license | philzook58/python | 940c24088968f0d5c655e2344dfa084deaefe7c6 | 6d43db5165c9bcb17e8348a650710c5f603e6a96 | refs/heads/master | 2020-05-25T15:42:55.428149 | 2018-05-14T03:33:29 | 2018-05-14T03:33:29 | 69,040,196 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | import numpy as np
a =
U, s, V = np.linalg.svd(a, full_matrices=True)
| [
"philip@FartMachine7.local"
] | philip@FartMachine7.local |
73616bf4c78f4f550cb551b430ef90a4edb005e7 | 786de89be635eb21295070a6a3452f3a7fe6712c | /CalibManager/tags/V00-00-94/src/CommandLineCalib.py | 24e057a8d2437e62ec266d03df15fac3e4c56757 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,132 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module CommandLineCalib...
#
#------------------------------------------------------------------------
"""CommandLineCalib is intended for command line calibration of dark runs
This ... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
3fd4b6939ed509fe2a1ee650c84cb20ee9dc138b | 93ac5d21bf02e3448a60d163bdf08541045de6ea | /manage.py | a7fca783bb6ea4ffde8ae49695efe24350b668b9 | [] | no_license | samsmusa/find_bid | cd97a601524fbfc419499d71b80566b3092c1264 | fe2399df1c74aef2f70b7956af6734c26413013a | refs/heads/master | 2023-08-13T05:51:15.781183 | 2021-09-07T07:10:15 | 2021-09-07T07:10:15 | 403,878,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'find_bid.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"samsmusa@outlook.com"
] | samsmusa@outlook.com |
dd9925b429dd30c9f5af8adf9362aadd5a58cd44 | 3bdcb60b0bffeeb6ff7b0ddca4792b682158bb12 | /Funciones/276.py | cad0e1b914f6b0d518c47a4347780a3f47f69055 | [] | no_license | FrankCasanova/Python | 03c811801ec8ecd5ace66914f984a94f12befe06 | 03f15100991724a49437df3ce704837812173fc5 | refs/heads/master | 2023-05-23T01:37:12.632204 | 2021-06-10T15:20:38 | 2021-06-10T15:20:38 | 278,167,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # desings a function that, given a list of strings, return the longest string.
# if two or more have the same length and are the lonfest, the function will
# return any one of them
def largest_str(string):
largest = None
for index, snts in enumerate(string):
if largest == None:
largest ... | [
"frankcasanova.info@gmail.com"
] | frankcasanova.info@gmail.com |
762b27f7e07d1145bfd1743c41531647c2a87ae0 | dfb00e98cc3bfe40df3a3f2196b1003d3122ca84 | /{{cookiecutter.project_slug}}/tests.py | 58a3817282e840fc961a8edb8268bcb73b622e5a | [] | no_license | andremcb/bakery_scaffold_tests_8sGLG7TckgT6EJlB | b80ed9ff7b34fe2433c9af1a9f07948674a2c781 | 08c8806dcbdca288d0f607350da8b5801489833c | refs/heads/master | 2020-07-09T03:42:09.226572 | 2019-08-22T20:13:03 | 2019-08-22T20:13:03 | 203,866,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import unittest
import re
class TestStripe(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(TestStripe, self).__init__(*args, **kwargs)
with open('order.html', 'r') as file_descriptor:
self.dom_str = file_descriptor.read()
# Check if redirectToCheckout function call ... | [
"csantos.machado@gmail.com"
] | csantos.machado@gmail.com |
ae6671c6877541a49134ba53fef3117cf356e2e1 | 68ee9027d4f780e1e5248a661ccf08427ff8d106 | /extra/unused/baselinePlotter.py | 92136463546bb02edb9475a21ac2338f2a5cb2b9 | [
"MIT"
] | permissive | whyjz/CARST | 87fb9a6a62d39fd742bb140bddcb95a2c15a144c | 4fc48374f159e197fa5a9dbf8a867b0a8e0aad3b | refs/heads/master | 2023-05-26T20:27:38.105623 | 2023-04-16T06:34:44 | 2023-04-16T06:34:44 | 58,771,687 | 17 | 4 | MIT | 2021-03-10T01:26:04 | 2016-05-13T20:54:42 | Python | UTF-8 | Python | false | false | 3,733 | py | #!/usr/bin/python
# baselinePlotter.py
# Author: Andrew Kenneth Melkonian
# All rights reserved
# Plots perpendicular baselines for all *baseline.rsc files in the input directory that contain a valid number identified as "P_BASELINE*"
# USAGE
# *****
# python /path/containing/ints /path/to/put/output.ps
# /path/... | [
"wz278@cornell.edu"
] | wz278@cornell.edu |
e20ea9acee96420c057628f8eaf404ad21c6b9dc | e31d6c6c74a71daf27d618de4debf59e8cb9f188 | /gluon/datasets/coco_det_dataset.py | c9269ab8671292f6728b3c8c5dc3402edcd1fec7 | [
"MIT"
] | permissive | vlomonaco/imgclsmob | 574ebfbfe4be7a11c8742f34261bc4e7cc1f30be | d0d1c49a848ab146213ef4cbd37239799d0102d8 | refs/heads/master | 2022-04-18T16:03:11.361053 | 2020-04-14T06:17:36 | 2020-04-14T06:17:36 | 255,555,032 | 0 | 1 | MIT | 2020-04-14T08:39:59 | 2020-04-14T08:39:58 | null | UTF-8 | Python | false | false | 27,130 | py | """
MS COCO object detection dataset.
"""
__all__ = ['CocoDetMetaInfo']
import os
import cv2
import logging
import mxnet as mx
import numpy as np
from PIL import Image
from mxnet.gluon.data import dataset
from .dataset_metainfo import DatasetMetaInfo
class CocoDetDataset(dataset.Dataset):
"""
MS COCO detect... | [
"osemery@gmail.com"
] | osemery@gmail.com |
234b81353b5555235b20f59e1d3fb67c3ba3989e | 1b5bf5e703dfa4fdbf3f0105dae54cf9a9e73d1b | /aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/DescribeContactListRequest.py | 546e8da5caf567f1a57349eeba3cb61cb257b0c3 | [
"Apache-2.0"
] | permissive | kevin-catlikepuma/aliyun-openapi-python-sdk | 47285fb59ba41ab4cfb936e3aeb65efbdd2772e8 | a3f1f58dc294a7d1745071992226d61cc9a951d1 | refs/heads/master | 2020-05-26T22:00:19.869229 | 2019-05-22T08:10:10 | 2019-05-22T08:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | 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 u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
4ad295cd0d344c11d2f70ff4e00f9e00e52284a9 | 996967405d3ee07e011ee0f0404d03b6d04d3492 | /dataloader/get_coco/data_path.py | 7b3d7f36f674f57bbc35b16c04147efeb152513f | [] | no_license | wyyy04/MyRepository | 797936fc757a2eee4793d5b1b47ebf8b57216ab8 | 91f1a7ff969e91d9649b96796c5827c9910a8183 | refs/heads/main | 2023-02-22T09:56:21.926013 | 2021-01-27T15:34:00 | 2021-01-27T15:34:00 | 315,524,193 | 0 | 0 | null | 2020-11-24T07:30:05 | 2020-11-24T05:05:28 | null | UTF-8 | Python | false | false | 314 | py | #数据集实际路径
DataDir = 'loader\data\\'
Datasetfile = DataDir + 'dataset.txt'
Embeddingfile = DataDir + 'skipthoughts.npz'
Clusterfile = DataDir + 'clusters.npz'
Clustersnamefile = DataDir + 'clustersname.txt'
Clusterfile_256 = DataDir + 'clusters_256.npz'
ImageDir = DataDir + 'COCO_motivations_clean'
| [
"you@example.com"
] | you@example.com |
bd7264767f8bc90158480fcc8cf3d6aa3e1facad | a48b857ccb08a1ceb7141be6d48c9bca732f7035 | /bot/urls.py | 7532ce4c9d5e679ff1b761e1add7623f7513af85 | [] | no_license | 1hk-star/Webtoon_bot | ae1747ee2cc035996adccbb58ac8c408410c71a0 | 983b0c8e4e22d8046630a7405e246f5fd5961a24 | refs/heads/master | 2021-05-09T11:06:11.689227 | 2018-01-26T02:59:21 | 2018-01-26T02:59:21 | 118,976,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | """bot URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
60675121234509c5ca112bd1aae23ca8213106e1 | 1e50f1643376039ca988d909e79f528e01fa1371 | /leetcode/editor/cn/464.我能赢吗.py | 94193d96b4637cc196d0af39d9c5bfbb1de75e69 | [] | no_license | mahatmaWM/leetcode | 482a249e56e2121f4896e34c58d9fa44d6d0034b | 4f41dad6a38d3cac1c32bc1f157e20aa14eab9be | refs/heads/master | 2022-09-04T17:53:54.832210 | 2022-08-06T07:29:46 | 2022-08-06T07:29:46 | 224,415,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | #
# @lc app=leetcode.cn id=464 lang=python3
#
# [464] 我能赢吗
#
# https://leetcode-cn.com/problems/can-i-win/description/
#
# algorithms
# Medium (33.86%)
# Likes: 131
# Dislikes: 0
# Total Accepted: 4.7K
# Total Submissions: 13.8K
# Testcase Example: '10\n11'
#
# 在 "100 game" 这个游戏中,两名玩家轮流选择从 1 到 10 的任意整数,累计整数和,先使得... | [
"chrismwang@tencent.com"
] | chrismwang@tencent.com |
db74737a5f19f4aabfff78ef6d8818a308c1b77b | f7a748eb6803a9f2b609dad279e30513497fa0be | /test/com/facebook/buck/testutil/endtoend/testdata/cxx_dependent_on_py/py_bin/generate_cpp.py | dd8e0082ceef3fbb3366dbddd661f943f8b28997 | [
"Apache-2.0"
] | permissive | MMeunierSide/buck | a44937e207a92a8a8d5df06c1e65308aa2d42328 | b1aa036a203acb8c4cf2898e0af2a1b88208d232 | refs/heads/master | 2020-03-09T23:25:38.016401 | 2018-04-11T04:11:59 | 2018-04-11T05:04:57 | 129,057,807 | 1 | 0 | Apache-2.0 | 2018-04-11T08:06:36 | 2018-04-11T08:06:35 | null | UTF-8 | Python | false | false | 305 | py | from py_lib.util import Util
def generate_cpp():
print('#include <generate_cpp/generated.h>\n')
print('Generated::Generated() {}\n')
print('std::string Generated::generated_fcn() {')
print('return "{}";'.format(Util().name))
print('}')
if __name__ == "__main__":
generate_cpp()
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6aa4e44998c98918ebf8e738493f4114fffe694a | 839c21c464a0161d221f73aecfee8e1a9cb0e281 | /tests/clock_test.py | f4df5ca1d934a3e1ef41beb090c5ea0a93e7b690 | [
"Apache-2.0"
] | permissive | al-fontes-jr/bardolph | 89c98da6645e98583251c95e9fa24816c21ad40b | 27504031d40d288be85bc51b82b6829e3f139d93 | refs/heads/master | 2022-02-02T03:20:52.996806 | 2022-01-12T11:12:04 | 2022-01-12T11:12:04 | 200,828,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | #!/usr/bin/env python
import unittest
from unittest.mock import patch
from bardolph.lib import clock, injection, settings, time_pattern
class MockNow:
def __init__(self, hour, minute):
self._hour = hour
self._minute = minute
@property
def hour(self):
self._minute += 1
if ... | [
"alfred@fontes.org"
] | alfred@fontes.org |
4f6e4f5031e1ca5479b504ef39a11043e741aa2d | 50c23021b19aef84c9c0ed8f8116b1b395df3205 | /linkipYQ/demo.py | 5df3cbeb710a5b05ab4275ba368a21319344e461 | [] | no_license | beforeuwait/code_daqsoft | d87891c6a409841dd495ab85aadb48cb348f9891 | 6178fdbc08a54b2827c1a80297684a628d4f9c08 | refs/heads/master | 2021-09-28T20:33:14.164879 | 2018-11-20T09:16:52 | 2018-11-20T09:16:52 | 108,245,470 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | """
这是一个测试,作为测试linkip的服务器是否返回jessionid
"""
import requests
import time
import json
session = requests.session()
url_home = 'http://yq.linkip.cn/user/login.do'
url_log = 'http://yq.linkip.cn/user/index.do'
data_log = {
'name': 'gujing8835',
'password': 'gugugu110',
'type':1,
}
headers_login = {
'Host':... | [
"forme.wjw@aliyun.com"
] | forme.wjw@aliyun.com |
ac34a2fc2cecd9267afbbe09ea616ae446adea6e | cad762658ab8326d7f43bba6f69df35a8b770e34 | /pymarkdown/plugins/rule_md_005.py | fe3d1dad36078ec91062a727f67dc7ed40593565 | [
"MIT"
] | permissive | ExternalRepositories/pymarkdown | 9c248b519791a4c869d1e71fa405c06d15ce553b | 479ace2d2d9dd5def81c72ef3b58bce6fb76f594 | refs/heads/main | 2023-08-28T03:45:25.536530 | 2021-10-31T19:39:22 | 2021-10-31T19:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,109 | py | """
Module to implement a plugin that ensures that the indentation for List Items
are equivalent with each other.
"""
from enum import Enum
from pymarkdown.plugin_manager import Plugin, PluginDetails
class OrderedListAlignment(Enum):
"""
Enumeration to provide guidance on what alignment was used for ordered ... | [
"jack.de.winter@outlook.com"
] | jack.de.winter@outlook.com |
63af7334751636287b81565df83c25a6a899d950 | cc0e381fde5cc6870770396d990d2bad66a3186c | /Aula/aula09t.py | 72aa8fa7baa34cbfc5ff53c13f1e74ca9d562308 | [] | no_license | jnthmota/Python-PySpark-Cursos | 2c7fac79867059e0dfe4f0c4b6b6e1d32260530f | 680a4c422e14a26036379f49f0de6b5e73d7e431 | refs/heads/main | 2023-08-15T00:22:59.189649 | 2021-09-12T23:00:39 | 2021-09-12T23:00:39 | 373,610,471 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | ''' Nessa aula, vamos aprender operações com String no Python. As principais operações que vamos aprender
são o Fatiamento de String, Análise com len(), count(), find(), transformações com replace(),
upper(), lower(), capitalize(), title(), strip(), junção com join(). '''
frase = 'Curso em Video Python'
frase = [9] ... | [
"jonathan.mota@outlook.com"
] | jonathan.mota@outlook.com |
06d2c50aca5d7686ebe3b4d52fcec48ca04d8574 | ab8117bc5b5040e5107fc59337fabc966cb062ba | /.history/twitter/engine_20200328113924.py | 61ac75e432040b96d6f549e92d793cc646966e14 | [] | no_license | mirfarzam/DownloaderBro | 6019ab561c67a397135d0a1585d01d4c6f467df4 | 8e0a87dd1f768cfd22d24a7f8c223ce968e9ecb6 | refs/heads/master | 2022-04-16T15:31:38.551870 | 2020-04-15T17:36:26 | 2020-04-15T17:36:26 | 255,090,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py |
import tweepy
import datetime
import configparser
import time
config = configparser.ConfigParser()
config.read('credential.conf')
consumer_key = config['API']["API_key"]
consumer_secret = config['API']["API_secret_key"]
access_token = config['ACCESS']["Access_token"]
access_token_secret = config['ACCESS']["Access_t... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
22ba8cb74c5168ff4addd6a49abdd18dfae337b2 | 03cf49d6e2b002e5dc389282feb28769c55ff493 | /feas/gen_w2v_feat.py | 3915aa239d7723106ab8dbe88cdd6641e5588d71 | [] | no_license | yanqiangmiffy/Cityproperty-Rent-Forecast | 8f76ecf237e6bb2b7a81e844136dd12b324ee0bd | 489808ff0748d47fc34ff7c8f6168fe3fa8e39f2 | refs/heads/master | 2021-06-30T03:03:02.494347 | 2019-06-10T09:26:00 | 2019-06-10T09:26:00 | 182,541,053 | 7 | 0 | null | 2020-11-17T15:34:45 | 2019-04-21T14:04:40 | Jupyter Notebook | UTF-8 | Python | false | false | 2,711 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: quincyqiang
@software: PyCharm
@file: gen_w2v_feat.py
@time: 2019-05-17 09:56
@description: 生成Word2Vec特征
"""
import pandas as pd
import warnings
from gensim.models import Word2Vec
import multiprocessing
warnings.filterwarnings('ignore')
def w2v_feat(data_frame, f... | [
"1185918903@qq.com"
] | 1185918903@qq.com |
ca42f38050315ce2042b442a3f10da5c7f56c249 | 897d82d4953ed7b609746a0f252f3f3440b650cb | /day17/homework/homework_personal.py | a6297f4d42168de99f07f4198453d7482d5ba418 | [] | no_license | haiou90/aid_python_core | dd704e528a326028290a2c18f215b1fd399981bc | bd4c7a20950cf7e22e8e05bbc42cb3b3fdbe82a1 | refs/heads/master | 2022-11-26T19:13:36.721238 | 2020-08-07T15:05:17 | 2020-08-07T15:05:17 | 285,857,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | from iterable_tools import IterableHelper
"""直接使用IterableHelper类现有功能,完成下列需求
-- 在技能列表中查找名称是"一阳指"的技能对象
-- 在技能列表中查找攻击比例atk_rate大于1的所有技能对象
-- 在技能列表中所有技能名称name和消耗法力cost_sp"""
class Skill:
def __init__(self, name="", atk_rate=0.0, cost_sp=0, duration=0):
self.name = name
self.atk_rate = atk_rate
... | [
"caoho@outlook.com"
] | caoho@outlook.com |
82e273899b8bdc46203d6b1f1e2254b20264b9a2 | f497916365288386bd2fc5085ce1391aa649467b | /pactools/utils/fir.py | eb7ec457d6bb77f43deaf0c55855dcc4adba5c82 | [] | no_license | fraimondo/pactools | 486d5eac4fd9190dcbbcee24fa735ac511aa396b | b4be8ae27cca1684816772f7ce2cb9e503452f14 | refs/heads/master | 2021-08-30T01:02:51.161092 | 2017-12-05T16:19:05 | 2017-12-05T16:19:05 | 113,920,577 | 0 | 0 | null | 2017-12-11T23:40:13 | 2017-12-11T23:40:12 | null | UTF-8 | Python | false | false | 8,162 | py | import numpy as np
from scipy import signal
import matplotlib.pyplot as plt
from .spectrum import Spectrum
class FIR(object):
"""FIR filter
Parameters
----------
fir : array
Finite impulse response (FIR) filter
Examples
--------
>>> from pactools.utils.fir import FIR
>>> f =... | [
"tom.dupre-la-tour@m4x.org"
] | tom.dupre-la-tour@m4x.org |
c155e0cc9df22df2e507584ebe164afc53d4c0a0 | 609580338943caf9141ae8e2535fb31398ad6286 | /log_pullrequest/log_pr_2020-08-03-12-22_6ca6da91408244e26c157e9e6467cc18ede43e71.py | 8d512d335ba044acb56aca83f12e7487c17e50b2 | [] | no_license | arita37/mlmodels_store | 5b3333072382af31e54b4be9f9050a3eab094f5e | c139f1b85d22885cbe0f0f4c4a2ee19bde665a0b | refs/heads/master | 2021-05-23T01:02:57.202925 | 2020-11-16T16:27:10 | 2020-11-16T16:27:10 | 253,156,396 | 2 | 6 | null | 2020-05-13T10:42:34 | 2020-04-05T04:37:05 | Python | UTF-8 | Python | false | false | 23,794 | py |
test_pullrequest /home/runner/work/mlmodels/mlmodels/mlmodels/config/test_config.json Namespace(config_file='/home/runner/work/mlmodels/mlmodels/mlmodels/config/test_config.json', config_mode='test', do='test_pullrequest', folder=None, log_file=None, name='ml_store', save_folder='ztest/')
ml_test --do test_pullr... | [
"noelkev0@gmail.com"
] | noelkev0@gmail.com |
6fa3358d03e945e11123f1d3a3c4b23061069cf8 | 3577d2e20c79cbbbc0a8a91a73be322be61cf384 | /5.4 Objects and Algorithms/1 Object/4 ExerciseTraker2.py | ac6399889c32350a3735b2e6358e11bc1c49284d | [] | no_license | KETULPADARIYA/Computing-in-Python | cb30a807fa92a816f53f3254a63f07883977406d | 02c69a3c074924a70f68f00fd756436aa207dcf6 | refs/heads/master | 2020-04-24T04:47:18.342215 | 2019-03-17T03:21:46 | 2019-03-17T03:21:46 | 171,716,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | #Previously, you wrote a class called ExerciseSession that
#had three attributes: an exercise name, an intensity, and a
#duration.
#
#Add a new method to that class called calories_burned.
#calories_burned should have no parameters (besides self, as
#every method in a class has). It should return an integer
#representi... | [
"ketulpadariya79@gmail.com"
] | ketulpadariya79@gmail.com |
3419e878d3d631a1d81f03dea1450003ab85c1bb | f39528e9bad8cfa78b38fcbb7a5b430ac0c7a942 | /Higgs2LLP/LO_HToSSTobbbb_MH125_MS55_ctauS0p05_13TeV.py | 0a392bd289634904035c154b54547bec66ebdeaf | [] | no_license | isildakbora/EXO-MC-REQUESTS | c0e3eb3a49b516476d37aa464c47304df14bed1e | 8771e32bbec079de787f7e5f11407e9e7ebe35d8 | refs/heads/master | 2021-04-12T11:11:03.982564 | 2019-04-29T15:12:34 | 2019-04-29T15:12:34 | 126,622,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from Configuration.Generator.Pythia8PowhegEmissionVetoSettings_cfi import *
from Configuration.Generator.PSweightsPythia.PythiaPSweightsSetting... | [
"bora.isildak@cern.ch"
] | bora.isildak@cern.ch |
701a3b7f4b23d31ebeab4b41f626f756478f746b | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/storagesync/v20190301/get_storage_sync_service.py | 2cf11b6677bb8a2310b698ed26983f397eb033f8 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,861 | 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 |
b2d9a6ad2e37068d9a8111e66a169c2f35cd83cf | cceb97ce3d74ac17090786bc65f7ed30e37ad929 | /lxd_Safety(out)/graphTraversal-submit2/kvparser.py | cf5a418fcf027d4e48d2a709fddd788aae180815 | [] | no_license | Catxiaobai/project | b47310efe498421cde794e289b4e753d843c8e40 | 76e346f69261433ccd146a3cbfa92b4e3864d916 | refs/heads/master | 2023-01-08T04:37:59.232492 | 2020-11-10T12:00:34 | 2020-11-10T12:00:34 | 291,014,545 | 1 | 4 | null | 2020-11-09T01:22:11 | 2020-08-28T10:08:16 | Python | UTF-8 | Python | false | false | 7,539 | py | """kvparser -- A simple hierarchical key-value text parser.
(c) 2004 HAS
kvparser parses text containing simple key-value pairs and/or nested blocks using a simple event-driven model. The text format is intended to be human readable and writeable, so is designed for simplicity and consistency with a low-noise syntax.... | [
"2378960008@qq.com"
] | 2378960008@qq.com |
1350ab965e68e5d4e3037607833640afff30296a | c7066d3b72a54665d81de1d77d7bdcfd0ece7b42 | /python/ccxt/async_support/phemex.py | ba55c236478db5346ce422fcf9b7d564772ac999 | [
"MIT"
] | permissive | blair/ccxt | cf09b7a604586c230e8cea2b6e4dbf6c3c3497ea | 3a6bd4efb78d01391f9a4ea43ec228b75ca24695 | refs/heads/master | 2023-09-03T21:09:44.447194 | 2023-08-26T19:01:14 | 2023-08-26T19:01:14 | 126,121,401 | 0 | 2 | MIT | 2018-03-21T04:02:57 | 2018-03-21T04:02:56 | null | UTF-8 | Python | false | false | 200,391 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.abstract.phemex import ImplicitAPI
import hashlib
import numbers
from ccxt.... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
f9533c10696274ee3f113a9ade94819a015ebdda | 3c92c3f633b613a62fb67476fd617e1140133880 | /leetcode/27. Remove Element.py | 389200567c30dff692573da7bd67a5203e14e62b | [] | no_license | cuiy0006/Algorithms | 2787f36f8164ded5252a006f723b570c9091bee9 | 00fd1397b65c68a303fcf963db3e28cd35c1c003 | refs/heads/master | 2023-03-31T13:55:59.191857 | 2023-03-31T03:39:42 | 2023-03-31T03:39:42 | 75,001,651 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | class Solution:
def removeElement(self, nums: List[int], val: int) -> int:
i = 0
j = 0
while i < len(nums):
while i < len(nums) and nums[i] == val:
i += 1
if i == len(nums):
break
nums[j] =... | [
"noreply@github.com"
] | cuiy0006.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.