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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5946b71e2ab0dea1477088813ea136f3eec56027 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp204_3500.py | 2257cb33602a12bda3d813cf203fd13c700b9869 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,767 | py | ITEM: TIMESTEP
3500
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.6878559649266461e+02 2.1598559649270894e+02
-1.6878559649266461e+02 2.1598559649270894e+02
-1.6878559649266461e+02 2.1598559649270894e+02
ITEM: ATOMS id type xs ys zs
782 1 0.287021 0.0038045 0.0236388
558 1 0.674384 0.0753822 0.0141806
571 1 0... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
cffe0a59e77bcf26414b072c0e182159fac32345 | 82948269c85dd0cce4f1337f75b28b5edf6d81ef | /eval.py | 6b58ef22874feb9bea385f8a78b0cae4bdc90d21 | [] | no_license | zhangwenhao123/Underwater-Color-Correction | 291c5f7131855832d58ddd6a02fd0a334c3f13d3 | b25bd697bfd206afb9b3d1ad58d4ff4dfc850b2e | refs/heads/master | 2021-05-11T03:43:07.330895 | 2018-01-17T22:48:46 | 2018-01-17T22:48:46 | 117,921,125 | 0 | 0 | null | 2018-01-18T02:33:36 | 2018-01-18T02:33:36 | null | UTF-8 | Python | false | false | 4,072 | py | '''
Evaluation File
'''
import cPickle as pickle
import tensorflow as tf
from scipy import misc
from tqdm import tqdm
import numpy as np
import argparse
import random
import ntpath
import sys
import os
import time
import time
import glob
import cPickle as pickle
from tqdm import tqdm
sys.path.insert(0, 'ops/')
s... | [
"cameronfabbri@gmail.com"
] | cameronfabbri@gmail.com |
327694995f36b39033eb39821a28e85f2af31c2a | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /BitManipulation/test_q136_single_number.py | 42836c696458ba313f72ead4768f330aefb9e302 | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import unittest
from BitManipulation.q136_single_number import Solution
class TestSingleNumber(unittest.TestCase):
"""Test q136_single_number.py"""
def test_single_number(self):
s = Solution()
self.assertEqual(1, s.singleNumber([2, 2, 1]))
self.assertEqual(4, s.singleNumber([4, 1, 2... | [
"429134862@qq.com"
] | 429134862@qq.com |
22844e0fe9f2ac64b52c240fca902ba6fa38396f | a2830d10e5bb5d559ea0b3c209cee46d25820ea6 | /tests/integration/network/connect_nodes_test.py | 3829da79ad9dea71a59cac4c52138105caceff9f | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | vishalbelsare/PySyft | 623e41c472a1e66bf3918fdb11399a6f20112fc0 | fb04404fcfbef82fad1fb47407b35a24e9afb599 | refs/heads/dev | 2023-08-21T21:56:37.319567 | 2021-11-23T07:20:09 | 2021-11-23T07:20:09 | 214,707,883 | 0 | 0 | Apache-2.0 | 2021-11-25T04:54:37 | 2019-10-12T20:03:01 | Jupyter Notebook | UTF-8 | Python | false | false | 2,321 | py | # third party
import pytest
import requests
# syft absolute
import syft as sy
NETWORK_PORT = 9081
NETWORK_PUBLIC_HOST = f"docker-host:{NETWORK_PORT}"
DOMAIN1_PORT = 9082
DOMAIN2_PORT = 9083
NETWORK_VPN_IP = "100.64.0.1"
DOMAIN1_VPN_IP = "100.64.0.2"
DOMAIN2_VPN_IP = "100.64.0.3"
TEST_ROOT_EMAIL = "info@openmined.org"... | [
"me@madhavajay.com"
] | me@madhavajay.com |
35a789b942ec3a960db601b55fe92fd6f20c6e1b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_triptych.py | 326fed97b6911ff86e26d493fa295989fe50f35a | [
"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 | 430 | py |
#calss header
class _TRIPTYCH():
def __init__(self,):
self.name = "TRIPTYCH"
self.definitions = [u'a piece of art made of three paintings connected to each other in a way that allows the two outer ones to fold in towards the larger central one: ']
self.parents = []
self.childen = []
self.properties = []
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0a8424d606394ea8ae293cf99d4325fb99aa7704 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/universal_record_import_service_port_type_service_output.py | 785ca9abe0e122f6bfffeea1000df21f8bfa7744 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 2,555 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.error_info_1 import ErrorInfo1
from travelport.models.universal_record_import_rsp import UniversalRecordImportRsp
__NAMESPACE__ = "http://www.travelport.com/service/air_v52_0"
@dataclass
class UniversalRecordImportServ... | [
"chris@komposta.net"
] | chris@komposta.net |
dcf147953063c4991c197cbe6efdbcb60532bb65 | 7b3871759d61004217100ce1a858b1acd20c6166 | /study/day3/使用list()函数将range()函数输出的值输出为列表.py | c996564c86e1de7062102d16ba6cff55f3bd5ef7 | [] | no_license | yidaiweiren/Python | 74bcecfe32cef25e3f5692b3a3ebf1309cbe8e00 | 986a51cc59f0ffa90c967b62a3d729bb034c273d | refs/heads/master | 2021-07-25T00:27:52.970745 | 2020-06-05T07:36:35 | 2020-06-05T07:36:35 | 183,752,758 | 3 | 1 | null | 2019-04-28T03:35:01 | 2019-04-27T09:20:56 | Python | UTF-8 | Python | false | false | 235 | py | #使用list()函数将range()函数输出的值输出为列表
#思路
#range()输出一组数字
#把range()函数输出的值作为参数传输值list()函数
num=list(range(1,9))
print (num)
#结果
'''
[1, 2, 3, 4, 5, 6, 7, 8]
''' | [
"2577110429@qq.com"
] | 2577110429@qq.com |
6e18658df53e9888090775e690d5b05a05167636 | 16aba0619caf0ad5ffd4817ac0575943e8b4659e | /venv/lib/python3.6/_weakrefset.py | 6d85e9259b1aac3160ee5b876455feefb22817af | [] | no_license | Rin94/seleniumtests | 23cd0b00609fa4b00216dc4fa27a96637ee0aedd | 3ae6a87b2410ed5a6f66f1b69915071c3517b5f8 | refs/heads/main | 2023-05-23T11:02:33.443620 | 2021-06-13T04:43:53 | 2021-06-13T04:43:53 | 376,441,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | /Users/jared/anaconda3/lib/python3.6/_weakrefset.py | [
"jerad.salinas94@gmail.com"
] | jerad.salinas94@gmail.com |
1376040d7ea44397eb2be58d3c4c49bbb5b2748a | 425b5719ecf6b40bf3de94ddf6e0cc9cf72717b7 | /app/events/regions.py | 176df6e4c2fdb4eb0f39440397ba757453882183 | [
"MIT"
] | permissive | zerorock1312/lt-maker-master | 3b9b2e7245215936018601432a98915c40f3937d | 82f733683f9dba763a5de8567c41fd7cbcfb0173 | refs/heads/main | 2023-06-04T10:28:43.931841 | 2021-06-18T06:03:40 | 2021-06-18T06:03:40 | 378,050,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | from app.utilities.data import Prefab
region_types = ['normal', 'status', 'event', 'formation']
class Region(Prefab):
def __init__(self, nid):
self.nid = nid
self.region_type = 'normal'
self.position = None
self.size = [1, 1]
self.sub_nid = None
self.condition = 'T... | [
"85828552+zerorock1312@users.noreply.github.com"
] | 85828552+zerorock1312@users.noreply.github.com |
d1a3507e16a5cbea29be05f612b36e42c86cbd03 | 5e6bb81b207f3306bca3a2412dcc86525ff09b51 | /Django_test01/mysql_test2000.py | 126dffb3de527794b524ceaf3e3241e6463f044c | [] | no_license | ssk1987/FullStackExerciseLibrary | f16ad4a0ab2ce6864d00905738db0832a8e916a1 | e050bffce3d8497b47980aab30ea99409f61856b | refs/heads/master | 2021-06-03T02:40:06.840380 | 2021-03-27T11:37:22 | 2021-03-27T11:37:22 | 254,331,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | import pymysql
# 连接数据库
db = pymysql.connect(host='127.0.0.1',
port=3306,
user='root',
password='12345678',
database='country1',
charset='utf8')
# 获取游标
cur = db.cursor()
# 插入数据
data_list = []
for x in range(200... | [
"10293665@qq.com"
] | 10293665@qq.com |
c220c97fed107071513fbfb21f2e2b337a46b158 | d03a874a5ba8303cdcedf88350bb3cae2c98244a | /cifar10_cnn.py | 6a0aebaf8ea16da8087269b1e30966773f223d2c | [] | no_license | yaroslavvb/whitening | f8b24624d751c7b8b6245eb37859ba527b850814 | 7d071c25c8a9ff9cc624b608013f097646ca3b5e | refs/heads/master | 2021-07-09T16:13:44.707126 | 2017-10-10T22:07:49 | 2017-10-10T22:07:49 | 90,409,782 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | '''
CIFAR-10 example from https://github.com/fchollet/keras/blob/master/examples/cifar10_cnn.py
Now with weight normalization. Lines 64 and 69 contain the changes w.r.t. original.
'''
from __future__ import print_function
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from ... | [
"yaroslavvb@gmail.com"
] | yaroslavvb@gmail.com |
550f6cd08f39601e6c9a1a69dd90d5f9e88c3746 | c73beb04d101ca8d98c9126b1c47b4f19cc35066 | /week1/single_process.py | 36f42dc91f0d31ea01767b8f1165e0fd3deaa8a5 | [] | no_license | fywest/python | a5ecf62e1f8cdf59c936da81b478c371f169aec4 | cd97438679d8e129b3cb75d76226b16e7e7850ac | refs/heads/master | 2022-12-13T06:15:04.021492 | 2019-05-28T19:21:18 | 2019-05-28T19:21:18 | 130,403,136 | 0 | 0 | null | 2022-12-08T05:08:55 | 2018-04-20T19:02:57 | Python | UTF-8 | Python | false | false | 249 | py | import time
def io_task():
time.sleep(1)
def main():
start_time=time.time()
for i in range(5):
io_task()
end_time=time.time()
print('it takes: {:.2f}s'.format(end_time-start_time))
if __name__=='__main__':
main()
| [
"fywest2109@hotmail.com"
] | fywest2109@hotmail.com |
6b489da90ccb08d993e668c166da4cc7b52338d9 | 747974d83629a8ba28fcb3f4a33a17319002f169 | /tensorflow/python/distribute/client/client.py | 6eabbfa219a84297d95249d99b22c293878f4614 | [
"Apache-2.0"
] | permissive | ayushmankumar7/tensorflow | 72f60290e4187644b4b254d25ec3033c9fda0c55 | 69a7d3abbbf5be791d1db397fcfea5d8e6efc4b9 | refs/heads/master | 2022-06-19T01:14:46.563563 | 2020-10-19T10:13:23 | 2020-10-19T10:13:23 | 244,302,166 | 2 | 0 | Apache-2.0 | 2022-05-21T12:44:00 | 2020-03-02T06:58:50 | C++ | UTF-8 | Python | false | false | 49,377 | py | # Lint as: python3
# Copyright 2020 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 requ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a6c26522a2da68de30a9caebeb0d89d3cde0854f | 82db461036ffb2adbf0424a6f0575cd9d24b48a8 | /library/signal/demo_signal.py | c59427f814a4ca24d3efc82da3ddfcf5469043dd | [] | no_license | webclinic017/option_pdt | fdc559f02cc529b54278e90e04170713fe93684f | dd302c6b2661e26dbfcbea0384b99e85ae9584e1 | refs/heads/master | 2023-03-24T10:43:35.998775 | 2021-03-19T14:08:38 | 2021-03-19T14:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | from base.signal_base import SignalBase
class Signal(SignalBase):
def __init__(self, spot_instrument, future_instrument):
super().__init__(spot_instrument, future_instrument)
self.spot_instrument = spot_instrument
self.future_instrument = future_instrument
self.spot_price = float(... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
4364d3d0e4e45b61777839885827ff630e4e8965 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200625232557.py | 6eb6ccba3f51b68abc25670be539f7e1cf36cf46 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 1,776 | py | # 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中
import requests
from bs4 import BeautifulSoup as bs
maoyanUrl = "https://maoyan.com/board/4";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {
'Conten... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
15c9a7f22850db515e4e18371917447d643d5ef9 | 8be39fd741cbbb08439433188ca1bc59ee5cf11f | /data_handler/logistic_parser.py | e6aef4d466d44f479d23b3cf53d7c015e2c3c050 | [
"MIT"
] | permissive | tpimentelms/fast-conversational-banking | ca1e699261f989f3b535a50782062c000985ba1e | b9d3ddfe3adb78522fafab91c2d20495db063dda | refs/heads/master | 2021-03-16T21:30:51.253223 | 2018-02-28T20:30:15 | 2018-02-28T20:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from .data_parser import DataParser
class LogisticDataParser(DataParser):
def __init__(self, max_len, cuda=True, quiet=True, remove_brackets=False):
super(LogisticDataParser, self).__init__(max_len, cuda=cuda, quiet=quiet)
self.remove_brackets = remove_brackets
def normalize_string(self, s):... | [
"tiagopms@gmail.com"
] | tiagopms@gmail.com |
58fc0eca94dc7087f6281521d213dd735c29351d | 30cffb7452220c2ac2961dd2e0f42e3b359a59c0 | /simscale_sdk/models/one_of_solid_simulation_control_pseudo_time_stepping.py | fa0feb65ab655b8e7c0d7bac2d73c1a47ecd1ee9 | [
"MIT"
] | permissive | vpurcarea/simscale-python-sdk | 0bf892d8824f8d4599caa0f345d5ba28e038f5eb | 6f2d12b2d21142bd854042c0fb402c2c797629e4 | refs/heads/master | 2023-03-14T04:31:06.226337 | 2021-03-03T16:20:01 | 2021-03-03T16:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,107 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class OneOfSolidSimulationControlPseudoTimeStepping(object):
"""NOTE:... | [
"simscale"
] | simscale |
b42b8f6ed64adddc457f57db5aa9a253495901dd | 084a13b6524e21914826e842eeefefd09570a970 | /experiments/atari_hard/montezuma_revenge/ppo_cnd_102_2.py | 833f9590c550cdf94ff45ade8163c8d0dfd4556c | [
"MIT"
] | permissive | michalnand/reinforcement_learning | 28aa0e2c92b6112cf366eff0e0d6a78b9a56e94f | 01635014a37a4c871766b4cdd2caaa26a0c2d8cc | refs/heads/main | 2023-06-01T10:27:36.601631 | 2023-02-12T19:46:01 | 2023-02-12T19:46:01 | 217,841,101 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import time
import torch
import RLAgents
import models.ppo_cnd_102_2.src.model_ppo as ModelPPO
import models.ppo_cnd_102_2.src.model_cnd_target as ModelCNDTarget
import models.ppo_cnd_102_2.src.model_cnd as ModelCND
import models.ppo_cnd_102_2.src.config as Config
#torch.cuda.set_device("cuda... | [
"michal.nand@gmail.com"
] | michal.nand@gmail.com |
a0ee9508274fd3f6962a34e95d4396b1d61ab45f | af54f9cef3290fc4066cbbe2a66e36006c7c5896 | /plates/investrategy/views.py | 73e91cb779c1463282983372709ef98a9f3ed074 | [] | no_license | zizle/workAssistant | 4e504baf3e8cb0942bdf48e61d96bf9f4ef3779c | 875df36725118e8737fd38d3873bf75434296d1b | refs/heads/master | 2022-08-12T16:16:33.972788 | 2020-08-07T01:02:42 | 2020-08-07T01:02:42 | 248,373,880 | 0 | 0 | null | 2022-05-25T03:09:04 | 2020-03-19T00:30:32 | JavaScript | UTF-8 | Python | false | false | 23,396 | py | # _*_ coding:utf-8 _*_
# Author: zizle
import datetime
import hashlib
import os
import time
import pandas as pd
import xlrd
from flask import jsonify, request, current_app, send_from_directory
from flask.views import MethodView
from db import MySQLConnection
from settings import BASE_DIR
from utils.psd_handler import... | [
"zizle_lin@163.com"
] | zizle_lin@163.com |
452809658c1a86e94a421c66c5acc6bee7d001ae | d86c52f4098fd9c1a102c2d3f5630556e0610fa2 | /fitle/myenv/Lib/site-packages/django/db/migrations/operations/base.py | 0cd0ff38a0d70b87f180e2140d1dff4c187e2c1a | [] | no_license | makadama/bitbucket | 24f05c4946168ed15d4f56bfdc45fd6c0774e0f2 | cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79 | refs/heads/master | 2023-06-19T19:04:03.894599 | 2021-07-15T12:10:39 | 2021-07-15T12:10:39 | 385,203,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fabe9ce10ec2202053f79ef81fbddd479a6ff7812ab28cd2e4fd9a357f15c939
size 5016
| [
"adamamakhtarsow@gmail.com"
] | adamamakhtarsow@gmail.com |
076b7d58c5592f6388a9ee56ad93f451e1d154e1 | cdfb77f5fb782ed8c731c6789ba154fefb34b830 | /Seção 4/tipo_booleano.py | 537bf355e9805854ef01d78c4a063d4455a7b447 | [] | no_license | Yuri-Santiago/curso-udemy-python | 7dc83e0ade45e8d959ce12b81098a13617e0a7ca | 2af0ddad01b08f6afd0bfe35648212d4ee49f52b | refs/heads/master | 2023-04-21T07:11:35.594753 | 2021-05-18T05:14:56 | 2021-05-18T05:14:56 | 350,412,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | """
Tio Booleano
Álgebra Booleana, criada por George Boole
2 constantes: Verdadeiro ou Falso
True -> Verdadeiro
False -> Falso
A primeira letra precisa ser maiúscula
"""
falso = False
verdadeiro = True
print(falso)
print(verdadeiro)
print(type(verdadeiro))
# Operações
# Negação(not) : troca do valor atual para o... | [
"yurimateussantiago@gmail.com"
] | yurimateussantiago@gmail.com |
83d9dc1d6b51df08606a0f15b32911dbcf604c9b | e19a9be187126cdf36761fed59c8cb287f0e4126 | /coop_local/migrations/0010_auto__del_categoryess.py | c769ba1cfd6e567df62b47360214452550a092a7 | [] | no_license | gutard/coop-mes | d7ad3a756edfd8a709270b66d3eafc0c2a59e266 | b204d4a830c20dd22cfebba3ac697561ecc63634 | refs/heads/master | 2020-12-28T23:50:48.948145 | 2013-09-23T16:13:43 | 2013-09-23T16:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,289 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'CategoryESS'
db.delete_table('coop_local_categoryess')
def backwards(self, orm):
... | [
"gael.utard@makina-corpus.com"
] | gael.utard@makina-corpus.com |
bfc0ff00fcc96a5888f1b2574bfc1dd1c21a421b | 0bed82cb6c83b0e0e672c424077eb610eca19f40 | /dasy/__main__.py | 2b87fe8dafb0651676d1a322c3cd30c53eef00af | [] | no_license | Chitrank-Dixit/dasy | 896af55736b2fb8c84a889f1949fa28f48ee632a | 09d2b9b8819928827de5ce7ca6b130436f5f35d9 | refs/heads/master | 2023-04-05T14:41:32.057940 | 2021-04-11T17:12:37 | 2021-04-11T17:12:37 | 356,764,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | #!/usr/bin/env python3
from .dasy import checkCommand
if __name__ == "__main__":
checkCommand()
| [
"chitrankdixit@gmail.com"
] | chitrankdixit@gmail.com |
0c96381cfe7098294ceee4776eec3458bc497a29 | ede96590eee4880ff83d1f1d8db5229e92c6e919 | /leasing/migrations/0042_contract_sign_fields.py | 84877db9dd92cea1360228eff5704d0bf76a4a3d | [
"MIT"
] | permissive | igordavydsson/mvj | a4c5b39e7be9f95e15a2e906ad61b98611998063 | b467c6229f9d458d56b66f628b0841adb67a2970 | refs/heads/master | 2020-04-22T20:42:06.650182 | 2019-02-12T13:50:57 | 2019-02-12T13:50:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # Generated by Django 2.1.5 on 2019-02-12 07:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leasing', '0041_add_collateral'),
]
operations = [
migrations.AddField(
model_name='contract',
name='first_call_sent... | [
"mikko.keskinen@anders.fi"
] | mikko.keskinen@anders.fi |
e29f5a011a08a9ecc107258a5a197159ce95d9d0 | 290394852b7fb70f791c6c4bb96141523ab96090 | /ExpertIdeas_WikipediaProxyServer_Bot_EmailTracking/ExpertIdeas/core/scripts/i18n/redirect.py | e28933b2cd487018c6ff2af043c5dbc1ae0f37cd | [
"MIT"
] | permissive | ImanYZ/ExpertIdeas | da1564671f2cfe92d9de3fce68b82552cc6f33f7 | 23e23240854aef59108b16b63a567fffb2aabb69 | refs/heads/master | 2022-07-27T08:11:36.481824 | 2022-07-16T20:32:47 | 2022-07-16T20:32:47 | 144,018,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,009 | py | # -*- coding: utf-8 -*-
msg = {
# Author: Xqt
'en': {
'redirect-broken-redirect-template': u'{{db-r1}}',
'redirect-fix-broken-moved': u'Bot: Fixing broken redirect to moved target page %(to)s',
'redirect-fix-double': u'Bot: Fixing double redirect to %(to)s',
'redirect-fix-loop': ... | [
"oneweb@umich.edu"
] | oneweb@umich.edu |
6515cadde03f814f557d7bbe33305e6298e66d6d | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cse/huaweicloudsdkcse/v1/model/get_kie_configs.py | c61d74b8ecc0b383da41262fbef00cb47742f108 | [
"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 | 9,988 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class GetKieConfigs:
"""
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 |
64c7384fef7e4dd6391e4f314b57c6de80fca160 | 321116aad628f819e13e4e033d819b1bc8ed5c78 | /deploy/dj_scaffold.wsgi | a88cd18489656640d0a1116a2183f5c874e0fcc2 | [] | no_license | sakishum/timeline-site | ccdd9fb34d69e3ed931d9e984934b885cef02a24 | 59981dac0eaa09aed5413dbd1932d3294be958d8 | refs/heads/master | 2021-04-28T07:16:11.941592 | 2017-03-06T02:48:20 | 2017-03-06T02:48:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | wsgi | import os
import site
from dj_scaffold.env import add_site_dir
HERE = os.path.dirname(__file__)
ROOT_PATH = os.path.abspath(os.path.join(HERE, '../'))
ALLDIRS = [os.path.join(ROOT_PATH, 'env/lib/python2.7/site-packages'), os.path.join(ROOT_PATH, 'sites')]
add_site_dir(ALLDIRS)
os.environ['DJANGO_SETTINGS_M... | [
"zbirder@gmail.com"
] | zbirder@gmail.com |
b18b81bc61a1aca39d22a6fef58527e12ba9bee6 | 24eca673c9b7b6257847bb7aa154994f8e80295b | /pyguide/__init__.py | efc39bb2b1eddc355649a945707ac4dafdcbcae0 | [] | no_license | MacHu-GWU/pyrabbit-python-advance-guide-project | 47916c7cd498bed77e56e15ec948be0086e058f0 | 6cdc081064c53b77631d3406501bfda7450963b4 | refs/heads/master | 2020-04-12T12:26:53.538471 | 2015-12-30T21:58:58 | 2015-12-30T21:58:58 | 42,208,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Description:
This is a project documents everything the author learned from a newbie becoming
a Senior Python developer. This document is written mainly in Chinese, but I am
trying to do the best to make it bilingual.
Because I believe python3 is the future of python... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
c34bf6f617607609bc89a2cc4b71f7dc5a3de12d | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/l_6.py | 66f9202215fb4e557d13f11fb40492601c33eae6 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
b79edf89c8828024f571709b514601ebae22c9db | c2fa3b814a7f56ad804dffc767fc54f5099d60f8 | /dataset_processing/contours_gilbert_256_sparse_nonRandomShear.py | 73feb4a72e2d84d541d19dd708bfc9b3a1a8aa08 | [] | no_license | dmely/contextual_circuit_bp | 223b602dbabbe8f8091fbb9106f3103bd5e1dcba | a277bc3146beaa4e3edd2134fc9fb8d3388a6013 | refs/heads/master | 2021-10-07T19:04:14.509951 | 2018-03-31T17:10:33 | 2018-03-31T17:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | import os
import re
import numpy as np
import tensorflow as tf
from glob import glob
from config import Config
from ops import tf_fun
class data_processing(object):
def __init__(self):
self.name = 'contours_gilbert_256_sparse_nonRandomShear'
self.im_extension = '.png'
self.images_dir = 'im... | [
"drewlinsley@gmail.com"
] | drewlinsley@gmail.com |
7c67f33358881bf71360ee38962dfd0d831b637a | cc6a674cab1dc959189b9edff975625f4815bc1c | /ResNet/model.py | 75cb8048b0ad5a819a1f03a4a51e5f67be9b1524 | [
"MIT"
] | permissive | shreyansh26/DL-Code-Repository | 15173042f566ea42f96eb65283347927a2fab4ff | f1974eedc1fef54b2d274703390a22721e46f502 | refs/heads/master | 2023-07-15T23:15:05.484609 | 2021-08-30T15:41:20 | 2021-08-30T15:41:20 | 382,834,342 | 0 | 0 | null | 2021-07-04T12:11:08 | 2021-07-04T11:27:13 | Python | UTF-8 | Python | false | false | 4,018 | py | from typing import List, Optional
import torch
from torch import tensor
import torch.nn as nn
class ShortcutProjection(nn.Module):
def __init__(self, in_channels: int, out_channels: int, stride: int):
super().__init__()
self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=1, stride=stride... | [
"shreyansh.pettswood@gmail.com"
] | shreyansh.pettswood@gmail.com |
6ba198aa9789fafafad70ec42d47555fbc892bfd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2499/60764/260203.py | a884a40143476a0e998c5bfbe25a62acd3a735eb | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | n=int(input())
stack=[]
for i in range(n):
command=input().split()
if command[0]=='Add':
stack.append(command)
elif command[0]=='Del':
ind=int(command[1])
if ind-1>=0 and ind-1<len(stack):
stack[ind-1][0]='No'
else:
x=int(command[1])
res=0
for ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
18ad0fb390f8a5da0684d613ebbd0b40b06b19e0 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/coder_20200618172244.py | e1df5edcdbebf0e88ece5d9f49dfb3cc0efc3a55 | [] | 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 | 1,353 | py | def MinWindowSubstring(strArr):
# code goes here
containing_string = strArr[0] # first string
search_string = ''.join(sorted(strArr[1])) # second string
print(len(search_string))
min_chars_required = len(search_string)
solution = ''
solution_array = []
for x in containing_string:
solution... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
12c9baca46273c4388c17257f7bd4400874025fc | 485be21ebe0a956b7f4a681968e160a463903ecc | /LibSVMRelate/SVMRunSinglePara.py | 4902b0dc26c4909d9231de75050cbe1097987df6 | [] | no_license | xiongchenyan/cxPyLib | e49da79345006d75a4261a8bbd4cc9a7f730fad2 | 8d87f5a872458d56276a2a2b0533170ede4d5851 | refs/heads/master | 2021-01-10T20:43:20.147286 | 2016-01-14T04:02:45 | 2016-01-14T04:02:45 | 17,610,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | '''
Created on Mar 25, 2014
input: train, dev|test, para
output: accuracy, label of required
@author: cx
'''
import site
site.addsitedir('/bos/usr0/cx/PyCode/Geektools')
site.addsitedir('/bos/usr0/cx/PyCode/QueryExpansion')
site.addsitedir('/bos/usr0/cx/PyCode/cxPylib')
site.addsitedir('/bos/usr0/cx/LibSVM/libsvm/pyt... | [
"xiongchenyan@gmail.com"
] | xiongchenyan@gmail.com |
fc3532d68cd78aace0e9f911ff245742aa89aed3 | 991eef78c307ebfd5d149d5908270e1e528e75c2 | /models/cells/modelPC2006Akemann.py | b4e850851b05e33ace54ccde2264c8a4c21316f1 | [
"BSD-3-Clause"
] | permissive | HarshKhilawala/cerebmodels | bd1a2310253de5536a77be08dfdb33e29d6e636d | d2a2f2ef947ef9dc23ddce6e55159240cd3233cb | refs/heads/master | 2023-06-11T09:36:10.969240 | 2021-06-29T17:21:09 | 2021-06-29T17:21:09 | 369,399,200 | 0 | 0 | BSD-3-Clause | 2021-05-21T03:08:41 | 2021-05-21T03:08:40 | null | UTF-8 | Python | false | false | 7,378 | py | # ~/models/cells/modelPC2006Akemann.py
import os
pwd = os.getcwd() # record root directory path ~/cerebmodels
path_to_files = pwd + os.sep + "models" + os.sep + "cells" + os.sep + \
"PC2006Akemann" + os.sep # record path to this model/folder
from models.cells.PC2006Akemann.Purkinje import Purkinje
from... | [
"neuralgraphs@gmail.com"
] | neuralgraphs@gmail.com |
b997f16691dc838e057231b7245b34283772c091 | e7e34e2726790686a1f239e22487fe7c957e179f | /homeassistant/components/nam/sensor.py | c5c9c9f2e77ca2bc5e91242996efcb8adf307036 | [
"Apache-2.0"
] | permissive | AlexxIT/home-assistant | 68a17b49644c5d943b204dc75e1f11fe3b701161 | 8de7966104911bca6f855a1755a6d71a07afb9de | refs/heads/dev | 2022-03-22T14:37:18.774214 | 2021-10-09T16:10:43 | 2021-10-09T16:10:43 | 100,278,871 | 9 | 0 | Apache-2.0 | 2022-01-31T06:18:02 | 2017-08-14T14:50:46 | Python | UTF-8 | Python | false | false | 3,817 | py | """Support for the Nettigo Air Monitor service."""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import cast
from homeassistant.components.sensor import (
DOMAIN as PLATFORM,
SensorEntity,
SensorEntityDescription,
)
from homeassistant.config_entries import Co... | [
"noreply@github.com"
] | AlexxIT.noreply@github.com |
8be966152d0f159f1526e3cbea1aa111e05af8a3 | d3b3a3e8c3a053c74479d588a26dd0343e015663 | /练习代码/Flask/6.7/重定向.py | 50f2523f83def5f96a516f4a5c4c6f8cfa8cd41e | [] | no_license | Mr-big-c/github | b6978ad920bc8f4d2cee1fca1cac72cce5767e12 | d301aa4516a00007980f34b94de3c7b5fb4198fa | refs/heads/master | 2021-10-01T18:57:51.133095 | 2018-11-28T15:00:40 | 2018-11-28T15:00:40 | 300,145,501 | 1 | 0 | null | 2020-10-01T04:42:30 | 2020-10-01T04:42:29 | null | UTF-8 | Python | false | false | 833 | py | # -*- coding: utf-8 -*-
# @File : 重定向.py
# @Author: 一稚杨
# @Date : 2018/6/7/007
# @Desc : 重定向和404页面定义
# redirect实现重定向
from flask import Flask, redirect, render_template, flash
app = Flask(__name__)
app.secret_key = '123456'
@app.route("/index1")
def index1():
flash("登录成功", category="login")
flash("hello",... | [
"2551628690@qq.com"
] | 2551628690@qq.com |
4472c64391e5233857750bdc27edfff4c207f694 | c189f58db5e339df742a78b9be0a3b768d5bb3e8 | /Python_学习手册/Exercise/timer.py | 6be6efc4c2ebd1be252362535947d39bc6e51233 | [] | no_license | xuyagang/pycon | 19ac0de6ff2ef0569dbc81673aed51aad1ccd8bc | b6be3293f0ffc7d399fd039f6b274fff8f71584c | refs/heads/master | 2021-12-15T05:03:42.992320 | 2021-11-03T23:59:19 | 2021-11-03T23:59:19 | 153,795,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import time
reps = 1000
repslist = range(reps)
def timer(func,*pargs, **kargs):
start = time.clock()
for i in repslist:
ret = func(*pargs,**kargs)
elapsed = time.clock() - start
return (elapsed, ret)
| [
"aaadam@mail.com"
] | aaadam@mail.com |
6c44b31939b27278f1be85c015a64c31f9a07491 | 5f8534eadc182d0c79c4089bd803bb63b1178f5d | /src/textbook/chapter5/chapter5-1/chapter5-1-2.py | 6f6d9fd758ac57e658af109068ea7a4c0991a052 | [] | no_license | mryyomutga/TechnicalSeminar | b0f0a3c2fbff469e22896dc782586febdd604919 | 3bd1c3a9c1c3e2331586dbaab0ce745c2f7e86bd | refs/heads/master | 2021-08-28T02:30:02.062637 | 2017-12-11T03:29:15 | 2017-12-11T03:29:15 | 106,644,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # -*- coding: utf-8 -*-
# デスクトップアプリケーションの作成2
# ファイル選択ダイアログ
import tkinter.filedialog as fd
path = fd.askopenfilename(
title="ファイルを選択してください",
filetypes=[("python", "py")]
)
print(path)
| [
"mryyomutga@gmail.com"
] | mryyomutga@gmail.com |
a8881eead08e69937d42ebfbb4af65004a20ed91 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/impairment/profile/delay/delay.py | 1bb184d1931df595e004a78377ad7156ad6ab4ba | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
ccaee085a1c2b7c3aa12fe980fb250035df6e7a2 | 63fe333ce975837a3cb9c061ea910dc6923ec724 | /training/c17_numpy/e09-broadcasting.py | 9f9da96038f4bda2d49208ab685d482e3e40508a | [] | no_license | PablitoMoribe/pythontraining | 1976a5297b8316f1295a0d5d85f5bd3c99a096e3 | 49e146a28080c1b4fc7c3a7b37ce8c4593a139ff | refs/heads/master | 2020-07-07T16:56:44.136633 | 2019-08-19T21:47:34 | 2019-08-19T21:47:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | import numpy as np
# pip install numpy
arreglo1 = np.arange(1, 10, dtype=np.int32).reshape((3, 3))
print('Numpy Array 1:\n{}'.format(arreglo1))
arreglo2 = np.arange(3, 0, -1, dtype=np.int32).reshape((1, 3))
print('Numpy Array 2:\n{}'.format(arreglo2))
arreglo3 = np.arange(10, 40, 10, dtype=np.int32).reshape((3, 1))... | [
"user.nuage@gmail.com"
] | user.nuage@gmail.com |
2db4525f3313105e7aba42ba26b5a1930ac90257 | 32f5bc330388a96877d93fdd7b21599a40735400 | /Python/intelligenceinfection.py | 49c5fea58ddfdc9d565b71c8d1656d780a9a1244 | [] | no_license | alexlwn123/kattis | 670180d86f0863328a16e12ed937c2fefb3226a2 | c1163bae3fdaf95c1087b216c48e7e19059d3d38 | refs/heads/master | 2021-06-21T16:26:15.642449 | 2020-12-24T20:59:10 | 2020-12-24T20:59:10 | 152,286,208 | 1 | 1 | null | 2018-10-14T22:40:09 | 2018-10-09T16:40:48 | Java | UTF-8 | Python | false | false | 51 | py | def main():
if __name__ == '__main__':
main()
| [
"asl0028@auburn.edu"
] | asl0028@auburn.edu |
5213395f6c53b2b1a1104035cc73eb2592848add | 250003a344e5cb974579d67daeeed7ea6b51f620 | /day18/01_Demo_Logistic_Regression.py | 02a1d8461a66806f24b2a0a7da863c86c35cf46c | [] | no_license | lakshsharma07/training2019 | 540cace993859f06b4f402fc5a7849b26fb11ce8 | d8ae0b0e1e567525e806834379713003a676ec06 | refs/heads/master | 2020-05-24T07:11:25.613107 | 2019-06-25T03:27:58 | 2019-06-25T03:27:58 | 187,154,851 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: utf-8 -*-
import sklearn as sk
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
"""
We will look at data regarding coronary heart disease (CHD) in South Africa. The goal is to use different variables such as tobacco usage, family history, ldl cholesterol levels, alcohol usage, obe... | [
"sharma1997lak@gmail.com"
] | sharma1997lak@gmail.com |
a3d809d9847fd1ca1ddb0ce237317c2be57f2b9f | eddb3dfb5e1a0a3e58254f285c3700b45dce76d9 | /repos/spikeextractors/spikeextractors/extractors/mdaextractors/mdaio.py | 1e46e52b8468f65116a852e89d124906536f18b7 | [
"Apache-2.0"
] | permissive | tjd2002/spikeforest2 | f2281a8d3103b3fbdd85829c176819a5e6d310d0 | 2e393564b858b2995aa2ccccd9bd73065681b5de | refs/heads/master | 2020-04-25T07:55:19.997810 | 2019-02-26T01:19:23 | 2019-02-26T01:19:23 | 172,628,686 | 0 | 0 | Apache-2.0 | 2019-02-26T03:11:27 | 2019-02-26T03:11:26 | null | UTF-8 | Python | false | false | 14,885 | py | import numpy as np
import struct
import os
import requests
import tempfile
import traceback
class MdaHeader:
def __init__(self, dt0, dims0):
uses64bitdims=(max(dims0)>2e9)
self.uses64bitdims=uses64bitdims
self.dt_code=_dt_code_from_dt(dt0)
self.dt=dt0
self.num_by... | [
"jeremy.magland@gmail.com"
] | jeremy.magland@gmail.com |
786f5b0e25618a69920c89fa5a7cc933ca584bdc | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PyTorch/LanguageModeling/BERT/triton/deployment_toolkit/warmup.py | f5e0dc0589a40004ab8c2e93652e1cc11b26cce6 | [
"Apache-2.0"
] | permissive | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 3,760 | py | # Copyright (c) 2021, NVIDIA CORPORATION. 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 applic... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
9030a9aeac0cd19b1e22c38323c28b02eeb34bd6 | 2ce2f39b8997e23ce3e22acbed911bd09b367dff | /tests/test_http_response.py | 052f343814c78b48cc8b6393bb57974cc713763a | [
"Apache-2.0"
] | permissive | gourneau/Growler | 315270b0d7ae0a81e98efcb028da33f8489529d4 | a057adbed0dbde6e6a15feee59add0f2889b546a | refs/heads/dev | 2021-01-24T15:34:55.851883 | 2016-05-04T17:16:15 | 2016-05-04T17:16:15 | 58,094,178 | 1 | 0 | null | 2016-05-05T01:07:17 | 2016-05-05T01:07:17 | null | UTF-8 | Python | false | false | 3,798 | py | #
# tests/test_http_response.py
#
import growler
import asyncio
import pytest
from unittest import mock
from collections import OrderedDict
from growler.http.response import Headers
from mock_classes import (
request_uri,
)
@pytest.fixture
def res(mock_protocol):
return growler.http.HTTPResponse(mock_protoc... | [
"andrewkubera@gmail.com"
] | andrewkubera@gmail.com |
4d3aacc2cd74a7a3f40fd55c24ee756ac2daa48c | fe6fe31cda7c367ba480faeadb119e5074d7c8a4 | /src/uproot/dynamic.py | 7ed0b06dd64af7d48e2ea49570b8af30c329e21f | [
"BSD-3-Clause"
] | permissive | scikit-hep/uproot5 | a03ec9f8f20d8b5f45957ccf280e1cd75bfab89a | cb70ce0715276bbc403cb48a511c8a3b27cffe7f | refs/heads/main | 2023-09-02T10:09:29.669547 | 2023-08-24T13:30:06 | 2023-08-24T13:30:06 | 262,422,450 | 51 | 20 | BSD-3-Clause | 2023-09-14T17:04:36 | 2020-05-08T20:30:09 | Python | UTF-8 | Python | false | false | 861 | py | # BSD 3-Clause License; see https://github.com/scikit-hep/uproot5/blob/main/LICENSE
"""
This module is initially empty, a repository for dynamically adding new classes.
The purpose of this namespace is to allow :doc:`uproot.model.VersionedModel`
classes that were automatically generated from ROOT ``TStreamerInfo`` to... | [
"noreply@github.com"
] | scikit-hep.noreply@github.com |
21b22b5af215a87059bbfe2e4d13bdfb04694bcf | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/authentication/migrations/0064_spocdetails_source.py | 550d0b16e9c44fdf0ef8a5a92e73079dbecdec30 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 2.0.5 on 2018-11-02 19:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('authentication', '0063_merge_20181025_1818'),
]
operations = [
migrations.AddField(
model_name='spocdetails',
name='... | [
"arunchaudhary@policybazaar.com"
] | arunchaudhary@policybazaar.com |
51d592ae4b786dcaf62efc0be8022199119a1a5e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/alwayson/testcase/firstcases/testcase5_000.py | e7b33f20807938d44d3fb60f4af1be47325bb417 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
7eab1eee572d2490d59d02e103bda65a10f64328 | 4d9a9546a5dc0b550aede272c4ba85af88dbb673 | /env/lib/python3.8/site-packages/pandas-stubs/core/computation/parsing.pyi | 3139316a492d6b9c573024b3e5e9b527db637ce6 | [] | no_license | LuisGonzalezLopez/Luis-Gonzalez | f4064dc08ccbada80cc7b45f8fbaaf70f54f420c | 109f50e2e26a1c4abed5ba502deda9e212955c69 | refs/heads/master | 2022-08-04T14:24:42.992548 | 2022-07-23T09:03:08 | 2022-07-23T09:03:08 | 103,600,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | pyi | import tokenize
from typing import (
Iterator,
Tuple,
)
BACKTICK_QUOTED_STRING: int
def create_valid_python_identifier(name: str) -> str: ...
def clean_backtick_quoted_toks(tok: Tuple[int, str]) -> Tuple[int, str]: ...
def clean_column_name(name: str) -> str: ...
def tokenize_backtick_quoted_string... | [
"luxo237@gmail.com"
] | luxo237@gmail.com |
b8ddc127cfcb9245e757ef5500e01dc09c429923 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2513/60795/267936.py | d6640b0f57f31e720990a6b563b00de551112cf6 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | n=int(input())
result=[]
for i in range(0,n):
arr=[int(n) for n in input().split(',')]
for j in range(0,n):
result.append(arr[j])
k=int(input())
result.sort()
print(result[k-1]) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
88f7cf669ad38ec523e65645a0e13c3f281714a6 | c3fc7865f163a43fbd3e832547005cf3c89547c5 | /bin/oldScripts/JobCommands/PINN_ECFP4KSEPTRIGRAM_2_3_commands_5.py | 8823d4a4539d7476a8d27561bca5f92ef60a1eb6 | [] | no_license | ahmetrifaioglu/PyTorch | 936d5317ca90a147e147241cbf75ae0864477f13 | fff02012eb5f05cdd634b5128f8bdceb9ed3b2a7 | refs/heads/master | 2021-10-24T19:27:53.495478 | 2021-10-12T22:05:08 | 2021-10-12T22:05:08 | 165,693,778 | 0 | 0 | null | 2021-10-12T22:04:20 | 2019-01-14T16:24:32 | Jupyter Notebook | UTF-8 | Python | false | false | 11,835 | py | import subprocess
subprocess.call("python dream_challenge.py PINN_2_3 ecfp4 trigram 4096_1536 2048_1024_512 512 512 0.0001", shell=True)
subprocess.call("python dream_challenge.py PINN_2_3 ecfp4 trigram 4096_1536 2048_1024_512 512 512 0.005", shell=True)
subprocess.call("python dream_challenge.py PINN_2_3 ecfp4 trigram... | [
"ahmetrifaioglu.ce@gmail.com"
] | ahmetrifaioglu.ce@gmail.com |
054eb96e09b87131cdc8f7bea38c96ab8504d39b | 48d8e96e0eba526fb08c74ee17ca0b89b9ea4192 | /find_maximum_subarray.py | a4607b76dd28b8813ac5e9f9bf58c916cd3afc30 | [] | no_license | John-W-Stevens/algorithms_clrs | 12842e246b66f30d4d71c093f7c5919e941eb1f0 | e926418f069de0ac7e5d6195b810df1be41edf3f | refs/heads/master | 2020-12-21T09:16:35.035058 | 2020-04-22T18:25:42 | 2020-04-22T18:25:42 | 236,383,401 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py |
# Import numpy to use Inf
from numpy import Inf
def find_max_crossing_subarray(arr,low,mid,high):
""" From CLRS pgs. 70-74
"Takes as input an array and indices low,mid,high
Returns a tuple containing the indicies demarcating
a maximum sub-array that crosses the midpoint, along with
the sum of the ... | [
"john.william.stevens1@gmail.com"
] | john.william.stevens1@gmail.com |
0f104fa41dfb5aa5dba2362b7d925e046b1292c4 | e8d7e13eb4d26c0a0147f2d0208d70e61f865c2c | /untitled50/bin/python3.6m-config | 54996d6a3566cc7b19ca4b84dbefad58b93fe58f | [] | no_license | fazi4888/APCSP-FreshmanYear | 55c5b5717aadeb2d871582754174f88213a488fe | b4f0f797b2c469e148b0330ad9d309610f1f0668 | refs/heads/master | 2022-11-30T11:51:30.210342 | 2020-08-17T15:00:37 | 2020-08-17T15:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | #!/Users/rayaan_siddiqi23/untitled50/bin/python
# -*- python -*-
# Keep this script in sync with python-config.sh.in
import getopt
import os
import sys
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir']
... | [
"rayaan.siddiqi@gmail.com"
] | rayaan.siddiqi@gmail.com | |
0820492c6f8f84c03d5ea67148735a46b346b5c4 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/plugins/lookup/test_manifold.py | 44050cf36af553019eb84f6a882211c510bf094f | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,526 | py | # (c) 2018, Arigato Machine Inc.
# (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible_collections.notstdlib.moveitallout.tests.unit.compat import unit... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
63cff8ecff4e85addb997ed55491b924444e50ac | e1c7c25c22c2f854aa8e3d8f6fffdf80a0b4dfbf | /CodeChef/CodeChef_Contests/Distribute_Candies.py | b7374b54f77afa5e0246f35539e5cff21c1a8d76 | [] | no_license | roshan13ghimire/Competitive_Programming | efc85f9fe6fa46edff96931ca3a1cca78628918b | 0c238a391c6acee8763968ef298b765c133b7111 | refs/heads/master | 2023-04-15T16:35:07.711491 | 2021-04-12T03:00:05 | 2021-04-12T03:00:05 | 273,682,360 | 4 | 1 | null | 2020-08-05T02:11:53 | 2020-06-20T09:59:57 | Python | UTF-8 | Python | false | false | 344 | py | #Distribute_Candies
for _ in range(int(input())):
n = int(input())
a=list(map(int,input().split()))
if(len(a)==0):
print(a[0])
elif(len(a)==1):
print(min(a))
else:
a.sort(reverse=True)
s=0
for i in range(2,len(a),3):
s +=a [i]
... | [
"noreply@github.com"
] | roshan13ghimire.noreply@github.com |
ab718c6751938719fe2a3fad3cb11077d9a8ee9a | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/sql/v20201101preview/get_job_credential.py | 78541af0a1ae2757fdc71c031ccd8aba7355f0fc | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,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, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
5dc5dcbbd705e58f27c0631355130a07689f6f51 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/lsm.py | 5556fc62a4f5c02583d9d14afdb961e9c782ce7d | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
bfbdd12c0144be46d6a9f9cd9681526f91cb2302 | b24e993bfae0e530b7c6ee676b0efa1b2cbea33c | /rsopt/run.py | 0b53f55ed903b0c68a87716fab0c306be408db6a | [
"Apache-2.0"
] | permissive | tanxicccc/rsopt | f99d8d721ce37647717b41c08b44f69a065444ae | 8705e937f95a4bbe6ed3fb1a04b78f724a5f3931 | refs/heads/master | 2023-01-06T19:21:40.065806 | 2020-10-24T23:48:34 | 2020-10-24T23:48:34 | 288,584,476 | 0 | 0 | Apache-2.0 | 2020-08-18T23:19:55 | 2020-08-18T23:19:54 | null | UTF-8 | Python | false | false | 675 | py | # Functions to run a call from originating from pkcli
# This is just a temporary setup. libEnsembleOptimizer shouldn't actually be tied to execution mode
# It is instantiated because nlopt was requested
# THe executor will be setup separately based off 'execution_type' in YAML and registered with libEnsembleOptimizer
f... | [
"chall@radiasoft.net"
] | chall@radiasoft.net |
d5e3cb808796ca54150f2786b23de7ecf5ca0361 | 5f57cfb662e7a490235255273114d2eb712a9ce4 | /djd-prog2/manha-aula2/operadores2.py | 8f487d67a5131274c9bbe4910aa05cb36e8f139f | [] | no_license | antoniorcn/fatec-2020-2s | 762e14acfbf0cb42a2e478662e6cf0001794f72c | 4d90cc35d354382ad38c20ce2e32924216d7d747 | refs/heads/master | 2023-01-27T22:52:29.529360 | 2020-12-05T13:51:30 | 2020-12-05T13:51:30 | 289,972,977 | 9 | 7 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | temperatura = 14
frio = temperatura < 15
horas_acordado = 18
sono = horas_acordado > 16
ficar_casa = sono and frio
print("Ficar em casa: ", ficar_casa)
| [
"antoniorcn@hotmail.com"
] | antoniorcn@hotmail.com |
b9b986b188c838e28b4a55d6dad2d567a40a0153 | 616c7325ee8c4a7d37467a8ad760d00891d3b450 | /get_linkedin.py | 41f290be48e6b44cc8360af16080bdcde11e899f | [] | no_license | vintasoftware/networking.cool | c8f7b3d027b098966ea4c47a211a465eaf746661 | 314d3b32ab3d611fe2b622d57372dc29fb5eac5e | refs/heads/master | 2023-06-19T19:38:03.557182 | 2015-11-15T19:05:08 | 2015-11-15T19:05:08 | 64,401,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | # coding: utf-8
from selenium.webdriver import Chrome
from selenium.common.exceptions import WebDriverException
import requests
from retrying import retry
import json
import time
import pprint
import traceback
def wait_for(fn, timeout=5):
start_time = time.time()
while time.time() - start_time < timeout:
... | [
"flaviojuvenal@gmail.com"
] | flaviojuvenal@gmail.com |
d2dfa36bff8f5800e973f158cab51208757331e3 | 7e15a679d37e8d8449871c8f6f3f649d05b33b36 | /web/handlers/comments.py | 7a8402f6a5785678f06d62e2661eec09161bb046 | [] | no_license | SuprDewd/gamma | a7514aaa86790e92df481da75c283279ac7a1678 | 98b291da26d8b54959134e493a25b73234d7df63 | refs/heads/master | 2021-01-17T16:59:05.247942 | 2014-03-22T23:09:28 | 2014-03-22T23:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from base import BaseHandler
class CommentsHandler(BaseHandler):
def get(self):
pass
| [
"suprdewd@gmail.com"
] | suprdewd@gmail.com |
e4c28f5e3f4811b1f754c5f93c0fe9abaa34c559 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R3/benchmark/startPyquil415.py | dc4c420c9e6301077dbf98ee6a6da1cfc57977c0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # qubit number=4
# total number=11
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
31f3bf254a89f1c3c9623a7faa5f180eded32255 | 6f0ceee714bccf2a89c34a06aabd3bcb781a2fa4 | /python/mxnet/symbol/linalg.py | 2bf543ea3217d9ac7fdd54328349f3e724134a22 | [
"Apache-2.0",
"MIT",
"Unlicense",
"BSL-1.0",
"NCSA",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"OFL-1.0",
"BSD-2-Clause-Views",
"Zlib"
] | permissive | yajiedesign/mxnet | 5a495fd06dd1730c17d2d27d7e46c8a770847f17 | 8e5a16cf673db5aceb48d2cf7a0fc1abd0ee5e51 | refs/heads/master | 2021-03-30T22:37:18.603396 | 2020-10-23T06:40:17 | 2020-10-23T06:40:17 | 43,763,550 | 214 | 59 | Apache-2.0 | 2020-06-01T23:31:15 | 2015-10-06T16:36:40 | C++ | UTF-8 | Python | false | false | 980 | 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... | [
"piiswrong@users.noreply.github.com"
] | piiswrong@users.noreply.github.com |
a5ea2d8532dca777ae398c51f038fb24bb124a41 | bab7cee09c1f90c93f98aad8c83180197a2cdabe | /devel/lib/python2.7/dist-packages/lanelet_map_msgs/msg/_Lanelet.py | 3f6991649c28950e23eaa46d42f21a542cd4593a | [] | no_license | lievech/car_simulation_ws | 25ccad1677e4af9054f8f2298b54ad44e4058676 | d3c74a3af3f242e34fac97d525325ab62d2be3a5 | refs/heads/master | 2020-08-02T06:32:10.944218 | 2019-09-28T02:56:50 | 2019-09-28T02:56:50 | 211,263,284 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | /home/lhn/hhh_ws/devel/.private/lanelet_map_msgs/lib/python2.7/dist-packages/lanelet_map_msgs/msg/_Lanelet.py | [
"2328187416@qq.com"
] | 2328187416@qq.com |
f165ad0ca683b70f6c06e7d04235a1a1ed8a7f8c | 028a00f712ed1bc005ba0ca60e33c333bd46acb5 | /VL-T5/src/pretrain.py | 6ce85fed51e06824881043597daa9485126fd8ca | [] | no_license | Ch4osMy7h/VL-T5 | 14aa5cd094e7510e110b183bdb5743aead33b3af | 18699e2b1d5b4559f76c88a48cdec7176d356c34 | refs/heads/main | 2023-08-25T14:03:14.946471 | 2021-11-10T16:13:41 | 2021-11-10T16:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,796 | py | import collections
import os
import random
from pathlib import Path
import logging
import shutil
from packaging import version
from tqdm import tqdm
import numpy as np
import torch
import torch.nn as nn
from torch.nn.parallel import DistributedDataParallel as DDP
import torch.distributed as dist
import torch.backends... | [
"heythisischo@gmail.com"
] | heythisischo@gmail.com |
6c8f1633699688ed4eac61c01aefb521fce09724 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/lite/python/interpreter 2.py | c71daaf1bb4739a1074055c116eca8825cfc74e0 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7ecbc5673643005289606d082d863298698c13aa95073050a67828c541faabde
size 33756
| [
"business030301@gmail.com"
] | business030301@gmail.com |
45661f2da45c893dd1a6b2204c6601008132cdfd | f079cce1a4f5d1e43ac5d6d83307609577086dd7 | /tests/test_awesome_cli.py | 7f1f9062ff5facf4788bfeb21532131691b9059d | [
"CC-BY-4.0"
] | permissive | moraesmv/awesome-aws | 0ee446cba83bb9d3201af5cc496333319b3ea65b | b3bac0395f23901d5338d4c036076307ce8c73b1 | refs/heads/master | 2020-05-31T00:09:26.761636 | 2015-12-28T13:19:48 | 2015-12-28T13:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # -*- coding: utf-8 -*-
# Copyright 2015 Donne Martin. All Rights Reserved.
#
# Creative Commons Attribution 4.0 International License (CC BY 4.0)
# http://creativecommons.org/licenses/by/4.0/
import unittest
from click.testing import CliRunner
from awesome.awesome_cli import AwesomeCli
class AwesomeCliTest(unitt... | [
"donne.martin@gmail.com"
] | donne.martin@gmail.com |
3128a7eec6212fb006adc2f806bb0d2303192523 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0351_0400/LeetCode358_RearrangeStringKDistanceApart.py | 596860dc901240f03530a0afafccc23be9414195 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,068 | py | '''
Created on Mar 23, 2017
@author: MT
'''
_______ h__
c_ Solution(o..
___ rearrangeString s, k
hashmap # dict
___ c __ s:
hashmap[c] hashmap.g.. c, 0)+1
heap # list
___ c, freq __ hashmap.i..
h__.heappush(heap, [-freq, c])
queue # list
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
34d5ebde3ef06d928460a3edefc4c0baffb9005f | f00bedd8c6d1293393a5054859e4e0902d650154 | /pattern-1.py | 596e38284d248f4b83fb03386a68d6bbe779d6d4 | [] | no_license | preetising/Loops | fd73f3fcba07a8c62ea436bbf2d7774e1301ac1d | 6783714262c063569c628ec0efeffaf9a9d6b884 | refs/heads/main | 2023-08-05T16:31:30.008834 | 2021-10-10T08:12:36 | 2021-10-10T08:12:36 | 384,902,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | i=1
while i<=5:
j=1
while j<=5:
print(i,end=' ')
j=j+1
i=i+1
print()
| [
"noreply@github.com"
] | preetising.noreply@github.com |
ba7485f2e42395962091a0ab75e89a4a1d966a1e | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/k8s-extension/azext_k8s_extension/vendored_sdks/v2022_03_01/operations/_extensions_operations.py | 5ebf5788b77bd72c64d60be3a9b296d2febfb7f7 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 37,393 | 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 may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
a92affe8b0afb78a1c8610adfff9fe2d407ddb83 | 735a315ea82893f2acd5ac141f1a9b8be89f5cb9 | /pylib/mdsplus_alpha/tests/segmentsUnitTest.py | 67b013c0f7cb3cedebc0e7516d4af242ca439150 | [] | no_license | drsmith48/pppl-mdsplus-python | 5ce6f7ccef4a23ea4b8296aa06f51f3a646dd36f | 0fb5100e6718c8c10f04c3aac120558f521f9a59 | refs/heads/master | 2021-07-08T02:29:59.069616 | 2017-10-04T20:17:32 | 2017-10-04T20:17:32 | 105,808,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from unittest import TestCase,TestSuite
from tree import Tree
from mdsdata import *
from mdsscalar import *
from mdsarray import *
import numpy as np
import random
import os
import sys
import tempfile
_tmpdir=tempfile.mkdtemp()
def setUpModule():
pass
def te... | [
"drsmith8@wisc.edu"
] | drsmith8@wisc.edu |
690ca2306342d5c831a89a5cd5ffcc9790800260 | 7a2a58a440c5883a13ded31aecb03cf1923b1b15 | /backend/techh_18306/settings.py | 45e065cc57fa83fa5189cd5eec2b5d8982b76bab | [] | no_license | crowdbotics-apps/techh-18306 | f4a7086dee5ade70c2d19074d5bcad10f8d72ea0 | a39a881da2671bef242009eb58543625aab2bae5 | refs/heads/master | 2022-11-05T21:48:52.603814 | 2020-06-21T20:59:12 | 2020-06-21T20:59:12 | 273,982,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | """
Django settings for techh_18306 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
21b3ef57b8af5a6359865fc56f601d779e0ab0cb | 27ff8115b114f5a78a0f4c9d1a4981df43d5beb6 | /Matplotlib/demo_00Mofandemo/19_animation_demo.py | e0fed7f44984f26b0ebb7667146806704055d518 | [
"MIT"
] | permissive | Asurada2015/Python-Data-Analysis-Learning-Notes | 3da937504bc996c273da76b78baa814da3c2bc31 | 5697c8de3e5fd6562e77195b198b2d8ff836008e | refs/heads/master | 2021-06-26T01:08:00.788099 | 2020-04-08T07:46:49 | 2020-04-08T07:46:49 | 97,900,161 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | import numpy as np
from matplotlib import pyplot as plt
from matplotlib import animation
fig, ax = plt.subplots()
# 生成子图,相当于fig = plt.figure(),
# ax = fig.add_subplot(),其中ax的函数参数表示把当前画布进行分割,
# 例:fig.add_subplot(2,2,2).表示将画布分割为两行两列,ax在第2个子图中绘制,其中行优先。
x = np.arange(0, 2*np.pi, 0.01) # 表示从0~2*np.pi之间每隔0.01取一个点
line, = a... | [
"1786546913@qq.com"
] | 1786546913@qq.com |
57cca23e4498f672ba7e88f78c1b7c23e7a610ed | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /bam/task_specific/task.py | 8d63fc0feb22d7b92605c5e9906677fe480308dc | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,395 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
039644bfddd186986c491626e0b7127322ccbf58 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/identity/azure-identity/azure/identity/aio/_internal/get_token_mixin.py | 162e6a51da5795a3b797f3692d41a13ade964552 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,791 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import abc
import logging
import time
from typing import Any, Optional
from azure.core.credentials import AccessToken
from ..._constants import DEFAULT_REFRESH_OFFSET, ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
cb8a404a6028dd2e0c857ee4f7bbbaa73b7296c9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03200/s271432048.py | bcd6a8482b6eb023426b8dd72faca95f03661394 | [] | 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 | 176 | py | S = list(input())
n = len(S)
cnt_b = 0
cnt = 0
for i in range(n):
if S[i] == 'B':
cnt_b += 1
cnt += i
ans = int((2*n - cnt_b -1)*cnt_b*0.5 - cnt)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
59565e2453584531a21bcde645e428597918d80b | e714dfd95cb74f4e357af8d085e4dcaf8b7ecdf3 | /0x03-python-data_structures/10-divisible_by_2.py | 2d808d5249e958464d33eb26dcdab22c4db79367 | [] | no_license | MCavigli/holbertonschool-higher_level_programming_classic | 2cea769dc1fd39e90f6ef74cdb3191e2472b0282 | 870548f964a3deac4a41918e9c3d0bad6cd732b4 | refs/heads/master | 2022-03-06T09:33:56.839118 | 2019-09-27T06:04:34 | 2019-09-27T06:04:34 | 184,122,977 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!/usr/bin/python3
def divisible_by_2(my_list=[]):
new = []
for num in my_list:
new.append(True) if num % 2 == 0 else new.append(False)
return new
| [
"mcavigli@gmail.com"
] | mcavigli@gmail.com |
3034898b4c6efff6c979aa9c058eaad3bdfe78e5 | d51b4c766661af65b4ee6e7c30f8cb4bdd8603e3 | /python/oop/method/iter.py | a612e99ce5f3e8c7cc0ed0aa897554f8d66889a4 | [] | no_license | yanxurui/keepcoding | 3e988c76b123d55b32cf7cc35fbffb12c4ccb095 | d6b9f07e2d1437681fa77fee0687ea9b83cab135 | refs/heads/master | 2021-01-24T09:01:41.306597 | 2020-05-21T05:36:04 | 2020-05-21T05:36:04 | 93,400,267 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | class Spam(object):
"""[summary]
>>> for i in Spam(1, 5):
... print(i)
...
1
4
9
16
>>> # iterate manully
>>> X = Spam(1, 5)
>>> I = iter(X)
>>> next(I)
1
>>> next(I)
4
>>> next(I)
9
>>> next(I)
16
>>> next(I)
Traceback (most rece... | [
"617080352@qq.com"
] | 617080352@qq.com |
e85fdfeeaef3f45656935aec998ebc36b9928833 | 7f3a439c6ac921f07101759e932424792ee9e24e | /std_lib/asyncio/p01_coroutine_task/ch02_awaitables.py | 9d984214e2480f5b6935010ec261bc2252865bb2 | [] | no_license | multiscripter/python | 03f6299af0ee2153e9e3b696aa591e460a3d6a52 | eef7900b7a564e0850659fb59c1218be9c6829ea | refs/heads/master | 2023-04-13T05:24:29.434394 | 2021-04-26T12:11:59 | 2021-04-26T12:11:59 | 289,573,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | import asyncio
# Мы говорим, что объект является awaitable (ожидаемым) объектом,
# если его можно использовать в выражении await.
# Многие API-интерфейсы asyncio предназначены для приёма awaitable-объектов.
# Есть три основных типа awaitable-объектов: Coroutine, Task и Future.
# 1. Coroutine.
# coroutines являются a... | [
"ILL-JAH@yandex.ru"
] | ILL-JAH@yandex.ru |
d5fc1a9a549e1a6ce9e5fdc380292c712031d489 | c364fca8ae4c896dee2c8b0dc545f4d73c8c8314 | /supervised_learning/0x0C-neural_style_transfer/8-neural_style.py | 75a2d1e77bbd4d3bcd6a460efacec79a4944e555 | [
"MIT"
] | permissive | ledbagholberton/holbertonschool-machine_learning | 7672509d2dc1775bd6708430d244e8f4dd4cb169 | eaf23423ec0f412f103f5931d6610fdd67bcc5be | refs/heads/master | 2020-12-22T01:12:32.824436 | 2020-10-11T12:36:48 | 2020-10-11T12:36:48 | 236,623,497 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,770 | py | #!/usr/bin/env python3
"""class NST"""
import tensorflow as tf
import numpy as np
tf.enable_eager_execution()
class NST:
"""Class NST"""
style_layers = ['block1_conv1', 'block2_conv1', 'block3_conv1',
'block4_conv1', 'block5_conv1']
content_layer = 'block5_conv2'
def __init__(self... | [
"789@holbertonschool.com"
] | 789@holbertonschool.com |
53c448f8e4e441f92e2aec10e29d9ca24359595a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1412+299/sdB_PG_1412+299_lc.py | 1fc949095568bba26e541e43fa821db7addabfb7 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[213.598708,29.684953], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1412+299 /sdB_PG_1412+299_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
91f7b1e95f64d31541ee7a3ad43d81110ac198fd | 1d38c549c07f43cc26b7353ef95300b934eeed33 | /GUI/Edit/Specy.py | fb03a7097cd0a7523d4349c7642606a3422113c2 | [] | no_license | pooyagheyami/Adel3 | a6354fbc5aa56a9c38a8b724c8d22bea689380a1 | 29e257e19fd6914de0e60c303871321e457a858b | refs/heads/master | 2022-11-07T21:53:13.958369 | 2020-06-12T13:22:55 | 2020-06-12T13:22:55 | 271,803,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,690 | py | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Jun 17 2015)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################
impor... | [
"pooyagheyami@gmail.com"
] | pooyagheyami@gmail.com |
8ad7331a5f260ccc92a6d41401ca560c66646425 | 959a1bbaef979183ca0aacf03b748e87aa842197 | /devel/lib/python2.7/dist-packages/pose_graph_msgs/msg/__init__.py | 6847bed2af0e51e2757b804411e0db73023f67d1 | [] | no_license | rishabhgks/quad_ws | 723a95ccc825ddb13f2e27fb9e220cc7b03db6db | 19f7a57a585ca9799b3fd11f5b80d894c5b88167 | refs/heads/master | 2022-11-10T13:44:23.056196 | 2020-06-19T14:32:17 | 2020-06-19T14:32:17 | 250,417,696 | 0 | 0 | null | 2020-06-19T14:32:18 | 2020-03-27T02:03:07 | Makefile | UTF-8 | Python | false | false | 112 | py | from ._KeyedScan import *
from ._PoseGraph import *
from ._PoseGraphEdge import *
from ._PoseGraphNode import *
| [
"rishabhgs19@gmail.com"
] | rishabhgs19@gmail.com |
41f673888cfffe4c1aa80b2a5a347f7f943800df | 54ddb3f38cd09ac25213a7eb8743376fe778fee8 | /topic_02_syntax/examples/isdigit_isnumeric_isdecimal.py | e1596f3051a547ad360699482c643e2c9d57e600 | [] | no_license | ryndovaira/leveluppythonlevel1_300321 | dbfd4ee41485870097ee490f652751776ccbd7ab | 0877226e6fdb8945531775c42193a90ddb9c8a8b | refs/heads/master | 2023-06-06T07:44:15.157913 | 2021-06-18T11:53:35 | 2021-06-18T11:53:35 | 376,595,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | def check_str(my_str):
print(f"mystr: {my_str}")
print(f"isnumeric: {str.isnumeric(my_str)}")
print(f"isdigit: {str.isdigit(my_str)}")
print(f"isdecimal: {str.isdecimal(my_str)}")
print("-" * 50)
# isdecimal() ⊆ isdigit() ⊆ isnumeric()
if __name__ == '__main__':
check_str('½')
check_str('Ⅰ... | [
"ryndovaira@gmail.com"
] | ryndovaira@gmail.com |
2f3807cf8f62e47c63a60a47b092def214c58a97 | 524756e5e03465584dcb2d04b8092fbe8840448a | /users/signals.py | 61f3f6acbaa87c5bbd5887d4336cc27d40a10557 | [
"Apache-2.0"
] | permissive | areebbeigh/greenspace-demo | f9a241fb6c39a724b19094ccf21114647492dd81 | 0754f3b50e845bd5e50239361239f9b0b8aba42b | refs/heads/master | 2022-10-11T05:45:05.036097 | 2020-06-11T11:04:12 | 2020-06-11T11:41:38 | 271,524,789 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import sys
from django.conf import settings
def create_groups(sender, **kwargs):
from django.contrib.auth.models import Group
group, created = Group.objects.get_or_create(name=settings.NURSERY_MGR_GROUP)
print('Created new nursery group' if created else 'Nursery group already exists')
| [
"areebbeigh@gmail.com"
] | areebbeigh@gmail.com |
9ab1dae85e9196df975840e6c6d4551650fb7216 | 3adec884f06eabfe50d4ab3456123e04d02b02ff | /148. Sort List.py | a2e8d101bc501c111c899032f45427524ee85d4f | [] | no_license | windmzx/pyleetcode | c57ecb855c8e560dd32cf7cf14616be2f91ba50e | d0a1cb895e1604fcf70a73ea1c4b1e6b283e3400 | refs/heads/master | 2022-10-05T17:51:08.394112 | 2020-06-09T09:24:28 | 2020-06-09T09:24:28 | 250,222,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def sortList(self, head: ListNode) -> ListNode:
def split(head):
if head.next == None:
return head
p =head
q=head... | [
"2281927774@qq.com"
] | 2281927774@qq.com |
313e25acc001a41e971e137fbcf6bee9f8d3a909 | 8e69eee9b474587925e22413717eb82e4b024360 | /v1.0.0.test/toontown/minigame/TwoDEnemyMgr.py | 2b350c515aa1c976abc5e5490424ee267024aaa9 | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | from panda3d.core import *
from direct.directnotify import DirectNotifyGlobal
from direct.showbase.DirectObject import DirectObject
from toontown.minigame import ToonBlitzGlobals
from toontown.minigame import TwoDEnemy
class TwoDEnemyMgr(DirectObject):
notify = DirectNotifyGlobal.directNotify.newCategory('TwoDEnem... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
10e3f86ff0569d076876a2d1d0c9d815c172bf83 | 811bf15a5bad488284300b6016c8b77f1e2daf24 | /rllib/core/testing/tf/bc_module.py | cca3a42f4eeb2f0f78c637b944e16f7057e4c21d | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | justinwyang/ray | 8c102e00321e669b7e78488d38329e82195e7b58 | 6c356296a01ebf3d8ad0cab6058fb8c03ccbf8f6 | refs/heads/master | 2023-04-28T15:57:24.167579 | 2023-04-22T08:28:06 | 2023-04-22T08:28:06 | 172,777,393 | 0 | 0 | Apache-2.0 | 2020-12-04T02:39:57 | 2019-02-26T19:37:12 | Python | UTF-8 | Python | false | false | 5,312 | py | import tensorflow as tf
import tensorflow_probability as tfp
from typing import Any, Mapping
from ray.rllib.core.rl_module.rl_module import RLModule, RLModuleConfig
from ray.rllib.core.rl_module.marl_module import (
MultiAgentRLModule,
MultiAgentRLModuleConfig,
)
from ray.rllib.core.rl_module.tf.tf_rl_module i... | [
"noreply@github.com"
] | justinwyang.noreply@github.com |
014fc63655d75805b73e1b4f0ca4fe2e2b051844 | 650b516b1214c4d44fd6f04941e87e28e9049cde | /addons/plugin.video.fanfilm/resources/lib/libraries/cache.py | 7d58a18868df7128b7866218d87032edd9459070 | [] | no_license | MultiWu/build | b85cc45a33b871f4ade58de8457fcd094761f385 | f50a64f674b6499668e0a5758fe0879b016f5c38 | refs/heads/master | 2022-10-31T20:35:53.382826 | 2019-12-20T22:50:16 | 2019-12-20T22:50:16 | 228,462,984 | 0 | 3 | null | 2022-10-07T08:47:18 | 2019-12-16T19:46:39 | Python | UTF-8 | Python | false | false | 8,728 | py | # -*- coding: utf-8 -*-
"""
Covenant Add-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This progr... | [
"oliwierminota@gmail.com"
] | oliwierminota@gmail.com |
553b046fb1e362b9966b86843cf88a190f17cb17 | 544be854639d58b111c345a55597b0580e8106d8 | /example/admin.py | 77862791f8be12447236b147803759aedf1c3d46 | [] | no_license | arineto/django-multi-tenant-example | 152abde09e5362e0ecaab9402d03aa23228f4bf3 | ac74c1fa5ed3a4e3e70758c84398bcc0ec061b30 | refs/heads/master | 2021-01-20T20:44:45.315471 | 2016-07-11T13:48:09 | 2016-07-11T13:48:09 | 63,065,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.contrib import admin
from .models import Item
from multi_tenant.models import Theme
from multi_tenant.models import Tenant
# Register your models here.
admin.site.register(Item)
admin.site.register(Theme)
admin.site.register(Tenant)
| [
"arineto30@gmail.com"
] | arineto30@gmail.com |
a35078d691fddc504f227125b99e73b18a3a6ad3 | 8f61d6ae3a80eb6c6d45aab55d9e73df402446fe | /kate3/logger/admin.py | 39df6a9788b2b169f0b040a71d1f3ca4d4fa7602 | [
"MIT"
] | permissive | katemsu/kate_website | 2047314598e215b0e8b3d3d71b21b4c70df36213 | 9e6912156fe7ce07a13f54009ff1823b3558784d | refs/heads/master | 2021-01-16T20:25:16.264407 | 2013-11-02T20:14:40 | 2013-11-02T20:14:40 | 14,073,589 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from django.contrib import admin
from logger.models import Entry
class EntryAdmin(admin.ModelAdmin):
list_display = ('__unicode__', 'action', 'created_at',)
list_filter = ('action', 'created_at',)
admin.site.register(Entry, EntryAdmin) | [
"smizell@gmail.com"
] | smizell@gmail.com |
04b264c1c72261ff9d515d75793a43e17fa06c3b | c223a3a88aad65fd48cef0d5cc40db5bf383033a | /mopidy/utils/process.py | 11dafa8af19df78bf86ed1a1de01a867e4361409 | [
"Apache-2.0"
] | permissive | bok/mopidy | 4cfb19a7c55bad2f45f57c76ec9db550a32aaf27 | 71d791291b83728f38a4e401a0c68180f403b6a9 | refs/heads/master | 2020-12-25T00:49:54.009159 | 2011-01-22T13:33:47 | 2011-01-22T13:33:47 | 1,455,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | import logging
import multiprocessing
import multiprocessing.dummy
from multiprocessing.reduction import reduce_connection
import pickle
import gobject
gobject.threads_init()
from mopidy import SettingsError
logger = logging.getLogger('mopidy.utils.process')
def pickle_connection(connection):
return pickle.dump... | [
"stein.magnus@jodal.no"
] | stein.magnus@jodal.no |
e75f3424076f2e5d15b48b4dd8a7d95a4cab2052 | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/EGL/EXT/EXT/stream_consumer_egloutput.py | 92220cad6445f2adbe03b6b49917df998efe4191 | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from OpenGLCffi.EGL import params
@params(api='egl', prms=['dpy', 'stream', 'layer'])
def eglStreamConsumerOutputEXT(dpy, stream, layer):
pass
| [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
fdd1c5c9ed081efbfccfd7332b2d1dc9d7131567 | e1b8ae703c84f6a06dd3a3072cfa9afb7f9ebce7 | /settings/base.py | 1efd5df312d1c81f3a2de70992ff31811d366c08 | [] | no_license | Code-Institute-Submissions/renanclothestore | 95a2a161f0f0046e328cb639a88ddaf6afaceae5 | ea295d1643b06a1f5cdbdbafcdbe767d2c286648 | refs/heads/master | 2020-03-26T12:34:21.946183 | 2018-08-13T21:40:09 | 2018-08-13T21:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,640 | py | """
Django settings for carapp project.
Generated by 'django-admin startproject' using Django 1.11.13.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"renanzabeu@yahoo.it"
] | renanzabeu@yahoo.it |
6588bb3ceecc40597d34c01833a1ac05336e8806 | f1961c86e6da14f35c21d7235f4fc8a89fabdcad | /DailyProgrammer/DP20130530B.py | 294d74df0d02a55cccef69c8006472e34b7d94ec | [
"MIT"
] | permissive | DayGitH/Python-Challenges | d4930bdd85cd1a977d8f6192775ca956a375fcde | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | refs/heads/master | 2021-01-17T13:01:03.784523 | 2018-06-29T23:49:04 | 2018-06-29T23:49:04 | 58,497,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | """
[05/30/13] Challenge #126 [Intermediate] Perfect P'th Powers
https://www.reddit.com/r/dailyprogrammer/comments/1fcpnx/053013_challenge_126_intermediate_perfect_pth/
# [](#IntermediateIcon) *(Intermediate)*: Perfect P'th Powers
An integer X is a "perfect square power" if there is some integer Y such that Y^2 = X. ... | [
"akber91@gmail.com"
] | akber91@gmail.com |
76789d8e347ae1d7769b0f4e7cb04bbb19e6ff03 | 8478b0b08ebdd284740d23eb9347640b97a3d93f | /rttl.py | 74fd9d49e54edaa63a3155581b1515c1d0d3477e | [
"MIT"
] | permissive | koxa22/Symbian-Python-Files | 4278fd4e25ba37cbd649c8ce07a3dd40f1d4213d | 59d5c5ad0ea5c7c4ac28b1e1ee6443ed2d354502 | refs/heads/master | 2022-07-17T05:36:09.351149 | 2018-04-01T17:18:12 | 2018-04-01T17:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,751 | py | # http://www.pymcu.com/PlayingSounds.html
# rttl.py version 1.0.1 (ported version to pyS60)
#
import e32
import pitchy
# RTTL variable to hold RTTL song
#RTTL = 'Bond:d=4,o=5,b=50:32p,16c#6,32d#6,32d#6,16d#6,8d#6,16c#6,16c#6,16c#6,16c#6,32e6,32e6,16e6,8e6,16d#6,16d#6,16d#6,16c#6,32d#6,32d#6,16d#6,8d#6,16c#... | [
"gaurav.ssnl@gmail.com"
] | gaurav.ssnl@gmail.com |
d6a101b306dc31549d207905b650b709fd7cd2d5 | 48eeb03decf7fa135368c5a5570186c31f5c85db | /dbmanage/mongodb/mongo.py | 5405ce9ec0320cd6e8e7827a7e0359020455ad07 | [
"Apache-2.0"
] | permissive | zhonghua001/sbdb | d5bb86cb5e4075a8f4dbf0d37c3fa72dd3a05a00 | 40d02767ad58e850bb1df48f87e280424779d30f | refs/heads/master | 2021-01-24T03:52:58.751571 | 2018-02-26T03:51:12 | 2018-02-26T03:51:12 | 122,909,859 | 1 | 1 | Apache-2.0 | 2020-07-22T02:38:13 | 2018-02-26T03:50:57 | JavaScript | UTF-8 | Python | false | false | 8,096 | py | #coding=UTF-8
import MySQLdb,sys,string,time,datetime,uuid,pymongo,json
# from django.contrib.auth.models import User
from accounts.models import UserInfo
from dbmanage.myapp.models import Db_name,Db_account,Db_instance
from django.conf import settings
from django.core.serializers.json import DjangoJSONEncoder
from dbm... | [
"123"
] | 123 |
ee61071610eab8a0aed3f149a7ea92a7aed2bdd9 | 86c30560810feb9ba6a70fa7e5e1c46d039a4bb2 | /Ass/3/gameDemo/gd_fucks/alien.py | 9c9c004fefaba806131bd4d7a66ad1b63244ee67 | [] | no_license | zubairabid/ITWS2 | 3f0608835e79725f88fd1658b40a65f1a4a2ef47 | 4703aba0ada3b0a0a165155ba1177420a110decf | refs/heads/master | 2021-03-27T12:47:17.522346 | 2018-04-15T00:11:43 | 2018-04-15T00:11:43 | 116,122,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import globalset as gs
class Alien:
def __init__(self, x, y):
self.txt = gs.alien
self.x = x
self.y = y
self.life = gs.ALIEN_LIFE
def update(self, sess):
self.life -= gs.CLOCK_CYCLE
if(self.life <= 0):
self.remove(sess)
def remove(self, sess... | [
"zubairabid1999+github@gmail.com"
] | zubairabid1999+github@gmail.com |
a5a8886cd1b54a2f799c66975c4821c04172df57 | 6533c515c936d999c4bd8192d03d01c56172940c | /wlauto/commands/run.py | c5432efe274167162fcfca1b1422e0f8c06fc751 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | caogao/workload-automation | 330558c1a51b42a6e9e3291333f7c0653975c617 | 44a49db04da3224003f16bf82db0dc309422b710 | refs/heads/master | 2021-01-15T11:07:01.869199 | 2016-04-15T15:39:24 | 2016-04-15T15:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,053 | py | # Copyright 2014-2015 ARM Limited
#
# 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 w... | [
"sergei.trofimov@arm.com"
] | sergei.trofimov@arm.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.