blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80a6ff4cb5ecc084d016f9301da878f259878fa9 | 68d38b305b81e0216fa9f6769fe47e34784c77f2 | /alascrapy/spiders/digitalspy.py | 0a6d6b49df371dfbc569048703b9ba89f5d402f1 | [] | no_license | ADJet1437/ScrapyProject | 2a6ed472c7c331e31eaecff26f9b38b283ffe9c2 | db52844411f6dac1e8bd113cc32a814bd2ea3632 | refs/heads/master | 2022-11-10T05:02:54.871344 | 2020-02-06T08:01:17 | 2020-02-06T08:01:17 | 237,448,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | # -*- coding: utf8 -*-
from datetime import datetime
from scrapy.http import Request
from alascrapy.spiders.base_spiders.ala_spider import AlaSpider
from alascrapy.lib.generic import get_full_url
import alascrapy.lib.dao.incremental_scraping as incremental_utils
class DigitalSpySpider(AlaSpider):
name = 'digit... | [
"liangzijie1437@gmail.com"
] | liangzijie1437@gmail.com |
bb1c11a5dec23753cf0d15af74e5a1e3f8fb3803 | 0b88201be895a25c8c321481615b4965f529d6da | /CDTB_Seg/model/sentence.py | c4f574f16d8c9e287b9e6e110b3fa970a1cc8c39 | [
"BSD-2-Clause",
"MIT"
] | permissive | NLP-Discourse-SoochowU/segmenter2020 | 1e8335da56b26f52ed48eb462047b9fe9b1e10df | fd71b353c59bcb82ec2cd0bebf943040756faa63 | refs/heads/master | 2023-01-13T23:14:37.078780 | 2020-11-24T05:07:26 | 2020-11-24T05:07:26 | 283,890,012 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # -*- coding: utf-8 -*-
"""
@Author: Lyzhang
@Date:
@Description: 封装句子,句法信息等
"""
from stanfordcorenlp import StanfordCoreNLP
from model.edu import EDU
path_to_jar = 'stanford-corenlp-full-2018-02-27'
nlp = StanfordCoreNLP(path_to_jar)
class Sentence:
def __init__(self, sentence, edus_list):
... | [
"longyin128128@163.com"
] | longyin128128@163.com |
40e1d47660e1a1180f87336736369de34c5b4c7a | 5a93d5eadf55513020c0c5149b2bc8a52d8ea4c0 | /core/ui_mixins/input_panel.py | c491e98d7997e5d3f0827ff5c301b670910427f5 | [
"MIT"
] | permissive | jmcollis/GitSavvy | b14dfe7485aa2d7c37c9bd3615a6b9be9fe274e8 | de7d01539931b4344a296bd71ed87d9754389f6a | refs/heads/master | 2022-10-06T23:38:36.821013 | 2022-09-26T14:21:33 | 2022-09-26T14:21:33 | 165,129,291 | 0 | 0 | MIT | 2019-01-10T20:51:57 | 2019-01-10T20:51:57 | null | UTF-8 | Python | false | false | 398 | py | import sublime
def show_single_line_input_panel(
caption, initial_text, on_done, on_change=None, on_cancel=None, select_text=True):
window = sublime.active_window()
v = window.show_input_panel(caption, initial_text, on_done, on_change, on_cancel)
if select_text:
v.run_command("select_all")... | [
"randy.cs.lai@gmail.com"
] | randy.cs.lai@gmail.com |
0592131ab071183ad4eb44c54e560f11e46ede34 | 1f0ebcb6f428244c3283466c7f98944349f3df48 | /greendoge/wallet/transaction_record.py | 256fa58a22fee0e4a5e238d5ab70ed037423f6ee | [
"Apache-2.0"
] | permissive | ymcage/greendoge-blockchain | 4b53433c26221ea6cf5665b9a134fff25c676e22 | 42d5440c3899419f4aa544908a50b1ed78799c13 | refs/heads/main | 2023-06-10T06:54:40.391343 | 2021-07-07T11:39:31 | 2021-07-07T11:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | from dataclasses import dataclass
from typing import List, Optional, Tuple
from greendoge.consensus.coinbase import pool_parent_id, farmer_parent_id
from greendoge.types.blockchain_format.coin import Coin
from greendoge.types.blockchain_format.sized_bytes import bytes32
from greendoge.types.mempool_inclusion_status im... | [
"83430349+lionethan@users.noreply.github.com"
] | 83430349+lionethan@users.noreply.github.com |
2a5e6f9ac45e880f664a9ce232fab5f208239894 | 544fe02a27cc4d987724b1bf45c2ba2994676521 | /Q6.2_brain_teaser.py | f3c435d0d39f9e66d72d19cb75fb37c344115fe5 | [
"Unlicense"
] | permissive | latika18/learning | 1e7a6dbdea399b845970317dc62089911a13df1c | a57c9aacc0157bf7c318f46c1e7c4971d1d55aea | refs/heads/master | 2021-06-16T19:20:28.146547 | 2019-09-03T06:43:28 | 2019-09-03T06:43:28 | 115,537,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | There is an 8x8 chess board in which two diagonally opposite corners have been cut off.
You are given 31 dominos, and a single domino can cover exactly two squares.
Can you use the 31 dominos to cover the entire board? Prove your answer (by providing an example, or showing why it’s impossible).
_
_____________________... | [
"noreply@github.com"
] | latika18.noreply@github.com |
6439de8c26738686bf36333467e5cb2eb4570782 | c0973d6939ef419ed3d261d95167d537499a553a | /OnePy/builtin_module/backtest_stock/stock_bar.py | 3c54b51c0fd2d7d4c0792869b53a43b9813f685e | [
"MIT"
] | permissive | mj3428/OnePy | 0c6e4be9b4bb36ae66b566dfa85cd44bae2a07de | 8dc13fc21502daa5786aecaa4451ccba32fc8a14 | refs/heads/master | 2020-04-05T10:28:33.550915 | 2018-11-08T04:07:05 | 2018-11-08T04:07:05 | 134,518,682 | 0 | 0 | MIT | 2018-05-23T05:38:12 | 2018-05-23T05:38:11 | null | UTF-8 | Python | false | false | 772 | py | from OnePy.sys_module.models.base_bar import BarBase
class BarAshares(BarBase):
@property
def pre_date(self) -> str:
return self.previous_ohlc['date']
@property
def pre_open(self) -> float:
return self.previous_ohlc['open']
@property
def pre_high(self) -> float:
retu... | [
"chenjiayicjy@126.com"
] | chenjiayicjy@126.com |
2c26f31e646ce45e3dd3e92987df40f489341d47 | 9788d21a60e7f97cd8dcc6d28a280901cfff7d99 | /app/decorators.py | f926a1a5112d53b9c9baa525e6dfced11ed3b4ef | [] | no_license | Tiierr/MovieRental | b928d08b3a139c7c20fbdf1351402d2d8d700ab9 | 69bfaf3726aa7bedb58ef63a47d5e7b4476b08d9 | refs/heads/master | 2021-06-11T23:43:12.271576 | 2017-01-02T15:16:11 | 2017-01-02T15:16:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from functools import wraps
from flask import abort
from flask_login import current_user
from .models import Permission
def permission_required(permission):
"""
检查用户权限的自定义修饰器。
如果用户不具有指定权限, 则返回 ``403`` 错误码, 即 HTTP ``禁止`` 错误。
"""
def decorator(f):
@wraps(f)
def decorated_funct... | [
"rayyu03@163.com"
] | rayyu03@163.com |
17ece5964bcf66ee4adb69316fe20ee8aef56d8d | 4fc87c7c55d431943eba76caaa76cc889e99bd3f | /npf/contrib/address/migrations/0002_auto_20151027_1114.py | c5dad8fa654fa93453863a66fbca651cc1f86e22 | [] | no_license | Bonasolvo/npf-dev-roles | c774359b79642ae9ca2c82daeb0591677bd8e88c | dbde9493f2d23fd238dd3a6d8771bbbc5a650724 | refs/heads/master | 2016-09-01T05:35:50.246086 | 2015-12-15T07:02:40 | 2015-12-15T07:02:40 | 48,026,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import fias.fields.address
class Migration(migrations.Migration):
dependencies = [
('fias', '0001_initial'),
('address', '0001_initial'),
]
operations = [
migrations.CreateMo... | [
"tymashh@Mac-Tymashh.local"
] | tymashh@Mac-Tymashh.local |
2144800d8fcec458abe686f8dab5297deb877026 | 8a1cc9342312f794c48a857de1444a70491a75fa | /item/admin.py | 6d0f120c83410ffb372120fdb92117f26cefbc13 | [] | no_license | BijoySingh/Project-Hermes-Django | 7adaf6757bc605e9f3781d915c4250bcc348fb47 | 7cb50402e612ea287d5922a2716a30b7888a0d70 | refs/heads/master | 2016-09-01T07:04:05.259487 | 2016-04-09T10:25:21 | 2016-04-09T10:25:21 | 55,672,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from django.contrib import admin
# Register your models here.
from item.models import Item, Comment, Photo, Rating, Reaction
@admin.register(Item)
class ItemAdmin(admin.ModelAdmin):
list_display = ['id', 'title', 'latitude', 'longitude', 'rating', 'author']
@admin.register(Comment)
class CommentAdmin(admin.Mod... | [
"bijoysingh693@gmail.com"
] | bijoysingh693@gmail.com |
234d119020fbf20a956843715d516476ec476f75 | 7b33e9ab949ef2cd985e56abea4a7c0e5d53e5a5 | /examples/enwik8_deepspeed/train.py | 40980f744df6c18b7b981b8682c8aa486aabcbfc | [
"MIT"
] | permissive | karim-ahmed/linear-attention-transformer | 3a416226b5f0707756e3044e6dd1dd65f6239ba7 | dd3f7b63fe2235cba97ab1a95840d0484c70c068 | refs/heads/master | 2023-04-04T01:14:37.871715 | 2021-04-14T03:14:44 | 2021-04-14T03:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | import deepspeed
from linear_attention_transformer import LinearAttentionTransformerLM
from linear_attention_transformer.autoregressive_wrapper import AutoregressiveWrapper
import argparse
import random
import tqdm
import gzip
import numpy as np
import torch
import torch.optim as optim
from torch.nn import functional... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
0e8a1b16ca9cc75722a90fa7c6b30afde32791a2 | 2e0908cf2dce87036e9b9d32f23d7b7e20b2127f | /tests/test_algebra_onnx_operator_mixin_syntax.py | 76c44cd4a7b0b1415b9dfb9445e83e909f87b88a | [
"MIT"
] | permissive | jtpils/sklearn-onnx | a74b621c47ee02f4b0775c6f99091f6d79873650 | 5a065b767ec0e658f671e6313c2a3392b0dc81d6 | refs/heads/master | 2020-06-21T10:52:57.936832 | 2019-07-17T15:53:40 | 2019-07-17T15:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,561 | py | import unittest
import numpy as np
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.cluster import KMeans
from sklearn.pipeline import make_pipeline
from skl2onnx import convert_sklearn, to_onnx, wrap_as_onnx_mixin
from skl2onnx.common.data_types import FloatTensorType
from skl2onnx.algebra.onnx_op... | [
"noreply@github.com"
] | jtpils.noreply@github.com |
a81398619c9e57b2cc4e2944013390a7e0a0f278 | cad762658ab8326d7f43bba6f69df35a8b770e34 | /pymarkdown/extension_impl.py | 3cbc7feccab92d85f19b654a097b64f69975075c | [
"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 | 2,698 | py | """
Module to allow for the details on the extension to be encapsulated.
"""
# pylint: disable=too-many-instance-attributes
class ExtensionDetails:
"""
Class to allow for the details on the extension to be encapsulated.
"""
# pylint: disable=too-many-arguments
def __init__(
self,
... | [
"jack.de.winter@outlook.com"
] | jack.de.winter@outlook.com |
e8d0c61636321004aa67ee998a47d378eddd38ae | 52a4d869976a97498bdf56a8d0ff92cac138a136 | /Bioinformatics Textbook Track/Chapter 2/rosalind_ba2e.py | 906b2d24c3cd9f5d49524b64c49fbd545e591f26 | [] | no_license | aakibinesar/Rosalind | d726369a787d848cc378976b886189978a60a3a5 | 375bbdbfb16bf11b2f980701bbd0ba74a1605cdb | refs/heads/master | 2022-08-18T09:36:00.941080 | 2020-05-24T18:49:38 | 2020-05-24T18:49:38 | 264,722,651 | 0 | 0 | null | 2020-05-17T17:51:03 | 2020-05-17T17:40:59 | null | UTF-8 | Python | false | false | 1,608 | py | def greedymotifsearch(dna,k,t):
best = [s[:k] for s in dna]
for i in range(len(dna[0])-k+1):
tempbest = [dna[0][i:i+k]]
for m in range(1,t):
matrix = motifsToProfile(tempbest) # different from ba2d
tempbest.append(profileMostProbablekmer(dna[m],k,matrix))
if scor... | [
"noreply@github.com"
] | aakibinesar.noreply@github.com |
3767e7c945abe719f74b7ea747b807c21211ab0e | 2f89231a207b89acda1c46aba0b03572fb1da8aa | /main.py | b97b41680283a8d71d2b5d7c127bf9028765e375 | [] | no_license | BentleyJOakes/wordpress_extractor | 8649487562a7113effced06cd06a50ffcf53dff9 | 02891890b801515e2c7873ccb95f62692a354fa3 | refs/heads/master | 2023-01-30T01:50:43.290318 | 2020-12-09T22:18:13 | 2020-12-09T22:18:13 | 297,141,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import argparse
from scrapy.crawler import CrawlerProcess
from WordpressSpider import WordpressSpider
from scrapy.utils.project import get_project_settings
class WordPressExtractor:
def __init__(self):
self.process = CrawlerProcess(get_project_settings())
def parse(self, start_urls):
for su... | [
"bentleyjoakes@gmail.com"
] | bentleyjoakes@gmail.com |
49aeb0cb38e74c85e659bb3dc53c57a0ff8bf0bd | c90674d955fe1399c0e99cf34437e583d1cf9fb9 | /application6-webcam motion detector/facedetection/script_face_detector.py | 9e1d75fde667176ccd297abb50c5542b6827f488 | [] | no_license | TrellixVulnTeam/My_python_code_QQZ2 | 556878cbe4f8d6d92e71f48285a6d2439b10ca81 | 8cd8b697d92e1a79cce109baf560eeff27717ce8 | refs/heads/master | 2023-03-19T15:26:35.836114 | 2018-06-29T14:09:06 | 2018-06-29T14:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import cv2
face_cascade=cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
img=cv2.imread("people-6.jpg")
gray_img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
faces=face_cascade.detectMultiScale(gray_img,scaleFactor=1.05,minNeighbors=5)
print(type(faces))
print(faces)
for x,y,w,h in faces:
img=cv2.r... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
6b676d38806dcbf551a398d20280036d0eda2c59 | 4631798b64f2118b7d8e64483a14d7485163358b | /pizzaim.py | 899a6b086debd422f3812a74737846fb8e184845 | [] | no_license | royrowe/python | 288680aba27b8c2d46368250b45fb1672427fe6a | dc7cebd56aa1bee7b2afd91e3a2a4b03f1775ba5 | refs/heads/master | 2020-04-15T20:05:02.587794 | 2019-01-10T02:53:08 | 2019-01-10T02:53:08 | 164,978,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
'''
@File :8.6.1_pizza.py
@Copyright :luoming
@Date :
@Desc :
'''
def make_pizza(size,*toppings):
'''概述要制作的匹萨'''
print("\nMaking a "+str(size)+"-inch pizza with the following toppings:")
for topping in toppings:
print("-"+ topping) | [
"your email"
] | your email |
30d50006b8f6f9c5ac6db3ed6ed1ae6ae151b195 | 312d8dbbf980bf164f210e7935b17dc08d64ff87 | /Model/repeat1_link_prediction_appeared_utilize_existing_attribute/STGGNN/main.py | 97389c092854b118fe55455b3f04168c8e8d4bd8 | [] | no_license | hsack6/OWGP_NBA | 27dafbd6e59c17ce4a66e92132ee56782e2126bf | 56656efb5884cd9f806e476a92c5e6485c71adeb | refs/heads/master | 2023-02-25T09:52:05.165494 | 2021-02-03T12:44:04 | 2021-02-03T12:44:04 | 288,363,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,315 | py | import argparse
import random
import pandas as pd
import torch
import torch.nn as nn
import torch.optim as optim
from model import STGGNN
from utils.train import train
from utils.valid import valid
from utils.test import test
from utils.inference import inference
from utils.data.dataset import BADataset
from utils.da... | [
"yamasaki.shohei@ist.osaka-u.ac.jp"
] | yamasaki.shohei@ist.osaka-u.ac.jp |
9b382f90b9dd2ca867af5f2dcd6efb0088ac50d7 | ae7e36ede21f38fce15d31caf12d235d76276d54 | /tests/component/deb/test_import_dsc.py | 41d081e5dee9013cb645ec380bed530384e7e13e | [] | no_license | pombreda/git-buildpackage-rpm | 08e658847b5608b21f59abb2f7da0ebec333df45 | bd72c30f029c2099ec3ed792b82eefcaedbc79b6 | refs/heads/master | 2020-12-30T19:45:18.763908 | 2015-03-31T15:59:37 | 2015-04-01T06:48:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | # vim: set fileencoding=utf-8 :
#
# (C) 2013,2014 Guido Günther <agx@sigxcpu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your opt... | [
"agx@sigxcpu.org"
] | agx@sigxcpu.org |
3092838cfce71af4c34d48f0d6bbbaf825881518 | bc565ca3361eb7119a6ff757201e550c20e1ea84 | /Programmers/Lv1/lv1_가운데글자가져오기.py | a1018cc534f5910aa9e173681eb9b1391cd9d583 | [] | no_license | seoyoungsoo/CodingTest-Python | 1f9a3caaa3a424f4f7bd0e01a30664b183aaf5eb | d47cb46dd78f52b7cfa26846e8e77b63a931161e | refs/heads/master | 2023-04-21T20:25:46.663686 | 2021-05-17T12:17:21 | 2021-05-17T12:17:21 | 351,439,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # 가운데 글자 가져오기
def solution(s):
answer = ''
slen = len(s)
if slen % 2 == 0:
mid = int(slen / 2 - 1)
answer += s[mid]
answer += s[mid + 1]
else:
mid = int(slen / 2)
answer += s[mid]
return answer
# testcase 1
s = "abcde"
print(solution(s))
| [
"iulove37@naver.com"
] | iulove37@naver.com |
ab908d2c9e608b5422fd8f8fed60465b577c9043 | 587dbdf730b6cc3e693efc5dca5d83d1dd35ee1a | /leetcode/1-300/25.py | 933cf1a3090bdb12225bd9e756ef2cfc34a4c9f9 | [] | no_license | Rivarrl/leetcode_python | 8db2a15646d68e4d84ab263d8c3b6e38d8e3ea99 | dbe8eb449e5b112a71bc1cd4eabfd138304de4a3 | refs/heads/master | 2021-06-17T15:21:28.321280 | 2021-03-11T07:28:19 | 2021-03-11T07:28:19 | 179,452,345 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # -*- coding: utf-8 -*-
# ======================================
# @File : 25.py
# @Time : 2020/5/16 0:07
# @Author : Rivarrl
# ======================================
from algorithm_utils import *
class Solution:
"""
[25. K 个一组翻转链表](https://leetcode-cn.com/problems/reverse-nodes-in-k-group/)
"""
... | [
"1049793871@qq.com"
] | 1049793871@qq.com |
1f59d88201b38289c14c3124ed3a3da301396303 | 6c8d8b1c5b02e3181efd41b5b227f8905f474fa9 | /clustering/clustering_categorical_peoples_interests/main.py | f024becc456028afc3f32d2de04be24de61c83c5 | [] | no_license | DXV-HUST-SoICT/data_mining_mini_projects | 9203990a620546fb61ee571090ef51e16242054d | c1010a4f39b5b114ad58ae1f3224435c3a84f50e | refs/heads/master | 2022-11-01T08:38:21.141429 | 2020-06-16T12:01:32 | 2020-06-16T12:01:32 | 257,429,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | from time import time
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import joblib
from sklearn import metrics
from sklearn.cluster import KMeans, DBSCAN
from sklearn.datasets import load_digits
from sklearn.decomposition import PCA
from sklearn.preprocessing import scale
from sklearn import pr... | [
"vuong.1998@gmail.com"
] | vuong.1998@gmail.com |
74f80006fb22a26cc258bf1607e458416ed5a188 | a34e3d435f48ef87477d3ae13ca8a43015e5052c | /fw2/z.py | 8986497000a50feaecab9d3e7771b510e72b2e36 | [] | no_license | haehn/sandbox | 636069372fc7bb7fd72b5fde302f42b815e8e9b0 | e49a0a30a1811adb73577ff697d81db16ca82808 | refs/heads/master | 2021-01-22T03:39:03.415863 | 2015-02-11T23:16:22 | 2015-02-11T23:16:22 | 26,128,048 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | #!/usr/bin/env python
import os
import sys
import _zstack
def print_help( script_name ):
'''
'''
description = ''
print description
print
print 'Usage: ' + script_name + ' INPUT_DIRECTORY'
print
#
# entry point
#
if __name__ == "__main__":
# always show the help if no arguments were specified
if ... | [
"haehn@seas.harvard.edu"
] | haehn@seas.harvard.edu |
84b57fa7d45db79a5a17f56d0c3453631c7fc231 | ab39a61ff9882e8b06ea6f0d2939dbccb7b75bd5 | /src/views.py | 1c48266966e228cc0569f6405f284cbb62f5bc27 | [] | no_license | ShipraShalini/NotificationCenter | 1be9c0774bfce2d75f3c31bef852150d7cb60281 | e544a53645b411977c19c7317b80cefe35e8f720 | refs/heads/master | 2021-01-19T21:40:35.884152 | 2017-02-26T19:06:43 | 2017-02-26T19:06:43 | 82,533,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | from apscheduler.jobstores.base import JobLookupError
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.views import View
from django.views.generic import FormView
from src.forms import NotificationForm, ModifyNotificationForm
from src.notification_utils import get_notifi... | [
"code.shipra@gmail.com"
] | code.shipra@gmail.com |
a70e6430dc82722e95b7aa187dba90f4f65b2478 | d860a2c1fa8fffc76a9101e4f91cecc80c27e802 | /leetcode/388_Longest_Absolute_File_Path.py | b5c85ee31daee9b4d6fef541d42bacebabeddfca | [] | no_license | heroming/algorithm | 80ea8f00ac049b0bc815140253568484e49c39e3 | 18e510f02bff92bc45cceb7090a79fbd40c209ec | refs/heads/master | 2021-01-19T01:27:31.676356 | 2019-06-09T08:51:16 | 2019-06-09T08:51:16 | 62,952,889 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def show(self) :
it, v = self, []
while it :
v.append(it.val)
it = it.next
print v
class TreeNode(object):
def __i... | [
"heroming7788@gmail.com"
] | heroming7788@gmail.com |
3b7225d69c4c077284ccdc74dae85cbbc5634161 | 37530ffbb3d14cc9c7307fb4b1a276d9d26516dc | /api/migrations/0015_auto_20180831_1847.py | cf66e98858b6394528d104f6c5617359338775ad | [] | no_license | aballah-chamakh/Repair-api | 567a4f81107569bec67072fa598aa76384343752 | 22574a9b69df8d62c5f027146fc21d6abf4b245a | refs/heads/master | 2020-04-10T12:46:32.309178 | 2018-12-09T11:20:07 | 2018-12-09T11:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # Generated by Django 2.0.7 on 2018-08-31 16:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0014_auto_2018063... | [
"chamakhabdallah8@gmail.com"
] | chamakhabdallah8@gmail.com |
2aa60f59119f97962eebc18716cb636a07ebabe5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/dc3335ee46ab9f650b19885e8ade6c7a/snippet.py | cc0b25145b92da727de388094323b861968c2325 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,929 | py | #!/bin/python
from flashtext.keyword import KeywordProcessor
import random
import string
import re
import time
def get_word_of_length(str_length):
# generate a random word of given length
return ''.join(random.choice(string.ascii_lowercase) for _ in range(str_length))
# generate a list of 100K words of rando... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
c164d54f8fd02d4a2faf4337c691176cb3244813 | 11d3f0fcf4a968a6b612f2b85d242cbbbabc7e07 | /services/convert-document/test.py | ba6972a0ac5a807125ea05f14912997425a99161 | [
"MIT"
] | permissive | OpenUpSA/eskom-enquiry | 21d728e6e7ceceed84fe646a439d9aee8c4222d5 | 71dfa8aa00688a83df24a4afaeb9e5639565bbbb | refs/heads/master | 2023-05-11T11:23:18.561070 | 2018-08-24T12:51:55 | 2018-08-24T12:51:55 | 137,739,474 | 0 | 1 | MIT | 2023-05-01T19:47:30 | 2018-06-18T10:40:42 | Python | UTF-8 | Python | false | false | 654 | py | import os
import sys
import signal
import requests
from multiprocessing import Pool
signal.signal(signal.SIGINT, signal.SIG_IGN)
url = os.environ.get('UNOSERVICE_URL')
def request(i):
path = sys.argv[1]
files = {'file': open(path, 'rb')}
data = {'extension': 'docx'}
# print('send request')
res = ... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
1c7a40531f47be5347ae4c77918c932197355793 | 982fac39f5a2232f3976789bbc265cdc2cc8be08 | /bqskit/compiler/search/generator.py | 81d1f4eeac8e6ce93567fb2d735539f9377ff711 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | mtreinish/bqskit | 8516575eef46241e426f78b96d047987e6c9b2df | 3083218c2f4e3c3ce4ba027d12caa30c384d7665 | refs/heads/master | 2023-08-06T20:11:01.278308 | 2021-08-09T19:55:30 | 2021-08-09T19:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | """This module implements the LayerGenerator base class."""
from __future__ import annotations
import abc
from typing import Any
from bqskit.ir.circuit import Circuit
from bqskit.qis.state.state import StateVector
from bqskit.qis.unitary.unitarymatrix import UnitaryMatrix
class LayerGenerator(abc.ABC):
"""
... | [
"edyounis123@gmail.com"
] | edyounis123@gmail.com |
b2b5040251b52f2a7d00a3fcd69aff1df9c96f97 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2408/60648/267250.py | 42fd2a73853aa61e8e1101e5966296a105b18cc4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | class Solution:
def numPrimeArrangements(self, n: int) -> int:
# (sum(prime)) 的阶乘 乘以 (n - sum(prime)) 的阶乘
def countPrimes(n: int) -> int:
if n < 2:
return 0
prime = [1] * (n + 1)
prime[0] = prime[1] = 0
for i in range(2, int(n**0.5) +1)... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b09d38372acd5147033c1441a46c1221bd6cffee | 5442f2f71e36419ad23894d3dd527837029e42f3 | /ramda/memoize.py | 90f43e8a162f1d4455b1acae4b5aa05196ba2aa1 | [
"MIT"
] | permissive | zequequiel/ramda.py | 5e6a23765598550ecaf1a76b785f4fde7bc11ea4 | eac054163de535520659ce6269536355d5e89865 | refs/heads/master | 2020-09-11T16:43:07.989407 | 2019-09-06T12:07:26 | 2019-09-06T12:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | import hashlib
import json
from ramda.memoize_with import memoize_with
def memoize(f):
"""Creates a new function that, when invoked, caches the result of calling fn
for a given argument set and returns the result. Subsequent calls to the
memoized fn with the same argument set will not result in an additional
call... | [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
6907cd3956eefc7814e16763b87275820f02964b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /xdSKkXQkkMroNzq8C_8.py | 6a7c8f49d0986abe2427cee6cbaff07659418e65 | [] | 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 | 521 | py | """
Create a function that counts how many D's are in a sentence.
### Examples
count_d("My friend Dylan got distracted in school.") ➞ 4
count_d("Debris was scattered all over the yard.") ➞ 3
count_d("The rodents hibernated in their den.") ➞ 3
### Notes
* Your function must be case-insensi... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
78d5a9d6714ee5729fc953d355fd9ece21e45447 | b507751bb8adbf0c3270e399dab00259371afd05 | /setup.py | aa38ce6ee4a06ff0d1640bb6106e9f645240be61 | [] | no_license | sdkwe/pywe-component-token | 2c7bd3fe05b95dcd70b5c49f516e8936519b9a73 | 020d1be06ffd0d8a79e5cb34dd9ecb4a09d740ed | refs/heads/master | 2020-03-07T19:05:16.951405 | 2018-05-01T20:10:31 | 2018-05-01T20:10:31 | 127,661,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | # -*- coding: utf-8 -*-
from setuptools import setup
version = '1.1.0'
setup(
name='pywe-component-token',
version=version,
keywords='Wechat Weixin Component Token',
description='Wechat Component Token Module for Python.',
long_description=open('README.rst').read(),
url='https://github.com... | [
"brightcells@gmail.com"
] | brightcells@gmail.com |
69380cac821df4b434fe8e0bbea627355081cb50 | 161fd6370ffa0b35ecd50719d6266224da597ee0 | /Python/Django/sports/views2.py | 23bfca83cec0e4ed4b02022eb70bc98072091a6a | [] | no_license | ebergstein/DojoAssignments | a30fd8b36442bff2a4253902a591ad11f191fc12 | 3ad9ac65073c733ead32b93ce4be19af5369fccf | refs/heads/master | 2021-06-19T09:48:23.100713 | 2017-06-30T04:24:35 | 2017-06-30T04:24:35 | 82,743,546 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from django.shortcuts import render, redirect
from .models import League, Team, Player
from . import team_maker
def index(request):
context = {
"leagues": League.objects.filter(name__contains="Womens"),
""""teams": Team.objects.all(),
"players": Player.objects.all(),"""
}
return render(request, "leagues/inde... | [
"ebergstein@sbcglobal.net"
] | ebergstein@sbcglobal.net |
e2cc167ab3cd9c985b8979c1c3ad79f7754354a2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03494/s213100148.py | 504f8df2d6619e1e1087cee14a9f5a8c697d6b08 | [] | 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 | 173 | py | N = int(input())
A = list(map(int,input().split()))
def X(x):
y = 0
while x%2==0:
x = x/2
y = y+1
return y
a = [X(A[i]) for i in range(0,N)]
print(min(a))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7e006593e39f695a39c0508dbad1b2e8fa0889c9 | 90be755a741d6c93dd59d4acef8b27b4cf93ff54 | /src/elsia/scripts/coarse2fine.py | 4012618330283e3d1b0f119612ad5aaeaa7aa7c6 | [] | no_license | karry3775/Elsia_ws | 05aa5786a6f3f64b70c7ceafead6d72d4ca18bab | 031f8006e9a439d9947be5ed288a666f20fca3a7 | refs/heads/master | 2023-02-21T05:21:10.842475 | 2021-01-23T14:58:57 | 2021-01-23T15:21:46 | 326,032,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,529 | py | #!/usr/bin/env python
import rospy
from nav_msgs.msg import Odometry # to get the laser cross track and abs yaw
from std_msgs.msg import String # to get the block_val message
from geometry_msgs.msg import Twist # for cmd_vel
from tf.transformations import euler_from_quaternion, quaternion_from_euler
import math as m... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
73f12fed22111fd0e30c62b8b0e51fb76df8a6bd | c1d5aeaa30418507610d3f1364ef24759b41e86d | /tango_with_django_project/settings.py | a73a709671e694d9d025eba696db1505d946ba6b | [] | no_license | kydkang/workspace8 | 7c368f3549e40dd62bf5aa126747aa83f14f09a1 | bc17b6a1cdf0e4b025e844eb5cf33f53a629875f | refs/heads/master | 2020-03-12T13:49:50.047181 | 2018-04-23T06:44:12 | 2018-04-23T06:44:12 | 130,651,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | """
Django settings for tango_with_django_project project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/... | [
"you@example.com"
] | you@example.com |
fc8dd96f4980bb48684fbfa0034cb7b99912c982 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/nextdns/test_init.py | fb9ea74509e9554bd31f080eb5f5aa471a463f55 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 1,806 | py | """Test init of NextDNS integration."""
from unittest.mock import patch
from nextdns import ApiError
from homeassistant.components.nextdns.const import CONF_PROFILE_ID, DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import CONF_API_KEY, STATE_UNAVAILABLE
from homeassistant.c... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
c268cd0eb69a97954d3fe683c3c669a4afee24df | 02e9e67f6fd0d7dd6c88620f78923afa0ea639d1 | /Classes/Examples/Lesson 2/animal_tester.py | adaf99c2bc0d252784ad1bd762666685158ece31 | [] | no_license | fbhs-cs/PreAPCS-classcode | 55823b0f16333c35650785b4dd92ae03cd6b4768 | ef1355c04fcdbb3c3d4e16c4aae20acfbc833c1c | refs/heads/master | 2021-03-27T19:08:49.479105 | 2018-04-06T21:21:23 | 2018-04-06T21:21:23 | 103,399,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | import animal
def main():
print("Creating dogs...")
try:
dog1 = animal.Dog(name="Drama",gender="female",age=14,breed="Chow/Lab")
dog2 = animal.Dog(name="Santa's Little Helper",gender="male",age=3,breed="Greyhound")
dog3 = animal.Dog(name="Einstein",gender="male",age=38,breed="Sheepdog")... | [
"cpurdy@flourbluffschools.net"
] | cpurdy@flourbluffschools.net |
0dc63cb0e85c77c53207e0d69ae4bae808320782 | ce7c414f098e3ea6674bec05d40345d0047bdbe5 | /basic07.py | 4d9fdf47767336fb17e20427de88584fafe1803e | [] | no_license | jun-yoshiyoshi/python_plactice100 | 0545783d199c04ebd5b53b354c5dc50c52a99b6e | 466dc39341cad50594c957ae60d5d00c254d06f7 | refs/heads/main | 2023-08-11T06:29:41.711413 | 2021-09-14T00:59:38 | 2021-09-14T00:59:38 | 406,175,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # if,elif,else fizzbuzz ワンライナー
for i in range(1, 31):
if i % 15 == 0:
print('fizzbuzz')
elif i % 3 == 0:
print('fizz')
elif i % 5 == 0:
print('buzz')
else:
print(i)
for i in range(1, 51):
print("Fizz"*(i % 3 < 1)+"Buzz"*(i % 5 < 1) or i)
| [
"yoshi.jun.yoshi.jun0621@gmail.com"
] | yoshi.jun.yoshi.jun0621@gmail.com |
41c70140030ead7bcb3232f412ecfb56956c7900 | 22ccc673a522b52f2678b6ac96e3ff2a104864ff | /digest/migrations/0015_auto_20150731_0859.py | fbd6d24eea0abcd05e835877f6ddb37710feb92a | [] | no_license | ivlevdenis/pythondigest | 07e448da149d92f37b8ce3bd01b645ace1fa0888 | f8ccc44808a26960fb69a4c4c3491df3e6d3d24e | refs/heads/master | 2021-01-18T02:09:42.121559 | 2016-05-15T22:44:34 | 2016-05-15T22:44:34 | 58,350,368 | 0 | 0 | null | 2016-05-09T05:21:39 | 2016-05-09T05:21:39 | null | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [('digest', '0014_auto_20150731_0859'), ]
operations = [migrations.AlterField(
model_name='item',
name='tags',
field=models.... | [
"sapronov.alexander92@gmail.com"
] | sapronov.alexander92@gmail.com |
865946e4d753262386d009e877aa101002220064 | 48cb50826c7774f320c9b4d51a287dcb4e805d8e | /jsk_pcl_ros_utils/cfg/PolygonArrayAreaLikelihood.cfg | 5c6645133f23ae642c1b94f2a27d657fd33ee98b | [] | no_license | huangxliang/jsk_recognition | 921d28771f5a1c1dde6dcdaa9289dafdde81b310 | 8c6b46d0ca9ccb00f033ceef305b35edafb32162 | refs/heads/master | 2021-01-18T12:56:05.945787 | 2016-03-11T05:50:08 | 2016-03-11T05:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | cfg | #!/usr/bin/env python
# set up parameters that we care about
PACKAGE = 'jsk_pcl_ros_utils'
try:
import imp
imp.find_module(PACKAGE)
from dynamic_reconfigure.parameter_generator_catkin import *;
except:
import roslib; roslib.load_manifest(PACKAGE)
from dynamic_reconfigure.parameter_generator import... | [
"garaemon@gmail.com"
] | garaemon@gmail.com |
ebf1ee4cdfea3e7fa89adbca475840bc63d22534 | dc5d8dbbb4c6f296a95bea7069d13de38db00ac6 | /lines.py | 2d7e386e0f375c07c2fc1d2ac950771ef6d3ee0d | [] | no_license | the-isf-academy/drawing | 906591afa279529cb7a6208183188b01651b2fcb | 652fea4754d3a465b55aaeb6673d989402a06350 | refs/heads/master | 2021-10-14T11:34:57.447129 | 2021-09-28T02:45:15 | 2021-09-28T02:45:15 | 205,507,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | # lines.py
# by Chris Proctor
# Helper functions for playing with how the turtle draws
# =============================================================================
# ! Advanced !
# =============================================================================
# This module contains some fancy code that we don't expe... | [
"chris.proctor@gmail.com"
] | chris.proctor@gmail.com |
03f40f445a153af0590c13f0c05606a782782605 | 4c9580b2e09e2b000e27a1c9021b12cf2747f56a | /chapter02/app02/urls.py | 23e633effc2aff2db92d1f3dca1fc3e48b57a431 | [] | no_license | jzplyy/xiaoyue_mall | 69072c0657a6878a4cf799b8c8218cc7d88c8d12 | 4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc | refs/heads/master | 2023-06-26T02:48:03.103635 | 2021-07-22T15:51:07 | 2021-07-22T15:51:07 | 388,514,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.urls import path, re_path
from app02 import views
urlpatterns = [
path('blog-list/', views.blog, {'blog_id': 3}),
]
| [
"jzplyy@126.com"
] | jzplyy@126.com |
c8b0206da89a30aca71601e901c93e63d45782b8 | ffdcd340fdef833bfd9af89d779845ba2991a08c | /customer/migrations/0150_auto_20190325_1616.py | c47d4b86a52930c61ecb4fef98dc24e10b8ed1a2 | [] | no_license | calvinti12/Goat | 64a122f697e06855bb53c37c8b7472a14c1030a3 | 2993dc48296cc1c6dd41651c05752647f074cb70 | refs/heads/master | 2020-07-03T19:16:26.942485 | 2019-08-12T20:17:43 | 2019-08-12T20:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 2.1.4 on 2019-03-25 20:16
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0149_auto_20190323_1312'),
]
operations = [
migrations.AlterField(
model_name='orderrequest',
... | [
"jermol@mtgfirst.com"
] | jermol@mtgfirst.com |
42eec63fcd92eef17a0881c4d0abc24e596ff8f6 | 26d5c795d8aa83bf5cb3f228675ff51e2f704f57 | /scripts/bqexport | bfef9fe73be2b701637137c11c7a7d955f03f311 | [] | no_license | binarymachines/mercury | 8e13bb10c67a056fe88e02f558d73f1f1b95d028 | db3e2425f4e77a44a97c740f7fff90312a1bd33f | refs/heads/master | 2023-07-08T11:35:26.867494 | 2023-06-25T00:46:23 | 2023-06-25T00:46:23 | 94,708,610 | 2 | 6 | null | 2023-02-15T21:50:06 | 2017-06-18T19:31:50 | Python | UTF-8 | Python | false | false | 4,413 | #!/usr/bin/env python
'''
Usage:
bqexport [-p] <project> <dataset> --table <table> --bucket <google_bucket> --format=<fmt> [--delimiter=<delimiter>] [--directory=<directory>]
bqexport [-p] <project> <dataset> --table-list-file <tables> --bucket <google_bucket> --format=<fmt> [--delimiter=<delimiter>] [--d... | [
"binarymachineshop@gmail.com"
] | binarymachineshop@gmail.com | |
9ee758cd3a968a7234a34b8742d1648503bc6124 | 1e1f303cf81da16dec2aa2a5e04c0f3e420ffae8 | /scripts/pypi/tests/build_pypi_package_test.py | cbda69b39a3e0d89bb656211bced2608121c5b8d | [
"MIT"
] | permissive | brianjo/pyre-check | ba56e727dafb0c626b6dd0ba414c0df94e762475 | faae20632480948d943d094895c1a2c025e9d82a | refs/heads/master | 2021-08-07T08:43:15.473504 | 2020-12-08T18:46:48 | 2020-12-08T18:46:48 | 250,374,200 | 0 | 0 | MIT | 2020-03-26T21:20:21 | 2020-03-26T21:20:20 | null | UTF-8 | Python | false | false | 2,854 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import tempfile
import unittest
from pathlib import Path
from unittest.mock import Mock, patch
from ..build_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
588945412a87dad60b0a723b7af48d15a27e0609 | b3b5902f0cd292defdc1acccd8fa5c7890e8ba5d | /SPORTS/sports_spiders/sports_spiders/pipelines.py | 4b51184e5232bc55a5bcf189c34fc18983dce0fa | [] | no_license | headrun/SWIFT | 83d3d926244e472813ef79b304ac1639750904a3 | 68bdd09d83ee2967a2378375d9b2cb6232a3a0cf | refs/heads/master | 2023-01-25T00:29:57.810604 | 2020-12-01T01:22:16 | 2020-12-01T01:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import MySQLdb
import os
import copy
from scrapy import signals
from sports_spiders import configUtils
from sports_spiders import game_utils as gu
from ... | [
"charan@headrun.com"
] | charan@headrun.com |
bf0e511132c09ac1f4357a51bc4e9d9d89c5c22a | df541a802b2dfa89d3aab14af627358dc7c76e6e | /APP自动化/StoneUIFramework/testcase/空间/test3_团队人事任免/TeamAssignJob003.py | 0c43aa4c91f7c63a4792fccfbf00acf0681abc82 | [] | no_license | gupan2018/PyAutomation | de966aff91f750c7207c9d3f3dfb488698492342 | 230aebe3eca5799c621673afb647d35a175c74f1 | refs/heads/master | 2021-09-07T19:44:20.710574 | 2017-12-22T15:58:23 | 2017-12-22T15:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | __author__ = 'Administrator'
# -*- coding: utf-8 -*-
import unittest
from time import sleep
import logging
from StoneUIFramework.public.common.Connect import Connect
from StoneUIFramework.public.common.publicfunction import Tools
from StoneUIFramework.config.globalparam import GlobalParam
from StoneUIFramework.public.... | [
"610077670@qq.com"
] | 610077670@qq.com |
fe582f20576126607ef96485a1246221704d6f63 | 313b64057838ae28ebca3d8bfff191cb13b80c61 | /101/Q110.py | 30d49ef376657c2ad1d4fa9dd4f9ec5c2c727348 | [] | no_license | veblush/Euler | e78961fb378be8e7c25070131e0adb72a83381f2 | de54a77da41b3b58642055169bf2ea4090dbefb8 | refs/heads/master | 2016-08-05T09:12:16.775008 | 2013-03-13T08:31:11 | 2013-03-13T08:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | import math
import bisect
# ready prime array
primes = [2]
for i in xrange(3, 1000+1):
ii = int(math.sqrt(i))
composite = False
for p in primes:
if p > ii:
break
if i % p == 0:
composite = True
break
if not composite:
primes.append(i)
f = lambda a: reduce(lambda x, y: x*y, (k+1 f... | [
"veblush+git@gmail.com"
] | veblush+git@gmail.com |
775f2b2ed2fdb72a82f704927dee417183e0c016 | c77d8dd4042d29150da277184a06834fb551c953 | /env/lib/python3.9/site-packages/split_settings/tools.py | 307d347a226f30c00a2e6f81dd9b49cd11a66cb6 | [] | no_license | josephaw1022/centralizedAPI | 9978858ff6e906337062ab73b7e36576b0796a39 | 5850a7869519250912279c3a78d6b9585c9591de | refs/heads/master | 2023-06-12T17:12:20.128798 | 2021-07-05T21:24:52 | 2021-07-05T21:24:52 | 383,256,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | # -*- coding: utf-8 -*-
"""
Organize Django settings into multiple files and directories.
Easily override and modify settings. Use wildcards and optional
settings files.
"""
import glob
import inspect
import os
import sys
from importlib.util import module_from_spec, spec_from_file_location
__all__ = ('optional', 'i... | [
"josephsims1@gmail.com"
] | josephsims1@gmail.com |
bcae5eb42cbe4e4b38d8b5de33efb5ba30dcb142 | a836c17c1e8cfcc79f85a3f05e1a5c126e85da75 | /login/views.py | 587513fa07253c62b1d6c55ed1fa9cb5fad30159 | [] | no_license | Rabidza/hackathon | 949729a0b8f0c5d1f18e054700a032630613e991 | 807399892f43fb67a26837080e49fb1773ddee8c | refs/heads/master | 2021-01-10T16:10:34.371846 | 2016-01-06T06:34:25 | 2016-01-06T06:34:25 | 45,219,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | #views.py
from login.forms import *
from django.contrib.auth.decorators import login_required
from django.contrib.auth import logout
from django.views.decorators.csrf import csrf_protect
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.template import RequestConte... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
a6bcd8507b54ca4a44c6428e7a49a7801f35cd74 | 13d0ad57a2f5deb83593e73843be7cbeeaad8d3d | /medium/knight_probability.py | be06b5a4f1c93083f6686ced4cbb0d22268fbe2f | [] | no_license | mwong33/leet-code-practice | b21f277d73b30df9e681499733baad07979480a1 | 9c0e6294bf3b3614b185f0760906abad60f8d9b6 | refs/heads/main | 2023-03-29T20:35:43.841662 | 2021-03-31T22:05:44 | 2021-03-31T22:05:44 | 317,382,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | class Solution:
# Top Down Memo - O(N*N*K) time O(N*N*K) space
def knightProbability(self, N: int, K: int, r: int, c: int) -> float:
return self.knightProbabilityMemo(N, K, r, c, 0, {})
def knightProbabilityMemo(self, grid_size, total_moves, row, col, move_count, cache):
if (row... | [
"noreply@github.com"
] | mwong33.noreply@github.com |
b49a0876dd1c49261f74128ad2221410df781ed8 | 67d76057aee86c43d32e0b74f3ac94d521ee03d8 | /tests/pyre.pkg/descriptors/timestamps.py | a53130b8d4f65d34e6904ffdfb98461d080e6fdd | [
"BSD-3-Clause"
] | permissive | jlmaurer/pyre | 0f94b1855bf029210f07c528747221751e37687f | 6af38a83621d7d6228d147b4bb94f97fbb10f6e2 | refs/heads/master | 2023-05-25T04:33:19.907452 | 2020-06-18T14:07:54 | 2020-06-18T14:07:54 | 273,362,988 | 0 | 0 | NOASSERTION | 2021-06-10T23:42:14 | 2020-06-18T23:50:28 | null | UTF-8 | Python | false | false | 1,135 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2020 all rights reserved
#
"""
Verify that time conversions work as expected
"""
def test():
import pyre.descriptors
# create a descriptor
time = pyre.descriptors.timestamp()
# casts are not implemente... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
b894061a7d8848b8131261f6320a605aa72345cb | 59b0ebc4249f20edd0e87dc63784c6e8c138c7fd | /.history/anagrams.1_20180607000217.py | f4fa839c7c5fce48d1434066880e74d167a6f952 | [] | no_license | Los4U/first_python_programs | f397da10be3ef525995f3f220e3b60012a6accaa | c3fc33a38c84abd292cb2e86de63e09434fc7fc4 | refs/heads/master | 2020-03-22T08:09:40.426118 | 2018-07-04T17:17:58 | 2018-07-04T17:17:58 | 139,748,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import sys
file = open(str(sys.argv[1]), "r")
words = file.read().splitlines()
p2 = 1
for word in words:
print(words.index(word))
i = 0
for i in range(i, len(words)):
if sorted(word) == sorted(words[i]):
#print(i)
print(str(i) + ": " + word + " - " + words[i])
... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
5549cfd4d5d6343f8d3430fa4093b7f1d0b8fd9a | 05e634a232574f676434dfa8e4183f3d0a1a4bc9 | /paddlecv/ppcv/ops/output/tracker.py | 0df393bc437d7098472b6cb7eebcfd7a5c2d1fc1 | [
"Apache-2.0"
] | permissive | PaddlePaddle/models | 67ac00d93c5255ac64a9d80ae5be2e8927e47cee | 8042c21b690ffc0162095e749a41b94dd38732da | refs/heads/release/2.4 | 2023-09-04T15:23:59.543625 | 2023-07-20T11:54:16 | 2023-07-20T11:54:16 | 88,868,842 | 7,633 | 3,597 | Apache-2.0 | 2023-09-05T23:23:54 | 2017-04-20T13:30:15 | Python | UTF-8 | Python | false | false | 3,870 | py | # Copyright (c) 2022 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
#
# Un... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
4c8eb4e0b011ab53434d6d5b85b39b91903957ab | 4a76ac7ad1aaeec44729ab6d5b121b1cae0d910c | /Week 2/FindTheMedian.py | f1017afb1254cfc9663bbd2a334cfc369fdfa9d9 | [] | no_license | kalmad99/CompetitiveProgramming | 2d825e839faa9e13ef43dbb45498bd3eef6723ab | 6cbb1f12f7670d0016fa2af8f2dd597d9123070d | refs/heads/main | 2023-03-25T20:18:23.389396 | 2021-03-24T21:36:52 | 2021-03-24T21:36:52 | 325,816,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | def findMedian(arr):
negarr = []
posarr = []
finarr = []
for i in arr:
if i < 0:
negarr.append(i)
else:
posarr.append(i)
for i in range(len(negarr)):
negarr[i] = -1 * negarr[i]
negarr = sorting(negarr)
for i in range(len(negarr) - 1, -1, -1):... | [
"kalemesfin12@gmail.com"
] | kalemesfin12@gmail.com |
b6efb199a5f5c5dfbf9ef558876f865598c298da | 56f428833bac273c180dd95bafd0a8da992349c1 | /bin/Utils/GetFiles.py | 6b9e2aa465828987020f0a802346239f3c3a6ea5 | [
"BSD-2-Clause"
] | permissive | LlianeFR/craft | 8e6ac764a76812628c1d3dc0be75c7aceea771f4 | 0d1e5e5c12fa817cf411ab4fc4a9d1815432e461 | refs/heads/master | 2020-03-25T20:19:23.376298 | 2018-08-06T09:32:30 | 2018-08-06T09:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,960 | py | # -*- coding: utf-8 -*-
# Copyright Hannah von Reth <vonreth@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of condi... | [
"vonreth@kde.org"
] | vonreth@kde.org |
5a67bbde46a7bcb4dcf509d2e277e112851804a4 | f185d98c2d56c4c212c023ad71514e2ad398950b | /nv/resources/avatars.py | 50dd2d40463da4535700a2f9831c1f3783d5851f | [
"MIT"
] | permissive | new-valley/new-valley | 24b9591eba21ed85634d55d6ac36f0eb25d27198 | 8810739cab52ad4dea2f4005a59b8b7afea1e2db | refs/heads/dev | 2022-12-27T12:26:36.144077 | 2018-12-02T18:51:21 | 2018-12-02T18:51:21 | 156,936,213 | 0 | 0 | MIT | 2022-12-08T01:17:15 | 2018-11-10T01:27:24 | Python | UTF-8 | Python | false | false | 2,314 | py | from flask import request
from flask_restful import (
Resource,
)
from flask_jwt_extended import (
jwt_required,
get_jwt_identity,
)
from webargs.flaskparser import parser
from webargs.fields import (
Str,
Int,
)
from webargs import validate
from nv.models import (
Avatar,
)
from nv.schemas impo... | [
"erik.perillo@gmail.com"
] | erik.perillo@gmail.com |
86b34b358fa22363f9d0c994feca0b1566cf675e | f9be6f15af272fce4565a74d85dfe3298ea22315 | /aiogram/types/game.py | f5861d90c825331214bf4649639d797f96a9e959 | [
"MIT"
] | permissive | hellboi-atul/aiogram | 7654ca127b9b709b8700cb1755674a895abb7d05 | 3440ab3c96e31384cbcf515e75904dcade6f5fd0 | refs/heads/dev-2.x | 2023-01-27T12:09:21.177136 | 2020-12-05T13:28:56 | 2020-12-05T13:28:56 | 318,952,603 | 1 | 0 | MIT | 2020-12-06T04:44:05 | 2020-12-06T04:44:04 | null | UTF-8 | Python | false | false | 725 | py | import typing
from . import base
from . import fields
from .animation import Animation
from .message_entity import MessageEntity
from .photo_size import PhotoSize
class Game(base.TelegramObject):
"""
This object represents a game.
Use BotFather to create and edit games, their short names will act as uni... | [
"jroot.junior@gmail.com"
] | jroot.junior@gmail.com |
6212f545fdf293959684ff38828655f7139ad795 | 3d5035d6b6ece6beca77ee625b6f1b4a906c4c3a | /project-addons/res_partner_farm_data/models/__init__.py | 2813df0338d6631c828c32d88235013156f216d1 | [] | no_license | fadeldamen/CMNT_00033_2015_COOP_IV | 98ba3fd4ca5df17651f251c76aec80b92c497603 | f1f0027b25dffe1281de956c146340dd825cbe9b | refs/heads/master | 2020-04-07T22:00:58.920747 | 2016-02-02T17:39:22 | 2016-02-02T17:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Comunitea All Rights Reserved
# $Jesús Ventosinos Mayor <jesus@comunitea.com>$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | [
"jesus@comunitea.com"
] | jesus@comunitea.com |
e224ca5de74c0f709f85248fb16c8941f8f53647 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523135820.py | e8c2172120c7256018689f40de758c86f45f3e5b | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | from flask import Flask
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
class MCQ(FlaskForm):
age = IntegerField("Age", [DataRequired()])
professio... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
09fbe7c3b04b86dd5917185ce79e3bbccb6ef515 | 8d3fd439c6d5a52eda578847545234b2ebdc4f3b | /机器学习百科/pycode/numpy实战.py | 5f899edd24ae4ec602d0f7df5ce3d9c76f5df722 | [] | no_license | gm-p/practice_demo | d1530dcdb3de95832f1fa5b6e30c75e7ca6acc05 | 7eaa825fc634ad21aea48713133c0266a44ac54a | refs/heads/main | 2023-03-31T23:01:02.302579 | 2021-04-04T13:29:50 | 2021-04-04T13:29:50 | 354,193,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,759 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 28 22:19:13 2019
https://mp.weixin.qq.com/s?__biz=Mzg5NzAxMDgwNg==&mid=2247484006&idx=1&sn=1d0b49c0200e901915a99d29f0dadc79&chksm=c0791f7ff70e966929ed3a9b1358beb3b31a1106084f4332176476eafebf3a407fff2150d5b3&scene=21#wechat_redirect
@author: guangming.pan
"""
# 1.1列表转为矩阵
i... | [
"abc"
] | abc |
80ad83afd181b73ca8f260ec4eb78f2354f20a7f | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_azir/na_azir_top.py | 914fc01c70d432f9190f4176ab17fef32b18fec6 | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | from getratings.models.ratings import Ratings
class NA_Azir_Top_Aatrox(Ratings):
pass
class NA_Azir_Top_Ahri(Ratings):
pass
class NA_Azir_Top_Akali(Ratings):
pass
class NA_Azir_Top_Alistar(Ratings):
pass
class NA_Azir_Top_Amumu(Ratings):
pass
class NA_Azir_Top_Anivia(Ratings):
pass
clas... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
300860ec08d763f75ed23d5aaa30370d6baf1713 | 6c5971b878d245fdca10d68ca653c3e72470d0f3 | /pyesmon/daemon.py | b47a20151c9d3d1e44b88bbb63d46c8f7d5fbfe2 | [] | no_license | patirot/LustrePerfMon | 417328674680e8693707e0dc4b93dd597409fb4c | 4a351f6190a713ba4b861a9d22fb9240c3261266 | refs/heads/master | 2023-08-02T08:05:37.742882 | 2021-09-30T18:49:12 | 2021-09-30T18:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Copyright (c) 2017 DataDirect Networks, Inc.
# All Rights Reserved.
# Author: lixi@ddn.com
"""
Library for daemon process
"""
import logging
SHUTTING_DOWN = False
EXIT_REASON = "unkown reason"
def signal_handler(signum, frame):
"""
Singal hander
"""
# pylint: disable=global-statement,unused-argume... | [
"lixi@ddn.com"
] | lixi@ddn.com |
0a9eff2aa9d6f96402d906eb1b805de2ca963c30 | a2fec2dada04b2c7cd69f5e186efea99e98bd32e | /leetcode/maximum-product-subarray.py | 07cc57beb127beb0fd6d99c5f146e9a2c6aa210b | [] | no_license | IcyCC/effective_note | 363ed9c2eb986151caef7134815be424e53fc592 | d55074032217c48e3d872d4524ba6cea94613b86 | refs/heads/master | 2022-02-13T21:42:54.871413 | 2022-01-24T02:10:11 | 2022-01-24T02:10:11 | 168,490,684 | 78 | 7 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | class Solution:
def maxProduct(self, nums: List[int]) -> int:
if not nums :
return 0
t_min = nums[0]
t_max = nums[0]
res = nums[0]
for i in nums[1:]:
if i < 0:
# 遇到负数反转
t_max, t_min = t_min, t_max
t_max = max... | [
"1103232282@qq.com"
] | 1103232282@qq.com |
b2549b3de94c275ed7aad85c9d88802e3d7deead | b43e73898400662b68e522c84286a79e359a3390 | /cybox/test/objects/win_registry_key_test.py | ca9afc432a92efa097a04e28519119d64ec90b74 | [
"BSD-3-Clause"
] | permissive | emmanvg/python-cybox | fc8f44200a02dc956c81da60b4a051984d03ac5b | e58649356e21720cf79bb09ac9ceaf73283c0f26 | refs/heads/master | 2021-01-20T01:11:24.264142 | 2017-10-26T01:19:56 | 2017-10-26T01:19:56 | 89,234,015 | 1 | 0 | null | 2017-04-24T11:48:24 | 2017-04-24T11:48:24 | null | UTF-8 | Python | false | false | 2,087 | py | # Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import unittest
from mixbox.vendor.six import u
from cybox.compat import long
from cybox.objects.win_registry_key_object import WinRegistryKey
from cybox.test.objects import ObjectTestCase
class TestWinRegistryK... | [
"gback@mitre.org"
] | gback@mitre.org |
f0072159501e0c427e68bdfa0438e86855b9b9a1 | 058f6cf55de8b72a7cdd6e592d40243a91431bde | /tests/parser/static/test_match_assignments/test_match_assignments_2.py | 8f5c218a9b77384a83595bb1205e81efc452285e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/FPChecker | 85e8ebf1d321b3208acee7ddfda2d8878a238535 | e665ef0f050316f6bc4dfc64c1f17355403e771b | refs/heads/master | 2023-08-30T23:24:43.749418 | 2022-04-14T19:57:44 | 2022-04-14T19:57:44 | 177,033,795 | 24 | 6 | Apache-2.0 | 2022-09-19T00:09:50 | 2019-03-21T22:34:14 | Python | UTF-8 | Python | false | false | 2,464 | py | import os
import pathlib
import sys
import subprocess
sys.path.insert(1, str(pathlib.Path(__file__).parent.absolute())+"/../../../../parser")
#sys.path.insert(1, '/usr/workspace/wsa/laguna/fpchecker/FPChecker/parser')
from tokenizer import Tokenizer
from instrument import Instrument
RUNTIME='../../../../src/Runtime_p... | [
"ilaguna@llnl.gov"
] | ilaguna@llnl.gov |
6e360b41dcec06167dd4382fe2834712cd879592 | 58ec75465a2a6f8500b220bba92d9268e9f77f01 | /blog/views.py | b6552b9681fbe39c099a9ebc15e912b63800a1b8 | [] | no_license | Rayhun/Django-blog | 797e13524aad95d7677a4675b3d9921ad56c6064 | 8aadfb6a6e6246f1dd979fc11f5b21436ac2bfa1 | refs/heads/master | 2023-08-28T07:17:34.479268 | 2021-11-04T14:07:04 | 2021-11-04T14:07:04 | 296,093,670 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,996 | py | from datetime import datetime
from ipware import get_client_ip
import json, urllib
from django.shortcuts import render, redirect, get_object_or_404
from django.views.generic import TemplateView, DetailView
from .models import BlogPost, BlogComment, IpStore
from .forms import CommentForm, SignUpForm
from django.contrib.... | [
"rayhunkhan27@gmail.com"
] | rayhunkhan27@gmail.com |
c13786863d7eb85259610ae6c03d43f058ff954f | 5e4ddf4a8dac912a7679b0a6babe1b42d5d018e9 | /python2/prac/pracmodules/cs_recognition/src/cs.py | 361ad0fbe503585194797fb73ca9be2325110c30 | [
"BSD-2-Clause"
] | permissive | danielnyga/prac | b686d9655c56175057db2af0002348c99a7de2ee | 7add712590dd52dd8c1692554f49b271447ef03f | refs/heads/master | 2020-05-30T07:10:58.260570 | 2018-02-28T17:30:29 | 2018-02-28T17:30:29 | 45,621,476 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,364 | py | # PROBABILISTIC ROBOT ACTION CORES
#
# (C) 2012-2013 by Daniel Nyga (nyga@cs.tum.edu)
#
# 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 th... | [
"mareikep@cs.uni-bremen.de"
] | mareikep@cs.uni-bremen.de |
2a6b7dcf34814b4cf52d13c7b049621f96bb6f85 | cb324b8e92765c535765bbb88aa69878ce2e4fe3 | /regtests/list/if_empty.py | fad3c9e5d5f0cd8f09b8e56e51887962654316cd | [
"BSD-3-Clause"
] | permissive | pombredanne/Rusthon | f47756c6ae465c60012e63e02ea1e912c3b391fb | 343c0b2b097b18fa910f616ec2f6c09048fe92d0 | refs/heads/master | 2021-01-17T21:24:29.744692 | 2016-09-10T10:53:59 | 2016-09-10T10:53:59 | 40,818,721 | 1 | 0 | null | 2016-09-10T10:54:00 | 2015-08-16T13:20:47 | Python | UTF-8 | Python | false | false | 581 | py | from runtime import *
"""if empty list then false"""
class A:
pass
def main():
d = []
#if d: ## this is not allowed, and will raise an error at runtime
if len(d):
err1 = 1
else:
err1 = 0
if len([]):
err2 = 1
else:
err2 = 0
d.append('xxx')
if len(d):
err3 = 0
else:
err3 = 1
assert( err1 == 0... | [
"goatman.py@gmail.com"
] | goatman.py@gmail.com |
3a9191bee9d44079e2dbeb83c998458f78dd8a94 | 73a2917525e56ac548563b39ead045a19d4861a1 | /tutorial_11.py | b650f21148e9fdbe67e2fb3fbf193671ac46ce23 | [] | no_license | VsevolodM95/Python_training | 468e80e5ed6dbec627b08970eb6f2d6febfcd0b5 | 120b2142a7f627a1f98db46a8b531d6e35013090 | refs/heads/master | 2021-01-15T14:28:36.144487 | 2014-07-11T23:14:39 | 2014-07-11T23:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | #tutorial #12
#the same as 11, but more rational
name = raw_input("What's my name?")
height = raw_input("How tall am I?")
age = raw_input("How old am I?");
print "My name is %r, I'm %r tall and I'm %r years old." % (name, height, age)
| [
"myemail"
] | myemail |
140ccc842c6d7721c31339b91f2e8e6c3a027af8 | 3417c37060ec8f7089754baace34d8051572570a | /Python-dev/Task3/app/models/score.py | 228822793642df91258d2585422b3e11fe1a7c6e | [] | no_license | rrkas/SID2021 | 8a2baa41b8e4868dce0d4ac75533109bc5e717a5 | 09d2a771ca1914928fbb78a0dac58c1bb4d0dd7b | refs/heads/master | 2023-06-26T13:58:35.246291 | 2021-07-25T07:34:57 | 2021-07-25T07:34:57 | 381,122,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class Score:
def __init__(self, name=None, regd_num=None, score=0, id=-1):
self.id = id
self.name = name
self.regd_num = regd_num
self.score = score
def __repr__(self):
return f"Score({self.id}, {self.name}, {self.regd_num}, {self.score})"
| [
"rrka79wal@gmail.com"
] | rrka79wal@gmail.com |
f6346a64d9a515475908d829accc6318b2aab55b | 5c1643e0e03969b91dba6f0d6428719b75b2d7e1 | /basic/string2.py | 31df9c32eb94b536d06ee0696cb753b5ab5edbe0 | [
"Apache-2.0"
] | permissive | KobiBeef/google-python-exercises | 2ff0ba89f0618087301b32e8318d751690975c76 | e5d67d2a198bcf26611df21b0306cd8c42630fdc | refs/heads/master | 2021-01-10T16:49:25.235238 | 2015-10-02T05:33:48 | 2015-10-02T05:33:48 | 43,537,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | #!/usr/bin/python2.4 -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Additional basic string exercises
# D. verbing
# Given a string, if its length is a... | [
"ezekielbacungan@gmail.com"
] | ezekielbacungan@gmail.com |
6376fc530b0e76bd4f87940ec6ad2bb947e107f8 | a7596165a29e5186bc6c4718e3b6e835939b105d | /apps/impala/src/impala/conf.py | ebefe16ed4f96697220a65c9051ecf7c7974f66a | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,295 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera |
e0ae885a4a52601d7b84938cb69ac26206faec5d | d9af28bb1f9eb67300f1dde7942f9b536cbcb1b8 | /232.py | 9b04d35b284fdf7b16016d547f5b8bccb6c278ae | [] | no_license | khanjason/leetcode | c78d415fd5794ffb7d15f68b8e2dc89b367317ab | d2c0b41bdd181bee999922be820d6ce16312b7ae | refs/heads/master | 2021-12-26T17:28:32.706678 | 2021-09-09T13:56:09 | 2021-09-09T13:56:09 | 235,096,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.q=[]
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
el=[x]
self.q=el+self.q
def pop(self) -> int:
... | [
"noreply@github.com"
] | khanjason.noreply@github.com |
3f3975822de1286c6ce6e3a90f622ab86cdb0abb | c9952dcac5658940508ddc139344a7243a591c87 | /tests/lab07/test_ch07_t03_getting_there.py | 78b92c4a065dbc622993d8e2f3a40b16d74c4cdc | [] | no_license | wongcyrus/ite3101_introduction_to_programming | 5da1c15212528423b3df91997327fe148abef4de | 7cd76d0861d5355db5a6e2e171735bee2e78f829 | refs/heads/master | 2023-08-31T17:27:06.193049 | 2023-08-21T08:30:26 | 2023-08-21T08:30:26 | 136,574,036 | 3 | 2 | null | 2023-08-21T08:30:28 | 2018-06-08T06:06:49 | Python | UTF-8 | Python | false | false | 925 | py | import types
import unittest
from tests.unit_test_helper.console_test_helper import *
from tests.unit_test_helper import is_answer
class TestOutput(unittest.TestCase):
def test(self):
if is_answer:
from lab.lab07.ch07_t03_getting_there_ans import plane_ride_cost
else:
fr... | [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
b994d486bed5ada6105bd8330aec492f5aa07a05 | 32e01bc8b5883896a58bdb3c2443028cf61484cf | /RaptAutomation/Test_UI/K8s_SingleUser_SingleGpu/test_17_s3_image_classification_auto.py | 44fad6b0452a6b74f4b82cc09e1338151c053a9c | [] | no_license | Idur69/RaptAutmationWin | df8a55a6c60467ea7d048b7a6856263d5624643c | 1f4faffa75a9cc5bf72c20baec3893d611b9d565 | refs/heads/master | 2022-12-03T21:01:38.841645 | 2020-08-30T08:39:43 | 2020-08-30T08:39:43 | 291,431,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,534 | py | import datetime
import unittest
from telnetlib import EC
from time import sleep
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWa... | [
"shaikidurbasha469@gmail.com"
] | shaikidurbasha469@gmail.com |
a3c3c4e911bc0abc6a69bd4872fab46bdb146b9d | da4d071cb7d2b3f46a8e393859d6d745f8e4fa96 | /single_sign_on/single_sign_on/settings.py | 4785912b185a5a2f57f84ee3d7fa2a3a8501efc7 | [] | no_license | pnija/single_sign_on | 59140395ac8bd451b719e4ad7627e33dc29a689a | 145f007abbede74906faf4d5b37fd73254c31039 | refs/heads/master | 2022-12-17T01:46:26.482289 | 2018-10-01T14:31:21 | 2018-10-01T14:31:21 | 151,037,834 | 0 | 0 | null | 2022-05-25T00:50:13 | 2018-10-01T04:48:55 | Python | UTF-8 | Python | false | false | 3,272 | py | """
Django settings for single_sign_on project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impor... | [
"nijap@techversantinfotech.com"
] | nijap@techversantinfotech.com |
226ebe40297fd07a670ccb4b161a84312e59cd5f | be471cdee10e2273ce41631c4a58f16227f18b5b | /virtual/walt/virtual/setup/__init__.py | 897f6407a59976eac4f37043ca18e8730ef3640e | [
"BSD-3-Clause"
] | permissive | dia38/walt-python-packages | d91d477c90dbc4bd134fdcc31d7cb404ef9885b8 | e6fa1f166f45e73173195d57840d22bef87b88f5 | refs/heads/master | 2020-04-29T17:41:19.936575 | 2019-11-26T10:11:58 | 2019-11-26T10:11:58 | 176,303,546 | 0 | 0 | BSD-3-Clause | 2019-03-18T14:27:56 | 2019-03-18T14:27:56 | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
import os, sys
from walt.common.tools import failsafe_symlink
from pkg_resources import resource_string
from pathlib import Path
SYSTEMD_SERVICE_FILES = [ "walt-vpn-server.service", "walt-vpn-server.socket" ]
SYSTEMD_SERVICES_DIR = Path("/etc/systemd/system")
def run():
if os.geteuid() != 0:... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
1b4bf67859e3d5788fe48c327bd779ca472b00f8 | fb49051e2cb4b9865fdde761a5892b46f5815a5c | /tutorial1/app/permissions.py | d3f8296625624a6a9e3fd99185f9ba5bb3b23814 | [] | no_license | ashish1sasmal/Django-REST-Framework | 0bb810e17c716750faac676218bdd44847891b52 | ca8caa9b38d86086e78a28cfad2ca9cf0216cce1 | refs/heads/master | 2023-02-06T09:09:56.582366 | 2020-12-27T17:37:44 | 2020-12-27T17:37:44 | 321,983,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from rest_framework import permissions
class IsOwnerOrReadOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
# Read permissions are allowed to any request,
# so we'll always allow GET, HEAD or OPTIONS requests.
if request.method in permissions.SAFE_METHOD... | [
"ashishsasmal1@gmail.com"
] | ashishsasmal1@gmail.com |
d0db361dd3d49dc29a842821913c2f0e8337c048 | c20a7a651e63c1e7b1c5e6b5c65c8150898bbaf2 | /OJ/LeetCode/63. Unique Paths II.py | face5e92689a3a4bc7c6ff313028f2f885493362 | [] | no_license | Nobody0321/MyCodes | 08dbc878ae1badf82afaf0c9fc608b70dfce5cea | b60e2b7a8f2ad604c7d28b21498991da60066dc3 | refs/heads/master | 2023-08-19T14:34:23.169792 | 2023-08-15T15:50:24 | 2023-08-15T15:50:24 | 175,770,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # 思路,类似unique path 1 但是遇到路障要将路径数置零
class Solution:
def uniquePathsWithObstacles(self, obstacleGrid):
if obstacleGrid == []:
return None
height = len(obstacleGrid)
width = len(obstacleGrid[0])
dp = [[0] * width for _ in range(height)]
for i in range(height):
... | [
"cyk19951@gmail.com"
] | cyk19951@gmail.com |
8feff23b081e85387612f08d06a1a23ad765ae10 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2019_03_01_18_32_46_384807.py | ae243968d9d574a99e555abaf06c22567dccc2a8 | [] | 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 | 173 | py | import math
def calcula_gaussiana(x, mi, sigma):
x = 1/(sigma*(2*math.pi)**(1/2))
y = math.exp(-0.5*((x-mi)/sigma)**2)
f_x_mi_sigma = x*y
return f_x_mi_sigma | [
"you@example.com"
] | you@example.com |
bfd36c25bbcaa8e49bf606f5919191e197984ef1 | 243f64a13a1f496a08d05508ccf73c61e03a69de | /max_even_seq/subs/2017B/3.py | 7de5e2179d22b93d5d7e963889ba0802ea33e9ee | [] | no_license | RazLandau/pybryt | 5f3e946a99338fb159d6044098380bce2aacdc6f | 8973b15fc48d1f278e7b8a3990d2f73a3bffb128 | refs/heads/main | 2023-08-19T12:30:46.622088 | 2021-10-14T18:35:21 | 2021-10-14T18:35:21 | 350,324,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def max_even_seq(n):
cnt=0
seq=0
for i in str(n):
if int(i)%2==0:
cnt=cnt+1
if seq<cnt:
seq=cnt
else:
cnt=0
return(seq)
| [
"landau.raz@gmail.com"
] | landau.raz@gmail.com |
aa7d69aee1bc7288dcc9116c62b689a7f9e24991 | ec39ccb701d30c64e9541802e3f45aff61a16f09 | /toontown/uberdog/ClientServicesManager.py | 864a38a6b01ad165a11c91ef604473c9ad5679d6 | [] | no_license | ronanwow1001/toontown-src-py3.0 | f3089ea2b0a987e236df1ae0fad8f94c45e852e0 | b7bf9673353a1a8231652d009ef00b11da4b0290 | refs/heads/master | 2020-12-07T05:03:48.795733 | 2020-01-11T19:07:49 | 2020-01-11T19:07:49 | 232,640,248 | 0 | 0 | null | 2020-01-08T19:18:50 | 2020-01-08T19:18:50 | null | UTF-8 | Python | false | false | 3,418 | py | from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
import hmac
from panda3d.core import *
from otp.distributed.PotentialAvatar import PotentialAvatar
from otp.otpbase import OTPGlobals
from toontown.chat.ChatGlobals import WTSy... | [
"nathanielfuhr@gmail.com"
] | nathanielfuhr@gmail.com |
451cd7b8185e807bd043961430589cdeb1c46411 | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2016/09/florida-millennials-20160915/graphic_config.py | abeb5e9f7aff3c2d8157284f6417f5027493d479 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '1ffq-ubcw70cvHmmrQFXNDvn79iRvVQLRnLZaA_pdltU'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
f01e56e28adaf1a1870f5b9b221f031d2d9ca2ff | d21dbab3f374eb42a10f9ec7c434c1ca6fb2bff7 | /Data Structures/Heap/1-qheap1_with_heapq.py | 14cb88fd7ab7ac36671aa051029f95f47b91679f | [] | no_license | almamuncsit/HackerRank | 5360ad1d54aa01075dba5527f6ae695e4c6d9c7a | 6599cde4c7541ebf27bacff8af02dc0c3eaaa678 | refs/heads/master | 2021-07-06T00:33:25.912754 | 2021-01-13T09:09:29 | 2021-01-13T09:09:29 | 222,364,072 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | class MinHeap:
def __init__(self, items=[]):
self.heap = [0]
for item in items:
self.push(item)
def push(self, item):
self.heap.append(item)
self.__float_up(self.size() - 1)
def peak(self):
if self.heap[1]:
return self.heap[1]
else:
... | [
"msarkar.cse@gmail.com"
] | msarkar.cse@gmail.com |
f91bae1f75347a2dca6cbfcaefc9d5b228815bb5 | b4a39921429d9045163d7a4d030951fecbfa352d | /setup.py | f1ecdc2b187860a10daf5c4d5210c312eac3adbd | [
"MIT"
] | permissive | MayuriKalokhe/Data_Science_Covid-19 | 814c7767e9d0b3cce27c2fa87b0407b7ea27166e | e4bd99ddb2d6b2467991867bfa8a658804689d9f | refs/heads/master | 2022-12-17T17:39:36.342071 | 2020-09-15T21:22:50 | 2020-09-15T21:22:50 | 295,846,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Applied Data Science for Covid-19 Tracking ',
author='Mayuri Kalokhe',
license='MIT',
)
| [
"you@example.com"
] | you@example.com |
10cdf6ae6137753f16ca394c963e3e452646a544 | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Kangaroo/solution.py | c3eb95f215b9b283337e9308ae9ff6c5d375055a | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 487 | py | #!/bin/python3
import os
# Complete the kangaroo function below.
def kangaroo(x1, v1, x2, v2):
# x1 < x2
return 'YES' if v1 > v2 and not ((x2 - x1) % (v1 - v2)) else 'NO'
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
x1V1X2V2 = input().split()
x1 = int(x1V1X2V2[0])
... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
584a7b924adeb54de34928fb9018d078d9f7b946 | 64cd483b18dd9027c40c35c9f3b5153d6735db64 | /api_ec2/chatbot_api/resources/food.py | 011d68778c0f43d9b472fb3bddc3e7122b0d301b | [] | no_license | taepd/sba-chatbot | a55673e170891d7e536a2e4017989e7874c28354 | d58f4663c431870b5aca7412cf491f962a04f095 | refs/heads/master | 2023-04-23T20:49:26.947955 | 2021-05-19T14:58:16 | 2021-05-19T14:58:16 | 301,092,681 | 2 | 0 | null | 2021-05-19T14:58:17 | 2020-10-04T09:48:34 | Python | UTF-8 | Python | false | false | 4,511 | py | # from sqlalchemy import Column, Integer, Float, String, ForeignKey, create_engine
# from sqlalchemy.dialects.mysql import DECIMAL, VARCHAR, LONGTEXT
from typing import List
from flask import request
from flask_restful import Resource, reqparse
from flask import jsonify
import json
import os
import numpy as np
import p... | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
19ed803340dab89ff9a3c6ced25d27987779f1f1 | 89f5a6b6ecb4aed9d5007bf2f500b7bfcb66c542 | /saltcontainermap/modinstall.py | fa9ab9bce241d084bd7b8bcdbc84a37b87628ef0 | [
"MIT"
] | permissive | merll/salt-container-map | a752a5bcff326ba7b3402a4397b73d9f8adcca66 | 0792e7bd1e80dfb370d783a45ca23db51ef28c22 | refs/heads/master | 2020-05-22T04:12:57.010357 | 2018-01-16T16:51:46 | 2018-01-16T16:51:46 | 38,863,690 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,934 | py | # -*- coding: utf-8 -*-
import argparse
from collections import namedtuple
import logging
import os
import salt.config
log = logging.getLogger()
InstallEnvironment = namedtuple('InstallEnvironment', ['lib_path', 'salt_config', 'salt_extmods', 'salt_root'])
def _expand_path(root, path):
if os.path.isabs(path):... | [
"matthias@erll.de"
] | matthias@erll.de |
e0b748369a429ce203da0543699f8fa7b8f011aa | 5a711a4a49f94ae1497a723e29c981facf1d5f37 | /tests/practice_centers/test_services.py | 4d8d050dcd9f9685d0cc981749b8179fa27e3e89 | [
"MIT"
] | permissive | fabien-roy/glo-2005-sportsapp | 2509583fb47bce9cff1e211cb1ed7adebaf3fdd0 | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | refs/heads/master | 2023-04-09T07:30:31.512069 | 2020-05-10T23:21:42 | 2020-05-10T23:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from instance.practice_centers.services import PracticeCenterPopulationService
from tests.practice_centers.mocks import practice_center_repository
from tests.interfaces.test_basic import BasicTests
class PracticeCenterPopulationServiceTests(BasicTests):
def setUp(self):
self.practice_center_population_se... | [
"fabienroy28@gmail.com"
] | fabienroy28@gmail.com |
6cfeb76982ef4150fc264f81b7bd13f46fcbf673 | 941b25a0d0ccd25e4e64293defc2b50a61fccb01 | /testBoard.py | 115ca435b072bd140be722e11fea581ae4d714cc | [] | no_license | fanzhangg/sliding-tiles | c5a396818ec2d7449309f773df37a46ec7b41c8e | 334bb7df76436aa9429ff6132db8a9ea1afce35f | refs/heads/master | 2020-04-08T20:06:37.554387 | 2018-11-29T15:20:52 | 2018-11-29T15:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import unittest
from Board import Board
class testBoard(unittest.TestCase):
board = Board(3, 3)
def test_0_initialize_board(self):
print("Start initialize board test")
tiles_1 = (1, 2, 3, 4, 5, 6, 7, 8)
self.assertEqual(self.board.initialize_board(tiles_1), None)
tiles_2 = (1,... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
1483a7fc4dd3bd86a8bf52283e9408cab2f23767 | 5145773cf66978c2ea449fe5b3b125d1b363361b | /4-HeaderExchange/producer.py | 7942e1f6678ad779b55ca7de4223a741449cecc7 | [] | no_license | MoeinGhbh/RabbitMQ-Type | 62a0e297e914e88de56cdee2c893b36659e069c9 | 011e2368b2250393295ea9f0b42f397656b626a3 | refs/heads/master | 2022-07-18T07:03:09.385269 | 2020-05-20T17:36:11 | 2020-05-20T17:36:11 | 265,569,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | #!/home/ubd/anaconda3/envs/test_env/bin/python
import json
import pika
import sys
if len(sys.argv) < 4:
print("Call syntax: python SCRIPT_NAME PRODUCER_NAME MESSAGE_STRING HEADERS_VALUES")
exit()
producerName = sys.argv[1]
messageText = sys.argv[2]
headersValues = sys.argv[3:]
connection = pika.BlockingConne... | [
"="
] | = |
83cc96a40f65ef2ec4447aa30734347ee89efba7 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Gluon_ResNet50_v1b_for_PyTorch/timm/utils/clip_grad.py | 08d87f99e8c2c67f5a29b445f1e53bfd8c5a212c | [
"Apache-2.0",
"MIT",
"CC-BY-NC-4.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,415 | py | # Copyright 2019 Ross Wightman
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
8c845b5cd02687c170cbbbc4d79dc39d69c912cb | d210853ba6d1f3b5383a09e1b553c19083d78014 | /geo/backend/delivery/migrations/0008_deliverypickpoint.py | 904ed647eda3b40aff2a045c20036106af2d58a4 | [] | no_license | Hagen013/presidentwatches | f252c7995e39f6cffb6608e43f555abc32f6a9fc | b9ca72aef1db01262675274c83a5c5dff4d6e2da | refs/heads/master | 2022-12-17T08:45:15.541869 | 2019-12-29T17:48:56 | 2019-12-29T17:48:56 | 162,160,435 | 0 | 0 | null | 2022-12-08T01:49:45 | 2018-12-17T16:36:05 | HTML | UTF-8 | Python | false | false | 2,139 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-12-25 16:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('kladr', '0001_initial'),
('delivery', '0007_deliver... | [
"="
] | = |
18c616bb07a09bb2bc5c408dd2006960ffaad576 | 63dc2b63afa8848842470c52f10b9066445f239c | /manage.py | c281068744a6d18bb1595aa256bc0bb90e717125 | [] | no_license | wanderchan/hospital | 724a5e03ef8d9d2fea8ef3da80646aefe9bdbd73 | 887a668f7d93f8271908facb37b4c6fef67e9700 | refs/heads/master | 2020-03-18T23:39:11.071002 | 2018-05-30T09:09:24 | 2018-05-30T09:09:24 | 129,866,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "biyesheji.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"you@example.com"
] | you@example.com |
4456273aa82c8258872064b3a763b75cc4e52ad6 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2494/60617/259151.py | a17472a016cee01b922df70d039e6105a2e794df | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | def reversePair():
arr=eval(input())
print(merge(arr, 0, len(arr)-1))
def merge(arr, l , r):
count=0
if l>=r:
return count
mid=(l+r)//2
count+=merge(arr, l, mid)
count+=merge(arr, mid+1, r)
j=mid+1
for i in range(l, mid+1):
while j<=r and arr[i]>arr[j]*2:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9d45f8122dec0c08974e10ec061fc337c8e6c17d | 901b7d6e062d1cef5b48743c54953edae39a83ff | /backend/UserPost/migrations/0009_userpost_privacy.py | b60633a0256dfe938307b03eb8f0eea0aefb0fed | [] | no_license | KaziMotiour/U-Profile-Social-media | e1104e266ab22cac70c60ecd1f0fb2d33eb26961 | 81dedeb4e16e4045ac84bf261bd512e429e6186f | refs/heads/master | 2023-06-09T00:28:24.390944 | 2021-06-29T17:00:13 | 2021-06-29T17:00:13 | 324,720,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Generated by Django 3.1.5 on 2021-03-08 14:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('UserPost', '0008_auto_20210119_0307'),
]
operations = [
migrations.AddField(
model_name='userpost',
name='privacy',
... | [
"kmatiour30@gmail.com"
] | kmatiour30@gmail.com |
1c1cbb6fb019eda07db42749db4ea05edbf16e23 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/storage/stores/sql/dao/test_map.py | d6ab20b3339a3459a181367867d45e52a42215eb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
0cad79d129e122280773519919929db546c04b35 | d6a43cbb975c0d5dd2465d6f09c43767d35c121a | /tests/data/full.atom.py | 9296e0f4f1015c1a3f5fe7650a6966818e2ae740 | [
"BSD-3-Clause"
] | permissive | lemon24/reader | a76f5fd3f8dbf9d86e3627bbf9a60732414721cb | 5e1682c9bfa36d341c03ab804adfb95cfc53f26e | refs/heads/master | 2023-08-17T00:38:03.405077 | 2023-08-16T21:11:25 | 2023-08-16T21:11:25 | 115,272,183 | 349 | 24 | BSD-3-Clause | 2022-06-20T19:37:32 | 2017-12-24T15:36:43 | Python | UTF-8 | Python | false | false | 2,327 | py | import datetime
from reader import Content
from reader import Enclosure
from reader._types import EntryData
from reader._types import FeedData
feed = FeedData(
url=f'{url_base}full.atom',
updated=datetime.datetime(2003, 12, 13, 18, 30, 2),
title='Example Feed',
link='http://example.org/',
author=... | [
"damian.adrian24@gmail.com"
] | damian.adrian24@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.