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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0b11a394b645fdd4f2e368526624bb6177ad07cc | 92fd8a66047915437783185f3bd181e997745554 | /nonebot/drivers/fastapi.py | 841b82e5ad82fc9bda6b7da1a3b2b82c7f896be9 | [
"MIT"
] | permissive | pollidwtymje/nonebot2 | a14b357f258be51c6cde6693ae1f313893a6a03e | a068040cbfc1284943eb8a65f6256e850df258a3 | refs/heads/master | 2023-02-03T07:43:19.185069 | 2020-12-15T05:55:03 | 2020-12-15T05:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,401 | py | """
FastAPI 驱动适配
================
后端使用方法请参考: `FastAPI 文档`_
.. _FastAPI 文档:
https://fastapi.tiangolo.com/
"""
import hmac
import json
import asyncio
import logging
import uvicorn
from fastapi.responses import Response
from fastapi import Body, status, Header, Request, FastAPI, Depends, HTTPException
from starlet... | [
"yanyongyu_1@126.com"
] | yanyongyu_1@126.com |
52a7077c4a5e57e74351d2143f1de90345c7a686 | 75678ff3f7fb3af16b36d5ef952ce90c089336e1 | /legacy_folder/lspi.py | be9388df0bf5391f1256dbf20676302329ca1385 | [] | no_license | jeonggwanlee/LSTD-mu | 71cc530b7072aab9e515609fa61f0fefe1d53903 | b2d890ddba587ac01b722a4a6b21575b354dec9d | refs/heads/master | 2020-04-12T16:06:25.249480 | 2019-03-07T16:58:00 | 2019-03-07T16:58:00 | 162,602,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,535 | py | import numpy as np
from rbf import Basis_Function
from policy import Policy
import pickle
import ipdb
import os
"""
important property of LSPI is that it does not require an an approximate
policy representation, At each iteration, a different policy is evaluated
and certain sets of basis functions may be more appropri... | [
"leejk526@gmail.com"
] | leejk526@gmail.com |
23469463dfbc6631814a0468add53c75df07336e | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0572.0_Subtree_of_Another_Tree.py | 04f22ba2c1aebcb28258a3c091754703156231d3 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | '''
Success
Details
Runtime: 340 ms, faster than 10.24% of Python online submissions for Subtree of Another Tree.
Memory Usage: 14.6 MB, less than 53.07% of Python online submissions for Subtree of Another Tree.
'''
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=... | [
"lixiang@rxthinking.com"
] | lixiang@rxthinking.com |
6b070f4656d6fd36f68bc0dd598ac9f15b9f3123 | a7aabc5bd71b5ef6bdddee9908efcc840930e13c | /tests/testapp/tests/test_utils.py | 509c0a384f223b47432eab62359e52d05cb6b9c5 | [
"BSD-2-Clause"
] | permissive | enterstudio/towel | b7567261b325d19d621af126553ac33350f9a927 | 6892788527b8a111cbf5963e909964aabc96d740 | refs/heads/master | 2021-07-05T05:49:11.654374 | 2016-11-21T08:43:41 | 2016-11-21T08:43:41 | 85,775,854 | 0 | 0 | NOASSERTION | 2021-07-03T01:07:07 | 2017-03-22T02:25:57 | Python | UTF-8 | Python | false | false | 3,733 | py | from __future__ import absolute_import, unicode_literals
from django.template import Template, Context
from django.test import TestCase
from towel.utils import (
related_classes, safe_queryset_and, tryreverse, substitute_with)
from testapp.models import Person, EmailAddress
class UtilsTest(TestCase):
def t... | [
"mk@spinlock.ch"
] | mk@spinlock.ch |
cb04ddbe159999dd98fe3bc062ec157af7e08e40 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/36d056acd92ca2f7e97fec82fd09f36c42c05338-<input_producer>-bug.py | 3a7ddc7afac95a39d452b1dd75f57e4f08345d0f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py |
def input_producer(input_tensor, element_shape=None, num_epochs=None, shuffle=True, seed=None, capacity=32, shared_name=None, summary_name=None, name=None):
'Output the rows of `input_tensor` to a queue for an input pipeline.\n\n Args:\n input_tensor: A tensor with the rows to produce. Must be at\n one-d... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
b8a6d4b5c488151244256500ffaab2184cecdabc | c6eb52478346d4c0b272035f45f62f6b1dccf2c3 | /data_science_py/26_spark/lambda_expressions.py | e961135b4db95e1a1a503192e7ba57b3086ce7a9 | [] | no_license | antichown/udemy_courses | 88732eea17eac8614152aa815d57c64fa54d0104 | d308fe478a67cb7fc395d99d798ac58fdc1f58c4 | refs/heads/master | 2022-11-06T22:28:08.118570 | 2020-07-17T02:00:19 | 2020-07-17T02:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | #!/usr/bin/env python
# coding: utf-8
# #lambda expressions
#
# One of Pythons most useful (and for beginners, confusing) tools is the lambda
# expression. lambda expressions allow us to create "anonymous" functions. This
# basically means we can quickly make ad-hoc functions without needing to properly
# define a... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
2874f74de9f3de37544a1e61636acc55e31149f1 | 67d94cea8a4e48683e74ad7da26ab4b02ae37c19 | /demo/services/qotm.py | ab405266a3e4504b3d51242754b2179293a01958 | [
"Apache-2.0"
] | permissive | smoshtaghi/ambassador | fa39ec86acdde3b76706e37a5273c252b62fda66 | f653780befd65d72f955e94f5fac146d8794c712 | refs/heads/master | 2020-05-02T09:52:45.928453 | 2019-03-26T20:22:35 | 2019-03-26T20:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,956 | py | #!/usr/bin/env python
from flask import Flask, jsonify, request, Response
import datetime
import functools
import logging
import os
import random
import signal
import time
__version__ = "0.0.1"
PORT = int(os.getenv("PORT", "5000"))
HOSTNAME = os.getenv("HOSTNAME")
LOG_LEVEL = os.getenv("LOG_LEVEL", "DEBUG")
app = Fl... | [
"flynn@datawire.io"
] | flynn@datawire.io |
6f537f2a2eb98ce9355e639f4b1a40938a2975e3 | 763d2f0a40c905bc9cbcd83e21c8d716072fcf90 | /chapter01/04.py | faf5d15b0528921cf23472e4699f4bf3a532a3d9 | [] | no_license | s19014/ProgrammingTraining2 | c707dc0a9dc1f4678f91fc05ded6bb1419db4f7a | c28b452d0a52c0e8481731bd1cda6b1aba88228d | refs/heads/master | 2022-11-08T18:27:36.692911 | 2020-06-29T03:36:51 | 2020-06-29T03:36:51 | 262,897,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | '''
“Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also
Sign Peace Security Clause. Arthur King Can.”という文を単語に分解し,
1, 5, 6, 7, 8, 9, 15, 16, 19番目の単語は先頭の1文字,それ以外の単語は先頭に
2文字を取り出し,取り出した文字列から単語の位置(先頭から何番目の単語か)への
連想配列(辞書型もしくはマップ型)を作成せよ.
'''
text = '''Hi He Lied Because Boron Could Not Oxidize Fluo... | [
"s19014@std.it-college.ac.jp"
] | s19014@std.it-college.ac.jp |
d1b8b380409305b112615cc2f6a3b1f200a89b38 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_268/ch34_2020_03_29_20_16_22_997795.py | 7ac92c7d8b2fdc1116c6e200a907b413c1ee9f71 | [] | 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 | 484 | py | def eh_primo(n) :
if (n <= 1) :
return False
if (n <= 3) :
return True
if (n % 2 == 0 or n % 3 == 0) :
return False
i = 5
while(i * i <= n) :
if (n % i == 0 or n % (i + 2) == 0) :
return False
i = i + 6
return True
def maior_pr... | [
"you@example.com"
] | you@example.com |
ab59db052bdf4934ce86436713e6a01207d89d3c | 7b750c5c9df2fb05e92b16a43767c444404de7ae | /src/leetcode/python3/leetcode735.py | ba41f98ebc046b632377456faffcf0601cd24c7a | [] | no_license | renaissance-codes/leetcode | a68c0203fe4f006fa250122614079adfe6582d78 | de6db120a1e709809d26e3e317c66612e681fb70 | refs/heads/master | 2022-08-18T15:05:19.622014 | 2022-08-05T03:34:01 | 2022-08-05T03:34:01 | 200,180,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from typing import List
"""
行星碰撞
"""
# 暴力求解 292ms
class Solution:
def asteroidCollision(self, asteroids: List[int]) -> List[int]:
tasteroids = asteroids
result = []
change = True
while change:
for x in tasteroids:
... | [
"jack.li@eisoo.com"
] | jack.li@eisoo.com |
b7b874acea85c0c1c0b468fa63bfcdec322d8e33 | d4a874792cc86f64dba859392deacd9e7e6721fc | /monitor.py | 01ae60fc559113881e40b008bc3cc7858202075c | [] | no_license | tarungoyal1/python_scripts | a1b0e725813a0277b812f75a73fac330d92405cb | ac362c753d61c3430c46863235bb263ecc62a053 | refs/heads/master | 2020-03-28T14:23:26.896106 | 2018-11-13T00:49:17 | 2018-11-13T00:49:17 | 148,483,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import time
import glob
import shutil
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class MyHandler(FileSystemEventHandler):
def on_created(self, event):
folder = "10_Practical Uses of S3"
current = glob.glob("*.mp4")
if len(current... | [
"tarun13317@gmail.com"
] | tarun13317@gmail.com |
2327e451efdb4a8666c843c8a91c238cd40c83c0 | 56169cc42c21baeb0773a11f9dc2d14bc873e094 | /sortowaniee/venv/bin/easy_install-3.6 | 40be963b14b45a1c26c3afd53c4dc64c948e96aa | [] | no_license | PROGRAMMINinGPYTHON/minilogia | cc1842bb1e5a388c6d7c71bb7b8412776c1ed26b | 346b97671a72046d45e1736b11ba360a92f32c6f | refs/heads/master | 2021-07-09T00:47:11.406056 | 2021-03-28T11:19:13 | 2021-03-28T11:19:13 | 234,959,810 | 0 | 0 | null | 2020-03-21T19:07:48 | 2020-01-19T20:19:22 | Python | UTF-8 | Python | false | false | 453 | 6 | #!/home/stas/Desktop/mini_logia/sortowaniee/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"59664343+PROGRAMMINinGPYTHON@users.noreply.github.com"
] | 59664343+PROGRAMMINinGPYTHON@users.noreply.github.com |
c7b1119f2e17232fefd85a261db1140a3847f62e | 9c85d132b2ed8c51f021f42ed9f20652827bca45 | /source/res/scripts/client/gui/shared/gui_items/customization/c11n_items.py | 61bc31e680cc7214b04d3f2dbc684bf2271ae9b3 | [] | no_license | Mododejl/WorldOfTanks-Decompiled | 0f4063150c7148184644768b55a9104647f7e098 | cab1b318a58db1e428811c41efc3af694906ba8f | refs/heads/master | 2020-03-26T18:08:59.843847 | 2018-06-12T05:40:05 | 2018-06-12T05:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,317 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/gui_items/customization/c11n_items.py
import Math
from gui.Scaleform.locale.ITEM_TYPES import ITEM_TYPES
from gui.Scaleform.locale.RES_ICONS import RES_ICONS
from gui.Scaleform.locale.VEHICLE_CUSTOMIZATION import VEHICLE_... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
b1a813aef6ba473bea7a5c2fd78a298593eb2d7a | cb70b467312f2fb8f8415bac03476d207acb990d | /study_case/crawler_7x24_study3.py | fe7a0ea1a66fd9f850e00e2ec518e92fe0c5fcf8 | [] | no_license | eddiewang-wgq/python-interface | ded532dbad1dc943420823e91ba5f00637fa978e | d232cfc3a7ffc27f8f186d577265bc93e89b9b54 | refs/heads/master | 2023-03-27T00:52:50.018082 | 2021-03-30T07:53:08 | 2021-03-30T07:53:08 | 352,916,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | # !/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@Author : pgsheng
@Time : 2018/8/13 9:31
"""
import sys
import time
import pandas
from PyQt5.QtCore import QUrl
from PyQt5.QtWebEngineWidgets import QWebEnginePage
from PyQt5.QtWidgets import QApplication
from bs4 import BeautifulSoup
from public import config
c... | [
"2568080700@qq.com"
] | 2568080700@qq.com |
69240e74f4667dcc2eca03b64939ad5d07446fa2 | 0ffb18f4d58961ca675d8294eb2154f69061989f | /examples/pipeliner/fastqc_pipeline_example.py | 4a2c7ea0b317b3fd00e841734a13324343f5b38b | [] | no_license | nandr0id/auto_process_ngs | a794e904e6d24b0e0403941b44c884374f95850e | 9b09f20b344d0ee87227e8771a479aa7c04f1837 | refs/heads/master | 2020-06-26T03:23:53.225029 | 2019-06-12T12:11:32 | 2019-06-12T12:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | #!/usr/bin/env python
#
# Example pipeline to run Fastqc on one or more Fastq files
# but ignoring any with zero reads
import os
import argparse
from bcftbx.FASTQFile import nreads
from auto_process_ngs.pipeliner import PipelineTask
from auto_process_ngs.pipeliner import PipelineFunctionTask
from auto_process_ngs.pipe... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
613fefd8380bf4435858fd0857c0dfb569fafb41 | 1dfba6d8c60a534d6bdeb985697fba913da5fe9b | /src/mceditlib/bench/time_loadsave.py | 52fb8a10945703382abccd3848abbce13e03efe2 | [
"BSD-3-Clause"
] | permissive | shipbiulder101/mcedit2 | 2d88a6933bac3010f5bedcdd65d542587841a19f | 44179472b7834c803da243a82d731f9ef555764d | refs/heads/master | 2021-01-12T21:52:56.581572 | 2015-10-20T21:30:34 | 2015-10-20T21:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | """
time_loadall
"""
from __future__ import absolute_import, division, print_function
import logging
import timeit
from mceditlib.test import templevel
import gc
log = logging.getLogger(__name__)
def loadall():
ents = 0
for cPos in pos[cStart:cEnd]:
chunk = dim.getChunk(*cPos)
ents += len(c... | [
"codewarrior@hawaii.rr.com"
] | codewarrior@hawaii.rr.com |
6f20ea4026405a9598e5facc2c46b3e34bc3f1db | 80579d5cf31edd31750b644d6eb46a2b29ff4972 | /CandidateApp/migrations/0004_auto_20191104_0734.py | 392e3a7ab7e8e002f5e272f8bbfeb223b6a9d073 | [] | no_license | Nigar-mr/Vacancies | fb2935202488d957a4cccece0ac68a3ec052aa87 | a8c4605e66cb4cf425abd6565b265df5b458e26d | refs/heads/master | 2023-01-27T11:36:32.836172 | 2020-12-02T14:41:50 | 2020-12-02T14:41:50 | 317,890,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # Generated by Django 2.2.6 on 2019-11-04 07:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('CandidateApp', '0003_citymodel_countrymodel'),
]
operations = [
migrations.RemoveField(
model_n... | [
"muradlinigar@gmail.com"
] | muradlinigar@gmail.com |
91de258357da03040a37deec4cce1b055beea036 | 4ce94e6fdfb55a889a0e7c4788fa95d2649f7bca | /User/apps/logreg/urls.py | 13f5528d4db332284dfc1f9219fa72fb983eed21 | [] | no_license | HaochengYang/Django-class-assignment | 4018d8eb0619a99ebe8c3e47346d29934aafc66b | cb8f920f432209f88c810407ca646ee7dec82e22 | refs/heads/master | 2021-06-08T20:05:22.876794 | 2016-12-19T23:39:22 | 2016-12-19T23:39:22 | 75,032,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.index, name="index"),
url(r'^register$',views.register, name="register"),
url(r'^login$',views.login, name="login"),
url(r'^main$',views.main, name="main"),
url(r'^logout$',views.logout, name="logout")
]
| [
"haocheng0906@gmail.com"
] | haocheng0906@gmail.com |
8644cb81bf0fcfd6f2c5b8dbf1b318cdfb99784c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_370/ch120_2020_04_01_03_35_57_135848.py | 9d294a0499ab557c0f53778c9d2f27dd6b98aebe | [] | 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 | 839 | py | import random
dinheiro = 100
while dinheiro > 0:
print (dinheiro)
aposta= int(input("Quanto voce quer apostar? "))
if aposta != 0:
n_ou_p=input("Voce quer apostar em um numero (n) ou paridade(p)? ")
if n_ou_p == "n":
numero=int(input("Escolha um numero entre 1 e 36: "))
... | [
"you@example.com"
] | you@example.com |
cd114c83b9966d2daf5cee241b255c9ac3014f68 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fabric/rstofabricpaths.py | 0659e77a7c7208ae475bd9c3100f3f18424e752b | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 9,325 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
29a81e6881db1268d23434dc6980737b6eb640d4 | 52855d750ccd5f2a89e960a2cd03365a3daf4959 | /ABC/ABC102_A.py | 5b3e4fd37e2243daff35ceda1216e174bf71c576 | [] | no_license | takuwaaan/Atcoder_Study | b15d4f3d15d48abb06895d5938bf8ab53fb73c08 | 6fd772c09c7816d147abdc50669ec2bbc1bc4a57 | refs/heads/master | 2021-03-10T18:56:04.416805 | 2020-03-30T22:36:49 | 2020-03-30T22:36:49 | 246,477,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # 最大公約数
def gcd(a, b):
while b != 0:
a, b = b, a % b
return a
# 最小公倍数
def lcm(a, b):
return a * b // gcd(a, b)
N = int(input())
print(lcm(2, N))
| [
"takutotakuwan@gmail.com"
] | takutotakuwan@gmail.com |
bffb93f11e2d156068446b36e4f0a07a925befaa | 9efe98cd4e2c4b23230ba8af2b98609b0a8654a5 | /articles/urls.py | cc4823f2d18d59695b2fe6aa45fc3bc87e971e07 | [] | no_license | Jordan-Rob/django-news | f0855d10f9056ad491d90d9086284ed3de468227 | fc73862274522a16530d2fd3497d6e90b7b109c2 | refs/heads/master | 2021-09-25T11:37:50.529863 | 2020-02-26T13:50:42 | 2020-02-26T13:50:42 | 241,844,795 | 1 | 0 | null | 2021-09-22T18:45:20 | 2020-02-20T09:34:47 | Python | UTF-8 | Python | false | false | 551 | py | from django.urls import path
from .views import (
ArticleListView,
ArticleCreateView,
ArticleDeleteView,
ArticleDetailView,
ArticleUpdateView,
)
urlpatterns = [
path('', ArticleListView.as_view(), name='article_list'),
path('new/', ArticleCreateView.as_view(), name='article_new'),
pat... | [
"jordanrob709@gmail.com"
] | jordanrob709@gmail.com |
8579c92447a21ce7b508108375db792656afff0a | 7357d367b0af4650ccc5b783b7a59090fdde47bb | /library/k8s_v1_config_map.py | f1f041f9632980fdd20118debaac00931c8b2207 | [
"MIT"
] | permissive | BarracudaPff/code-golf-data-python | fb0cfc74d1777c4246d56a5db8525432bf37ab1a | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | refs/heads/main | 2023-05-29T05:52:22.856551 | 2020-05-23T22:12:48 | 2020-05-23T22:12:48 | 378,832,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,574 | py | DOCUMENTATION = """
module: k8s_v1_config_map
short_description: Kubernetes ConfigMap
description:
- Manage the lifecycle of a config_map object. Supports check mode, and attempts to
to be idempotent.
version_added: 2.3.0
author: OpenShift (@openshift)
options:
annotations:
description:
- Annotations is an ... | [
"sokolov.yas@gmail.com"
] | sokolov.yas@gmail.com |
a616047134756ed93653e3641eeadb7056c6d93e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/permutations_20200723155542.py | 0a2cb82160de953b2379765e3b9c3fe802252d19 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | def perm(arr):
# sort the array
if len(arr) == 0:
return 0
else:
arr.sort()
perm = set(arr)
maxValue = max(arr)
if len(perm) == maxValue:
return 1
eli:
print(perm([1,1,1])) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
20d466c872a9e9cc3e8c0d6993541a1ee769c0e9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_dissed.py | bfd39eb88b44f035eafe50cb7e30ebacde72a66b | [
"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 | 226 | py |
from xai.brain.wordbase.verbs._diss import _DISS
#calss header
class _DISSED(_DISS, ):
def __init__(self,):
_DISS.__init__(self)
self.name = "DISSED"
self.specie = 'verbs'
self.basic = "diss"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ca12d0553370be58a4e3f461d5eb2ef2d6995281 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncanon.py | fbf0d87bad8b52f95da4ae2656a4b80d205e6358 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,300 | py | ii = [('CookGHP3.py', 2), ('MarrFDI.py', 2), ('GodwWSL2.py', 1), ('ChanWS.py', 1), ('RogePAV.py', 1), ('SadlMLP.py', 2), ('WilbRLW.py', 1), ('WilbRLW4.py', 1), ('ProuWCM.py', 1), ('CookGHP.py', 1), ('LeakWTI2.py', 1), ('LeakWTI3.py', 1), ('PettTHE.py', 1), ('AubePRP.py', 2), ('AdamWEP.py', 1), ('ClarGE2.py', 2), ('Carl... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
7b7236e04ce84478b326d1bf5639d8e284d3c418 | 47175228ce25812549eb5203fc8b86b76fec6eb9 | /API_scripts/dfp/dfp_python3/v201411/custom_field_service/create_custom_fields.py | f810346ad2e1082080513f0a6bbf67f474035af9 | [] | no_license | noelleli/documentation | c1efe9c2bdb169baa771e9c23d8f4e2683c2fe20 | a375698b4cf0776d52d3a9d3c17d20143bd252e1 | refs/heads/master | 2021-01-10T05:41:30.648343 | 2016-02-13T05:46:31 | 2016-02-13T05:46:31 | 51,477,460 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | #!/usr/bin/python
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"noelle@makermedia.com"
] | noelle@makermedia.com |
7f45e9874c2bec2f7cbb448475e5c45d63d5972f | 315450354c6ddeda9269ffa4c96750783963d629 | /CMSSW_7_0_4/src/TotemRawData/Readers/test/.svn/text-base/raw_data_example.py.svn-base | fe26aa920afdb0d2be6cac4e77ee9b7bb3cb236e | [] | no_license | elizamelo/CMSTOTEMSim | e5928d49edb32cbfeae0aedfcf7bd3131211627e | b415e0ff0dad101be5e5de1def59c5894d7ca3e8 | refs/heads/master | 2021-05-01T01:31:38.139992 | 2017-09-12T17:07:12 | 2017-09-12T17:07:12 | 76,041,270 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 934 | import FWCore.ParameterSet.Config as cms
process = cms.Process("rpReconstruction")
# minimum of logs
process.load("Configuration.TotemCommon.LoggerMin_cfi")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(2)
)
process.load('TotemRawData.Readers.RawDataSource_cfi')
process.source.verbosity = ... | [
"eliza@cern.ch"
] | eliza@cern.ch | |
ee93cddd16945c87b62476643878d8e30493b53a | 3db4afb573e6e82e9308c43ae13e9426c5c77c80 | /glue/conftest.py | 7ed2f145177687ccad2672345c69031f834095a5 | [
"BSD-3-Clause"
] | permissive | mariobuikhuizen/glue | af8a53498fd4e2365bf98e5089677efdcdb67127 | 6b968b352bc5ad68b95ad5e3bb25550782a69ee8 | refs/heads/master | 2023-01-08T07:33:03.006145 | 2020-09-20T09:25:06 | 2020-09-20T09:25:06 | 298,285,919 | 0 | 0 | NOASSERTION | 2020-09-24T13:22:37 | 2020-09-24T13:22:36 | null | UTF-8 | Python | false | false | 3,493 | py | import os
import sys
import warnings
import pytest
try:
from qtpy import PYSIDE2
except Exception:
PYSIDE2 = False
from glue.config import CFG_DIR as CFG_DIR_ORIG
try:
import objgraph
except ImportError:
OBJGRAPH_INSTALLED = False
else:
OBJGRAPH_INSTALLED = True
STDERR_ORIGINAL = sys.stderr
O... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
6d98ccacbdf0ae25f09883599e16712c57df834b | f350464b0ec1d2747a93ea533b04746c8ff68c18 | /setup.py | 0b1315dc2d83cf67c02b1f8d493b7614673acf85 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | erdogant/hgboost | ed4e0e31aff87fba2c9591b59b70ffc7a91c27b7 | 8492331b15b883918d2159a61563932ae82bf313 | refs/heads/master | 2023-08-17T14:08:01.729366 | 2023-08-15T17:01:03 | 2023-08-15T17:01:03 | 257,025,146 | 48 | 15 | NOASSERTION | 2020-09-11T08:09:36 | 2020-04-19T14:48:23 | Python | UTF-8 | Python | false | false | 1,549 | py | import setuptools
import re
# versioning ------------
VERSIONFILE="hgboost/__init__.py"
getversion = re.search( r"^__version__ = ['\"]([^'\"]*)['\"]", open(VERSIONFILE, "rt").read(), re.M)
if getversion:
new_version = getversion.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIO... | [
"erdogant@gmail.com"
] | erdogant@gmail.com |
b815002f092f7fa8b69f3b801a668fdef61e40b4 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks848.py | f7be8eb4307013b16d110cd51277a2c9fe945916 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,798 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
geom_dim = 3
def wire_hook(grad):
print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item()))
... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
8830c2898a2a2fdf1585445d96bea0025756f561 | ed54290846b5c7f9556aacca09675550f0af4c48 | /salt/salt/modules/boto_kms.py | ec2ea5bc01595adf8767bcb4cf716358e7dc0430 | [
"Apache-2.0"
] | permissive | smallyear/linuxLearn | 87226ccd8745cd36955c7e40cafd741d47a04a6f | 342e5020bf24b5fac732c4275a512087b47e578d | refs/heads/master | 2022-03-20T06:02:25.329126 | 2019-08-01T08:39:59 | 2019-08-01T08:39:59 | 103,765,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,620 | py | # -*- coding: utf-8 -*-
'''
Connection module for Amazon KMS
.. versionadded:: 2015.8.0
:configuration: This module accepts explicit kms credentials but can also utilize
IAM roles assigned to the instance trough Instance Profiles. Dynamic
credentials are then automatically obtained from AWS API and no further... | [
"5931263123@163.com"
] | 5931263123@163.com |
d5baa1faff9f4d00231718d2daf693d838aae255 | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/openstackclient/identity/v3/group.py | df684c129b58ffd52b260bbe46cb320276c2f08a | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 12,118 | py | # Copyright 2012-2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"admin@example.com"
] | admin@example.com |
3b2ea560ffd065ec8ffed538873d800783745494 | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/initial_33419.py | 3e1f56e16e4a23c0c9bedf8bed739f07b94d46f8 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,950 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
2f10c0fc4429d0811c309e418f22f5c1c3ef9850 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/check_update_20210125140228.py | 03eaacfa439dd94d42ef81213aea4ae61bc8634b | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | import datetime
def check_update():
prjtypes = ['ipo','refinance','reproperty']
for prjtype in prjtypes:
proj_list_new = index_getter(prjtype)
proj_list_old = load_pickle(os.getcwd()+'/saved_config/sz_index'+'_'+'prjtype'+'.pkl')
updated_idx = [index for (index, d) in enumerate(proj_list_new) if d... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
e943db374255cba583a06ae593626accc392a224 | 2b6a02a34ee6bf68820ad185245e2609b296e0aa | /182.py | 5cee2a650fbaa5cc1f8840e937e7c22e3defc6dc | [] | no_license | shants/LeetCodePy | 948e505b6fcb0edcb9a1cf63a245b61d448d6e27 | 2337b5031d4dfe033a471cea8ab4aa5ab66122d0 | refs/heads/master | 2020-03-28T08:43:04.606044 | 2019-11-25T05:03:15 | 2019-11-25T05:03:15 | 147,984,830 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #select Email from Person GROUP BY Email HAVING COUNT(*) > 1 | [
"mailtoshants@gmail.com"
] | mailtoshants@gmail.com |
ec669664a01bd273b8ee1ae285da9a46c1b96850 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/2569808f732d45a1a7c5dbd7f66d16e1.py | db46159bc52e0c46102481740258245a199f94aa | [] | 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 | 213 | py | def to_rna(input):
dnaTypes = {"G":"C","C":"G","T":"A","A":"U"}
output = []
for each in input:
value = dnaTypes.get(each,'not found')
output.append(value)
return ''.join(output)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
4c5b98dcb0e5971fa8e16b9150b20e53eaa42687 | 90f729624737cc9700464532a0c67bcbfe718bde | /lino_xl/lib/invoicing/__init__.py | e4adea047c066bd0b4bff8eeb6e269f443914fa4 | [
"AGPL-3.0-only"
] | permissive | lino-framework/xl | 46ba6dac6e36bb8e700ad07992961097bb04952f | 642b2eba63e272e56743da2d7629be3f32f670aa | refs/heads/master | 2021-05-22T09:59:22.244649 | 2021-04-12T23:45:06 | 2021-04-12T23:45:06 | 52,145,415 | 1 | 5 | BSD-2-Clause | 2021-03-17T11:20:34 | 2016-02-20T09:08:36 | Python | UTF-8 | Python | false | false | 2,783 | py | # -*- coding: UTF-8 -*-
# Copyright 2016-2019 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
"""
Adds functionality for **invoicing**, i.e. automatically generating
invoices from data in the database.
See :doc:`/specs/invoicing`.
"""
from lino.api.ad import Plugin, _
f... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
0e98660cef8d593393fd7f5239d57526602a5f0e | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/bx/seq/seq.py | 727c700f5b0caaf1da917454450ecd64e677025f | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 4,887 | py | """
Classes to support "biological sequence" files.
:Author: Bob Harris (rsharris@bx.psu.edu)
"""
# DNA reverse complement table
DNA_COMP = " - " \
" TVGH CD M KN YSA BWXR tvgh cd m kn ysa bwxr " \
" ... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
9c85f5d5791d3d14ac61c80470e39516b5b5b94a | b162de01d1ca9a8a2a720e877961a3c85c9a1c1c | /389.find-the-difference.python3.py | 787bd1ca19ae6a5ffdf1788af2408a2944611bb1 | [] | no_license | richnakasato/lc | 91d5ff40a1a3970856c76c1a53d7b21d88a3429c | f55a2decefcf075914ead4d9649d514209d17a34 | refs/heads/master | 2023-01-19T09:55:08.040324 | 2020-11-19T03:13:51 | 2020-11-19T03:13:51 | 114,937,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #
# [389] Find the Difference
#
# https://leetcode.com/problems/find-the-difference/description/
#
# algorithms
# Easy (52.22%)
# Total Accepted: 126.9K
# Total Submissions: 243.1K
# Testcase Example: '"abcd"\n"abcde"'
#
#
# Given two strings s and t which consist of only lowercase letters.
#
# String t is genera... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
5caec5d9a8ccca40938aa679181df75ee6367197 | 6d3ac655065e7592d7d8f6692b48546fb9adab75 | /VirtualEnvAndPagination/env/bin/pip-3.7 | f324b76b04fee41f8ec85adbfd6cbdd528e977ac | [] | no_license | lensherrggg/Django2Masterclass-BuildWebAppsWithPython-Django | 81aa3fe582801d887b526bf3e022539cc0c739f5 | 22631e46cf48cb4206f8b77da664685fa141fec3 | refs/heads/master | 2021-04-08T11:43:23.265987 | 2020-03-27T12:56:50 | 2020-03-27T12:56:50 | 248,772,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | 7 | #!/Users/rui/Documents/Code/Learning/Django2MasterClass/VirtualEnvironment/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gr98522@gmail.com"
] | gr98522@gmail.com |
7753cb95d4466b610a3d6b8af4f2b00cc22c1d9b | a6f52b361be35ecd0b750289145d1dd5e5d1d48d | /src/profiler/formatters/SimpleTableFormatter.py | 34c51c4caadb51c8ef5c62c9146a34e98f4bf99b | [] | no_license | deeptiagrawa/Flow123d-python-utils | d360329d28b1c24d600e309fabf09539bce80dee | a80b2dd10eb77ed0fc6469c675dc400feffdcc09 | refs/heads/master | 2021-01-12T05:31:26.649733 | 2016-12-20T13:28:05 | 2016-12-20T13:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,009 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# author: Jan Hybs
from __future__ import absolute_import
import re
import os
from utils.dotdict import DotDict
from utils.logger import Logger
class SimpleTableFormatter (object):
"""
Class which takes json object from flow123d benchmark profiler report
and r... | [
"jan.hybs@tul.cz"
] | jan.hybs@tul.cz |
e969a74760c8c4b91e8b2dcd06db47ff9cbccf46 | 10317d4492bcc5a85518c8c9c6edce56cccb7050 | /Document Scanner/transform_new.py | 012814806bec195d2e650f2d62128556692278b9 | [] | no_license | kishan/Image-Recognition-Test-Grader | 066a640adbc6bce5181cf0fb2d8c6f9a2a8d60e1 | 7b4e603f7a483cfed622df8d9896d9ff2719526a | refs/heads/master | 2021-01-01T19:43:07.716688 | 2015-08-25T20:00:56 | 2015-08-25T20:00:56 | 41,382,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,411 | py | # import the necessary packages
import numpy as np
import cv2
import math
################################################################################
## The following functions have been written by me but the approach is derived
## from the following link: http://www.pyimagesearch.com/2014/08/25/4-point-
... | [
"kspatel2018@gmail.com"
] | kspatel2018@gmail.com |
94bf08a7ce82fd2b63625597118eb7bbeb7fe531 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part008601.py | faee6c6b3a4acdcb9b277c59692c5169f5000ac5 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
d38095f6f65c9f07ad7abbb070590af3d8ef7a7d | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/path_integral_naive_sampling_20200419015912.py | 09700ceb920c45902a696fba97ea21eac5e153d9 | [] | 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 | 8,101 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 202004151200
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una ... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
74f2757220a88898a6e4b5dad3c63b866232286d | a37bf3343be428c453e480c7a411a91b125ab1d1 | /deb/openmediavault/usr/lib/python3/dist-packages/openmediavault/datamodel/datamodel.py | c25bf348fca4181454ad38ac5f9f7141e39083bb | [] | no_license | zys1310992814/openmediavault | 8e73ccd66fefaddd03385834137887614726812c | 337f37729783d9bf3a08866c0dbc8b25c53b9ca3 | refs/heads/master | 2020-04-20T14:18:57.505953 | 2019-02-02T15:18:07 | 2019-02-02T15:18:07 | 168,894,447 | 1 | 0 | null | 2019-02-03T00:41:55 | 2019-02-03T00:41:55 | null | UTF-8 | Python | false | false | 3,163 | py | # -*- coding: utf-8 -*-
#
# This file is part of OpenMediaVault.
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2009-2018 Volker Theile
#
# OpenMediaVault is free software: you can redistribute it and/or modify
#... | [
"votdev@gmx.de"
] | votdev@gmx.de |
8e7c9117b9b08ed4a03b43f4ae8a2a8d9daa1d19 | ef4f9cfca5cc0fbeb5ac6547d607bd51c52d53cc | /UnityPy/EndianBinaryReader.py | a85fc05e554a4f5d912a0af360ccb2cc9e4d1324 | [
"MIT"
] | permissive | l3iggs/UnityPy | c1fe52719990817c00232834d9436dfb6a70ee57 | 01822260261e395565f357b33d5dab35e1a847b3 | refs/heads/master | 2021-03-27T22:56:13.402044 | 2020-03-03T12:12:49 | 2020-03-03T12:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,950 | py | import io
import struct
from .math import Color, Matrix4x4, Quaternion, Vector2, Vector3, Vector4, Rectangle
class EndianBinaryReader:
endian: str
Length: int
Position: int
stream: io.BufferedReader
def __init__(self, input_, endian='>'):
if isinstance(input_, (bytes, bytearray)):
self.stream = io.BytesIO... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
6d2ebfb0d5eca67a6c3677b695fb01da765358e8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/feeder.py | b081311b634e091e1371ab0183f9c9abded2626e | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 432 | py | ii = [('LyelCPG2.py', 2), ('RogePAV2.py', 2), ('RogePAV.py', 1), ('RennJIT.py', 4), ('ProuWCM.py', 5), ('LeakWTI2.py', 2), ('PeckJNG.py', 6), ('LyelCPG.py', 2), ('WestJIT2.py', 5), ('KirbWPW2.py', 2), ('LeakWTI4.py', 1), ('LeakWTI.py', 1), ('BachARE.py', 3), ('SoutRD.py', 1), ('HowiWRL2.py', 1), ('WestJIT.py', 4), ('Fi... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
20a53a274d6d968a8915ec3cbcd0bfd96af6fe6b | 9f16e7e8a728bbe80599225a0b0209e66f90aa85 | /tensorflow/contrib/kfac/python/ops/estimator.py | 30d825cc74fba6937da7d6fd808f4928fa2472dd | [
"Apache-2.0"
] | permissive | dantkz/tensorflow | af2035a8c77e2672f9d4a243f6dd6af82fc6fc50 | 5333bbeb3142af2a06f1ebd971061fc4e28da743 | refs/heads/master | 2021-05-05T14:59:58.530607 | 2017-12-01T13:36:46 | 2017-12-01T13:36:46 | 105,175,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,030 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
81371c236c1b31b828834065ba1f4590cc065578 | 91948d5be26636f1f2b941cb933701ea626a695b | /problem002_uber_product.py | 43dee7ed290c090339c4cb64d1c47645fbcbabf7 | [
"MIT"
] | permissive | loghmanb/daily-coding-problem | 4ae7dd201fde5ee1601e0acae9e9fc468dcd75c9 | b2055dded4276611e0e7f1eb088e0027f603aa7b | refs/heads/master | 2023-08-14T05:53:12.678760 | 2023-08-05T18:12:38 | 2023-08-05T18:12:38 | 212,894,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | '''
This problem was asked by Uber.
Given an array of integers, return a new array such that each element at index i
of the new array is the product of all the numbers in the original array except
the one at i.
For example, if our input was [1, 2, 3, 4, 5], the expected output would be
[120, 60, 40, 30, 24]. If our inp... | [
"loghmanb@gmail.com"
] | loghmanb@gmail.com |
9186c66a5e468ddac1f6938a4ca7a42f605deadf | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/servicefabricmesh/v20180701preview/get_volume.py | bf1e34036b579879a38e2e8ba7e5a4239246a83e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,980 | 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
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
9ceecd5538942099bab3b6551d6e2237a046eb14 | 44d4a051663179ddf4a87ef607070e8abed1b94f | /ntupleAnalysis/skim_select_events.py | 74870141f0dcdb8c5763db8776a54254cbf40845 | [] | no_license | mbandrews/h2aa | 458471abd90dc2a80d13ad2d2428cc0567d58c89 | de1549d472f0b815236598c9676c27719b949e67 | refs/heads/master | 2022-12-09T22:08:21.235484 | 2022-12-08T03:44:58 | 2022-12-08T03:44:58 | 232,382,628 | 0 | 1 | null | 2022-12-08T03:44:59 | 2020-01-07T17:49:35 | Jupyter Notebook | UTF-8 | Python | false | false | 9,874 | py | from __future__ import print_function
from collections import OrderedDict
import numpy as np
np.random.seed(0)
import os, re, glob
import time
import argparse
from hist_utils import *
from selection_utils import *
#from get_bkg_norm import *
import ROOT
# Register command line options
parser = argparse.ArgumentParser... | [
"michael.andrews@cern.ch"
] | michael.andrews@cern.ch |
25854f44a5cc291fbdd5dfec90ae8bea919c44ef | 201356e09fb6dd82d36ed5b93b08a29482b68fb2 | /HD - Intro/Task 20/example.py | ddb49c8255c3ccf527b2f2d8dfdf08f3094bf33d | [] | no_license | M45t3rJ4ck/Py-Code | 5971bad5304ea3d06c1cdbd065941271c33e4254 | 32063d149824eb22163ea462937e4c26917a8b14 | refs/heads/master | 2020-04-08T05:03:44.772327 | 2018-11-26T06:41:03 | 2018-11-26T06:41:03 | 159,044,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,058 | py | #************* HELP *****************
#REMEMBER THAT IF YOU NEED SUPPORT ON ANY ASPECT OF YOUR COURSE SIMPLY LOG IN TO www.hyperiondev.com/support TO:
#START A CHAT WITH YOUR MENTOR, SCHEDULE A CALL OR GET SUPPORT OVER EMAIL.
#*************************************
# *** IF YOU DID NOT INSTALL NOTEPAD++ AND PYTHON (... | [
"wavoges@gmail.com"
] | wavoges@gmail.com |
ab9afc1e2ce503d83c3056e69b4288ec408dfa41 | b7b7b9976a33d7eab9bd1ac0da89465ce38c20b9 | /tests/0800_builder/03_get_globals.py | 730a75c907d48e302eb80b7ed158156ae55b66eb | [
"MIT"
] | permissive | sveetch/Optimus | 87070ae99890a2c69dc28d5582cd680cd7d516dc | 983aebeccd2ada7a5a0ab96f9296d4bba1112022 | refs/heads/master | 2021-10-12T00:11:33.012608 | 2021-10-09T22:54:29 | 2021-10-09T22:54:29 | 6,760,885 | 2 | 1 | null | 2013-12-16T18:08:42 | 2012-11-19T13:39:29 | Python | UTF-8 | Python | false | false | 1,572 | py | import os
from optimus.pages.builder import PageBuilder
def test_get_globals(minimal_basic_settings, fixtures_settings, caplog):
"""
Context should be correclty filled with context globals (SITE shortcut,
settings, optimus version)
"""
projectdir = os.path.join(fixtures_settings.fixtures_path, "b... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
49e638f83de804b23bbf4d3eeae59f14e094fe55 | 641f6cc8f956b8c318b9d438e31ada4b6ebc1b5f | /models/qa.py | 2b1848e4b4adc5f78c9c9bdc5bb9bcf4ca74e13c | [
"Apache-2.0"
] | permissive | linkinpark213/quantization-networks-cifar10 | 61754f4beddc1da5c1b407c4e7880d54c172099c | 7214733beed2f1d661633baadabdb300150b15b1 | refs/heads/master | 2022-12-05T19:34:41.656292 | 2020-08-09T06:46:23 | 2020-08-09T06:46:23 | 286,180,844 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,469 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# qa.py is used to quantize the activation of model.
from __future__ import print_function, absolute_import
import torch
import torch.nn as nn
from torch.nn.parameter import Parameter
from torch.autograd import Variable
import numpy as np
from utils.cluster import params_... | [
"linkinpark213@outlook.com"
] | linkinpark213@outlook.com |
8c33daabcaf0a5c55bd5b54898f7859bf4bdf18e | 898e263e9264804df750fe24cc767e08856c9e09 | /storage/cloud-client/storage_get_metadata.py | e146e9321ad0dcce46c51ef75daccb4cf14ce381 | [
"Apache-2.0"
] | permissive | HoleCat/echarlosperros | 98da28d0fc76c57459ce4c9a53c89e62c350f754 | b67460de0467e05b42a763c4430b26ecfd97c2aa | refs/heads/main | 2023-01-21T15:29:13.091406 | 2020-12-03T01:33:00 | 2020-12-03T01:33:00 | 318,039,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | #!/usr/bin/env python
# Copyright 2019 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | [
"201602035x@gmail.com"
] | 201602035x@gmail.com |
7b8b55dc7677f2959a75c9ee3e91b6b7e9a29037 | d00e29c27d4d4cccbee8f3923d2d837a2d04eedb | /sush_utils/simpleFlask.py | ec4e06723bfd911d8136e309d7c2e9cc7c4b7c6b | [] | no_license | sush80/switcherPy | 23bfa054f0ed4ab636c5fd69ac70dd28a957747f | 6098431bf526a7ca46d659d73bb859d9fa163f5a | refs/heads/master | 2021-07-25T02:40:11.107318 | 2018-11-17T18:30:33 | 2018-11-17T18:30:33 | 112,855,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from flask import Flask
try:
from sush_utils.sush_utils import system_uptime #import if this file is a lib
except:
from sush_utils import system_uptime #import fallback if file runs locally
def start_simple_flask_not_returning():
app = Flask(__name__)
@app.route('/')
def hello_world():
up... | [
"you@example.com"
] | you@example.com |
aa77403d7717ceaa7e15933bd49d9e1b209ced21 | f9426368ada2672a64a46449bf7c0a9ee23bb49d | /hearthbreaker/cards/spells/hunter.py | 21eb92acf78a28908b87ffe1cbf5cb9ba8bd520b | [
"MIT"
] | permissive | WabiWasabi/hearthbreaker | 301c0cf6ce95c403ecf81c8109d6e51e7f5fb2e4 | 3f7d39b99bb88ffec83d1c038c4ca0b1444882b6 | refs/heads/master | 2021-01-22T17:09:02.885750 | 2014-09-16T19:53:52 | 2014-09-16T19:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,076 | py | import copy
from hearthbreaker.effects.minion import Immune
import hearthbreaker.targeting
from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY, MINION_TYPE
from hearthbreaker.game_objects import Card, SecretCard, Minion, MinionCard
class HuntersMark(Card):
def __init__(self):
super().__init__... | [
"daniel.yule@gmail.com"
] | daniel.yule@gmail.com |
a42bb018ff03bfd9a53342898564db3d33b7a2af | 9f2450da1c4fd7844e0e162a94c7edb53c27fe72 | /wm_compositional/assembly.py | 5cbdd69811fa36d2496a095452a9adb6fafe4cc5 | [] | no_license | sorgerlab/indra_apps | 6626a06dad9e7f820c71d7e03bdf42a6308746cc | 3f20ca3f7b3855636607c63b1956c404bfe1b16e | refs/heads/master | 2021-06-11T02:00:28.866305 | 2021-04-26T01:33:41 | 2021-04-26T01:33:41 | 128,094,623 | 1 | 8 | null | 2021-04-26T01:29:05 | 2018-04-04T17:10:11 | Jupyter Notebook | UTF-8 | Python | false | false | 5,614 | py | import os
import glob
import tqdm
import logging
from indra.sources import eidos, hume, cwms, sofia
from indra.statements import Influence, Event
from indra.tools import assemble_corpus as ac
from indra.ontology.world.ontology import WorldOntology
from indra.pipeline import register_pipeline, AssemblyPipeline
from indr... | [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
b49b0aa10664dfb2a463c9db9a3ee3391a1bb550 | edd72c118fdca69cc58b6a85ac1b0f153f44d2f8 | /ruts/datasets/dataset.py | 3c7cf834387bd5281f7957adabb42f192ff10053 | [
"MIT"
] | permissive | webprogrammer77/ruTS | 7e459561aefd31ab1c0cfdc6503c9e90ea3392c7 | c3c95f99162115ea2c522ee7b90cfc1ee7de91e5 | refs/heads/master | 2022-12-12T11:12:01.423729 | 2020-09-04T14:08:21 | 2020-09-04T14:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | from abc import ABCMeta, abstractmethod
from typing import Any, Dict, Generator
class Dataset(object, metaclass=ABCMeta):
"""
Абстрактный класс для работы с набором данных
Аргументы:
name (str): Наименование набора данных
meta (dict): Справочная информация о наборе данных
Методы:
... | [
"kouki.sergey@gmail.com"
] | kouki.sergey@gmail.com |
dbb50044dbe2f11200f23c22e4710f8b05fe4a41 | 97676f59bdd398f00bc0939c40a30c1f07e523c6 | /course-files/lectures/lecture11/answers/03_give_grade.py | a105e0a34f90cb9671110df7c99d3182aa0e2b81 | [] | no_license | eecs110/fall2020 | db1b0f9036f9a0036ff5cc6ba5c30ba6fa5cffed | 81363c4f1c192f8366456a44df8988298809146b | refs/heads/master | 2023-01-29T05:49:36.452055 | 2020-12-02T20:58:43 | 2020-12-02T20:58:43 | 289,575,477 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | def give_grade(score):
if score >= 90:
return 'A'
elif score >= 80:
return 'B'
elif score >= 70:
return 'C'
elif score >= 60:
return 'D'
else:
return 'F'
print('65:', give_grade(65))
print('99:', give_grade(99))
print('84:', give_grade(84))
print('76:', give_g... | [
"vanwars@gmail.com"
] | vanwars@gmail.com |
7a1548852e88b61dbb309d1364c4a34dac13a657 | 105212e4d2d2175d5105e05552e29b300375e039 | /TensorFlow_tutorials/tf-example-api-master/stylenet-master/stylenet_patch.py | ec19c5a837402de8c6543f0803cac6e6b4e2c767 | [] | no_license | Asher-1/AI | 84f0c42651c0b07e6b7e41ebb354258db64dd0d1 | a70f63ebab3163f299f7f9d860a98695c0a3f7d5 | refs/heads/master | 2022-11-26T07:24:37.910301 | 2019-05-30T13:04:31 | 2019-05-30T13:04:31 | 160,031,310 | 7 | 1 | null | 2022-11-21T22:02:53 | 2018-12-02T09:19:03 | Jupyter Notebook | UTF-8 | Python | false | false | 17,492 | py | from __future__ import print_function
import time
import inspect
import os
import numpy as np
import skimage
import skimage.io
import skimage.transform
import tensorflow as tf
import custom_vgg19
import stylenet_core
output_path = 'G:/develop/PycharmProjects/datasets/result_outputs/stylenet_master_output/'
def get_... | [
"ludahai19@163.com"
] | ludahai19@163.com |
4f82a4e97672d4f0c016b0d1b25590076f38187a | 847177b00a6d28a075b57f29ae37a3da7d9ce823 | /setup.py | d28ffb184f2b7fe85e528e37e1565693800c8b3b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | pcdshub/recordits | 3faccfb76b3fdcabd575e21da3d6c81079b2daf0 | c89f6b59accd430f26ea38b1660f74350be8aa37 | refs/heads/master | 2021-11-12T10:33:25.038276 | 2021-10-29T16:56:22 | 2021-10-29T16:56:22 | 235,641,592 | 0 | 2 | NOASSERTION | 2021-04-15T18:27:18 | 2020-01-22T18:48:04 | Python | UTF-8 | Python | false | false | 2,101 | py | import sys
from os import path
from setuptools import find_packages, setup
import versioneer
min_version = (3, 6)
if sys.version_info < min_version:
error = """
recordits does not support Python {0}.{1}.
Python {2}.{3} and above is required. Check your Python version like so:
python3 --version
This may be due... | [
"klauer@slac.stanford.edu"
] | klauer@slac.stanford.edu |
96f253385c98c35544ec68f6785f80678b6acdea | 4bd5e9b67d98bfcc9611bd8b774c9ab9f4f4d446 | /Python基础笔记/3/作业3/1.py | d2a733ff528865f5b1eea2cad44364b041c4a977 | [] | no_license | zhenguo96/test1 | fe21510aea7feb674e52fd7a86d4177666f841c5 | 0d8de7e73e7e635d26462a0bc53c773d999498be | refs/heads/master | 2020-05-03T13:09:53.592103 | 2019-04-06T07:08:47 | 2019-04-06T07:08:47 | 178,646,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # 1.根据(1-7)的数值不同。打印对应的星期英文
day = float(input("请输入1-7中的一个数:"))
if day == 1:
print("Monday")
elif day == 2:
print("Tuesday")
elif day == 3:
print("Wednesday")
elif day == 4:
print("Thursday")
elif day == 5:
print("Friday")
elif day == 6:
print("Saturday")
elif day == 7:
print("S... | [
"1148421588@qq.com"
] | 1148421588@qq.com |
204e935385d1c4510ae07351fb087e2c6b689276 | 6e25c7af9e1b9e5905ae9e839ff6f3f8fd4ed221 | /video_auto/二次剪辑/util/img_utils.py | bfebc3947b9e25a1f0635e409084a269d56eb759 | [
"Apache-2.0"
] | permissive | roceys/tools_python | 8dc6f2d21b68f682eec412beb56524e7d72d194c | 9c8d5c1c7c1ae4a4c857a65f5b5f14da1c90e425 | refs/heads/master | 2023-01-05T06:18:50.411999 | 2020-11-01T18:02:37 | 2020-11-01T18:02:37 | 271,776,767 | 0 | 0 | Apache-2.0 | 2020-11-01T18:02:38 | 2020-06-12T10:58:36 | null | UTF-8 | Python | false | false | 1,431 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: xag
@license: Apache Licence
@contact: xinganguo@gmail.com
@site: http://www.xingag.top
@software: PyCharm
@file: img_utils.py
@time: 2019-12-25 14:23
@description:图片工具类
"""
import cv2
from moviepy.video.VideoClip import ImageClip
from m... | [
"xinganguo@gmail.com"
] | xinganguo@gmail.com |
3ec953a961a2bc4424f63679e9c480798492f6a2 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /LiveControl_2/os.py | 553680cbebdb60aea6426b50f01be8384942f877 | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 25,644 | py | r"""OS routines for Mac, NT, or Posix depending on what system we're on.
This exports:
- all functions from posix, nt, os2, mac, or ce, e.g. unlink, stat, etc.
- os.path is one of the modules posixpath, ntpath, or macpath
- os.name is 'posix', 'nt', 'os2', 'mac', 'ce' or 'riscos'
- os.curdir is a string ... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
bccfe4b14cd08e6d30e608d7a87f8575fbf1e692 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/googlecloudsdk/third_party/appengine/tools/appengine_rpc.py | 44e107bcdc9c9a31d86301a3c9041269954cdd22 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 24,563 | py | # Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
a031b359534527af9c62e7f20c4c627bb0f7dcca | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_27903.py | c51c1c14ea2cba4e5762137f75c1cd767b1c7fab | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | # invalid syntax when run cProfile
%run -m cProfile simple_test_script.py
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
850c8eb11111bbb5c8b00fe7fb4a184d18a91817 | cc8dd1bf3ff193e24e636ef6aad54ce18e831270 | /进程和线程/进程/文件拷贝.py | 49ee1a03b083346d1c86568287e7ba80e75bb3c5 | [] | no_license | RelaxedDong/python_base | c27cbc1c06914826d3287dae46a9fe0dd2bff7b0 | 7f865c7d5bdb6454f3b20cd899dbaf19092fb360 | refs/heads/master | 2022-01-08T12:43:58.851895 | 2019-04-24T03:17:13 | 2019-04-24T03:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #encoding:utf-8
import os
import time
def Copyfile(path,topath):
pr = open(path,'rb')
pw = open(topath,'wb')
context = pr.read()
pw.write(context)
pr.close()
pw.close()
from multiprocessing import Process,Pool
if __name__ == '__main__':
path = r'E:\pycharm_pro\基础文件\tkinter'
rofile = r... | [
"1417766861@qq.com"
] | 1417766861@qq.com |
ef19bef3f3f58385df6d59152b0e87461237da4d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/306/usersdata/296/69255/submittedfiles/poligono.py | 220500ef5bbfdbdbf1c5c788ea21add217eb2034 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | # -*- coding: utf-8 -*-
n = float(input("Digite n: "))
nd = (n*(n-3))/2
print ("%.1f" %(nd)) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
de8b9176832903430ba8a05a2215df9f4216345b | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20210426/example_python/05fake.py | 50aa749d0e3b91197180026ae281b1887a96409f | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 5,605 | py | import asyncio
import logging
import itertools
import sys
import time
from functools import partial
logger = logging.getLogger(__name__)
debug = True
logging.basicConfig(
level=logging.INFO, format="%(relativeCreated)-10d" + logging.BASIC_FORMAT
)
q = asyncio.Queue()
loop = asyncio.get_event_loop()
ev = asyncio.... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
87b0b6633115e323d2d9df2d3cafe146cffbe018 | bf769a3a3935a8e08f11fdf606f2e2e2bc6a5307 | /PyQt/chapter06_layout_management/qt06_vboxLayout.py | 707632895a91fb55826d20bc92403902d0124a20 | [] | no_license | metanoia1989/QTStudy | b71f2c8cf6fd001a14db3f1b5ece82c1cc7f7a93 | 29465c6bb9fc0ef2e50a9bf2f66d996ecbd086c0 | refs/heads/master | 2021-12-25T16:50:26.915441 | 2021-10-10T01:26:14 | 2021-10-10T01:26:14 | 193,919,811 | 3 | 2 | null | 2021-01-25T09:23:30 | 2019-06-26T14:22:41 | HTML | UTF-8 | Python | false | false | 856 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QPushButton
from PyQt5.QtCore import Qt
class Winform(QWidget):
def __init__(self, parent=None):
super(Winform, self).__init__(parent)
self.setWindowTitle("水平布局管理例子")
s... | [
"sogaxili@gmail.com"
] | sogaxili@gmail.com |
52ecd2311054f37136b87690f02c021ad7a3aea2 | c0da8ad92777ec4379ee743c84361e986a05fd0a | /Girls21.2/Great/great.py | 1437ce80ec6cf250f193fded77c7e632579e8e70 | [] | no_license | EliteGirls/Camp2017 | 2e850994fa25ad330b351a557c0ef218aab2c334 | 7cbf0c9469954e9987b5d9835df5b69b5e82a411 | refs/heads/master | 2021-01-20T07:24:21.482465 | 2017-08-27T09:32:49 | 2017-08-27T09:32:49 | 101,535,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print "hello"
print "love" | [
"noreply@github.com"
] | EliteGirls.noreply@github.com |
2b689a5b3c3d0097066a25f9ba2cfac34a59247f | 7b60c68ddda39ef82f5d49404bbcf62cc83e4860 | /crawl/beautifuksoup_css_mu.py | 4289b4574115bb7d8aa6ac2ca49f2c85612e9e95 | [] | no_license | joycejhang/learningml | da802e0ab9cfb6cce89791561870c0078cfaaaf9 | 884ed0541bcb257bb82e77c126ab77c927fe9add | refs/heads/master | 2020-04-22T15:04:58.445844 | 2019-07-04T11:31:03 | 2019-07-04T11:31:03 | 170,466,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 28 11:03:06 2018
@author: Joyce
"""
from bs4 import BeautifulSoup
from urllib.request import urlopen
# if has Chinese, apply decode()
html = urlopen("https://morvanzhou.github.io/static/scraping/list.html").read().decode('utf-8')
#print(html)
soup = Beautif... | [
"noreply@github.com"
] | joycejhang.noreply@github.com |
93726b81910c6ad643b0e87010087cf632f63008 | 116967cd9f326d74a83c7ce01a826e1a83265ade | /nilearn/nilearn/_utils/logger.py | c7b48108880aadb0fd7d07ea94dba256dda0952f | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | bcipolli/nilearn-RSA | f73ea5e04ac94c0c2d4c7ac5f5219779a3067596 | 0ac8595c1ce3e44b6b5ec25d1906f558088ab297 | refs/heads/master | 2020-04-15T04:01:37.084977 | 2015-08-15T17:35:22 | 2015-08-15T17:35:22 | 31,421,013 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | """Logging facility for nilearn"""
# Author: Philippe Gervais
# License: simplified BSD
import inspect
from sklearn.base import BaseEstimator
# The technique used in the log() function only applies to CPython, because
# it uses the inspect module to walk the call stack.
def log(msg, verbose=1, object_classes=(Base... | [
"bcipolli@ucsd.edu"
] | bcipolli@ucsd.edu |
4077521437b981d8ff9757c2997464dde7df70b1 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/create_vault_request.py | 2a2804e36925be33e00569a4aee8d8ffd6fbc9bc | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateVaultRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
57eb43417bd20b75f6c126e37b186c8b79cdad4c | 1e6e3bb707920fdb01ebca23eaf81097c558d918 | /openslides_backend/action/actions/theme/create.py | cfc24dfc000b85bd1c397ed32265f40dd3f2792e | [
"MIT"
] | permissive | OpenSlides/openslides-backend | cbd24589f82a6f29bde02611610511870bb6abbf | d8511f5138db4cc5fe4fa35e2a0200f766bd49c5 | refs/heads/main | 2023-08-23T11:54:25.064070 | 2023-08-22T11:15:45 | 2023-08-22T11:15:45 | 231,757,840 | 6 | 22 | MIT | 2023-09-14T16:23:41 | 2020-01-04T12:17:38 | Python | UTF-8 | Python | false | false | 1,802 | py | from typing import Any, Dict
from ....action.mixins.archived_meeting_check_mixin import CheckForArchivedMeetingMixin
from ....models.models import Theme
from ....permissions.management_levels import OrganizationManagementLevel
from ....shared.util import ONE_ORGANIZATION_ID
from ...generics.create import CreateAction
... | [
"noreply@github.com"
] | OpenSlides.noreply@github.com |
db3e86a824e045824bd23d68cc9fa7e1171705e5 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ugo/huaweicloudsdkugo/v1/model/show_evaluation_project_status_response.py | 32b633c65bfa9cdce52440b82e2516ca3572dfae | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 11,392 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowEvaluationProjectStatusResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
efc7e0e6f4eeae2a0226ec1569a0cea893878697 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/csrc_reply_20210204142902.py | e86cb08dbc1e87888c905e9f2d8605734a986bf1 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : csrc_reply.py
@Time : 2021/02/04 14:14:51
@Author : Jiajun Chen
@Version : 1.0
@Contact : 554001000@qq.com
@License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
'''
# 证监会发行监管部首次公开发行反馈意见爬虫
from bs4 import BeautifulSoup
from urllib.parse... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
d23facb8aa301aa21a5529a832694e258dc33e2e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_138/ch82_2020_04_11_22_11_44_249634.py | 5db60cc74f33a51436b8f74d6967226febdf2be1 | [] | 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 | 211 | py | def primeiras_ocorrencias(string):
dicionario={}
i=0
for a in string:
if a not in dicionario:
dicionario[a]=i
i+=1
else:
i+=1
return dicionario | [
"you@example.com"
] | you@example.com |
2e7c9b3525bfa87a6aabdb81158e2cb030a87cbb | 2f9dd97f4b6f8bf164d8550b46bfe6313dc84c6c | /src/pmr2/bives/view.py | dd8eb581ac9f986ad1333cf04a74064e6054d2fd | [] | no_license | PMR2/pmr2.bives | 89ec960283883e218c9b35455a84ac1ad46e57c0 | d9273df7a8eb97d707ca14eeab6def3a5d01df3f | refs/heads/master | 2021-05-15T02:27:09.348400 | 2020-01-17T01:53:31 | 2020-01-17T01:54:37 | 34,535,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | import json
import requests
import zope.component
from zope.browserpage.viewpagetemplatefile import ViewPageTemplateFile
from plone.registry.interfaces import IRegistry
from pmr2.z3cform.page import SimplePage
from pmr2.app.workspace.browser.browser import FilePage
from .interfaces import ISettings
registry_prefix ... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
953907553899b6a1d9fd87afa1c6f70dd6cc6f31 | 589b5eedb71d83c15d44fedf60c8075542324370 | /stock/stcok_pool.py | e618017842cb50e51927821649c22bb60a2cee4e | [] | no_license | rlcjj/quant | 4c2be8a8686679ceb675660cb37fad554230e0d4 | c07e8f0f6e1580ae29c78c1998a53774a15a67e1 | refs/heads/master | 2020-03-31T07:15:48.111511 | 2018-08-27T05:29:00 | 2018-08-27T05:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | import pandas as pd
from quant.param.param import Parameter
from datetime import datetime
from WindPy import w
w.start()
class StockPool(object):
"""
下载和得到当前所有的股票池
load_all_stock_code_now
get_all_stock_code_now
"""
def __init__(self):
self.name = "All_Stock_Code"
self.load_o... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
fd35c54e1fa82f624c63b4fa96fc49e7a4b26b09 | 9f112cd0aeb1447dee06ded576d99b61701cbdc3 | /ec-backend/src/ad/urls.py | a8546f87a5cd8ac17f23da1a35b3ed6db41309d3 | [] | no_license | ForeverDreamer/embarrassment-cyclopedia | 44e13fbd7210ebc634d0fbab321c0f4598072ff3 | f69bc88a6a8e734cbb3d37ab173f557708653789 | refs/heads/master | 2023-01-10T17:20:44.181077 | 2020-07-15T03:20:27 | 2020-07-15T03:20:27 | 206,903,622 | 0 | 0 | null | 2023-01-07T09:30:23 | 2019-09-07T02:22:09 | JavaScript | UTF-8 | Python | false | false | 251 | py | from django.urls import path
from .views import (
AdInfoListView,
AdInfoDetailView,
)
urlpatterns = [
path('', AdInfoListView.as_view(), name='adinfo-list'),
path('<str:pk>/', AdInfoDetailView.as_view(), name='adinfo-detail'),
]
| [
"499361328@qq.com"
] | 499361328@qq.com |
9dfeb0a328d15d9455aa51f046ccdb764f5f44c2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/object_attr_set_eval_order-228.py | a511e83aab6b4ea3a1fa28424a3b776260bdc205 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class A(object):
a:int = 42
class B(A):
b:bool = True
def __init__(self:"B"):
print("B")
a:A = None
b:B = None
def get_b() -> B:
print("Getting B")
return b
def get_one() -> int:
print("Getting 1")
return 1
def get_false() -> bool:
print("Getting False")
return False
a... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
70b6f7ab540eaa8dcf83f872958f371a9adeaaac | 59da45955862686374e438b5367978856df7c284 | /component_services/metadata_searcher_service/metadata_search_service.py | 85492def977c190d6dd8568d7baf1a6f47ed24ee | [] | no_license | nguyentran0212/IoTSE-prototypes | 04531fb3a8d14d1eaa5eba712c773bd7531fd04d | 3c9dde27cf1818fbf74508520eec3f35778f60f5 | refs/heads/master | 2021-09-20T10:48:47.330873 | 2018-08-08T08:20:46 | 2018-08-08T08:20:46 | 116,230,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 3 13:22:31 2018
@author: nguyentran
"""
from ISEPLib.abstract_services import AbsSearcherService
import ISEPLib.entity as entity
import redis
import pickle
from pymongo import MongoClient
from pprint import pprint
class SearcherService(AbsSearcher... | [
"nguyen.tran@adelaide.edu.au"
] | nguyen.tran@adelaide.edu.au |
156d38260734364e09599d002e1d41c6032814f4 | 4a78cc73d515226b74c274444eaf21052819a80e | /program/quadratic_eqn.py | 2955bf5f9f5a758cbf1b9bd872fcb7df3ce07358 | [] | no_license | jai-singhal/test_case_gen | bfb291b3cbbe41b721e5875b0ab0d7c88976ab0f | a2a102d5c4a415a180d35774ae793294f6209c32 | refs/heads/master | 2023-01-30T14:27:48.513266 | 2020-12-15T14:12:36 | 2020-12-15T14:12:36 | 321,667,556 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,405 | py | from model.graph import Graph
from model.chromosome import Chromosome
from model.paths import Paths
from model.path import Path
from math import sqrt
import logging
import logging.handlers
import os
handler = logging.handlers.WatchedFileHandler(os.environ.get("LOGFILE", "logs/quadratic.log"))
formatter = logging.Form... | [
"jaisinghal48@gmail.com"
] | jaisinghal48@gmail.com |
2546e39b763ccbbb1261c64dc52b2e08d7bbb98a | 2d34a6033884b22e41588c82ebe657546aef07c7 | /project/blog/models.py | bd36137f7fcbaa6e71aa0e0c0466252f28047d4d | [] | no_license | alifanov/jbm_boilerplate | 73c6c5f394f20a851e860328847d2ac45a174d6f | 7012885dbf1455c2ca2abf849bd36685c4a58286 | refs/heads/master | 2020-04-03T16:18:35.760013 | 2018-11-21T09:48:11 | 2018-11-21T09:48:11 | 155,399,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | from django.db import models
from django.dispatch import receiver
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
class TimeItem(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
a... | [
"lifanov.a.v@gmail.com"
] | lifanov.a.v@gmail.com |
b727cabcd9bd3806c071a7cd260842269b8aba0a | fa7e75212e9f536eed7a78237a5fa9a4021a206b | /MASIR/python/masir/utils/webprivacy_gather.py | 1cc02f6f1aa6fb7dd5e9c09160e708d3db64575e | [] | no_license | kod3r/SMQTK | 3d40730c956220a3d9bb02aef65edc8493bbf527 | c128e8ca38c679ee37901551f4cc021cc43d00e6 | refs/heads/master | 2020-12-03T09:12:41.163643 | 2015-10-19T14:56:55 | 2015-10-19T14:56:55 | 44,916,678 | 1 | 0 | null | 2015-10-25T15:47:35 | 2015-10-25T15:47:35 | null | UTF-8 | Python | false | false | 2,728 | py | # coding=utf-8
import bson
import datetime
import logging
import os
import urllib2
from masir.utils.SimpleBoundingBox import SimpleBoundingBox
def wp_gather_image_and_info(output_dir, db_collection, region_bbox):
"""
Gather the imagery and metadata (as BSON) from the webprivacy database to an
output dir... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
e1dee49a14067807a2a659197ce76a63a98252dd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/68/19112/submittedfiles/funcoes.py | ba6a46880a5b2a250478615ce64169b4cf2b8ded | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # -*- coding: utf-8 -*-
from __future__ import division
#Fatorial
def fatorial (m):
m_fat=1
for i in range (2,m+1,1):
m_fat=m_fat * i
return m_fat
#Pi
def calculaPi (m):
soma_pi=0
j=2
for i in range (0,m,1):
if i%2==0:
soma_pi=soma_pi+(4/(j*(j+1)*(j+2)))
else... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d2807766442c8de2ee23a2b0a79a5f75b3617f38 | c98b383eeef0e7c12504270fe92071569fec9736 | /testMe/testone/tests.py | 24714ddf88517e0cfc1a201200d9e36cd5ef85fd | [
"MIT"
] | permissive | MyHiHi/test | 088048117346b81f7c51fadc00cce4d3f21496ac | 0cedfbbfad53021569faef933b9fdff20e897617 | refs/heads/master | 2020-03-09T02:10:03.949154 | 2019-06-12T09:44:42 | 2019-06-12T09:44:42 | 128,533,935 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from django.test import TestCase
import requests
def get_json(url):
headers = {
"Host": "www.lagou.com",
"Connection": "keep-alive",
"Origin": "https://www.lagou.com",
"X-Anit-Forge-Code": "0",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gec... | [
"909535692@qq.com"
] | 909535692@qq.com |
6d5d099a2907453a5c13a6219c0d42b982c456a3 | 480e33f95eec2e471c563d4c0661784c92396368 | /CondTools/Ecal/python/copyTrivial_orcoff_LaserOnly.py | f1755f2e56183685dce9bf8a0127949e8bcbb272 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 2,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
process.EcalTrivialConditionRetriever.laserAPDPNTime1 = cms.untracked.string('0')
process.EcalTrivialConditionRetriever.laserAPDPNTime2 = cms.untracked.string('1')... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
3c2e2d353cbbce71f6839c272c8aec8f4b16215a | 76e931912629c37beedf7c9b112b53e7de5babd7 | /3-mouth04/day03/mysite3/bookstore/migrations/0002_auto_20210110_1743.py | 6150a4cd907207df18066c991e6c09691c209a1c | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # Generated by Django 2.2.12 on 2021-01-10 09:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookstore', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='book',
name='market_price',
... | [
"673248932@qq.com"
] | 673248932@qq.com |
d348aca8174320a1d59058b5bb76e9b425f38c2d | eed93ecbb01acb180085bed4960a4b2fd4a2322d | /wishbook/models.py | 372decb65cb08595289fd1a8658a2716acd51846 | [] | no_license | srakrn/happyearthday | beb8a52cdc73a19b48143e43154feaacf4ac174a | 0da2fd4ac31db1a7df13f12c78c65db641d13794 | refs/heads/master | 2022-05-17T19:33:00.219871 | 2021-06-10T10:24:22 | 2021-06-10T10:24:22 | 254,112,489 | 0 | 1 | null | 2022-04-22T23:22:12 | 2020-04-08T14:33:55 | Python | UTF-8 | Python | false | false | 560 | py | from django import forms
from django.db import models
# Create your models here.
class Wish(models.Model):
wish_text = models.CharField(verbose_name="ข้อความอวยพร", max_length=240)
wish_owner = models.CharField(verbose_name="ชื่อผู้อวยพร", max_length=50)
shown = models.BooleanField(default=True)
crea... | [
"tanersirakorn@gmail.com"
] | tanersirakorn@gmail.com |
8f452a5b889844be254092881d4a66f1858cb6a7 | ebf4fd9e560fdd3b9b1acd4cdceabd19c70e57a7 | /turq.py | 3caf78e311a17ba14abd777c4c08b7b0a50fb270 | [
"ISC"
] | permissive | pombredanne/turq | a4e7eaab4bb261ec793f4774b1a518becb0d170e | 93cf2992da738b065292afec0444b298529e8db9 | refs/heads/master | 2021-01-15T13:37:06.931538 | 2015-07-21T21:08:29 | 2015-07-21T21:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,247 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = '0.2.0'
import BaseHTTPServer
from cStringIO import StringIO
from datetime import datetime, timedelta
import email.message
import gzip
import httplib
import json
from optparse import OptionParser
import os.path
import random
import re
import socket
import st... | [
"vfaronov@gmail.com"
] | vfaronov@gmail.com |
b86f4f23f1d96b44ef062edd59adb901d53cf7c7 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/面试/juejin_446.py | ada41a6791b155b757cb4bc67b7cc653b73bf8d7 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70,312 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844904081828347912", "article_info": {"article_id": "6844904081828347912", "user_id": "1556564164489389", "category_id": "6809637767543259144", "tag_ids": [6809640402103042061, 6809640404791590919], "visible_level": 0, "link_url": "https://juejin.im/post/684... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
825e7a1384caaa635209d8fbde10c2ebc6fb3172 | 12485bb945ab8af6ff6a5f3d9d4c542a7bcf95f8 | /server/src/uds/core/util/decorators.py | 1996f00746c892461214b269ffa03dfe7a9366ad | [] | no_license | morfeuj/openuds | 6ef0c4bed624def0090efa6abdd2600b9be81a8b | 26e429019e5fe5b01ee1a476c879d8f8333b0ab0 | refs/heads/master | 2020-12-15T15:11:33.598430 | 2020-01-20T16:42:33 | 2020-01-20T16:42:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,264 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2019 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright noti... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
4e80ccd3f2e43b289698ef14d9347915c77924e7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/list_set_element_oob_1-71.py | 58d3ed793879d1cc0c90830a3833ad543f01587e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | x:[int] = None
x = [1, 2, 3]
x[-1] = 4
print(x[0])
print(x[$Literal])
print(x[2])
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
98ae6996aa0b587767198da68169589e426738f7 | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /reverse_each_word_except_first_and_last.py | 27fcc10079794e2ac868b8e8a9287aad8791a631 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | s=input()
l=list(s.split(" "))
a=[l[0]]
for i in range(1,len(l)):
if i==len(l)-1:
a.append(l[-1])
else:
c=l[i]
b=c[::-1]
a.append(b)
print(" ".join(a))
#reverse
| [
"noreply@github.com"
] | ssangitha.noreply@github.com |
39af42d635ccc1f91a80e522b9a0754dc5d4b216 | f789a3b83af9830d28a3fc3cc5184be513caea74 | /tests/unit/test_middleware.py | 5ee1d91efcfa4516fbaabc162635690dfd9546a4 | [
"Apache-2.0"
] | permissive | anuo007/turnstile | 22701d4b8e1bd83af9dc4df38bf828bc8ff6f055 | 8fe9a359b45e505d3192ab193ecf9be177ab1a17 | refs/heads/master | 2021-01-22T00:24:37.821758 | 2013-09-20T23:21:02 | 2013-09-20T23:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,594 | py | # Copyright 2013 Rackspace
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"kevin.mitchell@rackspace.com"
] | kevin.mitchell@rackspace.com |
d16a62c88c77fdb893b4269bd3894ff2bf460ba0 | 02255565aff9ea18a4d566955cc53ca06090efa4 | /python_django.py | cf4625e4823034de98520ac80998d9c35978e234 | [] | no_license | BrainiacRawkib/Practical-Python-for-Begineers | 20a8a3697812bed78646c6af54a6dc195694109a | cb29ea1a38339fcf2fac005feb92b5a72ae98387 | refs/heads/master | 2020-12-01T09:10:06.802758 | 2019-12-28T15:27:40 | 2019-12-28T15:27:40 | 230,598,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.db import models
class Student(models.Model):
FRESHMAN = 'FR'
SOPHOMORE = 'SO'
JUNIOR = 'JR'
SENIOR = 'SR'
YEAR_IN_SCHOOL_CHOICES = (
(FRESHMAN, 'Freshman'),
(SOPHOMORE, 'Sophomore'),
(JUNIOR, 'Junior'),
(SENIOR, 'Senior'),
)
year_in_school = mod... | [
"brainiacrawkib@gmail.com"
] | brainiacrawkib@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.