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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79b3d0b1f31ae483e6c3cb111c968fcd908611f5 | 52e8841ac9603e994fc487ecb52f232e55a50e07 | /Bio/Phylo/_cdao_owl.py | 6b0c26255227e27d3e4481b469db461c72b8c109 | [] | no_license | rored/RozszerzenieBio.PDB | aff434fddfe57199a7465f79126eba62b1c789ae | 7c9d696faacabff912b1263fe19291d6a198c3c2 | refs/heads/master | 2021-01-21T04:50:37.903227 | 2016-06-23T19:15:42 | 2016-06-23T19:15:42 | 55,064,794 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 110,070 | py | # Copyright (C) 2013 by Ben Morris (ben@bendmorris.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
import xml.etree.ElementTree as ET
__docformat__ = "restructuredtext en"
cdao_namespaces = {
... | [
"Viktoria@MacBook-Pro-Viktoria.local"
] | Viktoria@MacBook-Pro-Viktoria.local |
bc3039b702b60de2ad0b98c5e1f7c1c29194a51e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_320/ch10_2019_08_27_16_35_02_989821.py | 522518cfaa6f96c8fbc53cce1d65b27c346ae1ab | [] | 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 | 94 | py | def libras_para_kg(peso):
kg = float(peso) / 2.205
kg = round(kg, 7)
return {kg}
| [
"you@example.com"
] | you@example.com |
b7a6a233b4f0339a1ebc06963cccc30764639268 | ea05617b5d33a641bb60b735e936e8f0ba6e57a7 | /unittests/test_lib_stattext.py | 2b9e4c91a84a74c6add8c63e390d40262a79fe63 | [] | no_license | bbpatil/Phoenix | 18716744f5a3f5dbd805520baf3edc14ebde9529 | 4d05434a6c9e9effb2ade8085e2bfa83775575ed | refs/heads/master | 2022-02-23T21:40:34.510672 | 2016-06-12T05:26:06 | 2016-06-12T05:26:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import unittest
import wtc
import wx
import wx.lib.stattext
#---------------------------------------------------------------------------
class lib_stattext_Tests(wtc.WidgetTestCase):
def test_lib_stattext1(self):
pnl = wx.Panel(self.frame)
w = wx.lib.stattext.GenStaticText(pnl, label="This is a t... | [
"robin@alldunn.com"
] | robin@alldunn.com |
82aa33b02948617205755e82c678811a99b89edf | 1637440d91025bcbccee1703841362ac37ea5176 | /syncano_cli/parse_to_syncano/migrations/relation.py | 55c4b8fc867a2a2f3a332e6a7e16fb0c4eb680bb | [
"MIT"
] | permissive | dhruveshsheladiya/syncano-cli | 3c440b8861f1e88c08f7d91f52d891128d975ad3 | 5ca110cd3aef3ed51b2ad72c1b8a5a83efa3dce6 | refs/heads/master | 2020-03-24T01:16:26.502638 | 2016-09-27T19:18:05 | 2016-09-27T19:18:05 | 142,328,999 | 0 | 0 | null | 2018-07-25T16:54:33 | 2018-07-25T16:54:33 | null | UTF-8 | Python | false | false | 4,111 | py | # -*- coding: utf-8 -*-
import six
from syncano.models import Object
from syncano_cli.parse_to_syncano.config import PARSE_PAGINATION_LIMIT
from syncano_cli.parse_to_syncano.migrations.aggregation import data_aggregate
from syncano_cli.parse_to_syncano.migrations.mixins import PaginationMixin, ParseConnectionMixin
from... | [
"opalczynski@gmail.com"
] | opalczynski@gmail.com |
4b53d1aff74b9ca1c7a958b676fafc0af6f30f2e | 8e0a7d3f10a10942158cf3f95fd2e81e92d37843 | /test_twisted_async_response/concurrent_client.py | c0b76423fc79be5e9f2a53fcc5f32786ca933f33 | [] | no_license | xsren/python_test_demo | 1d528cb8ebe017d962a2b155638e233c094b1e63 | d320276bc9f6fb80860d8db7fcd3f500865176b3 | refs/heads/master | 2020-12-30T17:50:43.830322 | 2017-08-01T03:35:45 | 2017-08-01T03:35:45 | 82,634,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # coding:utf8
import requests
import threading
def run():
print requests.get('http://127.0.0.1:1234/crawler')
def main():
t_list = []
for i in xrange(30):
t_list.append(threading.Thread(target=run, args=()))
for t in t_list:
t.start()
for t in t_list:
t.join()
if __name... | [
"bestrenxs@gmail.com"
] | bestrenxs@gmail.com |
b311e6d7b6d1e81c08bb8cc84850ffd001b69295 | 2455062787d67535da8be051ac5e361a097cf66f | /Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_372.py | 3fbb1b489f893e31fa92395685530a11c8ff0448 | [] | no_license | kmtos/BBA-RecoLevel | 6e153c08d5ef579a42800f6c11995ee55eb54846 | 367adaa745fbdb43e875e5ce837c613d288738ab | refs/heads/master | 2021-01-10T08:33:45.509687 | 2015-12-04T09:20:14 | 2015-12-04T09:20:14 | 43,355,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PAT")
#process.load("BBA/Analyzer/bbaanalyzer_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.EventContent.EventContent_cff')
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.St... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
82dac60d0ffe68054b0a7335cbf480b129ea8419 | 165a9d0db328e96d14ac7c3073205819768959e2 | /CDS_71_rand5_of_rand7.py | 4f2fde50f5a26969c74f7a83091584b94c28fade | [
"MIT"
] | permissive | celelstine/codingProblemSolutions | 12cef3396be96509bb37505fa357391537a8ad72 | 52e567aaa4a6e40c11bc131c2fdfffccfa7408b1 | refs/heads/master | 2021-06-05T21:15:29.772534 | 2020-02-23T18:19:29 | 2020-02-23T18:19:29 | 146,922,897 | 0 | 0 | MIT | 2018-10-01T05:32:59 | 2018-08-31T17:28:03 | JavaScript | UTF-8 | Python | false | false | 445 | py | import random
def rand7():
return random.randint(1,7)
def rand5():
problemDescription = '''
*problemDescription* \n
This problem was asked by Two Sigma.
Using a function rand7() that returns an integer from 1 to 7 (inclusive)
with uniform probability, implement a function rand5() that return... | [
"okorocelestine@gmail.com"
] | okorocelestine@gmail.com |
41ea32d94d3a6051a0d9da368d6845f1dd0bca17 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ChrComPmOpticsOMS-SRC-Interval-MIB.py | 5402d87dcd40317e45e7a4f24fc7e5a0faecf34e | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 5,733 | py | #
# PySNMP MIB module ChrComPmOpticsOMS-SRC-Interval-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ChrComPmOpticsOMS-SRC-Interval-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:20:16 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
ffda15de7089820556396da2ce8e685c3b9e6e91 | 62b75c03509dcd993a28eba2bb7004ae5f427f73 | /astropy/nddata/tests/test_flag_collection.py | 7ed4af6b0dcebb37473a2aebb7e4562660adce6a | [] | permissive | xiaomi1122/astropy | 08aba5592d9bb54e725708352e34db89af2ec289 | 8876e902f5efa02a3fc27d82fe15c16001d4df5e | refs/heads/master | 2020-04-09T12:27:36.768462 | 2018-12-06T01:11:23 | 2018-12-06T01:11:23 | 160,299,140 | 0 | 0 | BSD-3-Clause | 2018-12-04T04:52:22 | 2018-12-04T04:52:22 | null | UTF-8 | Python | false | false | 1,460 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
from ...tests.helper import pytest
from .. import FlagCollection
def test_init():
FlagCollection(shape=(1, 2, 3))
def test_init_noshape():
... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
72a5ea65e3d05e179ebf71c80191e2fe5820c5fa | bda892fd07e3879df21dcd1775c86269587e7e07 | /leetcode/0307_M_区域和检索 - 数组可修改_线段树.py | 612a279505a8bc32f9fedd8413e5da5368b70c77 | [] | no_license | CrzRabbit/Python | 46923109b6e516820dd90f880f6603f1cc71ba11 | 055ace9f0ca4fb09326da77ae39e33173b3bde15 | refs/heads/master | 2021-12-23T15:44:46.539503 | 2021-09-23T09:32:42 | 2021-09-23T09:32:42 | 119,370,525 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,030 | py | '''
给你一个数组 nums ,请你完成两类查询,其中一类查询要求更新数组下标对应的值,另一类查询要求返回数组中某个范围内元素的总和。
实现 NumArray 类:
NumArray(int[] nums) 用整数数组 nums 初始化对象
void update(int index, int val) 将 nums[index] 的值更新为 val
int sumRange(int left, int right) 返回子数组 nums[left, right] 的总和(即,nums[left] + nums[left + 1], ..., nums[right])
示例:
输入:
["Num... | [
"1016864609@qq.com"
] | 1016864609@qq.com |
6f28896faeb0e9fe47f882df32f74ded478ad885 | 7ae0f100b49763f79b276260bbc0e87bd904da3e | /src/app/__init__.py | 5b98b0a760bd15666f075779f5753aab40f11762 | [] | no_license | wondersell/wildsearch-indexer | d88a5b3bce17acc1cb61d365f55ab5d9f63f61ae | 67d5f29f6d405c055cfa211ddf0b70521382a671 | refs/heads/master | 2023-07-19T00:33:34.371231 | 2020-12-31T11:20:00 | 2020-12-31T11:20:00 | 285,488,583 | 2 | 0 | null | 2021-07-19T06:26:44 | 2020-08-06T06:09:51 | Python | UTF-8 | Python | false | false | 174 | py | # This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import celery # noqa: ABS101
__all__ = ['celery']
| [
"artem.kiselev@gmail.com"
] | artem.kiselev@gmail.com |
adc0635f574f63d92b902ca2d499b1a9ad040a7f | 679ce4b323f79b2425976201324c6c1f88b95199 | /Python/Income Visualizer/utility.py | 3f033f36de6b4d08bcf30b93fbaa67394dc0c784 | [] | no_license | abriggs914/Coding_Practice | ff690fb5f145a11f4da144f3882b37f473b10450 | 3afd7c59e0d90f0ef5f6203853e69f853312019b | refs/heads/master | 2023-08-31T04:04:58.048554 | 2023-08-29T13:23:29 | 2023-08-29T13:23:29 | 161,865,421 | 0 | 1 | null | 2022-10-27T08:35:29 | 2018-12-15T03:20:14 | Python | UTF-8 | Python | false | false | 51,770 | py | from locale import currency, setlocale, LC_ALL
from math import e, ceil, sin, cos, radians
from random import random, choice
import datetime as dt
import shutil
import sys
import os
"""
General Utility Functions
Version..............1.28
Date...........2021-10-07
Author.......Avery Briggs
"""
def func_def():
... | [
"abriggs1@unb.ca"
] | abriggs1@unb.ca |
e5725a8aae710a9d7a9701ea844e456eb498767a | 7d9de1ac9a70220f4cf1738c4ae25507ad85ca04 | /pytorch/range_test.py | 5c3290f374acb1d7c0f06f413e08b1a25af22704 | [] | no_license | seasa2016/code_test | e977804cc1c8a6e07d2ed99b0835fb93b09f7dd1 | 8ac8c3aec96c69c98a4ce2789fbfede28491a6fc | refs/heads/master | 2020-03-25T13:48:19.409894 | 2018-11-16T11:22:46 | 2018-11-16T11:22:46 | 143,843,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import torch
import torch.nn as nn
a = torch.range(0,5,requires_grad=True)
loss = torch.sum(a) - 5
loss.backward()
print(a.grad) | [
"ericet1234@gmail.com"
] | ericet1234@gmail.com |
bed747c3c3a0581ffe2d77383b8e2571d2637536 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /PORMain/pirates/piratesgui/ShipItemList.py | 14fdb75275497d82285f3ce5d3b4f6967e823517 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | # File: S (Python 2.4)
from direct.gui.DirectGui import *
from pirates.piratesgui import PiratesGuiGlobals
from pirates.piratesgui import InventoryItemList
from pirates.piratesgui import ShipItemGUI
from pirates.piratesbase import PiratesGlobals
class ShipItemList(InventoryItemList.InventoryItemList):
def __init... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
df2666e3fd97881431c7a61a94434e2a383e53b3 | be707c76437382cbae951611b358bec257db0925 | /models/transformer/model.py | bd096f9871a2bab0b5c6121e9ca22a129275facf | [
"Apache-2.0"
] | permissive | sooftware/End-to-End-Speech-Recognition-Models | 1405738336d76a671df41b3a2f9a72280bda45d3 | 07d590adc91ad660867f49be565a3512347cd50a | refs/heads/main | 2023-02-11T14:39:28.523024 | 2021-01-10T18:57:46 | 2021-01-10T18:57:46 | 316,734,678 | 39 | 4 | Apache-2.0 | 2021-01-05T11:26:43 | 2020-11-28T12:59:44 | Python | UTF-8 | Python | false | false | 12,137 | py | # -*- coding: utf-8 -*-
# Soohwan Kim @ https://github.com/sooftware/
# This source code is licensed under the Apache 2.0 License license found in the
# LICENSE file in the root directory of this source tree.
# Reference :
# - **https://github.com/graykode/nlp-tutorial**
# - **https://github.com/dreamgonfly/tra... | [
"sh951011@gmail.com"
] | sh951011@gmail.com |
5eb503c79c974710bfb8cd6bb81664d03409cc35 | a0cbae33d175fdf0299eddc775a1b4b84c0addcf | /orquesta/tests/unit/utils/test_specs.py | 1fe005ff1a6149426c489f2b0933ba00ce4dc4d8 | [
"Apache-2.0"
] | permissive | batk0/orquesta | 240ff95c76c610c52518ee7d2e3eee11b6594a73 | f03f3f2f3820bf111a9277f4f6c5d6c83a89d004 | refs/heads/master | 2020-04-17T10:48:48.016607 | 2019-01-19T15:40:05 | 2019-01-19T15:40:05 | 166,514,957 | 0 | 0 | Apache-2.0 | 2019-01-19T06:37:39 | 2019-01-19T06:37:39 | null | UTF-8 | Python | false | false | 3,302 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"m4d.coder@gmail.com"
] | m4d.coder@gmail.com |
9e68300285589f45cadd6f6720d062cfc9398b77 | cd78bbe886469a745043a68524519379c5cbd850 | /main.py | b6abc887e73965bfc3a6a82706e47714dee11178 | [] | no_license | datacratic/mldb-dataset-loader | 0e875cc9e76f64c8e031ac0c8a813c2a062446b3 | 9849ac985b21391b23c0bc5b5341e4d7d6fc87d4 | refs/heads/master | 2021-01-21T11:10:59.718147 | 2015-09-21T23:44:01 | 2015-09-21T23:44:01 | 34,128,558 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | mldb.plugin.serve_static_folder('/static', 'static')
mldb.plugin.serve_documentation_folder('doc')
| [
"nicolas@datacratic.com"
] | nicolas@datacratic.com |
946fec7bf11af536f56d0e05551393f774b9cab7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_interiors.py | c9fcc546f81fabbad76438e54f363fd59fe36da0 | [
"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 | 230 | py |
#calss header
class _INTERIORS():
def __init__(self,):
self.name = "INTERIORS"
self.definitions = interior
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['interior']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6950a4db338145fef4271f8842be1904ca01b521 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/2cb4a725b4cb9be160d194f7b47df6c98709ebfd-<modify_connection_vlan>-fix.py | e8d4005e4624800007efef4e9d9f7ed6b2b88e01 | [] | 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 | 75 | py | def modify_connection_vlan(self):
cmd = [self.nmcli_bin]
return cmd | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
90a333ab994fd0e2da8356e54f5d5a862032015c | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/l2/egrbytesag1w.py | 92f1aca335188b4a43df89b2e7f1eee85cdb2d9f | [] | 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 | 19,668 | 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 |
4332107881083ad19cbe16942b26916ed9a854ca | e837db39c9609830ab8e77dac2077ea30cadc5b3 | /flachdaecher_app/admin.py | 6e3bb183ee3a1257841989b66c3583d79a1ad334 | [] | no_license | windundschnee/accountneu | 9c8ff1507f725a5179604be2640d76b5302a0299 | da9066840a312a95bc628556c94738010787a01f | refs/heads/master | 2022-12-10T06:00:42.449898 | 2019-10-25T18:29:23 | 2019-10-25T18:29:23 | 211,513,631 | 0 | 0 | null | 2022-12-08T05:22:15 | 2019-09-28T14:34:00 | Python | UTF-8 | Python | false | false | 133 | py | from django.contrib import admin
from .models import FlachdachModel
# Register your models here.
admin.site.register(FlachdachModel)
| [
"du@example.com"
] | du@example.com |
789d8aa33c6611b381c958efe2909d5a1a4e8aa4 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/edabit/_Edabit-Solutions-master/Find the Smallest and Biggest Numbers/solution.py | b9e343dc2a0a5a983bdba5cf2f792491328f77c8 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 315 | py | def min_max(nums):
nums.sort()
return [nums[0],nums[-1]]
def test():
print("test has started")
a_list = [14, 35, 6, 1, 34, 54]
if min_max(a_list) != [1,54]:
print("error1")
b_list = [1.346, 1.6532, 1.8734, 1.8723]
if min_max(b_list) != [1.346, 1.8734]:
print("error2")
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
5c1a337df0beee9fac92eb02290fbd2e49914b66 | 013432251ee6dc31f505ff0a9e0432ef7b552064 | /int3/errors.py | 334a3ab88c1e7e362b442a0c0476caf7797fb069 | [
"MIT"
] | permissive | Mic92/int3 | 7bb0d16f5488c7cbade576f9f22e6f11c83b6096 | 6057ddd7db9b5ae6c78429da983a0cd5e3686216 | refs/heads/master | 2020-03-26T16:14:04.955426 | 2018-08-22T23:19:29 | 2018-08-22T23:19:29 | 145,089,128 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | class Int3Error(Exception):
pass
| [
"joerg@thalheim.io"
] | joerg@thalheim.io |
8ff2d9f8ee57060f9e9421080728a6c5e92faa98 | e3abbb5790aac835330b0c2fe59eacc6765ae3cc | /tests/test_disconnects.py | 89b70530832b842d8df631c32c8724c4928950e6 | [
"MIT"
] | permissive | frankrousseau/mrq | 3d9433c809735666208edc532451dbba87f3d40c | 3c9c34f0df1de067c713be6f2d38eff8f923e03b | refs/heads/master | 2021-01-18T05:59:34.727873 | 2015-02-04T14:30:03 | 2015-02-04T14:30:03 | 30,272,780 | 0 | 0 | null | 2015-02-04T00:36:14 | 2015-02-04T00:36:13 | null | UTF-8 | Python | false | false | 892 | py | import time
from mrq.job import Job
import pytest
@pytest.mark.parametrize(["p_service"], [["mongodb"], ["redis"]])
def test_disconnects_service_during_task(worker, p_service):
""" Test what happens when mongodb disconnects during a job
"""
worker.start()
if p_service == "mongodb":
service =... | [
"sylvain@sylvainzimmer.com"
] | sylvain@sylvainzimmer.com |
a738b72a044dabd2ea0da78eb4fb5e20d79f0280 | 19236d9e966cf5bafbe5479d613a175211e1dd37 | /cohesity_management_sdk/models/hyper_flex_storae_snapshot.py | be7bd6f758fcf271342c9f9ffb251ae480b2b9b7 | [
"MIT"
] | permissive | hemanshu-cohesity/management-sdk-python | 236c44fbd9604809027f8ddd0ae6c36e4e727615 | 07c5adee58810979780679065250d82b4b2cdaab | refs/heads/master | 2020-04-29T23:22:08.909550 | 2019-04-10T02:42:16 | 2019-04-10T02:42:16 | 176,474,523 | 0 | 0 | NOASSERTION | 2019-03-19T09:27:14 | 2019-03-19T09:27:12 | null | UTF-8 | Python | false | false | 2,226 | py | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
class HyperFlexStoraeSnapshot(object):
"""Implementation of the 'HyperFlex Storae Snapshot.' model.
Specifies a Storage Snapshot Provider in a HyperFlex environment.
Attributes:
name (string): Specifies a unique name of the Protection Sourc... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
0ba165016674eb6222d4c715824556f5bce78ae5 | b3cb41c81069ad2e447a7bab98fd269235996a51 | /pyprop/base_classes.py | 7a2ee646915c15f7198c3e7beb8fc07645d42ef2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | usuaero/PyProp | e289e8bd64d2d0db51547a808a1f019b37b14fc4 | e568dda610632adf1ab208a6861cca8d8dd84e75 | refs/heads/master | 2023-06-03T01:35:08.525608 | 2021-06-21T16:45:51 | 2021-06-21T16:45:51 | 280,196,572 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | """Defines base classes for the module."""
import os
import sqlite3 as sql
import numpy as np
from .exceptions import DatabaseRecordNotFoundError
class DatabaseComponent:
"""A component defined in the database. DEPRECIATED"""
def __init__(self):
# Get database file
self._db_file = os.path.... | [
"cory.goates@aggiemail.usu.edu"
] | cory.goates@aggiemail.usu.edu |
7d1d99a28afe14d7c950a3227568d2d3fb4498eb | 8f4f9a07fa25490289b76253971b2ae8c386e8cd | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/show_project_work_hours_response_body_work_hours.py | e4f1bf100e9079db62922dcdfeab16b27c2c9772 | [
"Apache-2.0"
] | permissive | xingkongcwb/huaweicloud-sdk-python-v3 | 5c635af84a9fb4fb37c45a8de38f691724ca5e31 | 007d5c54ff71f0a2d7b52dcc53e3d38dec4fe775 | refs/heads/master | 2023-03-23T09:56:10.606710 | 2021-03-19T12:47:29 | 2021-03-19T12:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,094 | py | # coding: utf-8
import pprint
import re
import six
class ShowProjectWorkHoursResponseBodyWorkHours:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6e6bf914dfaee1862233e9ebd1d7c098ce31e25f | 3e64d1fb4998fae24a4178d0925e0f30e30b00e7 | /venv/lib/python3.8/encodings/cp865.py | 014cd909c595f80e7cacbec3102e9381da502f7e | [] | no_license | viraatdas/Model-Rest-API | a39e150c484c7136141f462932d741de5b45e044 | a08500a28e4ad32094de6f88223088b9a9081d69 | refs/heads/master | 2022-11-12T15:33:06.624474 | 2020-07-05T05:04:50 | 2020-07-05T05:04:50 | 257,821,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/encodings/cp865.py | [
"viraat.laldas@gmail.com"
] | viraat.laldas@gmail.com |
ac44ea363414b315f23f7fbc15c32734924d4a71 | a635b8d51016220a6d84808def431c27dde41b90 | /libcms/apps/contact_form/apps.py | 6b76faf1767e1218cad4697c9243b233da6b320b | [] | no_license | isergey/chel | aab3ac98ae2a10258f7a5afce88c74f9e13a2d7f | d1a38bfe7ebba80d9c39ae3b0d54ebfd2965046c | refs/heads/master | 2023-07-07T02:13:41.363452 | 2023-06-26T10:25:14 | 2023-06-26T10:25:14 | 3,816,204 | 1 | 0 | null | 2023-03-31T14:52:31 | 2012-03-24T09:33:53 | JavaScript | UTF-8 | Python | false | false | 151 | py | from django.apps import AppConfig
class ContactFormConfig(AppConfig):
name = 'contact_form'
verbose_name = 'Контактная форма'
| [
"dostovalov@gmail.com"
] | dostovalov@gmail.com |
861b6bc3e0be629951d00a347532e405e062548d | f68732bc40a7a90c3a1082e4b3a4154518acafbb | /script/dbus/systemBus/power/003_refreshBatteries.py | adf2cc74cbaca7a47c8533a5cd766f34c53db75c | [] | no_license | lizhouquan1017/dbus_demo | 94238a2307e44dabde9f4a4dd0cf8ec217260867 | af8442845e722b258a095e9a1afec9dddfb175bf | refs/heads/master | 2023-02-11T19:46:27.884936 | 2021-01-08T05:27:18 | 2021-01-08T05:27:18 | 327,162,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # -*- coding: utf-8 -*-
# ****************************************************
# @Test Case ID: 003_refreshBatteries
# @Test Description: 刷新所有电池设备的状态
# @Test Condition:
# @Test Step: 1.刷新所有电池设备的状态
# @Test Result: 1.检查刷新成功;
# @Test Remark:
# @Author: ut000511
# *********************... | [
"lizhouquan@uniontech.com"
] | lizhouquan@uniontech.com |
3e93a618cae2c252cafc5fc47b87b17fe445a0ba | 9b862cc2ca6cc29a6efe4e783165bc51a98c7790 | /pmr2/layer/tests/utility.py | 27627c6d5e1e489890c10628a3f0be94be34068a | [] | no_license | PMR2/pmr2.layer | 5b836f76bc9da676a9fab5c8137ebd788ea77c8e | 394f5b99e1a74169ccddb08aa0b5bf5bc3de513d | refs/heads/master | 2020-05-07T16:23:50.692864 | 2015-07-27T05:42:14 | 2015-07-27T05:42:14 | 6,539,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | import zope.interface
from pmr2.layer.utility import ConditionalLayerApplierBase
class IExampleTestLayer(zope.interface.Interface):
"""Example."""
class ITestLayer1(zope.interface.Interface):
pass
class ITestLayer2(zope.interface.Interface):
pass
class ITestLayer3(ITestLayer1):
pass
class Test... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
693f0a7d80d1732bf677a85c6e6d48f3da5d0d1e | e61e946169b26be9738ba55feb532a4f68844cf6 | /rovid19/urls.py | a0c0d1454a686358a987fa45695bf6f9cd7b809c | [] | no_license | vtemian/rovid19 | 0971c0b0b9c6cd509a93aafb5e298363f36df993 | 0adc193c1ac0c8e3d765d78bd30c08e72af2a60b | refs/heads/master | 2021-09-25T08:08:56.570466 | 2020-03-09T11:56:54 | 2020-03-09T11:59:11 | 246,023,084 | 1 | 0 | null | 2021-09-22T18:42:59 | 2020-03-09T11:55:21 | Python | UTF-8 | Python | false | false | 940 | py | """rovid19 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
049b6e36c7996d5ca9afedd1bdd9f3df9cf8f786 | 418bb4401b66d2edd6195a3a1b16177a1c341f35 | /paras.py | b0598444d917836404277ca111a72b8bc693fa35 | [] | no_license | victorsoda/TrafficAnalysis | 1cadc55cd82fe1a936af619fad3269d6466ca078 | ce61d8c60aad972ea8ed9c255e50317879a62dba | refs/heads/master | 2021-04-03T09:39:44.882831 | 2019-03-07T08:07:56 | 2019-03-07T08:07:56 | 124,986,491 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | import pprint
import numpy as np
data_path = './data/'
volume_file = data_path + 'volume.csv'
travel_time_file = data_path + 'travel_time.csv'
road_id_travel_time_file = data_path + 'road_id_travel_time.csv'
ssid2_road_id_file = data_path + 'ssidA&B_road_id.csv'
lane_direction_file = data_path + 'lane_directio... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
63691433bc972e320295650c2478b9ec64b6db2c | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/Unparticles/testsplit/testfrag/STest1p5Unp3000p0_M_2000.py | ed61b1033bbad9c751fb25d90d1d0e764933c73e | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,255 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
9245ad3b8c46ec1710475f237f307cd6276b4300 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D96A/PRODEXD96AUN.py | 24832a41a8fb141359e2e8b5b0172a9e2afcaabf | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 968 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD96AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 2},
{ID: 'MEA', MIN: 1, MAX: 1},
{ID: 'NAD'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
88ebbbd5cb8459262007d071855eee9e264076d6 | 382f4acfd565be4aedb07c694e8daa489ff3e70a | /eveutil2/bin/update-markethistory | 1e2c4e1a73d91087594563d88006e87373b3a338 | [] | no_license | electusmatari/legacy | 913c5a9f68074d1fa793b0e3ff76fd3f9c3f481e | 9266e955398a0c8279b82b8347a85d9186a455da | refs/heads/master | 2021-01-22T05:24:13.935562 | 2013-09-29T11:44:19 | 2013-09-29T11:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,813 | #!/usr/bin/env python
# CREATE TABLE market_history (
# id SERIAL NOT NULL,
# day DATE NOT NULL,
# regionid BIGINT NOT NULL,
# typeid BIGINT NOT NULL,
# orders BIGINT NOT NULL,
# movement BIGINT NOT NULL,
# max DOUBLE PRECISION NOT NULL,
# avg DOUBLE PRECISION NOT NULL,
# min DOUBLE... | [
"forcer@forcix.cx"
] | forcer@forcix.cx | |
45837862fda78545ccc443790fea864b972febcf | ffb627b58f0553fc8bf86c0d100db1dde2015cfe | /week 1/day5/9093.py | c1d01d603408c6811fa77bb581e0ac4e16eb00b5 | [] | no_license | DentiQ/CodeTest | a208bb1250e18fca9d336b93a5c2e4807c621866 | a8d21447ad2cefc583b45c437623647abde11d95 | refs/heads/master | 2023-06-04T06:12:33.540950 | 2021-06-30T17:00:24 | 2021-06-30T17:00:24 | 363,316,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | n = int(input())
for i in range(n):
arr = input().split()
ans = []
for word in arr:
ans.append(word[::-1])
print(*ans)
| [
"dentiq0414@gmail.com"
] | dentiq0414@gmail.com |
9aa280d18399f9265f1b7aca41ffadaf74450035 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/1378.py | 0e37e33b27dc06733c4d4980b3cd091d677d39e5 | [] | 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 | 216 | py | def word_count(phrase):
words = phrase.split()
result = {}
for word in words:
if word in result:
result[word] += 1
else:
result[word] = 1
return result
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
3af9e10c47b578144db49dc4a3c0c93d4a424b09 | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第2章 python核心编程/第1节.python核心编程/02-python高级-2/2-装饰器/04-多个装饰器.py | 12d352b3d7c3d9596c627310543bec4da181c946 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 404 | py | #定义函数:完成包裹数据
def makeBold(fn):
def wrapped():
return "<b>" + fn() + "</b>"
return wrapped
#定义函数:完成包裹数据
def makeItalic(fn):
def wrapped():
return "<i>" + fn() + "</i>"
return wrapped
@makeBold #test3 = makeBold(test3)
@makeItalic #test3 = makeItalic(test3)
def test3():
return "h... | [
"cdtaogang@163.com"
] | cdtaogang@163.com |
61a3468700236973c7e5edf3ae96308896fe3265 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/costmanagement/latest/outputs.py | 4051a81f344790da31f5a8c6ff074ab075ae0551 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 47,672 | 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... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
3605648a739014c7dc4d6313d88cac67210e7236 | 1395576291c1e8b34981dbcbfcd0fdda020083b8 | /dist_cts/dist_fleet_2.0/dist_collective_get_world_size.py | be03b9b1e048b699ca046c8e42e74f422e9b1be2 | [] | no_license | gentelyang/scripts | a8eb8a3cc5cc5bac753f1bb12033afaf89f03404 | e3562ab40b574f06bba68df6895a055fa31a085d | refs/heads/master | 2023-06-06T12:38:37.002332 | 2021-06-15T05:09:06 | 2021-06-15T05:09:06 | 262,957,519 | 0 | 4 | null | 2021-01-10T08:28:11 | 2020-05-11T06:28:08 | Python | UTF-8 | Python | false | false | 925 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
#======================================================================
#
# Copyright (c) 2017 Baidu.com, Inc. All Rights Reserved
#
#======================================================================
"""
/******************... | [
"liyang109@baidu.com"
] | liyang109@baidu.com |
4b84cabf2fff0894c886b5c793cbbab18128036a | 32552a2c66f9cbdcd5e1d7d8be9a91185344081e | /main.py | 1a157e4b84dccc2da0b952a308dee42d672fb85b | [] | no_license | nik-git/PyRepl | 1f6ff068fa6ee55458f7d9b131db6a6bb9a8a9ac | dbd75a1345cdec299f291d4819eaa48eac126525 | refs/heads/master | 2022-10-03T22:36:36.067629 | 2020-05-30T08:38:53 | 2020-05-30T08:38:53 | 268,037,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | print("1111111")
print("2222222222")
| [
"replituser@example.com"
] | replituser@example.com |
2d25c71d6e148cc3e4205d67c004c263518568d0 | 2eb6b96565367f2f843c3352cce03fcd7b575757 | /module_sellenium/_test_json.py | 218234e36510aeda14db74969f4e18f0f51ddf6d | [] | no_license | onitonitonito/web_beautifulsoup_scrapping | a712fc7fd58d28f89e5c1ddcbf3faac74552e263 | d07c6eebbf2731754b72b7d13f90be9d0082e776 | refs/heads/master | 2022-12-10T14:58:27.045305 | 2020-06-09T22:21:48 | 2020-07-15T22:22:50 | 148,488,834 | 1 | 1 | null | 2022-12-08T09:39:14 | 2018-09-12T13:56:23 | Python | UTF-8 | Python | false | false | 2,561 | py | """
# Reading and Writing JSON to a File in Python
# By Scott Robinson • August 17, 2016 • 5 Comments
# https://stackabuse.com/reading-and-writing-json-to-a-file-in-python/
"""
# print(__doc__)
import os
# script_run ... different dir script_run vs. terminal(cmd)
print(os.getcwd()) # -... | [
"nitt0x0@gmail.com"
] | nitt0x0@gmail.com |
51541cfc0efce6e3743209630d5aae189c992744 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Kivy/kivy/kivy/tests/test_filechooser_unicode.py | f90c297541a79baedf8ea10dc76f7b6cc75794d2 | [
"MIT"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:29d8bc5fa93406bc313e889d4aeb384ef0b92ca711d0d2dcacbfa64e34adbbca
size 3716
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
2adc1b4411370663446ddd23ae426129db13c18d | 133d0f5c7122829ec1e5a5dacdd96a3fa8aa4fc2 | /tests/typecheck.py | 0830182b40042742b608397268f7f0e3201f1eff | [
"Apache-2.0"
] | permissive | izgzhen/cozy | e4b44bb6939c6892919225bba91520913ba55a75 | fc57fdccdd52c5ecf4c4ae4e8b80af97e8119b77 | refs/heads/master | 2020-03-29T01:01:11.270275 | 2018-09-27T16:39:51 | 2018-09-27T16:39:51 | 149,367,207 | 0 | 0 | Apache-2.0 | 2018-09-19T00:12:02 | 2018-09-19T00:12:02 | null | UTF-8 | Python | false | false | 2,790 | py | import unittest
from cozy.syntax_tools import mk_lambda
from cozy.target_syntax import *
from cozy.structures.heaps import *
from cozy.typecheck import typecheck, retypecheck
class TestTypechecking(unittest.TestCase):
def test_map_over_noncollection(self):
x = EVar("x").with_type(TInt())
e = EMap... | [
"loncaric@cs.washington.edu"
] | loncaric@cs.washington.edu |
fd2b0f889ccef3fce7487a8374f5de0e950177a6 | 561464f786e855668663a6928f123beaf05b1f1f | /wsgi.py | 51888168228f9dbeb1e14074af7757da37a66770 | [] | no_license | Coderpool/Coderpool-Registration-App | 0ee2ebc0e5c14d1af98f13d19e9604c1afaa7878 | adf29303cf113650544ea86fa5b17e52d89e99fc | refs/heads/master | 2021-01-15T13:29:30.045896 | 2013-12-06T01:55:25 | 2013-12-06T01:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import os
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
project_home = BASE_DIR
if project_home not in sys.path:
sys.path.append(project_home)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
| [
"rajeevs1992@gmail.com"
] | rajeevs1992@gmail.com |
05d70d9526d627b8fe1b541ceec8e5df4e321c8a | 5dc7dcf5938a60f1dc23cb0bf7578f2ae9ca283a | /main.py | d26fe77abc6cb68504c30ed0aeb4cedd063bbbc9 | [] | no_license | afcarl/Visual-Ballistic-Roulette-Vision | 41cbb83b6115c8d7cf81a1c05054a1a02da82de7 | d4209b92f529256b956fbae78ebaac856cd61e04 | refs/heads/master | 2020-03-22T01:10:09.763037 | 2017-02-10T06:38:04 | 2017-02-10T06:38:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | import os
from ball_tracking_from_gradients import start_ball_analysis
from utils import results_dir
from wheel_green_tracking_from_frames import start_wheel_analysis
def list_to_str(s):
return str(', '.join(['{0:.2f}'.format(b) for b in s]) + '\n')
if __name__ == '__main__':
print('Python script has start... | [
"premy@reactive.co.jp"
] | premy@reactive.co.jp |
158ccde3af8d872aa64f1f1b97bb0a698fd8a377 | c4fa1ebcdd413c4ab3f0979ee3beead8a8809870 | /providers/edu/pdxscholar/migrations/0001_initial.py | 795f466f367dfb4f418cfb10dda1a00b2ca7243e | [] | no_license | terroni/SHARE | e47f291db7cf100d29a7904fe820e75d29db1472 | a5631f441da1288722c68785b86128c854cbe7c1 | refs/heads/develop | 2020-12-03T02:29:47.381341 | 2016-07-11T19:40:27 | 2016-07-11T19:40:27 | 63,097,148 | 1 | 0 | null | 2016-07-11T19:45:51 | 2016-07-11T19:45:50 | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-08 15:45
from __future__ import unicode_literals
from django.db import migrations
import share.robot
class Migration(migrations.Migration):
dependencies = [
('share', '0001_initial'),
('djcelery', '0001_initial'),
]
operatio... | [
"cwisecarver@cos.io"
] | cwisecarver@cos.io |
008b8ae4c04e14d9cdce23fbd160c2d6fada69a3 | e2e1732b6eb1a7a6dfeba76762851ad06eb8e482 | /wangban/wangban/spiders/beifen/2/ningbo/daxiekaifaqu.py | 1c2493c906df0eb3ec37744b776a18dbfa62a0cb | [] | no_license | nightqiuhua/bigCrawlers | 551e80d55df492c89ae0e0e0bd70c0e5f873068d | 19b86130c8af057d06014865d150e3d2ed6cc319 | refs/heads/main | 2023-03-23T01:13:26.021850 | 2021-03-03T15:09:28 | 2021-03-03T15:09:28 | 344,165,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | # -*- coding: utf-8 -*-
import os
from datetime import datetime
import os
from urllib.parse import urlparse
import re
import time
from wangban_utils.Json2Xpath import Json2XPath,XPath
from wangban_utils.single_mode import singleton
from urllib.parse import urljoin
from scrapy.utils.project import get_project_settings
f... | [
"1320551630@qq.com"
] | 1320551630@qq.com |
8bc54841f877590a71e85e5c7203a64d7bac48f9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03959/s162228731.py | 956fa1077360361e08a0ffa20848604515bb78c8 | [] | 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 | 985 | py | def work(n, t, a):
if t[-1] != a[0]:
return 0
middle = 0
for i in xrange(n):
if t[i] == a[i]:
if t[i] != t[-1] or t[i] != a[0]:
return 0
middle = i
break
for i in xrange(middle, n):
if t[i] < a[i]:
return 0
rec... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
44c2bb2dde1375f2c6043f1a16a82e63308efb08 | 5b95b83ba7e18cb40babab37bcb0f5b63bfef3bb | /script15.py | 443a772f633bd2334e704eeac1f382924dbc5e23 | [] | no_license | Moandh81/w3ressources_python | d9269959cc35c1df4a0ca9d37575c94fb96195f6 | 7a3c65bca50097c2e9b92591443dcb6b03a384a3 | refs/heads/master | 2020-03-30T22:42:23.673212 | 2019-11-11T19:58:16 | 2019-11-11T19:58:16 | 151,675,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!/usr/bin/python
# -*- coding: utf-8 -*
#Python Data Type: String - Exercises
#Write a Python function to get a string made of 4 copies of
#the last two characters of a specified string (length must be at least 2
chaine="Hello world"
if len(chaine) >=2:
print((chaine[len(chaine) -2] + chaine[len(chaine) - 1]) * ... | [
"anis.dhouieb@gmail.com"
] | anis.dhouieb@gmail.com |
5d0e40c90b389c948a09261dfa0d920b443dbb01 | df3acbc57da3462643288504c5f5c8ba00e142a6 | /DangDang_Books/dangdang/dangdang/settings.py | 1d82ea3fb7ff2f9b3fc9c766c0089c03cbbae342 | [] | no_license | tangzhen10/Python_Crawler | 7817c38b01410364e94f76694cb92826b0859400 | 18dfd7e755b163ce15f9acd0bc49e8c450ff6198 | refs/heads/master | 2020-07-27T08:28:13.245375 | 2019-09-04T11:04:23 | 2019-09-04T11:04:23 | 209,029,654 | 1 | 0 | null | 2019-09-17T10:55:10 | 2019-09-17T10:55:10 | null | UTF-8 | Python | false | false | 3,092 | py | # -*- coding: utf-8 -*-
# Scrapy settings for dangdang project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"why957177569@163.com"
] | why957177569@163.com |
cbf52a5a72f51750a9828b5b79b7616c161ce741 | 1cd909991a97c12752d81e334659c573c3bb6652 | /cheritest/trunk/tests/mt/test_mt_rdhwr.py | 2a1403eacaf47d96ff7989d204bd617ee83ff27c | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-beri-hw-sw-1.0"
] | permissive | conan789123/beri | 47ce884d5bf5635ef5dd3e64adfe7735996384ad | cef1b41d52592cfa7454ddf59f9f2994e447cd66 | refs/heads/master | 2020-03-28T05:57:17.172443 | 2017-03-27T17:21:10 | 2017-03-27T17:21:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | #-
# Copyright (c) 2014 Michael Roe
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# @BERI_LICENSE_HEADER_START@
#
# Licensed to BER... | [
"cl-beri-discuss@lists.cam.ac.uk"
] | cl-beri-discuss@lists.cam.ac.uk |
331bef022949cda2d9ab90b645a7c857d91a7fd5 | abc4ad00b4f267e43954db01f6540282a5d0ffea | /code/export_inference_graph.py | 2b35b3534477d1b4549653aef6eb001111178eb3 | [] | no_license | yuanyuanzijin/flower-recognition | 0ed6ab7bbcf91779cefab77f924942071690fe0e | 971e43b4926c6b8b14e91c3b1ccbeea2d8d60334 | refs/heads/master | 2021-08-29T23:14:33.395849 | 2017-12-14T23:49:50 | 2017-12-14T23:49:50 | 114,340,517 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,953 | 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 applicable ... | [
"jinluyuan@vip.qq.com"
] | jinluyuan@vip.qq.com |
ffee569c636d7a39e30d79887b2ae06f32ae5544 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/pennatula.py | 68acd65eab6d7430d81c725ac0c105e54266c3bb | [] | 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 | 44 | py | ii = [('RogePAV2.py', 2), ('RogePAV.py', 6)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
7ecec0f8ce1a77817d1d3f1b5be71e05c68dac13 | e82b3c6000fe8e4639d6606f9d3605e75a8a5d5c | /src/secondaires/crafting/recette.py | 8cb0d2ffbe27e770852aa4faf11fc68101ad3017 | [
"BSD-3-Clause"
] | permissive | vincent-lg/tsunami | 804585da7bd1d159ad2c784b39f801963ca73c03 | 7e93bff08cdf891352efba587e89c40f3b4a2301 | refs/heads/master | 2022-08-02T15:54:35.480614 | 2022-07-18T12:06:41 | 2022-07-18T12:06:41 | 25,605,543 | 5 | 2 | BSD-3-Clause | 2019-06-05T15:59:08 | 2014-10-22T21:34:10 | Python | UTF-8 | Python | false | false | 11,391 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# 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 notice, this
# ... | [
"vincent.legoff.srs@gmail.com"
] | vincent.legoff.srs@gmail.com |
ddd546a4eb1f6fea8aac981c9f1ba18b18698851 | 2baeb9965f64214e5a1478ab5139c53bb363ff50 | /torch/nn/quantized/modules/conv.py | 99a0f969739ae231a6e42f28a57f3925a28ddd6d | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | Dithn/pytorch | b327d9a7434a0dbadb7bbf148b22cef7d2e4bc1c | 86399d8e0cb72dfd1501fb9be870ac29af38e241 | refs/heads/master | 2023-04-26T12:01:26.043128 | 2021-11-16T19:54:14 | 2021-11-16T19:55:40 | 207,961,157 | 1 | 0 | NOASSERTION | 2021-11-17T02:14:51 | 2019-09-12T03:58:02 | C++ | UTF-8 | Python | false | false | 35,148 | py | # coding=utf-8
r"""Quantized convolution modules."""
from typing import Optional, List, TypeVar
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.intrinsic as nni
import torch.nn.intrinsic.qat as nniqat
from torch._ops import ops
from torch.nn.common_types import _size_1_t
from torch... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
55f8f0d9a4d02a624dfc1d1931ebe55eca75f4a1 | c6ca3fd35bd0e36ab1c3427bd4dfd55fd8cff0f7 | /2020/october/1/11-Oct/mysql(17).py | fd61ec2fe274cb61f84bcc0724e5769b0c5bfbcc | [] | no_license | mohanbabu2706/testrepo | 23ae942d1af4bfbc31c9266daadfd8f9dce431a6 | 5d75d9c65f7174a7418cdc3d00580b99a11f67d0 | refs/heads/master | 2023-01-03T23:48:56.365958 | 2020-11-01T06:38:46 | 2020-11-01T06:38:46 | 300,142,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import mysql.connector
mydb = mysql.connector.connect(
host = "localhost",
user = "myusername",
password = "mypassword",
database = "mydatabase",
)
mycursor = mydb.cursor()
sql = "SELECT * FROM customers ORDER BY name DESC"
mycursor.execute(sql)
myresult = mycursor.fetchall()
for ... | [
"noreply@github.com"
] | mohanbabu2706.noreply@github.com |
d4dc2c5f7f03abab95daa5989886ca06a7db4c6c | d7589054c9dbcccdfee4213fda2df10f249a60a8 | /blogposts/migrations/0002_auto_20190622_1254.py | 457e9049564ff51cde1fcc2835f3ba4312831161 | [] | no_license | Ruckaiya/djangoblog | aa3e16ce84f37a70b830a795acf450b04b5c5bca | a76c5d223477d29b391915c3778219a36f9f34ce | refs/heads/master | 2020-06-09T00:26:51.396663 | 2019-06-23T10:47:43 | 2019-06-23T10:47:43 | 193,334,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 2.2.2 on 2019-06-22 06:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogposts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='latestpost',
name='timestamp',
... | [
"ruckaiya.awf5@gmail.com"
] | ruckaiya.awf5@gmail.com |
ca2b1b48748cf7dbf82a3c4d89d82d047927b481 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/network_instances/network_instance/protocols/protocol/isis/global_/timers/spf/config/__init__.py | e04f44eb1c83f1fb35643a331525799b5ac14be0 | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,458 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
6e5c7d4574ac6bdf771974fca13d24252f6fbbfe | e5ba55ac56d2d07aeebd7253fbe5d186196c9a52 | /catkin_ws/catkin_ws/build/rosserial/rosserial_server/catkin_generated/pkg.installspace.context.pc.py | ae10992ff46064e55de2240a2ca888d8f0938951 | [] | no_license | masiro97/darrsm | 5305a3e7c1fba2635a4925b9e079f45b40162862 | b881d00427d2af5d75ca509a191e57f2890e1ece | refs/heads/master | 2021-05-10T21:57:17.760536 | 2018-01-20T15:13:56 | 2018-01-20T15:13:56 | 111,084,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/cun/catkin_ws/install/include".split(';') if "/home/cun/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;rosserial_msgs;std_msgs;topic_tools".replace(';', ' ')
PKG_CONFIG... | [
"estrk7120@gmail.com"
] | estrk7120@gmail.com |
2fb1b577624a5c8248e2d3dda1345033e30fd705 | dbe7731552d8e6d1e63cc0f2e27d3810cc61f350 | /hyper_paras/hp_dqn_2015.py | d4c5e2d826930dfa598be045d574d07259694b32 | [] | no_license | ZhangRui111/rl_breakout_tf | 6bb3f57f2b1d52f196323916393234e8abb990ac | 04f259cd3c32eaffbad87fe1035b0f87c96127b0 | refs/heads/master | 2020-04-08T19:24:16.018734 | 2018-12-18T02:42:56 | 2018-12-18T02:42:56 | 159,653,713 | 1 | 1 | null | 2018-12-18T02:42:57 | 2018-11-29T11:12:04 | Python | UTF-8 | Python | false | false | 190 | py | from hyper_paras.base_hyper_paras import BaseHyperparameters
class Hyperparameters(BaseHyperparameters):
def __init__(self):
super().__init__()
self.model = 'dqn_2015'
| [
"zhangruisg111@163.com"
] | zhangruisg111@163.com |
6943c6920b94ac55fc64ba3c743795f09a5b7748 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2015_01_29_BC_eval/main.py | 9afe65371e8a594387bdee14b3c79e9fe46bed0a | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 17 16:46:35 2014
@author: nhpnp3
"""
import functions as rr
import numpy as np
import matplotlib.pyplot as plt
filename = 'Results_Ti64_Dream3D_XYdirLoad_210microns_9261el_AbqInp_AnisoLE_005_data_v2_01.vtk'
el = 21
tensor_ID = 1
## The tensorID determines the ... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
60a813a4f05609691d978440ce055ad549e189da | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/messenger/proto/bw_chat2/errors.py | 08901cc5ca868928a6c33929c34e99ea139ac423 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,166 | py | # 2016.05.01 15:25:05 Střední Evropa (letní čas)
# Embedded file name: scripts/client/messenger/proto/bw_chat2/errors.py
from gui.Scaleform.locale.MESSENGER import MESSENGER as I18N_MESSENGER
from gui.Scaleform.locale.INGAME_GUI import INGAME_GUI as I18N_INGAME_GUI
from helpers import i18n, html
from helpers.time_utils... | [
"info@webium.sk"
] | info@webium.sk |
1d6d55a629040d2a4f5a21a40cb2d8c050150aa4 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_show.py | 1f3a7021343df279377f28627289aacc60a9f5b9 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 7,741 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
0749a6002445ed54ada4865f9d8ead88709f8e04 | 29487730c77ae4e875ed8f69d3aceef2103fc0a3 | /fatcatmap/models/abstract/event.py | c93f570669e0aaedbbc3a8c0174e8256b06fac65 | [] | no_license | sgammon/fatcatmap | 154665fdd9394e0802d1bce9d0d747f3f9bfe3b2 | 4c83d1bfc146f48ac2d1d6b240624a7ece57911e | refs/heads/master | 2021-03-30T15:41:15.837040 | 2014-12-09T20:38:50 | 2014-12-09T20:38:50 | 15,307,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
'''
fcm: abstract event models
'''
# stdlib
from datetime import datetime
# graph models
from .. import (Model,
describe)
@describe(abstract=True)
class Event(Model):
''' Specifies an action that occurred at a specific (or
vague) single moment in time. '''
oc... | [
"sam@momentum.io"
] | sam@momentum.io |
311119c4a533fb84b1644a51b05a305f2728fa5b | bd58eb56167680e5c07c1e6e630c03f2f73a3647 | /replace_downloads/replace_downloads.py | ab5264c1faddd4658ae864b61571d3c4340698b5 | [] | no_license | denier1025/PycharmProjects | 40e7ac879993e2e4b0ad7b0c547790a2554406eb | 411f8ae04c4ba4f6835d2cd66b5490223a863b2f | refs/heads/master | 2020-03-27T06:14:39.127989 | 2018-09-10T19:51:24 | 2018-09-10T19:51:24 | 146,091,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | #!/usr/bin/env python
import netfilterqueue
import scapy.all as scapy
import subprocess
import argparse
ack_list = []
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument("-c0", "--chain0", dest="chain_name0", help="Chain name: FORWARD, OUTPUT, INPUT etc.")
parser.add_argument("-c1", "-... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f55d7cfc44bac29fc91d4cf46061f70481c026ed | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/IEM/tools/Weights_matrix_LM_3items.py | 423fd194f89fcea7ee5da1725dfd4a8d6bacfb41 | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 29 13:05:33 2019
@author: David
"""
import sys, os
path_tools = os.path.abspath(os.path.join(os.getcwd(), os.pardir))
sys.path.insert(1, path_tools)
from tools import *
def Weights_matrix_LM_3items( training_data, training_angles ):
# no intercept
# no regress... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
7346dc2a4751f2adbec6fe72f886800613002c7e | b1bab1dca289b2447c0b7a6b2e41f6e61fc048df | /TEST/A형모의삼국지.py | 0f97c63d8257949edae6a7aa5415e57818df7f28 | [] | no_license | DongChanKIM2/Algorithm | bf267ddf4234f0da6552a559f43cac073e7ca133 | 2613462f65a2cda7e32c6f96cee2cd67733c9883 | refs/heads/main | 2023-08-24T10:46:12.330145 | 2021-10-11T06:31:56 | 2021-10-11T06:31:56 | 356,710,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,469 | py | #1. 땅따먹기 게임
# Rule 1. 산악지대는 무조건 0
# Rule 2. 주병력/보조병력으로 나뉘어져 이씀
# Rule 3. 공격 -> 지원 -> 보충 (1번나라 -> 2번나라 -> 3번나라) 병력이 없다면 skip
# Rule 4. 공격: 내 공격 turn일때 (인접한 상대 나라의 병력 * 5) < (내 나라 병력) 이면 1/4씩 보내서 공격
# 즉 무조건 침공가능할때만 공격하는 것임
# Rule 5. 지원:
# 5-1. 인접한 국가 중 다른나라가 없으면 인접한 지역으로 1/5 병력 보냄
# 5-2. 인접한 국가 중 다른나라가 있으면 5... | [
"fromecha@gmail.com"
] | fromecha@gmail.com |
86dcef936a9635a57846cbb64347fec7aede84f9 | 562446b9c0b39dd74a079678fab235ad7f9b8fb2 | /enaml/wx/wx_group_box.py | cc12ceba9a849c5b309913381a5286bd49ec7dbe | [
"BSD-3-Clause"
] | permissive | jminardi/enaml | 2679bbb992101e07b1d780bd622c5ccb08cb329e | 78446e5163e026d9abf9568f99252615e9e2e380 | refs/heads/master | 2021-01-23T22:37:54.033419 | 2014-07-22T02:30:21 | 2014-07-22T02:30:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,127 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
f43b483dfeb3751246fc8febb721f04195a9a24a | 7137161629a1003583744cc3bd0e5d3498e0a924 | /airflow/providers/amazon/aws/example_dags/example_eks_using_defaults.py | 12a80fb4e6e270cea1e79d99caefb113099997a8 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | jbampton/airflow | 3fca85975854eb916f16143b659a9119af143963 | dcfa14d60dade3fdefa001d10013466fe4d77f0d | refs/heads/master | 2023-05-25T22:31:49.104069 | 2021-09-18T19:18:32 | 2021-09-18T19:18:32 | 247,645,744 | 3 | 0 | Apache-2.0 | 2020-03-16T08:12:58 | 2020-03-16T08:12:57 | null | UTF-8 | Python | false | false | 3,917 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | jbampton.noreply@github.com |
81f504ac97ca0003faf28ebe4384c00b0c873734 | adc1dea2a624af5a3d0564083d521942db77e5cf | /knn_cb_popularity_single.py | 3cfaf45ca93d5b4e167325cc09b7adac20e18674 | [] | no_license | Hadryan/Music_recommender-2 | 7052ac999daf039b2c269ce30a19cf57a5bde3e4 | a92ec61eef679b5b848fa2199ff613412db43c0d | refs/heads/main | 2023-04-24T01:11:57.877872 | 2021-05-25T17:47:28 | 2021-05-25T17:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | # -*- coding: utf-8 -*-
"""
KNN Content-Based Recommendation
"""
# data science imports
import numpy as np
import pandas as pd
from sklearn.neighbors import NearestNeighbors
import sklearn.preprocessing as skpp
# Scale and normalize data
def scale_norm(data_numerical):
# Remove row if there's NA ... | [
"noreply@github.com"
] | Hadryan.noreply@github.com |
251fb0fe7b9ce2897c4ea970c74c6afc7d9ca55a | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/aio/_key_vault_management_client.py | a967aa9463c857d292acf0bcdbc7f3d4774fa1e4 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 11,175 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
5d53f9a863c1badebd9528387de602d7b9308982 | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/site-packages/pip/_vendor/packaging/_structures.py | a442ded53a74bb7ab3cfba52fff2e34073d3ae1c | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | ../../../../../../../.cipd/pkgs/2/_current/lib/python3.8/site-packages/pip/_vendor/packaging/_structures.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
49eba96374a4a38078f28ee469f2bb8d525d67ea | 14e7058adf766352a0b90b66b7dcf887105a481c | /portal/messages/models.py | c11765e46bf0cd904a86461b20cf043a9c9591c9 | [
"BSD-2-Clause"
] | permissive | brunogamacatao/portalsaladeaula | 2b7f07f07c2518dd359f043483fbb27417f62aaf | 9429e485aa37ffea3208339a807032e9230a3c84 | refs/heads/master | 2020-12-29T01:42:18.594281 | 2012-06-22T12:24:44 | 2012-06-22T12:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,882 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
__author__ = 'brunocatao'
import datetime
import logging
from django.db import models
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.utils.encoding import force_unicode
from django.utils.tr... | [
"brunogamacatao@gmail.com"
] | brunogamacatao@gmail.com |
0ef8d8053b594333cebb10fcf5499c6eaa0f4561 | 3a1a9e085da569c8cfd01752a46d499d407f55b7 | /phonesite/manage.py | 1db558fe9844c8bad39ef4149384fbc0e7b74710 | [] | no_license | gzgdouru/django | 9286f2480be029a37f1ca8c8b400c21f7250e64b | e55ea1a3e424da7621ec799759a6d5b346a95bb0 | refs/heads/master | 2020-03-19T13:48:49.830094 | 2018-08-29T01:51:41 | 2018-08-29T01:51:41 | 136,596,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "phonesite.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"18719091650@163.com"
] | 18719091650@163.com |
e38cc17d71bc92be9695f5c69c0a8dd781ea878d | 4ed3db861ae2fe727c7be604d42d540a00923320 | /samsung_multiroom/__init__.py | f5eaa8a8e92a00784ea09bf85a26da5fad2d46e8 | [
"MIT"
] | permissive | kusma/samsung_multiroom | 7cac147283a52bf491d7f50a6569c64de53eb4a5 | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | refs/heads/master | 2020-12-04T07:46:19.688568 | 2019-04-20T16:29:44 | 2019-04-20T16:29:44 | 231,683,383 | 0 | 0 | MIT | 2020-01-03T23:47:29 | 2020-01-03T23:47:28 | null | UTF-8 | Python | false | false | 254 | py | """
Init.
"""
# pylint: disable=C0103
from . import factory
from . import discovery
from .service import REPEAT_ONE, REPEAT_ALL, REPEAT_OFF
# aliases
SamsungMultiroomSpeaker = factory.speaker_factory
SamsungSpeakerDiscovery = discovery.SpeakerDiscovery
| [
"k.galutowski@gmail.com"
] | k.galutowski@gmail.com |
1952570b90f1800528a3b78b0f70da2e1c2b2478 | a8be4698c0a43edc3622837fbe2a98e92680f48a | /Programmers/Hash/위장.py | 7916695309725c283e78994ea36da5b2f1786f25 | [] | no_license | blueboy1593/algorithm | fa8064241f7738a12b33544413c299e7c1e1a908 | 9d6fdd82b711ba16ad613edcc041cbecadd85e2d | refs/heads/master | 2021-06-23T22:44:06.120932 | 2021-02-21T10:44:16 | 2021-02-21T10:44:16 | 199,543,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from collections import defaultdict
def solution(clothes):
answer = 1
clothes_dict = defaultdict(list)
for cloth in clothes:
a, b = cloth
clothes_dict[b].append(a)
arr = []
for value in clothes_dict.values():
arr.append(len(value))
for ar in arr:
answer *= ... | [
"snb0303@naver.com"
] | snb0303@naver.com |
f278e0b8a688262bf51f4581909942235236acfe | 116fa33c52c561b86cee2a43c6f3d18ff6496df5 | /setup.py | fba9817d3fbe164062eb48fff629060326c8b584 | [
"Apache-2.0"
] | permissive | famousthom/overseer | fc3c276a9b53c3fa56ab30fbf35341177f1e1a43 | 69e7a229450c4eed8721e5cfce6a98c708b50a95 | refs/heads/master | 2020-12-24T17:53:43.633263 | 2011-06-04T17:59:40 | 2011-06-04T17:59:40 | 1,847,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
from setuptools.command.test import test
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
class mytest(test):
... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
4e035dbd22d936b9cb74cb2496fab16767ca84fd | 35c73e0b545f6ceb791994db6e6c8ce3624885b9 | /config/deprecated_211014/cmssw_privateMC_TagAndProbe_Bp_MuNuDstst.py | 2ee8082fbc51311a1df9a56ce480e891b62ca128 | [] | no_license | ocerri/BPH_RDntuplizer | edb26d466352b831e53d6f18d6d1980074686c9b | a4b157f5a64473bf3db360019d55fa2217199015 | refs/heads/master | 2022-06-27T06:33:32.566956 | 2022-06-09T01:59:46 | 2022-06-09T01:59:46 | 167,600,038 | 2 | 6 | null | 2022-06-03T02:04:49 | 2019-01-25T19:14:04 | C++ | UTF-8 | Python | false | false | 4,742 | py | import os, sys
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
from Configuration.StandardSequences.Eras import eras
process = cms.Process('BPHRDntuplizer', eras.Run2_2018)
# import of standard configurations
process.load('FWCore.MessageService.MessageLogger_cfi')
# Neede... | [
"olmo.cerri@gmail.com"
] | olmo.cerri@gmail.com |
227c7a0d62baf387c75ed7a38cd0abc217cc728d | 84156ccfb34bd133b4e050e07c165ffe4030c39e | /avocado/export/__init__.py | 7fd0c7ab061c1daa38661335d8e5e48817284ed1 | [
"BSD-3-Clause"
] | permissive | leipzig/avocado | ae4482585683585dd41e9e2ecd2d0e12e649aaa7 | 930bc77371d609e05691508e544e5d97a090cfd8 | refs/heads/master | 2021-01-16T19:59:05.140028 | 2012-12-15T01:49:38 | 2012-12-15T01:49:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from avocado.core import loader
from avocado.conf import OPTIONAL_DEPS
from _csv import CSVExporter
from _sas import SasExporter
from _r import RExporter
from _json import JSONExporter
from _html import HTMLExporter
registry = loader.Registry(register_instance=False)
registry.register(CSVExporter, 'csv')
registry.reg... | [
"b@devel.io"
] | b@devel.io |
d1fd9a40ca971617b4b8d46e1f4c0b85a476400f | a977365234cad283d9f3edc022976a70501c1c41 | /API-Auto/testCase/PersonalCenter/test5_03case.py | 3052a24d526bd1176eceaa495014da24de0a2e2f | [] | no_license | quqiao/hezongyy | 849f2b9c8a4db562bde5e415ef012ff29c704fd8 | cde6805ada979afe0b24911f8c5d0977cfd92e5a | refs/heads/master | 2021-08-16T10:20:12.618268 | 2020-07-23T09:09:07 | 2020-07-23T09:09:07 | 205,772,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,702 | py | import json
import unittest
from common1.configHttp import RunMain
import paramunittest
import geturlParams
import urllib.parse
# import pythoncom
import readExcel
from SaveParam.GetParam import UserLoginToken
from testCase.user import test1_01case
# pythoncom.CoInitialize()
import time
time.sleep(3)
# url = geturlPar... | [
"553248560@.com"
] | 553248560@.com |
28bae8f3274478cae27342b125169091f3c11d2f | 935c60a8fa9a2f8d0efed9b1123a0a75e4c28250 | /censusreporter/apps/census/templatetags/sumlevs.py | 5eabc22d9189c83245fc75d7a4370fdf562a8e1b | [
"MIT"
] | permissive | censusreporter/censusreporter | a5299aebbec51d0508bdea6a90415ad2d724a2a5 | e8418d657b546482a80e92c6cd17332ab22c40c0 | refs/heads/master | 2023-08-31T23:10:43.506418 | 2023-08-25T16:05:46 | 2023-08-25T16:05:46 | 10,183,514 | 694 | 123 | MIT | 2023-02-15T19:03:00 | 2013-05-20T22:46:00 | HTML | UTF-8 | Python | false | false | 495 | py | from django import template
from census.utils import SUMMARY_LEVEL_DICT
register = template.Library()
@register.filter
def sumlev_name(sumlev):
if SUMMARY_LEVEL_DICT[sumlev]:
return SUMMARY_LEVEL_DICT[sumlev]['name']
return ''
@register.filter
def sumlev_name_plural(sumlev):
if SUMMARY_LEVEL_DICT[... | [
"ryan.a.pitts@gmail.com"
] | ryan.a.pitts@gmail.com |
cfe688f0835102af0855fbac30fec0aad5293bcf | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /abc237/b.py | 77a5fc4125ebfbad2fd73a68cdf2011e23c51827 | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | h, w = map(int, input().split())
aa = [
list(map(int, input().split()))
for _ in range(h)
]
for x in range(w):
b = [aa[i][x] for i in range(h)]
print(' '.join(map(str, b))) | [
"silphire@gmail.com"
] | silphire@gmail.com |
240707e34591a5f96f21763228a52c2a2efccf8d | bdfd3889e1cc02f97b3e2dc0032ce0c9b59bf37e | /src/gork/contrib/gbase/context_processors.py | 63035d955323f3fdfe2e9991d70633f56e88470d | [
"MIT"
] | permissive | indexofire/gork | c85728953cfa9ab98c59b79a440d4e12212cbc4e | c5e172b896a51c15f358d3aabbcb66af837b54b2 | refs/heads/master | 2016-09-06T04:58:01.435002 | 2014-02-06T08:35:51 | 2014-02-06T08:35:51 | 9,260,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
from django.conf import settings
def site_info(request):
return {
'SITE_NAME': getattr(settings, 'SITE_NAME', None),
'CODE_AUTHOR': getattr(settings, 'CODE_AUTHOR', None),
'TEMPLATE_AUTHOR': getattr(settings, 'TEMPLATE_AUTHOR', None),
'SITE_URL': getattr(set... | [
"indexofire@gmail.com"
] | indexofire@gmail.com |
93d50406711a9575123d20b27934aaf6d01e5e66 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02982/s044044811.py | 26dc9cd58c1c9f23cda90d6764b4c3a68593bf42 | [] | 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 | 281 | py | import numpy as np
N,D = map(int,input().split())
x = np.array([[int(i) for i in input().split()] for _ in range(N)])
count = 0
for i in range(N):
for j in range(i+1,N):
if float.is_integer(np.linalg.norm(x[i][:]-x[j][:], ord=2)):
count += 1
print(count)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d970b1196ea3e6aef62e8c6538c5f9e14955d85d | fb4afc975c4df4ea59366e6602a1359dc484aaa4 | /silvio/check_eta2_distribution_fit.py | fb40f599a34d5e475593ab6954b6d7d0154c1fed | [] | no_license | silviodonato/DijetRootTreeAnalyzer | b63181dc526f76cc67319f5c5292136fac522071 | a47fe92d1a6d6e35b030606fe6ee837bb0a4c2ca | refs/heads/master | 2021-06-24T10:45:34.198060 | 2019-06-04T15:19:38 | 2019-06-04T15:19:38 | 114,103,862 | 0 | 0 | null | 2018-12-04T15:19:11 | 2017-12-13T09:56:24 | C | UTF-8 | Python | false | false | 7,096 | py | import ROOT
import array
redoPlot = True
'''
ROOT.gROOT.SetBatch(0)
canv2 = ROOT.TCanvas()
'''
colors = [
ROOT.kBlack,
ROOT.kYellow+1,
ROOT.kRed,
ROOT.kMagenta,
ROOT.kBlue,
ROOT.kCyan+1,
ROOT.kGreen+1,
ROOT.kOrange,
ROOT.kPink,
ROOT.kViolet,
ROOT.kAzure,
ROOT.kTeal,
ROOT.kSpring,
ROOT.kGray,
]
colors = colors *... | [
"silvio.donato@cern.ch"
] | silvio.donato@cern.ch |
09d2b162d3aa555c6e0bdf0745efa0aa7326c043 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-github/unit_tests/unit_test.py | e7e3adf6bf81d5be520adfda3c14e9fdddcb3859 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 912 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from airbyte_cdk.sources.streams.http.auth import MultipleTokenAuthenticator
from source_github import SourceGithub
def test_single_token():
authenticator = SourceGithub()._get_authenticator({"access_token": "123"})
assert isinstance(authenticator,... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
4e0405087a86e930b76e5c4543867e7bfb2d61ac | e21599d08d2df9dac2dee21643001c0f7c73b24f | /Others/Modules/networking/ftplib/ftplib_1.py | f35db835c9a52e0f8890ef3ecb682380536ab8d7 | [] | no_license | herolibra/PyCodeComplete | c7bf2fb4ce395737f8c67749148de98a36a71035 | 4ef7d2c3aec6d28a53eed0e649cdeb74df3d783b | refs/heads/master | 2022-07-17T05:39:03.554760 | 2020-05-03T07:00:14 | 2020-05-03T07:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | # coding=utf-8
import ftplib
ftp = ftplib.FTP("www.python.org")
ftp.login("anonymous", "ftplib-example-1")
print ftp.dir()
ftp.quit()
| [
"ijumper@163.com"
] | ijumper@163.com |
52a3c79244a82acf35e998f0e5141dfb252fbecd | 9c58a1f594e18cee20128f2c8dad8257429b10d1 | /dropship_taw/__init__.py | 19bff6f8b78c84ee375ecd71cae1ee626628df77 | [] | no_license | gastonfeng/Odoo-eBay-Amazon | e8919768b2a1500209f209ee3aecc7f2fb10cda7 | a9c4a8a7548b19027bc0fd904f8ae9249248a293 | refs/heads/master | 2022-04-05T00:23:50.483430 | 2020-02-19T04:58:56 | 2020-02-19T04:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | # -*- coding: utf-8 -*-
import models
import purchase
import stock_picking
| [
"yjm@mail.ru"
] | yjm@mail.ru |
85ae1095cbcec3fa5bc1d2dbb7910389e4b86fd0 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/cshjam001/question4.py | eaf38914b99ae858c1fb572ee3dd0ae6cf19b467 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | marks=input('Enter a space-separated list of marks:\n')
marks_list=marks.split(' ')
marks_list = [int(i) for i in marks_list]
fail=0
third=0
low_second=0
up_second=0
first=0
for i in marks_list:
if i<50:
fail+=1
elif i<60:
third+=1
elif i<70:
low_second+=1
elif i<7... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
c8087889a488b72efcbfe902393e594a35f0fbde | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/face/force/side/test_government.py | e3bae4e0b77290e42845a540c14f38df61fdd566 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
import pandas as pd
import http.client, urllib.parse
from googletrans import Translator
# **********************************************
# *** Update or verify the following values. ***
# **********************************************
# Replace the subscriptionKey string value with your valid ... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
e9e43aa177be41984ff8110f21f4c8529b3b158b | 4352e2e26d7d3bc6b56b65bbe7f5d972735ecc1a | /otree/channels/consumers.py | c0c079f02787550dc2a27194295444360d10f6ce | [
"MIT"
] | permissive | bgreiner/otree-core | a429c1727df1db2f88142a36ca1ff2c0fda6938c | cc21335ec16d1a91c2b7940163077c37c659599f | refs/heads/master | 2020-03-30T19:51:59.206973 | 2018-10-24T14:08:00 | 2018-10-24T14:08:00 | 151,562,644 | 0 | 0 | NOASSERTION | 2018-10-04T11:41:47 | 2018-10-04T11:41:47 | null | UTF-8 | Python | false | false | 17,183 | py | import json
import logging
import django.db
import django.utils.timezone
import traceback
import time
from channels import Group
from channels.generic.websockets import JsonWebsocketConsumer
from django.core.signing import Signer, BadSignature
import otree.session
from otree.channels.utils import get_chat_group
from ot... | [
"chris@otree.org"
] | chris@otree.org |
dfeb1a9ad400d0e5dbfd8aca2f98ca7ed2ab8cf7 | 98cd5ddf45a73aea64bbfac0c0104829d7231b81 | /T - Image + Square/info.py | 28870e30ab938ba5ac04edf47271a06dfd397f12 | [] | no_license | atheis4/ETC_Modes_Extra | 42508d523cfe632a3335e29f6e1e40af91df231b | d0ce221562105382a7a73cc6d280f4ad0eabf6f3 | refs/heads/master | 2022-04-04T11:15:07.335910 | 2020-01-03T20:27:32 | 2020-01-03T20:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | name = "T - Image + Square"
description = "Random Image Placement with Square Border"
knob1 = "Image Size"
knob2 = "Square Size"
knob3 = "Image Opacity"
knob4 = "Square Color"
released = "July 28 2017" | [
"media@critterandguitari.com"
] | media@critterandguitari.com |
80af8a1357d45d62529731511322ff710ddf8c1c | 4d675034878c4b6510e1b45b856cc0a71af7f886 | /mmdet/models/detectors/maskformer.py | df8b5c293c483c5b8791cd24d9e36f564bbe57f9 | [
"Apache-2.0",
"BSD-2-Clause-Views",
"MIT",
"BSD-2-Clause"
] | permissive | shinya7y/UniverseNet | 101ebc2ad8f15482ee45ea8d6561aa338a0fa49e | 3652b18c7ce68122dae7a32670624727d50e0914 | refs/heads/master | 2023-07-22T08:25:42.646911 | 2023-07-08T18:09:34 | 2023-07-08T18:09:34 | 263,555,721 | 407 | 58 | Apache-2.0 | 2023-01-27T01:13:31 | 2020-05-13T07:23:43 | Python | UTF-8 | Python | false | false | 10,396 | py | # Copyright (c) OpenMMLab. All rights reserved.
import mmcv
import numpy as np
from mmdet.core import INSTANCE_OFFSET, bbox2result
from mmdet.core.visualization import imshow_det_bboxes
from ..builder import DETECTORS, build_backbone, build_head, build_neck
from .single_stage import SingleStageDetector
@DETECTORS.re... | [
"noreply@github.com"
] | shinya7y.noreply@github.com |
78120becb61c39d95665cd156269b2bb021e6dca | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/580747_Two_quick_functions_object/recipe-580747.py | 537650eed6cc4cbf663fde4bce6deec57d9c17c5 | [
"MIT",
"BSD-2-Clause"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 2,535 | py | def oa(o):
for at in dir(o):
print at,
'''
Sample calls and output for oa() below:
# object attributes of a dict:
oa({})
__class__ __cmp__ __contains__ __delattr__ __delitem__ __doc__ __eq__ __format__
__ge__ __getattribute__ __getitem__ __gt__ __hash__ __init__ __iter__ __le__ __len__
__lt__ __ne__ __ne... | [
"betty@qburst.com"
] | betty@qburst.com |
117fe1342a3efe8540e633aa9a62d928ac69653d | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/DataStax/resources/spark/python/examples/wordcount.py | 52f53c6f8b231953db69166e09e3ccc8a4d5cd1c | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ca373d7911f67e869369ad2f602e2739ff048b81941c922a74136867cf33a91d
size 1321
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
1c7e5a7390304c57008517d71539568ca946b451 | 0580861bd8b993ac92faec0ed88a339975d702c0 | /reagent/core/observers.py | 8d56984ae533afe510457644890fada46dbd303f | [
"BSD-3-Clause"
] | permissive | Sandy4321/ReAgent | 346094ae4c98121de5c54d504186f583de21daf0 | 0a387c1aeb922d242c705338fae9379becc82814 | refs/heads/master | 2023-07-17T01:27:17.762206 | 2021-08-19T03:15:15 | 2021-08-19T03:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import logging
from typing import Any, Dict, Iterable, List, Optional
from reagent.core.tensorboardX import SummaryWriterContext
from reagent.core.tracker import Aggregator, Observer
logger = logging.getLogger(__name__)
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a2d865f534068e41894553b999aeceab60ce73c0 | 6d54c57d0ec958158b48be3aa46fe717b507d378 | /pyvisfile/vtk/__init__.py | 589fd52966ef9af146a413614df3eef7806a8b5b | [
"MIT"
] | permissive | cstatz/pyvisfile | e368a82caaec495a5fbfbc2d45b9d773427f0e49 | a724f77da5cd46842f0ba313ac0ba1f86f3842c5 | refs/heads/master | 2021-01-18T11:17:40.212432 | 2013-08-29T10:29:42 | 2013-08-29T10:29:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,175 | py | """Generic support for new-style (XML) VTK visualization data files."""
__copyright__ = "Copyright (C) 2007 Andreas Kloeckner"
import numpy as np
VTK_INT8 = "Int8"
VTK_UINT8 = "UInt8"
VTK_INT16 = "Int16"
VTK_UINT16 = "UInt16"
VTK_INT32 = "Int32"
VTK_UINT32 = "UInt32"
VTK_INT64 = "Int64"
VTK_UINT64 = "UInt64"
VTK_F... | [
"inform@tiker.net"
] | inform@tiker.net |
097955982d9a4cd85cd972d01f493310df17eb98 | 43206144544e89d1510f8f77c443735200222f27 | /demo_zinnia_bitly/settings.py | 721a88ca90133e533008ec7ec45dec0e08e651fe | [
"BSD-3-Clause"
] | permissive | SteveByerly/zinnia-url-shortener-bitly | e655aa4bb4b560a67a28c84c2ddf9126d4904f7b | 67bf0681e3d16bf27c05cc0a91229cdc1ad3fb8e | refs/heads/develop | 2021-01-21T08:38:20.303625 | 2015-04-20T23:23:46 | 2015-04-20T23:23:46 | 34,291,673 | 0 | 0 | null | 2015-04-20T23:13:25 | 2015-04-20T23:13:25 | null | UTF-8 | Python | false | false | 2,440 | py | """Settings for the zinnia-bitly demo"""
import os
gettext = lambda s: s
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {'default':
{'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(os.path.dirname(__file__), 'demo.db')}
}
TIME_ZONE = 'Europe/Paris'
STATIC_URL =... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.