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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3a94bf0584d89521e7d8d5f7045d1479beb392e | bbd459d181ed999a49a074875164b0572840b6f8 | /tgt/dspboard/dspcontdebug.py | efe1cf592c66ebff679a401817dcad7ef8f71e3f | [] | no_license | hermeszhang/dspboard | ce2a8307a05495ddee099fceefe37d22f050f347 | c98cb8fdcd17fdc8d2e0077dd937d898f91b4b14 | refs/heads/master | 2021-05-11T20:21:01.112591 | 2010-03-08T22:28:03 | 2010-03-08T22:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """
repeatedly ing the DSP on the DSPboard
The first argument is the deviceID of the DSP
"""
import sys
from somapynet.event import Event
from somapynet import eaddr
from somapynet.neteventio import NetEventIO
import struct
import time
def debug(dspboardaddrs):
eio = NetEventIO("10.0.0.2")
eio.addRXMask(... | [
"jonas@mit.edu"
] | jonas@mit.edu |
579c43b9947c5c669c62a8e490262efb106cdc11 | 45dd427ec7450d2fac6fe2454f54a130b509b634 | /tutorial_9/direct_sphere_disks_movie.py | d3df6ef5029d0ab6161ff944e9affd4ce80852b7 | [] | no_license | weka511/smac | 702fe183e3e73889ec663bc1d75bcac07ebb94b5 | 0b257092ff68058fda1d152d5ea8050feeab6fe2 | refs/heads/master | 2022-07-02T14:24:26.370766 | 2022-06-13T00:07:36 | 2022-06-13T00:07:36 | 33,011,960 | 22 | 8 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | import random, math, mayavi.mlab
def unit_sphere():
x = [random.gauss(0.0, 1.0) for i in range(3)]
norm = math.sqrt(sum(xk ** 2 for xk in x))
return [xk / norm for xk in x]
N = 13
r = 0.25
attempts = 0
while True:
attempts += 1
positions = [unit_sphere() for j in range(N)]
dists ... | [
"simon@greenweaves.nz"
] | simon@greenweaves.nz |
3b1e21431f36f46c1ea7f74f9ed20cf27e932df9 | 81555388fefbcebf79929c9a895cea15016e7123 | /DJANGO_COURSE_2.xx/15-Django_Level_Two/Test_level_two/NewApp/models.py | d7a7972034e05f14805eebb6d5ea5d08a092ced3 | [] | no_license | Afroefras/learn_django | b275d64a710ad17bb399dc6a0c124815ad7131f2 | 639ba11fa50c68f8fb5adc476cfc557b6517a536 | refs/heads/main | 2023-07-17T17:03:07.252315 | 2021-09-09T21:25:59 | 2021-09-09T21:25:59 | 378,711,033 | 0 | 0 | null | 2021-07-15T16:45:42 | 2021-06-20T18:10:56 | Python | UTF-8 | Python | false | false | 286 | py | from django.db import models
class User(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
email = models.EmailField()
def __str__(self) -> str:
return f'{self.last_name}, {self.first_name}: {self.email}'
| [
"efraisma.ef7@gmail.com"
] | efraisma.ef7@gmail.com |
2fa627af3affc8405887447f6e5fc4f9fd6abeb4 | e01c5d1ee81cc4104b248be375e93ae29c4b3572 | /Sequence2/Heap/smallinheap.py | d072c95dcf28e6de7c0d0f1558340f95025998ea | [] | no_license | lalitzz/DS | 7de54281a34814601f26ee826c722d123ee8bd99 | 66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1 | refs/heads/master | 2021-10-14T09:47:08.754570 | 2018-12-29T11:00:25 | 2018-12-29T11:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from heapclass import Heap
def getNSmallest(heap, n, i = 0):
Haux = Heap()
count = -1
data = None
min = heap.getMin()
Haux.insert(min)
while(1):
data = Haux.getMin()
count += 1
if count == n:
return data
Haux.insert(min, getLeft())
h = Heap()
h.insert(12)
h.insert(11)
h.insert(13)
h... | [
"lalit.slg007@gmail.com"
] | lalit.slg007@gmail.com |
7529873f64b2b5f4406d66194fd7949b3ecffaf5 | fe7a8743a325bc8f91de331a4241efc233f2cbe7 | /bot_mp/urls.py | 236c5a68230aa99b6e7faef55ee5084c62c2f53a | [] | no_license | amaurirg/bot-mp | 15f038dd4ad011755626d899ff1b6ebc82027953 | eec14e955603e565a3e955dbfdadec852b75ae24 | refs/heads/master | 2021-05-10T10:31:51.550514 | 2018-01-22T22:37:48 | 2018-01-22T22:37:48 | 118,387,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | """bot_mp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"amaurirg@terra.com.br"
] | amaurirg@terra.com.br |
6fe3bf06baefa9fbd520082559d384faa019cf03 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/datashare/invitation.py | af774bfbaa0aa772abfffe38f0258f02dfe9876a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,209 | 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
from... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
229ae2c8718af94766c4661b7f18e485cb27ed9d | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/HackerRank-ProblemSolving/Tree Postorder Traversal.py | 2aeea1341b42cc4dab78f8c44c2c8bec15bd22dc | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | class Node:
def __init__(self, info):
self.info = info
self.left = None
self.right = None
self.level = None
def __str__(self):
return str(self.info)
class BinarySearchTree:
def __init__(self):
self.root = None
def create(self, val):
i... | [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
9fd273b32d873d0bdefb5c9a6ba8df42272604a2 | 6563560eeea12b9ca15584212ef6ae7ddddc4834 | /web_hxb2/bin/gifmaker.py | 1abb849cbc8d5f218aac8cf8acf1452a9dc55162 | [] | no_license | Johvenly/awd-platform | 958a549f3598ad55389749d57028cae3dcf75068 | ea12d18f8dc6198aa210553d33d25fc3d71331d0 | refs/heads/master | 2020-06-03T09:11:21.147947 | 2019-06-23T15:43:41 | 2019-06-23T15:43:41 | 191,517,734 | 1 | 0 | null | 2019-06-12T07:11:33 | 2019-06-12T07:11:33 | null | UTF-8 | Python | false | false | 641 | py | #!/web/bin/python3
#
# The Python Imaging Library
# $Id$
#
# convert sequence format to GIF animation
#
# history:
# 97-01-03 fl created
#
# Copyright (c) Secret Labs AB 1997. All rights reserved.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file for information on usage and redistribution.
#
from... | [
"zhl2008vvvss@gmail.com"
] | zhl2008vvvss@gmail.com |
cff6ed0365effe13022706a777aeb51faa9f22d8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02405/s902638359.py | e25dfe5f1863c936b76541e1ea2f6366e6eb9c3a | [] | 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 | 615 | py | # coding: utf-8
list = []
while True:
num = input().rstrip().split(" ")
if (int(num[0]) == 0) and (int(num[1]) == 0):
break
list.append(num)
for i in range(len(list)):
for j in range(int(list[i][0])):
for k in range(int(list[i][1])):
if ((j % 2) == 0):
if (... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7abf28bc38c37ebd926f15251565bb284a136cb5 | b2bdd5997ac84b0e19071c1ddc1c1a4d2f4fab58 | /catkin_ws/devel/lib/python2.7/dist-packages/p4/msg/__init__.py | 84ff6807a118b588173877525c3cbc35e42d48eb | [] | no_license | hbtslys01/RosCodingProject | 860d18531dabe4a969278deff5dbad8a8703ea83 | 226feda08724e92fd94191e123b9442c028283dd | refs/heads/master | 2020-04-11T09:16:17.808626 | 2018-12-13T17:30:08 | 2018-12-13T17:30:08 | 161,671,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | /home/cs4750/catkin_ws/devel/.private/p4/lib/python2.7/dist-packages/p4/msg/__init__.py | [
"907098316@qq.com"
] | 907098316@qq.com |
e88c59deacf5ad1e1a4556c29428dab8508df124 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/rfRecon/159-tideGauge.py | 07e7b80c009295d43eeb8925a15c482d9cf3f898 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,696 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 7 11:39:00 2020
This program is designed to reconstruct
daily max surge using RF
@author: Michael Tadesse
"""
def reconstructRF():
"""
run KFOLD method for random forest regression
"""
#import packages
import os
import numpy as np
import pan... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
6df320c1f9606ea2ae6b624c8816a29e96f7bc3b | 505a7f7a47a9760aed71e6d5a319a9f1cb9930d7 | /backend/tasker_business/api/v1/viewsets.py | 2caf3253328d89c1e816d3ffc67292cb3b7806ff | [] | no_license | crowdbotics-apps/researchapp-28176 | 6d4e5dbadfb94101375e67a689aca59abf479b3d | 6a221e0a21fb602d85f4e38b1715cac9084b0265 | refs/heads/master | 2023-06-04T04:35:31.360455 | 2021-06-22T18:09:32 | 2021-06-22T18:09:32 | 379,360,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | from rest_framework import authentication
from tasker_business.models import (
TaskerAvailability,
TaskerSkill,
Timeslot,
BusinessPhoto,
)
from .serializers import (
TaskerAvailabilitySerializer,
TaskerSkillSerializer,
TimeslotSerializer,
BusinessPhotoSerializer,
)
from rest_framework im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a108238c1511d9e33079427eecc39972200e0044 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/urssin001/question1.py | 28f70f3cb0d971ee38cd949b8f2837b27511c09e | [] | 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 | 378 | py | #Write a program to determine whether a year is a leap year or not.
#A year is a leap year if (a) it is divisible by 400 or
#(b) it is divisible by 4 but not by 100.
year=eval(input("Enter a year:\n"))
if(year%400==0):
print(year,"is a leap year.")
elif(year%4==0 and not year%100==0):
print(year,"is a ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
c5b436646cc0592a39b23d82302b0e093074a89d | 8a30e975facb5f612d5529f963a39eda6954dacd | /third_party/blink/renderer/bindings/scripts/web_idl/code_generator_info.py | 959908bae3de11f1a85e6374fc471c713ad9f6a0 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Gnurou/chromium | f66ad5e677382975dfdc8991242d6430a58e4a7e | 9c50a2b5347b46cd433d99b1b72bb8fc515ebf4c | refs/heads/master | 2022-11-08T06:14:59.094902 | 2020-01-07T13:43:28 | 2020-01-07T13:43:28 | 207,823,557 | 0 | 0 | BSD-3-Clause | 2019-09-11T13:47:52 | 2019-09-11T13:47:52 | null | UTF-8 | Python | false | false | 2,353 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The list of attributes that CodeGeneratorInfo supports. CodeGeneratorInfo's
# attributes are auto-generated from this list because they're boilerplated.
_... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
91893a2c56cd5f1f456f314c3c1a06d7541484f2 | 2192913412c96340ee1cd3fe7fecb4c08a589829 | /makedip.py | b8420478331e19ca7e68f6fc0d9bd20a64d71959 | [
"MIT"
] | permissive | Colm-Connolly/IFIscripts | 41d8f02cdaa9c78249f5a860177bd9d4686353fe | 47dcc4ab576c2367e6f692281aef7ab8013b81eb | refs/heads/master | 2021-02-05T02:21:02.206601 | 2020-02-25T08:15:53 | 2020-02-25T08:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | #!/usr/bin/env python3
'''
Accept options from command line and make access copy.
Use makedip.py -h for help
'''
import argparse
import os
import bitc
import prores
def set_options():
'''
Parse command line options.
'''
parser = argparse.ArgumentParser(
description='IFI Irish Film Institute b... | [
"kieran.o.leary@gmail.com"
] | kieran.o.leary@gmail.com |
7f513affa803420175ca8a46f5e22788904f22c9 | b8d9bba87ffb1c6945fb1c9268a986587e672785 | /Anil_Kumar/napaonline.py | 734329490ea377d4e0ad92f3114e93b72ed4887e | [] | no_license | patilanup246/Projects | 4f510f5965a2b5c1ca72dd94e70f53e14c7dac59 | b41aaa052a9f211065c184b7a0e167c089aefbc5 | refs/heads/master | 2021-02-28T00:14:01.330374 | 2018-09-01T12:26:29 | 2018-09-01T12:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | import requests
from pyquery import PyQuery
import json
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
import csv
import t... | [
"tasneemrangwala@users.noreply.github.com"
] | tasneemrangwala@users.noreply.github.com |
ab7fecf7c130b6759b83b51528357c8f55382812 | 4d1f1e188a4db8e909430b55bddf0d8113a28fcf | /pipeline/0x04-data_augmentation/3-shear.py | 257b149108321b478fb1401435c08e5b5fd35203 | [] | no_license | paurbano/holbertonschool-machine_learning | b0184a71733a1f51633ba7c7f4d3a82b8d50e94f | ff1af62484620b599cc3813068770db03b37036d | refs/heads/master | 2023-07-02T16:20:13.668083 | 2023-06-18T06:25:26 | 2023-06-18T06:25:26 | 279,967,511 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | #!/usr/bin/env python3
'''randomly shears an image
https://stackoverflow.com/questions/65545653/
apply-random-shear-augment-to-image-tensor
'''
import tensorflow as tf
def shear_image(image, intensity):
'''randomly shears an image
Args:
image is a 3D tf.Tensor containing the image to shear
i... | [
"paurbano@gmail.com"
] | paurbano@gmail.com |
8c9cf34b073212e4b491780ce0c43792dabea97a | 23a1faa037ddaf34a7b5db8ae10ff8fa1bb79b94 | /Interview_Preparation_Questions/Min-Max_By_Summing_Exactly_N-1_Elements.py | 314c411bbbb412d045244886335abed8a8ce7056 | [] | no_license | Pyk017/Competetive-Programming | e57d2fe1e26eeeca49777d79ad0cbac3ab22fe63 | aaa689f9e208bc80e05a24b31aa652048858de22 | refs/heads/master | 2023-04-27T09:37:16.432258 | 2023-04-22T08:01:18 | 2023-04-22T08:01:18 | 231,229,696 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | '''
Given N positive integers, Find the Minimum and Maximum values that can be calculated by Summing Exactly N-1 of the N integers. Then Print
the respective minimum and maximum values as a single line of two space separated integers.
Sample Input :
5
8 7 2 4 5
Sample Output :
18 24
'''
import sys
n = int(input(... | [
"prakharkumar506978@gmail.com"
] | prakharkumar506978@gmail.com |
6775c8ab7fdd294dc74f6a4aa4f61af57c72cc55 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /work/abc096_c2.py | 0876b14249739b2b6238be02c84a67aa9f24b9c5 | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # -*- coding: utf-8 -*-
h,w = map(int, input().split())
s = [["." for _ in range(w+2)]]
for _ in range(h):
line = list(input())
s.append(["."]+line+["."])
s.append(["." for _ in range(w+2)])
diff = [
[1,0]
,[0,1]
,[-1,0]
,[0,-1]
]
def dfs(hi,wi):
stack = [(hi,wi)]
while len(stack)>0:
... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
f1477f6a600c9d89b0deca581286e5fb6a39e25e | 689ea9f6be1c700685237e6a66bfb026c0a20c91 | /src/pyobo/apps/resolver/__init__.py | e4a6885e99566f8d20a128d6c325baf8bcdfe3d7 | [
"MIT"
] | permissive | ddomingof/pyobo | c35e161b4550c79adf71a41e5beaa1e95cc331a6 | 057a76e729fe063d8cb58ddb38076e19c4336725 | refs/heads/master | 2022-12-27T02:32:01.974166 | 2020-07-27T22:02:14 | 2020-07-27T22:02:14 | 283,708,849 | 0 | 0 | MIT | 2020-07-30T08:05:34 | 2020-07-30T08:05:33 | null | UTF-8 | Python | false | false | 59 | py | # -*- coding: utf-8 -*-
"""PyOBO's Resolution Service."""
| [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
d058a0abb976797c1ec5489f15899f9b132f53e0 | 358af109d06cdf98a392d7d83b91b9cc56cad342 | /blitz_api/wsgi.py | 400d647e462fb305f970be7b5e4ebc32adbac5e2 | [
"MIT"
] | permissive | FJNR-inc/Blitz-API | efe56b4b945a5216b57c1d8050254916dfd8dcb2 | 4188745e236eab2056fe8455d81964641301fc3c | refs/heads/develop | 2023-08-16T17:18:43.364714 | 2023-08-03T14:36:30 | 2023-08-03T14:36:30 | 129,981,065 | 5 | 12 | MIT | 2023-09-14T21:09:04 | 2018-04-18T00:34:51 | Python | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Blitz-API project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"frank.jeanneau@gmail.com"
] | frank.jeanneau@gmail.com |
9845c52f5c527a0f13328dd9f6a56c45d240cdad | ac2aa6b15c099f6aa6f9709390442b5a14a1a23c | /test/dynamo/test_misc.py | 54ecd37fe61be50af628fd0555f529e3c2658ca3 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | weijian-sun/pytorch | 81121a4ee46ac6a87b30c7e94d6e0dd506df0b8b | 8de4238a31b87707594dfe345a30bf561f673c27 | refs/heads/master | 2023-03-16T15:45:38.425446 | 2023-02-22T01:48:30 | 2023-02-22T05:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144,930 | py | # Owner(s): ["module: dynamo"]
import abc
import collections
import copy
import dataclasses
import dis
import enum
import logging
import math
import os
import sys
import typing
import unittest
import weakref
from unittest.mock import patch
import numpy as np
import torch
import torch._dynamo.test_case
import torch._d... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
03c898287ebe89f8064454f006cca892f79fc7d7 | 71a28d4bc1c0f32dc9185332ba2142ba823d3e53 | /core/migrations/0001_initial.py | 7e49dbdcea5f6e7495d5bed3f48631389b231f4a | [] | no_license | ekeydar/train_stops_map | 51b1e3a86967851ea16f2e822867f881b91d24fe | acbc1a1a250ca6c3e7f5dde8932301bd4b67c96d | refs/heads/master | 2016-09-12T21:17:13.771035 | 2016-05-27T12:54:46 | 2016-05-27T12:54:46 | 59,438,833 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Stop',
fields=[
... | [
"ekeydar@gmail.com"
] | ekeydar@gmail.com |
043dc562118c96c218e90948e8d38d8401abd4d3 | e3c18d28e149aaddad0d9df7d33dfb82b34d1c92 | /tests/test_isclose.py | 1bcb3c1fb7796ae07c0ff8e38a807b895d32499b | [
"MIT"
] | permissive | Bgeninatti/astrodynamics | 8507a2a577f9bb9dab2725b648a495bbb2e98fc8 | 1a5d89ceb32838e1b7bf3d08cc5cd6ea969e31b0 | refs/heads/master | 2021-05-18T22:06:55.546692 | 2016-11-27T11:48:50 | 2016-11-27T11:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,649 | py | # coding: utf-8
from __future__ import absolute_import, division, print_function
from decimal import Decimal
from fractions import Fraction
import pytest
from astrodynamics.compat.math import _isclose
# These tests are taken from Python 3.5 stdlib tests for isclose.
# If we're on Python 3.5+, import math.isclose to... | [
"frazer@frazermclean.co.uk"
] | frazer@frazermclean.co.uk |
f9c0bf0c88934e4494fcd1e2918f3cf7b9dbc817 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/cs61a/untarred2/102.py | 95ac102d540364f93b69c92f45065e0567f0d746 | [] | 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 | 9,136 | py | # CS 61A Spring 2014
# Name:
# Login:
from ucb import main
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
'u', 'v', 'w', 'x', 'y', 'z']
bad_num_letters = "Wrong number of letters."
not_a_word = "Not a valid word."
win_message = "Con... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
35bc67fa4b8ec584df09caced8542a722e0158a5 | bf5b78faf62fc2f5d7c48d6aab568905e742ce7d | /mdpages/migrations/0002_auto_20160621_1139.py | 028a371838517b4e3a6545ccd2d3d7e39a58c909 | [] | no_license | C14L/gl4 | a18304dcb95a1f00a4a4ab283fa5ddfed04d50a9 | 835d41ff28d3b22a8cb22f20bdd18e3691bd327b | refs/heads/master | 2022-12-10T07:44:28.804129 | 2020-11-12T21:56:55 | 2020-11-12T21:56:55 | 45,126,016 | 0 | 0 | null | 2022-05-25T05:16:56 | 2015-10-28T16:26:12 | Python | UTF-8 | Python | false | false | 451 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-06-21 11:39
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mdpages', '0001_initial'),
]
operations = [
migrations.AlterIndexTogether(
... | [
"me@C14L.com"
] | me@C14L.com |
6f283bfca9b9c54ac999fd2bb64802c099fd43c3 | 1f95183879bc1c6b71b729b77c4b19cb948414cb | /src/ctcModel/train.py | 3b42b0355d0e47d44c78ae8629c847f2cd7aeaca | [] | no_license | shiyuzh2007/end-to-end_asr_pytorch | 9aa3abce9e50ab17705900ea8a8f47f7df93da04 | 7bedfb5ad10e363f5823b980ae0eb515b395839b | refs/heads/master | 2022-11-21T15:45:32.569882 | 2020-07-28T02:29:36 | 2020-07-28T02:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,931 | py | #!/usr/bin/env python
import argparse
import torch
from utils.data import AudioDataLoader, AudioDataset
from utils.utils import load_vocab
from ctcModel.decoder import Decoder
from ctcModel.encoder import Encoder
from ctcModel.ctc_model import CTC_Model
from ctcModel.optimizer import CTCModelOptimizer
from ctcModel.so... | [
"yicheng1994@outlook.com"
] | yicheng1994@outlook.com |
91ac554240fef2419201b71334f74cbec0180a2c | 30200b35a8030628b70ac9504e6dbbd1ae20456c | /corehq/apps/reminders/tests/test_message_formatting.py | 2eb7a3a0f357ac11e144c1dff7d7b22bf40c68d2 | [] | no_license | qedsoftware/commcare-hq | d07bc87cdfa3ea1dad11d511b95cff2192325545 | 2c2132dc04e92b8d1e886a268ee258a15e1b48a5 | refs/heads/master | 2021-05-03T23:07:20.890492 | 2016-11-13T12:32:46 | 2016-11-14T16:55:47 | 71,684,309 | 0 | 1 | null | 2016-11-14T17:11:32 | 2016-10-23T05:44:17 | Python | UTF-8 | Python | false | false | 8,781 | py | from corehq.apps.domain.models import Domain
from corehq.apps.groups.models import Group
from corehq.apps.locations.models import SQLLocation, LocationType
from corehq.apps.reminders.event_handlers import get_message_template_params
from corehq.apps.reminders.models import Message
from corehq.apps.users.models import C... | [
"gcapalbo@dimagi.com"
] | gcapalbo@dimagi.com |
fd639e07b946944b6df7bc165896b23cb446c91c | 152fe40f498e9a9af980155bd3f57e8d5cb13352 | /commons/graph/attrgraph_if.py | a6b427e56c74f8a1e82e092b75667a874a11b40d | [
"Apache-2.0"
] | permissive | btc-ag/revengtools | 0c3e42cf7d0bbe46733099388cde0a4788fbd7ce | d58680ef7d6bdc8ef518860d5d13a5acc0d01758 | refs/heads/master | 2021-06-06T19:05:32.817760 | 2018-05-04T15:34:46 | 2018-05-04T15:34:46 | 131,858,752 | 2 | 1 | Apache-2.0 | 2021-04-29T19:07:06 | 2018-05-02T13:59:01 | Python | UTF-8 | Python | false | false | 3,180 | py | # -*- coding: UTF-8 -*-
'''
Interfaces for attributed graph data structures.
Created on 01.10.2010
@author: SIGIESEC
'''
from commons.config_if import AutoConfigurable
from commons.core_if import EnumerationItem, Enumeration
class NodeGrouper(AutoConfigurable):
# TODO rename parameters with "modules" to "node"
... | [
"simon.giesecke@btc-ag.com"
] | simon.giesecke@btc-ag.com |
c42e1e42297c42b91b41bdd8bb132b3ba66e55e2 | a8ed6cc9bb97a3a462c326eedb32ee9cdf4e86d2 | /get_log_small.py | 0c683a3f601eccf264b2657578191fee99fc4d73 | [] | no_license | chfoo/universal-tracker-utilities | fb5d2b40303ed160bdb4facb35a6af6d85139e66 | 0820de2406a972df529032c0f78f3523f5a5ee72 | refs/heads/master | 2020-04-05T02:22:01.011210 | 2014-12-19T19:59:38 | 2014-12-19T19:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | '''Get small items from log.'''
import sys
import json
THRESHOLD = 6000000
def main():
for line in sys.stdin:
if not line:
break
doc = json.loads(line)
if doc['bytes']['data'] < THRESHOLD:
print(doc['item'], doc['bytes']['data'], doc['at'])
if ... | [
"chris.foo@gmail.com"
] | chris.foo@gmail.com |
b6df2cfcb2b231dee27628e5db0319ccf32830b8 | 6ad5d086366a7be4df5bc731008d03690878b1be | /scripts/frequency/get_pos_tag_ngram_context_counts.py | 49034a7d793cad8cbc8643345519bfc2f99881df | [] | no_license | ianbstewart/nonstandard_word_dissemination | 3e05983e7b105cd6231241355e079234910ccf98 | 1d85257d3722da46f7e3cb5a3f6651af9e55ff33 | refs/heads/master | 2020-03-26T22:30:54.688165 | 2019-04-30T14:32:25 | 2019-04-30T14:32:25 | 145,465,087 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | """
Count the number of unique ngram contexts
in which a word occurs.
"""
import pandas as pd
from bz2 import BZ2File
from argparse import ArgumentParser
import sys
if('..' not in sys.path):
sys.path.append('..')
from data_processing.data_handler import get_default_vocab
import os, re
from collections import defaul... | [
"istewart6@gatech.edu"
] | istewart6@gatech.edu |
e9a89d3e9f4605c32712645fcb92778e0c7a7672 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/9/usersdata/101/3866/submittedfiles/crianca.py | 11cc32bc15db3c66db12ef8ae9abaa04e1353633 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # -*- coding: utf-8 -*-
from __future__ import division
p1 = input (' digite o peso do pessoa: ')
p2 = input (' digite o peso da pessoa: ')
c1 = input (' digite o comprimento do lado esquerdo da gangorra: ')
c2 = input (' digite o comprimento do lado direito da gangorra: ')
if p1*c1 == p2*c2:
print ('0')
if p1*c1... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f95268fb356878a540f9803cb30d9fbb2a734167 | 51b0e6526e5293d11fdfb8005b015a25ad5dddbd | /test/quantization/ao_migration/test_quantization.py | 407cef63a2512863621e8ce5a43c5a4fc6ce2489 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | DaJiaoZii/pytorch | e46ac53f07c301bd93fff7898c8bad499d394b04 | 8c38d141df429459ea6891847950ce157ac82b2c | refs/heads/master | 2023-08-11T16:42:55.315386 | 2021-09-17T02:26:36 | 2021-09-17T02:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,034 | py | from .common import AOMigrationTestCase
class TestAOMigrationQuantization(AOMigrationTestCase):
r"""Modules and functions related to the
`torch/quantization` migration to `torch/ao/quantization`.
"""
def test_package_import_quantize(self):
self._test_package_import('quantize')
def test_fu... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1d9f907f87a5da85871345419008387247db0c48 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/vehicle/component/shared_vehicle_module.py | 1339129d3d44424f91690b2017dc8fcb0920a3a5 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 461 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/vehicle/component/shared_vehicle_module.iff"
result.attrib... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
85bd76500ea91f2706b121717db447575deeaa50 | 5a446508fd9070ca6be6e2a0aed9eeb3e0ce1dba | /pandas/tests/indexing/interval/test_interval_new.py | 080f2abdad7deea79c264f5c8a05847a6b7cf4cc | [
"BSD-3-Clause"
] | permissive | natbusa/pandas | 29a5247da91b9813c2c88afe0022e087efc97db7 | 184bcd3386a835d058a802d18a8b6d201df4a584 | refs/heads/master | 2020-04-03T09:40:19.824256 | 2018-10-29T02:25:25 | 2018-10-29T02:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,254 | py | import numpy as np
import pytest
import pandas.util.testing as tm
from pandas import Interval, IntervalIndex, Series
pytestmark = pytest.mark.skip(reason="new indexing tests for issue 16316")
class TestIntervalIndex(object):
def setup_method(self, method):
self.s = Series(np.arange(5), IntervalIndex.fr... | [
"jeff@reback.net"
] | jeff@reback.net |
c28ec1ad905d1ec2ac5a639b788fcba8ab214662 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /cn.sc/py/A0006.py | 8f5979ca0d093df2c9336e3ddd979405efe1c035 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 20,568 | py | from ED6SCScenarioHelper import *
def main():
SetCodePage("gbk")
# 调试地图
CreateScenaFile(
FileName = 'A0006 ._SN',
MapName = 'map1',
Location = 'T0030.x',
MapIndex = 1,
MapDefaultBGM = "ed60010",
Flags ... | [
"zhenjian.c.yang@gmail.com"
] | zhenjian.c.yang@gmail.com |
f76309d733c419db97c6800efe4f6da302ab14a8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03436/s527067460.py | 141ea1d0c62edeb60d7e2e66c630f332b5f25a72 | [] | 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 | 729 | py | from collections import deque
H, W = map(int, input().split())
C=list(list(input()) for _ in range(H))
def bfs():
sx, sy = 0, 0
gx, gy = H-1, W-1
dx = [1, 0, -1, 0]
dy = [0, 1, 0, -1]
que=deque()
que.append([sx, sy])
visit=[[float("inf")]*W for _ in range(H)]
visit[sx][sy]=1
while que:
x, y = que.popleft(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f14f46b3db0af9dce2025cde53068fe36cf5222a | 3e3d14e420a4813e912cf7fb5a73b390e5178d06 | /cores/breathe.py | 629f9e1c26b8287089832aa90f9b257f54d9e2ac | [] | no_license | zignig/gizmotron | a9122c259add4f0de0938d9eb6084608156e9fb9 | aea4c0549e56f3a74a8b1c48034fb403da53c49c | refs/heads/master | 2020-06-08T18:36:07.581819 | 2020-04-25T06:47:46 | 2020-04-25T06:47:46 | 193,283,571 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | from nmigen import *
from nmigen.cli import main, pysim
# PWM up and down ramping
class Breathe(Elaboratable):
def __init__(self, width=18, phase=0.0, stretch=200):
self.width = width
self.counter = Signal(width)
self.value = Signal(width, reset=(int(2 ** width) * phase))
self.en... | [
"obeygiantrobot@gmail.com"
] | obeygiantrobot@gmail.com |
4cbf3b937baaf506549841ef2d947b26aa36350f | 689ea9f6be1c700685237e6a66bfb026c0a20c91 | /tests/test_gmt.py | 12a186a9d3fe1ae58090bb23888cbdddc9efd2ce | [
"MIT"
] | permissive | ddomingof/pyobo | c35e161b4550c79adf71a41e5beaa1e95cc331a6 | 057a76e729fe063d8cb58ddb38076e19c4336725 | refs/heads/master | 2022-12-27T02:32:01.974166 | 2020-07-27T22:02:14 | 2020-07-27T22:02:14 | 283,708,849 | 0 | 0 | MIT | 2020-07-30T08:05:34 | 2020-07-30T08:05:33 | null | UTF-8 | Python | false | false | 2,241 | py | # -*- coding: utf-8 -*-
"""GMT tests."""
import unittest
from pyobo.sources.gmt_utils import parse_gmt_file, parse_wikipathways_gmt
from tests.constants import TEST_GMT_PATH, TEST_WP_GMT_PATH
class TestGMT(unittest.TestCase):
"""Test parsing GMT files."""
def test_parse_standard(self):
"""Test par... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
cda230afa0b71136bdeb955c34ff562f0b5a9787 | 501ad5a50544060137e26acad96f01887900fc2d | /forge/ethyr/torch/policy/baseline.py | f765fc905771d5de969360dd74eccbfbbaf74bfc | [
"MIT"
] | permissive | LeslieZhang1314/neural-mmo | 5d955210c519c1123626d509cb9ad3fdf3d8476a | c84411241249f1a8d98f3ee5c9f8adfedd7dc9dd | refs/heads/master | 2022-04-17T08:13:29.130670 | 2020-04-17T02:07:54 | 2020-04-17T02:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py |
import torch
from torch import nn
from forge.ethyr.torch import policy
from forge.ethyr.torch import io
class IO(nn.Module):
def __init__(self, config):
'''Input and output networks
Args:
config: A Configuration object
... | [
"sealsuarez@gmail.com"
] | sealsuarez@gmail.com |
d51c154d783839e16c4ad5637da2cdfcbfa84313 | 9f16e7e8a728bbe80599225a0b0209e66f90aa85 | /tensorflow/python/data/util/nest_test.py | 0bd0a5f4439e002e74abfe26bb4f06e40da4f39a | [
"Apache-2.0"
] | permissive | dantkz/tensorflow | af2035a8c77e2672f9d4a243f6dd6af82fc6fc50 | 5333bbeb3142af2a06f1ebd971061fc4e28da743 | refs/heads/master | 2021-05-05T14:59:58.530607 | 2017-12-01T13:36:46 | 2017-12-01T13:36:46 | 105,175,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,259 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
02c179d10561c4f67360512752611f9a5d5650bb | c34ca0ab61e6dd5ae10e467531b10333483cb02f | /python/algorithms/angryProfessor.py | 0b9a5ccc42199c507f1dd45b571083c5268f604a | [] | no_license | ngocyen3006/hackerrank-solutions | 8275957d3e5cf5f3172e725f8f8f565852df9b15 | 4880af713b2d8d369fc8d88f4bd8e11f899dfe61 | refs/heads/master | 2020-04-03T09:42:36.397300 | 2019-02-08T07:15:35 | 2019-02-08T07:15:35 | 155,173,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # https://www.hackerrank.com/challenges/angry-professor/problem
def angryProfessor(k, a):
onTime = [i for i in a if i <= 0]
if len(onTime) >= k:
return "NO"
return "YES"
if __name__ == '__main__':
t = int(input())
for t_itr in range(t):
nk = input().split()
n = int(nk[0])... | [
"ngocyen300693@gmail.com"
] | ngocyen300693@gmail.com |
76e2a355c8dece154121304ed92bd09729a21300 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/bin/bootstrapping/gsutil.py | e13fccd2c18148b2f4c6994584b5ccd49a47f201 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 2,091 | py | #!/usr/bin/env python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
"""A convenience wrapper for starting gsutil."""
import os
import sys
import bootstrapping
from googlecloudsdk.core import config
from googlecloudsdk.core.credentials import gce as c_gce
def main():
"""Launches gsutil."""
project, ac... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
8716555117b30613a7fb3c314d293976d6e77c75 | b595057d70d5ba89403657035a7861ba8a2d03a1 | /examples/ner/export.py | 26facac35dbdb23474deb2f7e0a0df8e889b69ca | [] | no_license | lazyKindMan/textToy | 516fac1f001034531022f112207d034ed3c031b6 | e45e34aed5b636a77eb79a7348bd0e73a80ec588 | refs/heads/master | 2023-01-24T05:09:03.544911 | 2020-11-29T05:32:44 | 2020-11-29T05:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | # -*- coding: UTF-8 -*-
"""
@author: huanghui
@file: export.py
@date: 2020/09/21
"""
from textToy import BertTokenizer, BertConfig, TokenClassification
from textToy.metric.ner import get_entities
from textToy.serving import load_pb, export_model_to_pb
import tensorflow.compat.v1 as tf
from time import time
import numpy... | [
"m13021933043@163.com"
] | m13021933043@163.com |
46539789bdf5ef0ebfd618ce88671aff7fca95fc | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/update_labels_request.py | e71c6e067e155c17bc886437be15f4b347c27fe9 | [
"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 | 7,285 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateLabelsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribut... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4037e63eba00e2094a91004422b4b8c26ee4b83b | b43c6c03eea348d68d6582c3594760bbe0ecaa08 | /tox/slides/start/setup.py | 759d0eaf2d322e77e687a96e044e024f6adb8875 | [
"MIT"
] | permissive | imsardine/learning | 1b41a13a4c71c8d9cdd8bd4ba264a3407f8e05f5 | 925841ddd93d60c740a62e12d9f57ef15b6e0a20 | refs/heads/master | 2022-12-22T18:23:24.764273 | 2020-02-21T01:35:40 | 2020-02-21T01:35:40 | 24,145,674 | 0 | 0 | MIT | 2022-12-14T20:43:28 | 2014-09-17T13:24:37 | Python | UTF-8 | Python | false | false | 86 | py | from setuptools import setup
setup(
name='hello-world',
packages=['hello'],
) | [
"imsardine@gmail.com"
] | imsardine@gmail.com |
642ab075267d820c0cedad87cf5642dde4d3c8f0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch13_2020_09_08_00_43_35_371746.py | 50307ca7fb751d7dd36b8630b0a7f43a3c47d360 | [] | 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 | 55 | py | def encontra_cateto(b,c):
return (c**2-b**2)**(1/2) | [
"you@example.com"
] | you@example.com |
ba5a484f5a48e487dd8e7b89561b17d91e2445f4 | 762cbba14c80f4dd09fa6e5915e094825eef1cae | /Swap Adjacent in LR String.py | 7c905da578b9953c75ce2499b57b93112af516bb | [] | no_license | arnabs542/Leetcode-18 | 1faff2564b4a5bb970308187a0b71553fd85a250 | 02d31ab3363c92e8fdde15100bf4a3cbcd43ecd0 | refs/heads/master | 2022-07-26T12:18:38.834287 | 2020-05-19T05:40:48 | 2020-05-19T05:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | class Solution(object):
def canTransform(self, start, end):
# consider X as space, all R can be moved to right, all L can be moved to left
if not start.replace("X","")==end.replace("X",""): # if sequence is messed up, then False
return False
length = len... | [
"noreply@github.com"
] | arnabs542.noreply@github.com |
35c0d5bf47105edf68666600357df031fa895c27 | 7da5bb08e161395e06ba4283e0b64676f362435c | /stackstrom/mistral/lib/python2.7/site-packages/glareclient/common/keycloak_auth.py | 432ad9349e331c28176b332a3be4456ea274af15 | [] | no_license | devopszone/sensu_st2_backup | b25a061d21c570a7ce5c020fa8bd82ea4856c9f6 | 2aae0801c35c209fb33fed90b936a0a35ccfacdb | refs/heads/master | 2020-03-22T09:32:20.970848 | 2018-07-05T13:17:30 | 2018-07-05T13:17:30 | 139,843,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | # Copyright 2016 - Nokia Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"root@stackstrom.c.glassy-hue-205107.internal"
] | root@stackstrom.c.glassy-hue-205107.internal |
3356eadd583a64e2982bf4ee38f06c0eb4db3d01 | 1dca948e273d94383e09c8c69a77d462d54db3d6 | /lastmile/leetcode/biweekly/34/MatrixDiagonalSum.py | 93b5b5271e315d3f8d52a820b6c2e3014b5dadce | [] | no_license | m-sathya-reddy/DataStructuresAlgorithmsPython | b61c7495b98d7df9edc57c84a58ec914fcaee901 | 3be5236c98c87f6ec6b6a305c4ef514059271c76 | refs/heads/master | 2023-01-04T19:24:26.589663 | 2020-11-02T15:59:43 | 2020-11-02T15:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from typing import List
class MatrixDiagonalSum:
def diagonalSum(self, mat: List[List[int]]) -> int:
if not mat:
return 0
R=len(mat)
C=len(mat[0])
sum=0
for r in range(R):
for c in range(C):
if r==c:
sum+=mat[r][c... | [
"arun@arunma.com"
] | arun@arunma.com |
cd31f5dccfb67840b08408ec5d76a8f1e9ffcdf7 | 6b05bddf2e294c8e1b39846aecadfa06b4ff805d | /kubevirt/models/v1alpha1_selectors.py | 19479b95670f7fcb370a68cc5de216942f780c46 | [
"Apache-2.0"
] | permissive | kubevirt/client-python | 5ca82fe55d48c07f62796d2bed3605a7c189922c | 235fe17f58d41165010be7e4122cb67bdc866fe7 | refs/heads/master | 2023-09-03T12:25:27.272479 | 2023-08-17T00:33:31 | 2023-08-17T00:33:31 | 105,017,761 | 29 | 25 | Apache-2.0 | 2022-10-20T13:52:10 | 2017-09-27T12:51:32 | Python | UTF-8 | Python | false | false | 4,419 | py | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1alpha1... | [
"kubevirt-bot"
] | kubevirt-bot |
2755426ee6953032bf99f53f7133791170bcde2b | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractBeansprouttranslatesWordpressCom.py | 9f0c76dc9980a4c40ef322a0d9b5bad0d3412fab | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 580 | py |
def extractBeansprouttranslatesWordpressCom(item):
'''
Parser for 'beansprouttranslates.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 't... | [
"something@fake-url.com"
] | something@fake-url.com |
df8292abd3b7af5b799af980e9ee0ad7465e4456 | d1ac878643deb76ac3a4857fab54a30d681b5d98 | /code/rotate.py | 66c9bfe36f455eecd8b712f6d7cdc99b406a9eb5 | [] | no_license | xhy12a/opencv | a74be3589e8e2e591d208cc57ca22f7b5cd38987 | 0be9a88b1acaa9f1b28da37485f33055e398c5a7 | refs/heads/master | 2021-05-07T18:02:01.199870 | 2016-10-10T07:32:09 | 2016-10-10T07:32:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/env python
# coding: utf8
# author: youdi
import cv2
import numpy as np
img = cv2.imread('../img/4.jpg', 1)
rows, cols = img.shape[:2]
# 这里的第一个参数为旋转中心,第二个参数为旋转角度,第三个参数为旋转后的缩放因子
# 可以通过设置旋转中心,缩放因子,以及窗口大小来防止旋转后超出边界的问题
M = cv2.getRotationMatrix2D((cols / 2, rows / 2), 45, 0.6)
# 第三个参数是输出图像的尺寸中心
dst = cv2.wa... | [
"liangchangyoujackson@gmail.com"
] | liangchangyoujackson@gmail.com |
f86f60e47167222bc718b0d05bd282aef64b0c07 | 7e5dda168df5795a07c3254e519f7ffb81dd0871 | /Tournaments/adaNumber.py | 8f624bdd08f04d135df1a689d187ea96fd509f0f | [] | no_license | joseangel-sc/CodeFights | f84193b49af8de7fa29e3a0ff91c66e4571e7d51 | c59f38c3c616080780ecbd62e4b8a0cf7d59b157 | refs/heads/master | 2020-06-05T12:55:06.905715 | 2019-06-18T01:44:25 | 2019-06-18T01:44:25 | 192,444,926 | 1 | 0 | null | 2019-06-18T01:43:29 | 2019-06-18T01:43:28 | null | UTF-8 | Python | false | false | 1,295 | py | def adaNumber(line):
atLeastOneDigit = False
if line[len(line) - 1] == '#':
i = 0
base = 0
while line[i] != '#' and base <= 16:
if line[i] != '_':
if '0' <= line[i] and line[i] <= '9':
base = base * 10 + ord(line[i]) - ord('0')
... | [
"noreply@github.com"
] | joseangel-sc.noreply@github.com |
8006930422dcacb5388ec69fb0b4addf8b003b5f | 727cdc7c9af6fdf6b4eb8444197718e5c6760019 | /review_qa_collect/migrations/0001_initial.py | 360bfb20cb9063c13417abb2f67a46026189a1fd | [] | no_license | newer027/amazon_crawler | 0cc6feb30f9180ae48ac936eeb6af41ec06eadfd | 39d6867a8dd56b90dae5e98aa44e6df274439f8e | refs/heads/master | 2022-11-23T17:04:33.995126 | 2020-04-03T15:42:42 | 2020-04-03T15:42:42 | 252,774,253 | 1 | 0 | null | 2022-11-22T01:44:53 | 2020-04-03T15:42:31 | CSS | UTF-8 | Python | false | false | 2,315 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-08-04 01:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('core', '0001_initial'),
]
operat... | [
"newer027@gmail.com"
] | newer027@gmail.com |
e93657a1ed78c399bce821f98ebc21ee304e6f1c | 01207bfa0cc93b5f6e7be8975cc324de36c3ba1e | /DSAD_Group_102/Assignment_1_PS18_Grade_Book/code/python_3.7/Ashish_Latest_Code.py | 00d7e083ff82a60ab0a0c5e0cbf04d317d7a9bcb | [] | no_license | deepampatel/BITSAssignments | 36e7e35aa63dce1aa577daee3ce50ecc94fba8a9 | b4e365969397fa2847c5e2a4812ff8bf187078df | refs/heads/main | 2023-06-27T10:25:38.762568 | 2021-07-29T17:54:29 | 2021-07-29T17:54:29 | 390,808,124 | 1 | 0 | null | 2021-07-29T17:52:13 | 2021-07-29T17:52:13 | null | UTF-8 | Python | false | false | 8,505 | py | dep_list = []
output_file = 'ashish_out_out_data.txt'
current_year = 2020
class student_info:
def __init__(self, student_id, cgpa):
self.student_id = student_id
self.cgpa = cgpa
def fileReader(path):
inputFile = open(path, 'r')
return inputFile
def outputWriter(output_file):
with o... | [
"noreply@github.com"
] | deepampatel.noreply@github.com |
839cdacfb68a2d65945fb388e6f7cefce10ef391 | fc772efe3eccb65e4e4a8da7f2b2897586b6a0e8 | /Controller/glance/async/eventlet_executor.py | bcb28f2f070b1114222623763443f33c2a99759b | [] | no_license | iphonestack/Openstack_Kilo | 9ae12505cf201839631a68c9ab4c041f737c1c19 | b0ac29ddcf24ea258ee893daf22879cff4d03c1f | refs/heads/master | 2021-06-10T23:16:48.372132 | 2016-04-18T07:25:40 | 2016-04-18T07:25:40 | 56,471,076 | 0 | 2 | null | 2020-07-24T02:17:46 | 2016-04-18T02:32:43 | Python | UTF-8 | Python | false | false | 2,271 | py | # Copyright 2014 OpenStack Foundation
# 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... | [
"wwang@linx-info.com"
] | wwang@linx-info.com |
d9f95ea20314e35a44feda8bd1e60461abeaf820 | 669e9241b02bdaa303fbc2fd4023b90d4d179a59 | /Looping Circles/challenge1.py | b5d71287dcb2d510b1e02d1b973a58b0d7ee5ce3 | [] | no_license | benjaminpotter/HatchProjects | 0854cf46ae7c3781468116a5d63b703dd54ae68c | 7f6a948d3474c755d071751b725c059e6c7f3553 | refs/heads/master | 2022-01-28T16:58:03.449073 | 2019-08-16T13:47:30 | 2019-08-16T13:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def setup():
size(400, 400)
def draw_circle():
fill(random(255), random(255), random(255))
ellipse(random(0, 400), random(0, 400), 30, 30)
def draw():
draw_circle() | [
"reactiveneon@gmail.com"
] | reactiveneon@gmail.com |
b0c8a7f22fd8afde5aac79ec6a35a2ae99271e9b | 86a976b4ec06d57e9015a32dfb3c2f8aeb5115aa | /imeter24/admin.py | 51d2da7ce8a8583fa14ea2439284bacd9e1183ba | [] | no_license | mamun1980/imeter24 | 9510e460f73aeb1139ad4f5fef4c9f69e5907d52 | 1299c7a16ea864367aed07ae9db5c1cfbd1f405e | refs/heads/master | 2021-01-10T07:50:29.968269 | 2016-04-11T03:00:48 | 2016-04-11T03:00:48 | 51,003,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from django.contrib import admin
from premierelevator.models import SystemVariable
admin.site.register(SystemVariable) | [
"mamun1980@gmail.com"
] | mamun1980@gmail.com |
a65726fd98e259ac532198592f588a0486951918 | 7a8cee032f529ddcd89b9223994527d765b59308 | /Python/LPTHW/ex10.py | 50b93246fda4aaded9d1db5ae7e5500b7f51ed7b | [] | no_license | Simonluepang/Upgrading-is-the-happiest-thing | 9fb613315b16ea2fe26e6a2f2f12493d28018729 | c3af12063eea585afbfb97d1ef933a41f110c919 | refs/heads/master | 2022-12-21T06:23:10.647828 | 2019-10-29T02:28:27 | 2019-10-29T02:28:27 | 181,862,560 | 1 | 0 | null | 2022-12-11T05:22:09 | 2019-04-17T09:45:36 | Python | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslash_cat = "I'm \\a \\ cat."
# \t是制表符
fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""
print(tabby_cat)
print(persian_cat)
print(backslash_cat)
print(fat_cat) | [
"simonluepang@outlook.com"
] | simonluepang@outlook.com |
a6e6ae280be78367893c36fcc8467db38b681daa | f0681b8c129e8afce21e340697502230f45ce930 | /venv/Lib/site-packages/com/vmware/nsx_policy/global_infra/segments/dhcp_static_bindings_client.py | 62887d3d12cb252f00e17c465b15dc2388cdf5af | [] | no_license | dungla2011/python_pyvmomi_working_sample_vmware_easy | 8852b6fdcd0f7d0f648f6f7b6c6e4f70c7213746 | a3b6d86a802f28c7ee249fc03523d5e5f0a2e3bd | refs/heads/main | 2023-07-05T14:56:46.551091 | 2021-08-20T12:19:39 | 2021-08-20T12:19:39 | 395,496,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,243 | py | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2021 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.nsx_policy.global_infra.segments.dhcp_static_bindings.
#----------------------------... | [
"dungla2011@gmail.com"
] | dungla2011@gmail.com |
0aad889df1b3fe6109cab25ba7baeaa1924cbfc1 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/replication_status_py3.py | da66b206e47d02e3542b4b81f7b10504386c86cb | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,667 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
ff29086df62ec3830cb1dad71beb7aaa1f710841 | 09aff11fe5ccac7548d49db3a92803675117eaf3 | /BackEnd/Semana7/Dia2/base_de_datos.py | 0623767a3f93a91d23be4d003a394f76b2266de3 | [] | no_license | jorgegarba/CodiGo8 | 4defe235a790ebc248f9278f18ca050fde6c195f | f22b2b405ad999e5b960ce5f52936cd4e472af35 | refs/heads/master | 2023-01-09T02:14:27.134870 | 2020-03-18T03:15:52 | 2020-03-18T03:15:52 | 211,871,983 | 4 | 1 | null | 2023-01-07T22:11:22 | 2019-09-30T13:54:52 | JavaScript | UTF-8 | Python | false | false | 240 | py | from app import app
from flask_mysqldb import MySQL
app.config['MYSQL_HOST'] = "remotemysql.com"
app.config['MYSQL_USER'] = "Gg08dIJlvH"
app.config['MYSQL_PASSWORD'] = "jZWqQUVQaI"
app.config['MYSQL_DB'] = "Gg08dIJlvH"
mysql = MySQL(app) | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
2b7e8c78ac81cf36aba23f389eb14483b77faac3 | 3f9dd28efb7fb66b95a7b33ae3d15f6e4d0925f5 | /examples/lds01_record_test.py | 38323769969923b945d1eb7426f3de47d8bf0e7d | [
"MIT"
] | permissive | MomsFriendlyRobotCompany/pydar | 926cdbb9431204b60a0816815904c1b27f415f0d | 20d5a6b382b4f047ba19f8f82a15a67ab3537543 | refs/heads/master | 2020-03-20T11:19:28.451746 | 2019-12-25T01:46:29 | 2019-12-25T01:46:29 | 137,399,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | #!/usr/bin/env python3
# MIT License Kevin Walchko (c) 2018
#
# this needs: pip install the-collector
# this needs: pip install pydar
from pydar import LDS01
import time
from math import pi
from the_collector.bagit import BagWriter
if __name__ == '__main__':
a = LDS01()
a.open("/dev/tty.SLAB_USBtoUART")
a.run(Tru... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
02f7a65a0e5196c169f71f295fb2e28c36108967 | fc4594b112d5753101a888d2cb721cf8978571b9 | /meiduo_mall/celery_tasks/email/tasks.py | 1b02431da9b23ddae397f0ae96ef47325bc07da0 | [] | no_license | 3346zsai98/shopping | e52eb0184e1103bde8dfd0db4aea3a96bf102473 | 6207f0f4e2d4fd10086df1d8bde680df68c47258 | refs/heads/master | 2022-12-13T02:55:12.715964 | 2019-10-21T09:23:07 | 2019-10-21T09:23:07 | 213,813,400 | 0 | 0 | null | 2022-12-10T06:51:02 | 2019-10-09T03:35:13 | HTML | UTF-8 | Python | false | false | 1,198 | py | from django.conf import settings
from django.core.mail import send_mail
from celery_tasks.main import app
from meiduo_mall.settings.dev import logger
# bind:保证task对象会作为第一个参数自动传入
# name:异步任务别名
# retry_backoff:异常自动重试的时间间隔 第n次(retry_backoff×2^(n-1))s
# max_retries:异常自动重试次数的上限
@app.task(bind=True, name='send_verify_emai... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
ac76b145bb11fef51fc2707fd8fa2b33b9dfc2a4 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res_bw/scripts/common/lib/ctypes/test/test_python_api.py | a014fbc3297ffde918334a7dd1f2850aae200d07 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,929 | py | # 2016.02.14 12:47:21 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_python_api.py
from ctypes import *
import unittest, sys
from ctypes.test import is_resource_enabled
from _ctypes import PyObj_FromPtr
from sys import getrefcount as grc
if sys.version_info > (2, 4):
c_py_ssize... | [
"info@webium.sk"
] | info@webium.sk |
33ac7a2f4aa46da87fd8b319e427e55cbd430f4f | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /experiments/references/launch/ray/ray_gym_envs.py | 42e54d6438592eb36df0b757712128cb58e4e46d | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,100 | py | """
Test twin sac against various environments.
"""
from gym.envs.mujoco import (
HalfCheetahEnv,
AntEnv,
Walker2dEnv,
InvertedDoublePendulumEnv,
)
from gym.envs.classic_control import PendulumEnv
from railrl.data_management.env_replay_buffer import EnvReplayBuffer
from railrl.envs.wrappers import Norm... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
546479acfdb9210c85b0eca5f3f968352c901071 | 6c33b61b8a66de3ffb4a5274252f009e0eaea03e | /app/admin/reimbursement.py | 34863de5a14f8f4f7347508ec32f3a5da04577b7 | [] | no_license | stamaimer/ZhiFang | bb86812b8e1513f8d316113f928a90d55199d8f4 | 4d3e2506c41b14cc76c08d6919548a75b7a6dafe | refs/heads/master | 2021-01-20T15:10:18.644010 | 2018-06-05T03:40:05 | 2018-06-05T03:40:05 | 82,798,989 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | # -*- coding: utf-8 -*-
"""
zhifang.app.admin.reimbursement
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stamaimer 03/26/17
"""
from jinja2 import Markup
from ..models.audit_view import AuditView
from . import AppModelView
class ReimbursementModelView(AppModelView):
can_edit = 0
can_create = 0
c... | [
"stamaimer@gmail.com"
] | stamaimer@gmail.com |
4737306aac35e9203d60c0a79ea38da295f28409 | 6169a0af24553278c9493c9ac14d2351e9085afd | /tests/listeners/throwing_listener.py | 09ef03f39c76fb02bfefd56173a7ac4bbc46f62b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | Nextdoor/airflow | c994f8fbaf48bebd891300f44dd78a58fd0b057b | 863ec46e25ea49d6d5b006d8fd3a83f50aa9db79 | refs/heads/master | 2023-06-12T19:25:58.052324 | 2023-01-20T17:43:14 | 2023-01-20T17:43:14 | 54,076,271 | 7 | 8 | Apache-2.0 | 2023-06-05T20:38:53 | 2016-03-17T00:34:45 | Python | UTF-8 | Python | false | false | 969 | 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... | [
"noreply@github.com"
] | Nextdoor.noreply@github.com |
d78404d2019de3ce1b4f710039a9e3926bad5937 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sands.py | 54385a1a9e9fbb6c9b9b5a7dd3f3359fc7f1b201 | [
"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 | 224 | py |
from xai.brain.wordbase.nouns._sand import _SAND
#calss header
class _SANDS(_SAND, ):
def __init__(self,):
_SAND.__init__(self)
self.name = "SANDS"
self.specie = 'nouns'
self.basic = "sand"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d9028608ddce30010e7c6dc80d7bf81885a54eaa | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_program_run_info4.py | 338ee5c75b76f83a2334f9de053625ae630cf7a8 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from xcp2k.inputsection import InputSection
from _each12 import _each12
class _program_run_info4(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filename = None
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
083edff6cb956f718520474d9f9a06b6e7dc7efc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03078/s321808897.py | 656f8942c795d933127725552f4e897b407dacad | [] | 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 | 919 | py | def main():
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby
#from itertools import product
from bisect import bisect_left,b... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ce59b28a899a140c9c518f66aa4ea1d45f8eec48 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_801.py | fcb253dfb91b5c3beae9c669af9e871b921fbdb5 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | # comparing and sorting array
import bisect
m[0][:bisect.bisect(m[0],n[0][-1])]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
031c1ed015cdf237bd89387eb2ccf89d0a499832 | ed91c9b589ea539670173348def5cb99467b5154 | /movie_list/ipcontent/ip_list.py | b4fa8e2eea4506d187dd19f7d2a3d469f5d15646 | [] | no_license | xingtianwuganqi/python_spider | cace4e9ce839fbda51824bfdf3eac16bd4b4d56c | f8330ea20cb8c2ccfd2229ace7d9ee8cb40605ca | refs/heads/master | 2023-02-23T10:24:12.522942 | 2022-02-24T15:18:45 | 2022-02-24T15:18:45 | 203,012,770 | 0 | 1 | null | 2023-02-08T00:42:53 | 2019-08-18T14:07:37 | Python | UTF-8 | Python | false | false | 1,697 | py | TESTER_CYCLE = 20
GETTER_CYCLE = 20
GETTER_ENABLED = False
TESTER_ENABLED = False
API_ENABLED = True
API_HOST = '0.0.0.0'
API_PORT = 5000
from multiprocessing import Process
from ipcontent.Flask_test import app
from ipcontent.ip_list_network import Getter
from ipcontent.RedisClient import RedisClient
from ipcontent.T... | [
"254032134@qq.com"
] | 254032134@qq.com |
758fedee87130c1c3bb0115f8a81660a26a07e85 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_048/ch48_2020_04_10_21_47_03_873579.py | a00cd08eb7bf95a0c3b51d4252917b75b900ceee | [] | 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 | 327 | py | def eh_crescente(lista):
i=1
if len(lista)<2:
return True
else:
while i<len(lista):
if lista[i]>lista[i-1]:
pass
if lista[i]==lista[-1]:
return True
else:
return False
break
... | [
"you@example.com"
] | you@example.com |
a8e3db244c4262b7e643fbbe0aabb06d2ef8d32f | 6f848a43962a9f1e0639e5f38cf22947b915e8f9 | /articles/models.py | a408d806f3196e78e17dea46d0092d7e442b2a12 | [] | no_license | Jesuisjavert/lumiere-back | 93ca8ec55f323c755d1217b40ffec296b166d84b | 7a1da7632a190c826f384a46e40dbd5bd9af1b2c | refs/heads/master | 2022-11-12T14:18:46.681768 | 2020-06-30T22:48:05 | 2020-06-30T22:48:05 | 274,192,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | from django.db import models
from django.conf import settings
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=50)
content = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
user = mo... | [
"jesuisjavert@gmail.com"
] | jesuisjavert@gmail.com |
ed20656046b98ed926a0457c05803272e75de5b0 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_17517.py | 71dc2d2b3dbb01e6e0e0278439daa222fd5e27c3 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,842 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
ed2568186505e88add02cb6767aa2120569ecb2a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02701/s113480821.py | deffae92893ea10bcf0daae4cad4b96982764815 | [] | 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 | 63 | py | N=int(input())
se=set(input() for _ in range(N))
print(len(se)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c5acb1c45258953af74656d722893678f57e5e49 | 24c84c5b93cd816976d370a99982f45e0d18a184 | /Trees/SearchBST.py | 1cf33e826d03b2210f859ff76f44a85944510320 | [] | no_license | purushottamkaushik/DataStructuresUsingPython | 4ef1cf33f1af3fd25105a45be4f179069e327628 | e016fe052c5600dcfbfcede986d173b401ed23fc | refs/heads/master | 2023-03-12T13:25:18.186446 | 2021-02-28T18:21:37 | 2021-02-28T18:21:37 | 343,180,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | class Node:
def __init__(self, info):
self.info = info
self.left = None
self.right = None
def inorder(root):
if root is None:
return
inorder(root.left)
print(root.info, end=" ")
inorder(root.right)
#
# def searchbst(root, value):
# if root is None or root.info ==... | [
"purushottamkaushik96@gmail.com"
] | purushottamkaushik96@gmail.com |
7e9957d8e41d6f31c2aabaf41898507978409b11 | 9644567f9cd3415e6c8b1470fde72ab178bb8eb0 | /flask/lib/python2.7/site-packages/wtforms/fields/simple.py | c147b741ae21c56dff864daf2b45dac484801693 | [
"Apache-2.0"
] | permissive | Ahmad31/Web_Flask_Cassandra | 01d44ee03fcb457ea3a01629f6fd29870663b8ff | 76acb074fce521e904f3b2a41e6ab69571f4369e | refs/heads/master | 2021-06-10T02:42:53.494515 | 2019-11-27T16:22:48 | 2019-11-27T16:22:48 | 88,625,344 | 3 | 1 | Apache-2.0 | 2021-03-19T22:23:05 | 2017-04-18T12:59:21 | Python | UTF-8 | Python | false | false | 1,848 | py | import warnings
from .. import widgets
from .core import StringField, BooleanField
__all__ = (
'BooleanField', 'TextAreaField', 'PasswordField', 'FileField',
'HiddenField', 'SubmitField', 'TextField'
)
class TextField(StringField):
"""
Legacy alias for StringField
.. deprecated:: 2.0
"""
... | [
"aku.anwar.aan@gmail.com"
] | aku.anwar.aan@gmail.com |
458eaa2edff757e59027fcc0fe1238fa14d7b4a2 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/K/karlos/nasdaq_companies_with_industries_hyperlinks.py | 0b304fb6dc032bc801517dbd5cbe5faa81a75e19 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,006 | py | ###############################################################################
# Basic scraper
###############################################################################
import scraperwiki
import lxml.html
from lxml import etree
import re
def extract_text(html):
trs = html.xpath("//*[@id='CompanylistResults... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
01696691a9182105c985324bfbd69eab0ff095f3 | 92388a16a82b72524155052336bbba6a2651f3c4 | /pypolisen/tests/test_get_suggestions.py | d7d2851c8d04662b938a7b646b4f3cb11ebe961b | [] | no_license | sebbekarlsson/pypolisen | 8b06caf7ef77871727e5217277003b0f72dd7320 | c486524ce33d5742cf6d80503fe90af16531748f | refs/heads/master | 2021-06-25T19:51:52.847667 | 2018-07-19T09:14:23 | 2018-07-19T09:14:23 | 141,253,955 | 0 | 1 | null | 2020-10-13T16:36:13 | 2018-07-17T08:06:20 | Python | UTF-8 | Python | false | false | 369 | py | from pypolisen.Client import Client
client = Client()
def test_get_suggestions():
suggestions = client.get_suggestions('g')
assert isinstance(suggestions, list)
assert len(suggestions) > 0
def test_suggestions():
suggestions = client.get_suggestions('g')
for sugg in suggestions:
asse... | [
"sebbekarlsson97@gmail.com"
] | sebbekarlsson97@gmail.com |
6f02d02b967f8129ba439cb299d914dfda1cdf4d | 9c3eeb9c885d659ead76ff18b5282fb33da33e39 | /doc/conf.py | 7d0a646aa374468f361cd5d22b9e3e7ae1238213 | [
"BSD-2-Clause"
] | permissive | sebastibe/airy | b59783040d080033402dd26da46ca1d233615ab0 | 6fb80bc27eaa41f8e947808acba406772b7de6bb | refs/heads/master | 2021-01-09T20:41:40.479036 | 2012-03-13T15:47:44 | 2012-03-13T15:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,813 | py | # -*- coding: utf-8 -*-
#
# Airy documentation build configuration file, created by
# sphinx-quickstart on Tue Jan 31 11:11:36 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | [
"letoosh@gmail.com"
] | letoosh@gmail.com |
abf1d1e825a652f9cee46588a3d3581e048f80c4 | a6268c59784e43204f3f3cc35988ba5c16f7f3a3 | /muecke/order/tests.py | fb9021a440dbe2664c922df2771d7bf516907442 | [] | no_license | zenith0/django-muecke | 4530acf0b086c9cec77c7b3df1be97e6a3d0bb98 | 1f19135bf8e051fcbb432e749a5d794709d998d1 | refs/heads/master | 2021-01-09T21:54:40.437937 | 2014-09-15T14:11:01 | 2014-09-15T14:11:01 | 47,715,008 | 0 | 1 | null | 2015-12-09T19:49:57 | 2015-12-09T19:49:57 | null | UTF-8 | Python | false | false | 7,366 | py | # python imports
import locale
# django imports
from django.contrib.auth.models import User
from django.contrib.auth.models import AnonymousUser
from django.contrib.sessions.backends.file import SessionStore
from django.shortcuts import get_object_or_404
from django.test import TestCase
from django.test.client import ... | [
"pernstef@gmail.com"
] | pernstef@gmail.com |
9e2e4b0a1c1bbca1202d6f1995820e9d290ecd6e | 141f0ce798ee12282beda7dbce9d610e0ef764e4 | /test_task4.py | a7b37015cee819984d3f29a3ad8e7efcef9f751a | [] | no_license | Ulanka2/replay_exam | 00ceb6972077a905e7203155fb29f1f3e997630a | d72a4bc6606ccbc0fa3e8cb3d89da496655e7636 | refs/heads/main | 2023-07-08T19:19:57.162442 | 2021-08-15T15:47:39 | 2021-08-15T15:47:39 | 396,403,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import unittest
from task4 import func
class TesterClass(unittest.TestCase):
def test_arguments(self):
result = func(5, 1, 7)
self.assertEqual(result, 13)
def test_diff_arguments(self):
result = func(1, 'two', 3, 'four', 5)
self.assertEqual(result, 9)
def test_diff_argume... | [
"80949499+Ulanka2@users.noreply.github.com"
] | 80949499+Ulanka2@users.noreply.github.com |
24e3233c7762171a8122c8b098924d9f6ec178a7 | f93373c26d950911244e675b633485277357b1d5 | /skxray/constants/api.py | ee79edf8058ca8fb30716d69aed232e40b3f232a | [] | no_license | gitter-badger/scikit-xray | 7312d85cf62aee82a0ff1489e5d7038a81a9133e | c6df0cc9e7a99f86e0fc72b2de034b701bfb2e58 | refs/heads/master | 2021-01-17T22:04:39.047811 | 2015-01-05T17:22:01 | 2015-01-05T17:22:01 | 28,877,177 | 0 | 0 | null | 2015-01-06T18:31:35 | 2015-01-06T18:31:35 | null | UTF-8 | Python | false | false | 2,899 | py | # -*- coding: utf-8 -*-
# ######################################################################
# Copyright (c) 2014, Brookhaven Science Associates, Brookhaven #
# National Laboratory. All rights reserved. #
# #
# @a... | [
"edill@bnl.gov"
] | edill@bnl.gov |
c4937817104d19410e6e531b739b142520c2bd9a | 39b0c410ec8e0fc700a895e5bcb2664205e08ef0 | /ext/__init__.py | d4c5555ea7e5043aa72fb6c2dee72fe68ad1109d | [
"MIT"
] | permissive | palazzem/ot-examples | 17f6dcc28df0b0c628415e3074b728c0721e44a5 | 72a8ebfd1132de154b04fff2d6a3e5404c3a0ed0 | refs/heads/master | 2021-01-21T19:39:36.156114 | 2017-06-09T17:50:29 | 2017-06-09T17:50:29 | 92,147,032 | 1 | 1 | null | 2017-06-09T17:01:51 | 2017-05-23T08:14:22 | null | UTF-8 | Python | false | false | 189 | py | from .tracer import DebugTracer
from .recorder import LogRecorder
# Global variable that should be initialized to an instance of real tracer.
tracer = DebugTracer(recorder=LogRecorder())
| [
"emanuele.palazzetti@datadoghq.com"
] | emanuele.palazzetti@datadoghq.com |
bbe47c4da3957fc544835b371828e1e5a4ec46cf | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/collector_attribute.py | 5d97a8fd8a2e4fbfb475132caae5f343317c7d55 | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
17431d81f38a8342ba744a2f679a8fbeb5f07e8f | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/servicebus/azure-servicebus/azure/servicebus/management/_generated/aio/_service_bus_management_client_async.py | 196e6e457645ae706fe1a3852c0a6f1cce8cd807 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 3,233 | 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"
] | scbedd.noreply@github.com |
ae7d0da7c2de888f330489330521c8ab37e09c97 | 96650a65492a04909fb8453cd062a747254ad597 | /wildcard/responsiveslider/__init__.py | eb3937b0fb84973c9c9c13c8a1db36a4a8444def | [] | no_license | collective/wildcard.responsiveslider | 2d6f60df22c3b4b116b64ba0ee5ff505fcde1178 | 442cf3524a226817d849e1997bc62bf2d91f74ae | refs/heads/master | 2023-09-04T02:23:46.994613 | 2015-09-01T17:25:57 | 2015-09-01T17:25:57 | 31,624,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from zope.i18nmessageid import MessageFactory
responsivesliderportletMessageFactory = MessageFactory('wildcard.responsiveslider')
def initialize(context):
"""Initializer called when used as a Zope 2 product."""
| [
"vangheem@gmail.com"
] | vangheem@gmail.com |
056784cb7cf7d905b068fc87c3834a58389afcca | fe5152ab8e656309f13bf29ededc4fe99ddfed45 | /pyguymer3/geo/fillinSrc/fillin_LineString.py | f0db4e7210fab9699890139e0cac6a620e364f58 | [
"Apache-2.0"
] | permissive | Guymer/PyGuymer3 | 763ba7ee61e20ac5afb262d428de2d7499c07828 | bc65f08f81ea0e76f5c9ae3d703056382f456f01 | refs/heads/main | 2023-08-23T14:42:34.997227 | 2023-08-19T08:39:54 | 2023-08-19T08:39:54 | 144,459,343 | 14 | 4 | Apache-2.0 | 2023-08-13T07:47:29 | 2018-08-12T10:59:59 | Python | UTF-8 | Python | false | false | 2,354 | py | #!/usr/bin/env python3
# Define function ...
def fillin_LineString(line, fill, /, *, debug = False, eps = 1.0e-12, fillSpace = "EuclideanSpace", nmax = 100, prefix = ".", ramLimit = 1073741824):
"""Fill in a LineString
This function reads in a LineString that exists on the surface of the Earth
and returns... | [
"t.m.guymer@thomasguymer.co.uk"
] | t.m.guymer@thomasguymer.co.uk |
550f6e9006dc647b92cf44bfd86d8183aa1679ec | 8a699595e7f156b1ade42f6042900b3331831fbf | /src/transformers/pipelines/image_classification.py | d39a18816862d69aa0066fab252018585eb80202 | [
"Apache-2.0"
] | permissive | stas00/transformers | ab654371a387c5883fc882dd0286177875d6d3b4 | 7c5d79912a21880ce13d77881940458e90d98917 | refs/heads/master | 2023-02-16T00:22:41.298155 | 2022-04-08T20:55:42 | 2022-04-08T20:55:42 | 278,214,696 | 6 | 0 | Apache-2.0 | 2022-01-28T18:39:00 | 2020-07-08T23:24:49 | Python | UTF-8 | Python | false | false | 4,325 | py | from typing import List, Union
from ..utils import (
add_end_docstrings,
is_tf_available,
is_torch_available,
is_vision_available,
logging,
requires_backends,
)
from .base import PIPELINE_INIT_ARGS, Pipeline
if is_vision_available():
from PIL import Image
from ..image_utils import lo... | [
"noreply@github.com"
] | stas00.noreply@github.com |
749fb0c9934e85eb75fc0abd8a33d29c1838979e | 2fa05752244c2ab39c108c11ab2dc22f4f9e9ad0 | /ClientsManagement/migrations/0017_auto_20201108_1950.py | c52fc8a83fa520cc4326223663402e559107ec90 | [
"Apache-2.0"
] | permissive | CiganOliviu/cigan_enterprize | b88aebcb27ec97dd229e67cbb5bea3199cc8b5ce | 8a4f4c06197655622ca08f92ec793add7d0be0cd | refs/heads/main | 2023-03-04T05:28:11.376109 | 2021-02-14T20:38:29 | 2021-02-14T20:38:29 | 333,212,689 | 0 | 0 | Apache-2.0 | 2021-02-14T20:38:29 | 2021-01-26T20:45:44 | null | UTF-8 | Python | false | false | 817 | py | # Generated by Django 3.0.8 on 2020-11-08 16:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ClientsManagement', '0016_auto_20201106_1807'),
]
operations = [
migrations.AlterModelOptions(
name='messagestoclient',
... | [
"ciganoliviudavid@gmail.com"
] | ciganoliviudavid@gmail.com |
a3d6003ea1975bbf762dc0790a6af0702d56cffd | 97c15a26f29a9dd016acda5a7c3f7f2882cb58cc | /controller.py | 3bbff9f07138ba3b55dc0786b831acfa6ab436aa | [] | no_license | whisperchan/cursedboard | 9b1fd1597e30dfe186054e959e38a0d463b27009 | 003d799f777fb8c5cda8c301f93e73d364d38da5 | refs/heads/master | 2022-09-07T23:21:34.488189 | 2020-05-21T12:56:26 | 2020-05-21T12:56:26 | 114,824,819 | 26 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,551 | py | import npyscreen
import session
from utils import *
from config import *
HELP_TEXT = """Navigate with arrow keys, j, k and <tab>. Confirm with enter or space. Go back up with backspace.
These vim style commands can be issued with : as prefix:
h, help - This message
rules - Show info
about
info
p, post ... | [
"you@example.com"
] | you@example.com |
217c2685c5dcc60f9b16443df12768d13fdc9324 | 885c89c56923565117b6244afa6c16664e25094f | /vspk/v4_0/nuvsdcomponent.py | b604c69d191f5fc443125246af1f94f85f5f6ce9 | [
"BSD-3-Clause"
] | permissive | ikbalcam/vspk-python | 0017f5c7c4f9aaca604fb4da42884eddc497ee00 | 1c6d28c8f8f7bcadbd1722cdc3046b01dbf1d9e8 | refs/heads/master | 2021-10-01T16:14:00.380613 | 2017-11-02T21:43:41 | 2017-11-02T21:43:41 | 115,129,333 | 0 | 0 | null | 2017-12-22T15:52:11 | 2017-12-22T15:52:11 | null | UTF-8 | Python | false | false | 10,555 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc
# 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
# no... | [
"christophe.serafin@nuagenetworks.net"
] | christophe.serafin@nuagenetworks.net |
2c7201744de4fe5e56a6d64b1544598e015321fd | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /PwGFjiSG3kXzp8rjw_15.py | aacc7784fc3d02f84fb78e46ace77fdd87f03ac1 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py |
def chatroom_status(users):
if len(users)==0:
return "no one online"
elif len(users)==1:
return ''.join(users) +" "+ "online"
elif len(users)==2:
return users[0]+' '+'and'+' '+users[1]+' '+"online"
else:
return users[0]+', '+users[1]+' '+'and'+' '+ str(len(users)-2)+' '+'more online'
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f8a839670c139856a07303f1f6eb3b125f706802 | 3824f001c97582c47b0814461dc34b350f45d5fa | /blog/migrations/0001_initial.py | 83c129882e099af440b53c9b198681f82a5b9841 | [] | no_license | yuyuyuyushui/jdango_mysql | d542ec2bc3e964da3672325dd6e5908371cc057d | 8c32d55722796247d01f9a2287c5ca0299e43bc5 | refs/heads/master | 2022-12-22T00:54:59.536570 | 2018-04-02T15:17:20 | 2018-04-02T15:17:20 | 127,772,609 | 0 | 1 | null | 2022-12-19T02:08:16 | 2018-04-02T15:09:45 | Python | UTF-8 | Python | false | false | 583 | py | # Generated by Django 2.0.3 on 2018-04-01 11:07
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Book',
fields=[
('id', models.AutoField(aut... | [
"786313105@qq.com"
] | 786313105@qq.com |
525f350e6a7b7f8de26ad4dca5db85fc5174db1c | 833386a2612c1b2b5616afeb720528cc97c237a4 | /pypicloud/access/base.py | 5c95c0eed42d040aa683c9fbda69e0bee13bb86e | [
"MIT"
] | permissive | stylight/pypicloud | 9607750b1b806b453d535629842e5d4d26f78207 | c1458a8ace71cd628b7062d0fc403070a62399ea | refs/heads/master | 2021-08-23T07:22:01.112107 | 2017-12-04T03:38:05 | 2017-12-04T03:38:05 | 114,857,584 | 0 | 1 | null | 2017-12-20T07:35:03 | 2017-12-20T07:35:03 | null | UTF-8 | Python | false | false | 18,508 | py | """ The access backend object base class """
import six
from collections import defaultdict
from passlib.apps import custom_app_context as pwd_context
from pyramid.security import (Authenticated, Everyone,
effective_principals, Allow, Deny,
ALL_PERMISSIONS)
fr... | [
"stevearc@stevearc.com"
] | stevearc@stevearc.com |
a3fc85408f73c5b14b91bc99d316de35542947e7 | f6703b2afca284bf75e0dbf8f61d77e5251f905c | /euler189.py | 4f039a1c3ab8a067fe54e29a3158f07626b601c6 | [] | no_license | rwieckowski/project-euler-python | 2a7aa73670b4684f076ad819bfc464aa0778f96c | be9a455058b20adfd32c814effd8753cc9d39890 | refs/heads/master | 2021-01-10T21:10:44.875335 | 2015-06-23T13:29:58 | 2015-06-23T13:29:58 | 37,920,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | """
Consider the following configuration of 64 triangles
<div style="text-align:center;">
<img src="project/images/p189_grid.gif" alt="" />
"""
def euler189():
"""
>>> euler189()
'to-do'
"""
pass
if __name__ == "__main__":
import doctest
doctest.testmod() | [
"rwieckowski@ivmx.pl"
] | rwieckowski@ivmx.pl |
d3e056d64854a2ee1152611cd44a61b1ff39d197 | efd8664d3cf7ba060eaf10569083f7744b60c7c1 | /CURD/CURD/wsgi.py | 4004900ef8c3d6954b3a14c78cb749c612ac307a | [] | no_license | mukeshrock7897/CURD-Rest-Api-Projects | eee181e41533e69766367f7afe1fc569fe4341be | bd8a9c4756e956271faa817583a958d1f95df019 | refs/heads/master | 2020-04-08T06:45:39.676271 | 2018-11-26T12:54:01 | 2018-11-26T12:54:01 | 159,110,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for CURD project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"mukeshrock7897@gmail.com"
] | mukeshrock7897@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.