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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36d5d8947783bcc2018a4d7b3e830c4e192d11b6 | 5d0e76e3c741adc120ce753bacda1e723550f7ac | /700. Search in a Binary Search Tree.py | f49edad711e0f96b8ac7acbab73f54564b5a60a4 | [] | no_license | GoldF15h/LeetCode | d8d9d5dedca3cce59f068b94e2edf986424efdbf | 56fcbede20e12473eaf09c9d170c86fdfefe7f87 | refs/heads/main | 2023-08-25T12:31:08.436640 | 2021-10-20T04:36:23 | 2021-10-20T04:36:23 | 392,336,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
def treeSearch (node,toFind) :
if node == None :
return None
if node.val == toFind :
return node
if... | [
"todsapon.singsunjit@gmail.com"
] | todsapon.singsunjit@gmail.com |
1bb2db786c30b6c83a6868be8eccfaf473a97004 | b3c070597742904f963f44414e9195511770520b | /venv/bin/scrapy | 5ba93ded6925eaa626359a8989150484b4525cc2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | akshitgoyal/NLP-Research-Project | 7d98cf0bccd8fdfcc13a23e5f17fcc703aa4b565 | 6adf80cb7fa3737f88faf73a6e818da495b95ab4 | refs/heads/master | 2022-12-11T05:51:08.601512 | 2020-09-03T18:05:56 | 2020-09-03T18:05:56 | 270,881,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/akki/Desktop/csc398nlp/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from scrapy.cmdline import execute
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute())
| [
"goyalakshit.ag@gmail.com"
] | goyalakshit.ag@gmail.com | |
bd883a4937cd30fe3a8863673764d7322031b3a0 | 2e9e994e17456ed06970dccb55c18dc0cad34756 | /atcoder/abc/075/D.py | 2910dbf0765dc1eeefbc2e14e1236d0d90a3352f | [] | no_license | ksomemo/Competitive-programming | a74e86b5e790c6e68e9642ea9e5332440cb264fc | 2a12f7de520d9010aea1cd9d61b56df4a3555435 | refs/heads/master | 2020-12-02T06:46:13.666936 | 2019-05-27T04:08:01 | 2019-05-27T04:08:01 | 96,894,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | def main():
N, K = map(int, input().split())
x, y = zip(*(
map(int, input().split())
for _ in range(N)
))
TLE(N, K, x, y)
def TLE(N, K, x, y):
"""
TLEのため、考察はpypy3のD directoryに移行
codeの見た目のためにgeneratorを使ったが遅いので愚直にloopにしたがTLE
解説の累積和をあとで試す
"""
sorted_x = sorted(x)
... | [
"kntsmy@hotmail.co.jp"
] | kntsmy@hotmail.co.jp |
1c19d43f3144c6e9ce7183df40c5e3357e88b577 | 2d4e020e6ab48c46e0a19cb69048d9e8d26e46a6 | /Bohubrihi/Rest Api Djanog and React/Django Api/My_Api/My_Api/wsgi.py | 682bffca93af2e1a0df53559100c0ae3b2cbdff5 | [] | no_license | IsmailTitas1815/Learning | a92476fcf7bcd28a7dc1ab2f4eb3a5c27034728f | 207eaf4101a6d161c1044310f4b3cc54e9c514eb | refs/heads/master | 2023-07-04T20:13:07.263331 | 2021-08-07T20:07:39 | 2021-08-07T20:07:39 | 293,100,950 | 0 | 0 | null | 2021-05-07T16:55:29 | 2020-09-05T15:18:46 | Python | UTF-8 | Python | false | false | 389 | py | """
WSGI config for My_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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"titas.sarker1234@gmail.com"
] | titas.sarker1234@gmail.com |
ec894d76f81c479495eed3ef0b1be2ce26e00a66 | a677c89de46ba8379cfe3da873f79f0bc731ca1f | /lections/lesson7/4_multiline_strings.py | d0024abff898079b9fc32b2ce1e4e35074f683fb | [] | no_license | EuganeLebedev/Python_for_test | e3f0d943e1cda8b65022af06f7e50c7173e12c70 | 09993cb78418d3c74feaac83a8fa725691bc276c | refs/heads/master | 2021-01-02T03:32:23.434117 | 2020-04-12T09:36:54 | 2020-04-12T09:36:54 | 239,471,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | multi = '''
asdasdasd
asfsd
34534534
435645675467
23423
sadadsasd
'''
print(multi)
| [
"adm1n.lebedev@ya.ru"
] | adm1n.lebedev@ya.ru |
a649c518ceb662c175f46cc71b623a93c28cbc51 | 1043f83165dd28190512e8a2f597b4b6b5d789b1 | /tests/pytorch/tensor/test_data_transform.py | d86587b9dd98378ad47bb8b568019eeb6066f3b1 | [
"Apache-2.0"
] | permissive | q759729997/qyt_cookbook | 47bb19eca94023b571bcc05d150d8bd4707e3616 | 2423174e560e02379a5d2cf9e6cb1b7ec969eeff | refs/heads/master | 2021-02-13T04:31:59.312472 | 2020-05-27T01:47:31 | 2020-05-27T01:47:31 | 244,661,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | """
main_module - Tensor与Python数据转换测试,测试时将对应方法的@unittest.skip注释掉.
Main members:
# __main__ - 程序入口.
"""
import unittest
import numpy as np
import torch
class TestDataTransform(unittest.TestCase):
"""Tensor与Python数据转换测试.
Main methods:
test_item - item函数测试.
t... | [
"qiaoyongtian@qq.com"
] | qiaoyongtian@qq.com |
f0ab8478b0974bfb453070148fad01813070c475 | b7314f9480634b2f2998c8181d4284d2b52ebba1 | /test/python/utils.py | 7ecec3db91978ebb8bd95e5cde8affd632c9bd25 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | neuml/txtai | 3ca6fba11126d650ea4f2cf5199011a52ea56e4e | 789a4555cb60ee9cdfa69afae5a5236d197e2b07 | refs/heads/master | 2023-08-31T08:09:31.834178 | 2023-08-29T15:36:23 | 2023-08-29T15:36:23 | 286,301,447 | 4,804 | 387 | Apache-2.0 | 2023-09-11T17:12:40 | 2020-08-09T19:14:59 | Python | UTF-8 | Python | false | false | 111 | py | """
Utils module
"""
class Utils:
"""
Utility constants and methods
"""
PATH = "/tmp/txtai"
| [
"561939+davidmezzetti@users.noreply.github.com"
] | 561939+davidmezzetti@users.noreply.github.com |
02367aa87fe8abc7bdd4a6ea4a6cc357165f4794 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL16APV_mMed-1600_mDark-10_kappa-0p32_aligned-down_cff.py | cca9ddd364b3ee9a1a8066ddfba997d04ffc83d6 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 2,002 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
8a90891c9707610199211f511b93012e3a68bdbe | ee364e80138d6a2435ff069f3665b4ce36915e40 | /samples/get_acd_state.py | 05cd9f6461d6a179c025187af99ac5411affc152 | [
"MIT"
] | permissive | antoniotaranto/apiclient-python | 355b21efa7f526cc1f4edec2d45e68ec87b3e327 | 64a727ebecac27ce162f3f198edeb065ab8a6ca0 | refs/heads/master | 2022-02-18T05:14:01.075669 | 2019-09-02T09:58:57 | 2019-09-02T09:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from voximplant.apiclient import VoximplantAPI, VoximplantException
if __name__ == "__main__":
voxapi = VoximplantAPI("credentials.json")
# Get the state of the queue 1.
ACD_QUEUE_ID = 1
try:
res = voxapi.get_acd_state(acd_queue_id=ACD_QUEUE_ID)
except VoximplantException as e:
... | [
"andrey@voximplant.com"
] | andrey@voximplant.com |
db6ea4fd565f99d3059725585a0751072ba71b4e | 38ad02e66e0f6b0025549aa4c29b377609125a43 | /django/members/views/login_view.py | 440585a873361e33b01777bb239c6167fb1999e3 | [] | no_license | smallbee3/Melon | e6d5b5dd1f63409708c904ff42c4ba5c99cfee50 | 56e596a9588b8827068322e4da95c427ce255523 | refs/heads/master | 2022-12-10T23:42:18.707857 | 2018-03-05T21:20:12 | 2018-03-05T21:20:12 | 120,417,334 | 0 | 0 | null | 2022-12-08T00:55:15 | 2018-02-06T07:24:16 | Python | UTF-8 | Python | false | false | 1,612 | py | from django.contrib.auth import authenticate, login
from django.shortcuts import redirect, render
from members.forms import LoginForm
def login_view(request):
# POST요청일때는
# authentictate -> login후 'index'로 redirect
# 실패시에는 다시 GET요청의 로직으로 이동
#
# GET요청일때는
# members/login.html파일을 보여줌
# 해... | [
"smallbee3@gmail.com"
] | smallbee3@gmail.com |
ff5cdc51e18de6650464b8cc19f9c4e29de23dcc | 198f071c0f3db78fc2b2209a2ab7da65f8f3b66e | /Project Euler/Problems-before-2020Jul/024. Lexicographic Permutations.py | 6d715fb124da0cd7e570710e4b8a7df6c7dbe8c2 | [] | no_license | gratus907/Gratus_PS | a33924836f67c14c3b1f8d4eecdfea73cd5cb98f | 7efdc7f37f268dccd2f8a0ec562aa7a4a67adf15 | refs/heads/master | 2023-07-27T03:43:17.731930 | 2021-08-31T17:26:54 | 2021-08-31T17:26:54 | 235,131,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import time
from math import *
import itertools
def main():
s = "0123456789"
x = 0
for i in itertools.permutations(s):
x += 1
if x == 1000000:
for p in i:
print(str(p),end='')
print()
if __name__ == "__main__":
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time)... | [
"gratus907@naver.com"
] | gratus907@naver.com |
103e520628c64bc09b8fe4a65646aa0a536c80f7 | c513008cacf5592e645e7da3652d90d12a11a988 | /program/SwordOffer/FindPath.py | 702765bd9daa0415402a6a7e01f3927321fb9c94 | [] | no_license | PiKaChu-R/code-learn | f17cb5ad95d4e8b698320d23e472eb1687576bdc | b94814ac3c72da4c840758569005b7ac6589586a | refs/heads/master | 2020-07-01T02:42:40.235753 | 2019-09-17T13:06:50 | 2019-09-17T13:06:50 | 201,021,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : FindPath.py
@Time : 2019/09/09 11:47:09
@Author : R.
@Version : 1.0
@Contact : 827710637@qq.com
@Desc : None
'''
'''
输入一颗二叉树的根节点和一个整数,打印出二叉树中结点值的和为输入整数的所有路径。
路径定义为从树的根结点开始往下一直到叶结点所经过的结点形成一条路径。
(注意: 在返回值... | [
"827710637@qq.com"
] | 827710637@qq.com |
2988db671ce81fb6745c179c1c4465228f0600a9 | 9e765b38a03c2996e221a42c2a0dbc0fe02824cb | /advanced_algs/knapsack/knapsack_with_repetition.py | 25d19fd0682cf0ffcee5045ef29d5f54e186fde8 | [
"Apache-2.0"
] | permissive | angelusualle/algorithms | f709b4ae0c3275cece204d5fb56fd6ec34b4683b | 86286a49db2a755bc57330cb455bcbd8241ea6be | refs/heads/main | 2023-07-02T19:25:11.720114 | 2021-08-12T16:33:00 | 2021-08-12T16:33:00 | 269,791,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # O(nW)
def knapsack_with_repetition(w, v, W):
values = []
for i in range(W+1):
max_val = 0
for j,wt in enumerate(w):
if wt <= i:
if v[j] + values[i-wt] > max_val:
max_val = v[j] + values[i-wt]
values.append(max_val)
return values[-1] | [
"angelusualle@gmail.com"
] | angelusualle@gmail.com |
be302bb445e61ebd7b1723d84e0491244bbc4901 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/show_instance_detail_request.py | c34b5929f22dc514abc04d00bf6eca8c0f1caeed | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 4,368 | py | # coding: utf-8
import pprint
import re
import six
class ShowInstanceDetailRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and th... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
12c2822e43a7929427f8696c024e710a1ba661c1 | bd2c9b345d5de0c8a719d1111bdeff8252c0292f | /producthunt-project/products/views.py | dc1b04c93c3f435b697e9bf18a66b813ee1ef2b5 | [] | no_license | tehmeerali786/Django-2-with-NW | f996c623bcaf9f76c1078ad13adb30df033eb996 | d0fcbdb95d598f757a92dda6ce9497341d7486b2 | refs/heads/master | 2020-04-27T03:32:58.685527 | 2019-03-09T16:35:52 | 2019-03-09T16:35:52 | 174,027,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from . models import Product
from django.utils import timezone
# Create your views here.
def home(request):
products = Product.objects
return render(request, 'products/home.html', {'produ... | [
"freelanceali786@gmail.com"
] | freelanceali786@gmail.com |
cd79e6ee84242afdaedee514cb267d67f6a6e31a | c873aed518de878b9953ebd6fe0a455a789d221d | /kamal/core/hub/meta/input.py | 8cad84a2691492d3cd8169d0d98508127b6633db | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zju-vipa/KamalEngine | 6a9aa461054b9194b204ec41de5d35b211796a76 | 7b77676d22dc88ca262941788cb8bb1d973690c0 | refs/heads/master | 2023-08-17T05:56:52.210411 | 2023-08-03T07:41:55 | 2023-08-03T07:41:55 | 195,203,179 | 99 | 26 | Apache-2.0 | 2023-08-03T07:41:56 | 2019-07-04T08:41:43 | Python | UTF-8 | Python | false | false | 1,087 | py | # Copyright 2020 Zhejiang Lab. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"2218880241@qq.com"
] | 2218880241@qq.com |
f4742756280353e67d16901ffa61412899a55d0f | f600bcd9c66253851abb3d3e2955a8b85f4bb13c | /test.py | f57bc1ec61a98e4dd963c55a1a2b878c6b13824e | [
"Apache-2.0"
] | permissive | rubythonode/qpth | 2abb3b3f6108c32e000dbd043c0751df358e45c2 | 4af18e3c1802eaa824b7a00444c81450d46ca3a9 | refs/heads/master | 2020-05-27T21:21:38.443022 | 2017-03-02T01:25:10 | 2017-03-02T01:25:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | #!/usr/bin/env python3
#
# Run these tests with: nosetests -v -d <file>.py
# This will run all functions even if one throws an assertion.
#
# For debugging: ./<file>.py
# Easier to print statements.
# This will exit qfter the first assertion.
import os
import torch
from torch.autograd import Function, Variable
... | [
"bamos@cs.cmu.edu"
] | bamos@cs.cmu.edu |
eabe970a909d8ed90dc5a3a3c0e010c4bc0cfc1d | 3caa6e43e3da18858a719c51dc9c63eb11014035 | /src/hrp/BoxMover/rosmain.py | 62ea4b77f0037280be3ba87d26f453fe22d6869c | [] | no_license | rh-chen/catkin_ws | 2ab5050340e7e62f818681d1c86b222f2b867ce9 | 102203a9c5b870862d5c4fcf465f3bf88247a007 | refs/heads/master | 2020-06-03T10:28:31.749952 | 2016-06-02T21:43:10 | 2016-06-02T21:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 31 18:32:26 2016
@author: ozer
"""
import spawn_targets as st
import model_diff_drive as model
import Robot as robot
import view_ros as vr
import triangulate as tr
import rospy
from am_driver.msg import Range
import time
from rospy import Time
x = 0.0
y = 0.0
dist_3_0 = 0... | [
"agneev@kth.se"
] | agneev@kth.se |
caa54bab2928eb10305837b0e0e56b4186a62619 | 9687abcdedda8e0d3343513924a533dcfe0a395e | /application.py | 0d60685b87c00a996c6e3ab3649c83ab9c208536 | [] | no_license | swans130/catalogapp | 8a9af8752d8ea41bbd88c32877c0d9f00c513d38 | 9b28bb8700b77ff2971eb016bc63a348ba905118 | refs/heads/master | 2020-04-06T07:08:35.147461 | 2018-04-19T17:00:14 | 2018-04-19T17:00:14 | 124,179,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,476 | py | from flask import Flask, render_template, url_for, request, redirect, jsonify
from flask import session as login_session, make_response, flash
import random
import string
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, User, Category, Item
from oauth2cl... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
abaa8526b231dad75fc98f4ae82f3455bbab5817 | 4476502e4fed662b9d761c83e352c4aed3f2a1c2 | /GIT_NOTE/05_Tensoflow/chap05_Karas_model/lecture01_dnn_model/step01_keras_dnn_binary.py | 7bd5f2e1a1b65d9a5290babf1d79484afc3b89c3 | [] | no_license | yeon4032/STUDY | 7772ef57ed7f1d5ccc13e0a679dbfab9589982f3 | d7ccfa509c68960f7b196705b172e267678ef593 | refs/heads/main | 2023-07-31T18:34:52.573979 | 2021-09-16T07:45:57 | 2021-09-16T07:45:57 | 407,009,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | # -*- coding: utf-8 -*-
"""
step01_keras_dnn_binary.py
Keras :DNN model생성을 위한 고수준 API
- iris dataset 이항분류기
X변수 : 스케이링
Y변수 : one hot encoding(binary)
"""
from sklearn.datasets import load_iris # dataset
from sklearn.model_selection import train_test_split # split
from sklearn.preprocessing import minmax_scale # x... | [
"yeon4031@naver.com"
] | yeon4031@naver.com |
c0ba8a22155782ea733557120f5f56f7d183bca4 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/comtypes/tools/typedesc.py | 9665b62f33472aeb425e7e434e831d240281833c | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,896 | py | # More type descriptions from parsed COM typelibaries, extending those
# in typedesc_base
import ctypes
from comtypes.tools.typedesc_base import *
class TypeLib(object):
def __init__(self, name, guid, major, minor, doc=None):
self.name = name
self.guid = guid
self.major = major
sel... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
4e2ef640365fb5abcc76cce5b36d34cf4064ca28 | 0c733dd9520e8b488f2fa6edbab12dc9df4f0337 | /tests/providers/microsoft/azure/log/test_wasb_task_handler.py | ea412cb0cc1969d196e6a8d0c5709cc544a77e11 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | RikHeijdens/airflow | 26aff28808d4e9e1ad23cd96c209ea9aea7083a3 | bff213e07735d1ee45101f85b01b3d3a97cddbe5 | refs/heads/main | 2023-05-08T15:02:38.918037 | 2021-06-07T08:47:24 | 2021-06-07T08:47:24 | 318,246,723 | 3 | 0 | Apache-2.0 | 2020-12-03T16:02:37 | 2020-12-03T16:02:36 | null | UTF-8 | Python | false | false | 7,752 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | RikHeijdens.noreply@github.com |
855d582ddf5a291724c3f5304ce19e173c579b9a | 36013530e70a881f4b25830637e1cbcbf7048215 | /python/tvm/contrib/torch/as_torch.py | 3a2b4dda9ea9af247c4b35290db07ee7dfd98eb8 | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | ymeng-git/tvm | f121f8bad4084eaee06e185b3e80fe1739aad96a | a9f7c32e42a5f09e641dbe83f81cc4a73869af12 | refs/heads/master | 2022-09-06T18:23:56.153721 | 2022-08-25T21:21:13 | 2022-08-25T21:21:13 | 214,013,729 | 0 | 0 | Apache-2.0 | 2019-10-09T20:08:41 | 2019-10-09T20:08:41 | null | UTF-8 | Python | false | false | 4,213 | py | # pylint: disable=inconsistent-return-statements
#!/usr/bin/env python
# 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 yo... | [
"noreply@github.com"
] | ymeng-git.noreply@github.com |
b3420778251e597f0ff200e156944d66604c75a7 | a4c04117685c3d28dd60bdfc45654cb2c935f746 | /extract_raster_subsets2.py | 956fbaf5601d1ec260a71b139f3ca340fdccd442 | [] | no_license | DKnapp64/General_Python_Codes | 1ca40779bb381d526d61c5d5fedcc76ae797c590 | 8d4669c82c17455640a0a3123f92760cd65cc26a | refs/heads/main | 2023-02-28T05:55:46.018482 | 2021-02-01T21:55:16 | 2021-02-01T21:55:16 | 335,077,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import os, sys
import gdal, osr
import glob
import subprocess
listrb = glob.glob('*_SR_rb.tif')
listrb_sorted = sorted(listrb, reverse=True)
for k,rbfile in enumerate(listrb_sorted):
try:
cmd = ['srun', '-n','1','--mem=16000','gdal_translate','-of','GTiff','-b','1','-b','2','-b','3']
outfile = os.path.split... | [
"dknapp4@asu.edu"
] | dknapp4@asu.edu |
e5944f36fa2dccbfdb71580f6210e51e1623dbc8 | 88eef22fdb14a2e03d3de74837f2af8580998e82 | /lib2d/fsa.py | b652dd5998bca6bb4e745c4ff6253a7bbfc30905 | [] | no_license | bitcraft/pyweek15 | 7fade8e2e0e0b19213c5922d5a0bfb73692c5f67 | a798032ce484380a18f4399f6421c6fc7f90e9d7 | refs/heads/master | 2021-01-01T18:18:03.475540 | 2012-10-24T03:47:12 | 2012-10-24T03:47:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,101 | py | """
Copyright 2009, 2010, 2011 Leif Theden
This file is part of lib2d.
lib2d 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.
lib2d is dist... | [
"leif.theden@gmail.com"
] | leif.theden@gmail.com |
db2cfc993dff884e3a706c47643299fdcba4afa5 | f4bd33eb5b3c30df06d0c17cbd7faf158932f3c5 | /demo/demo.py | 994d506c859f33bef63180735eb507d929ff5717 | [
"MIT"
] | permissive | Nazicc/hack-requests | 5fd330229389c9159697000c510383691ded252d | f513376bcae4c3b7282d0c403287f3838154f7b5 | refs/heads/master | 2020-04-01T21:11:22.931910 | 2018-10-05T10:45:24 | 2018-10-05T10:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import HackRequests as hack
u = "https://bbs.125.la/"
cookie1 = "user=useraa; "
hh = hack.http(u, cookie=cookie1)
new = hh.cookie
print(new)
print(hh.cookies)
| [
"34109680@qq.com"
] | 34109680@qq.com |
61cb995cc628af708a2332b124544b7dbceb7380 | 39f436d4c9118d0af83bba3d5ff099dc0acf9f50 | /espresso/models/tensorized_lookahead_language_model.py | 872e38fe821f583a2cc9e8492551c45e8dec081f | [
"MIT"
] | permissive | 1div0/espresso | c1ca63e33a25687152b846d0b10ece70ca72ee56 | 51eb6d52d6ea2c5e08864a10c91869ecf71de287 | refs/heads/master | 2021-04-23T17:37:39.266976 | 2020-03-30T11:48:05 | 2020-03-30T11:48:05 | 249,950,586 | 0 | 0 | NOASSERTION | 2020-03-25T10:37:50 | 2020-03-25T10:37:49 | null | UTF-8 | Python | false | false | 12,606 | py | # Copyright (c) Tongfei Chen, Yiming Wang
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Any, Dict, List
import torch
from fairseq.models import FairseqLanguageModel, FairseqIncrementalDecoder
from fairseq import utils
... | [
"freewym@gmail.com"
] | freewym@gmail.com |
cd33ecc1265920b2943256b4211446be70093e78 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py | cd2812a528615ff6e58afa0ba1bfbdda967c7273 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 1,411 | py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import argparse
from openvino.runtime import Model # pylint: disable=no-name-in-module,import-error
from openvino.tools.ovc.moc_frontend.preprocessing import apply_preprocessing
def moc_emit_ir(ngraph_function: Model, argv: argparse.... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
51aacd593891632de5e69d53235014f359d34698 | 90c5eab639be3008dee98e3a65d62d8776ecea00 | /objects/ejemClass.py | 80d620c958015d75d305ef50fba702a807aa54e0 | [
"MIT"
] | permissive | runngezhang/dsp-python | f00f172cbe4d960131d37c821e332ddfa499a895 | 03c231ae4b647bb7942db948b72bc1b4b44973bf | refs/heads/master | 2021-05-11T22:24:54.252209 | 2017-12-14T13:51:32 | 2017-12-14T13:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | #basic example on how to define a class
#this example ilustrates the sintax to define a general class, and after how to use or modify objects
#that are part of shuch a class
#class definition
class silla():
#the function __init__() will define the default properties of the objects
def __init__(self):
s... | [
"miltonsarria@gmail.com"
] | miltonsarria@gmail.com |
f386ac43b5554dfe38b9050060806dab96b82339 | 3088dc21f3e5eeb31575704712a695d71772495f | /torch/fx/tensor_type.py | 0840122a9b16830cc76317824cd2ffe644c2e2c4 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ezyang/pytorch | 8e82444c78025ff12fa605a62a18acfc43b176b8 | 6fc64500d1af9ee1306c7695ab0a2ff01852ff00 | refs/heads/master | 2023-09-02T01:56:28.108400 | 2022-06-07T19:13:21 | 2022-06-07T19:13:21 | 101,798,885 | 3 | 0 | NOASSERTION | 2022-08-23T22:10:07 | 2017-08-29T19:28:39 | C++ | UTF-8 | Python | false | false | 2,889 | py | from torch.fx.experimental.unification import Var # type: ignore[attr-defined]
from ._compatibility import compatibility
@compatibility(is_backward_compatible=False)
class TensorType:
"""
TensorType defines a type for tensors, which consists of a list of dimensions.
Example:
class M(torch.nn.Mod... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c2d8dd0da6d7051bcbafbee0bed447f590954d5e | bfde6d26e62aa94eebbec96763de40f78f4d4374 | /python_scripts/goalie_2D/network/network_simulation.py | 0252e2895071dcfc2c434284d6d5c64f1d492041 | [] | no_license | bryonkucharski/robot-catcher | 8a15d3951454e7204e4f8989c8d306fcd8f5b11b | 41caad5dfddb1ae7604fb82ced2143d8e3e7cc87 | refs/heads/master | 2021-05-10T14:46:30.152702 | 2019-11-10T14:18:05 | 2019-11-10T14:18:05 | 118,531,219 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,179 | py | import numpy as np
import os, sys, inspect
import time
from random import randint
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib import style
import json
import random
import tensorflow as tf
import sys
flder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspe... | [
"bryonkucharski@gmail.com"
] | bryonkucharski@gmail.com |
5e9202e646a75e0058fb293b7f75ed74c0463e92 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/Traits/enthought/traits/ui/ui_editors/array_view_editor.py | 0ce569920b3b1e0d8e10da04dc1474be3df896ae | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,118 | py | #-------------------------------------------------------------------------------
#
# Copyright (c) 2007, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditions ... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
2386ad4943eb142e7ec2233a039e2eed1b47c0f5 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4066/codes/1643_1055.py | 9c416e03a7c56e37ea92247e38757248ab3bb5c1 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
import math
v0 = float(input("velocidade inicial: "))
a = math.radians(float(input('angulo: ')))
D = float(input('distancia: '))
g = 9.8
R = ((math.pow(v0, 2)*mat... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
6d632f09c6c323eed648aec34ff80c93a81078bb | 2908827b07cf4fe770777eafa215c5cdf57db935 | /ynnoht/misc_utils.py | 272957f8c52b7af0ad5f2b48982077d778d1e067 | [
"MIT"
] | permissive | aroberge/thonny-deconstructed | 272b43e16a3613aa9124884b49212f5ca9006b92 | 0bfafe00e324abeccdbf503b7943512eea6f6255 | refs/heads/master | 2020-11-27T19:10:35.231250 | 2019-12-31T01:55:28 | 2019-12-31T01:55:28 | 229,572,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,824 | py | # -*- coding: utf-8 -*-
import os.path
import platform
import shlex
import shutil
import subprocess
import sys
import time
from typing import Optional, Sequence, Tuple
def delete_dir_try_hard(path: str, hardness: int = 5) -> None:
# Deleting the folder on Windows is not so easy task
# http://bugs.python.org/... | [
"andre.roberge@gmail.com"
] | andre.roberge@gmail.com |
517839a95b7588c5f6286f2acc224b16e686ae54 | 1384435f0e0cf706db82d0672d5fe9e3bc0cf5a8 | /agilo/scrum/team/admin.py | 1412ccc57b7e8aadeaa4b320a4a5dfef7c72c19c | [] | no_license | djangsters/agilo | 1e85d776ab4ec2fa67a6366e72206bbad2930226 | 1059b76554363004887b2a60953957f413b80bb0 | refs/heads/master | 2016-09-05T12:16:51.476308 | 2013-12-18T21:19:09 | 2013-12-18T21:19:09 | 15,294,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,885 | py | # -*- coding: utf-8 -*-
#
# 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 writin... | [
"bastir@gmail.com"
] | bastir@gmail.com |
34fd21d4aad1ddd69d0614943eed25b104e01197 | 7c70f3cbaecfa4d77928c784ae12f232c273112e | /api_client/sub_helpers/users.py | f228e1671eda777f4488af8414207acedc297ec0 | [
"MIT"
] | permissive | uktrade/lite-tests-common | d029298d9144a447404d38899ab35ff8e54bf53d | 8ae386e55f899d0ffd61cc0a9156cd4db340d6d1 | refs/heads/master | 2020-08-03T19:20:39.673522 | 2020-07-21T09:59:01 | 2020-07-21T09:59:01 | 211,858,651 | 1 | 0 | MIT | 2020-07-21T09:59:03 | 2019-09-30T12:49:33 | Python | UTF-8 | Python | false | false | 1,949 | py | import base64
import os
class Users:
def __init__(self, api_client, request_data, **kwargs):
super().__init__(**kwargs)
self.api_client = api_client
self.request_data = request_data
def add_user(self, data, url, token_name, user_type):
response = self.api_client.make_request(
... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
a181eb1723dafd3430e135b01445a0405b3f5499 | 0ac4ef332c870fc31c1a30e90196abd4c7d50979 | /doped_fv/PBE0_8/FLP1/plot_bands2.py | 56e3c039202f7d6f9c22b4ae38b823915bd41b54 | [] | no_license | sapatha2/sco | e01c5abfafb43af144b26f7fc3d1e550797dd39b | 726af3a0cf343c45552943e9f437b82f51969f76 | refs/heads/master | 2021-06-11T06:52:22.347565 | 2019-10-10T13:28:58 | 2019-10-10T13:28:58 | 110,725,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | import pylab as P
import numpy as np
import sys
import math
def read_bands(filename):
f=open(filename,'r')
spl=f.readline().split()
nkpt=int(spl[2])
nband=int(spl[4])
nspin=int(spl[6])
spl=f.readline().split()
npanel=int(spl[2])
panels=[]
for i in range(0,npanel+1):
spl=f.readline().split()
p... | [
"sapatha2@illinois.edu"
] | sapatha2@illinois.edu |
43054d2a98e3b37735d20381e9dbbeb3b373c903 | 20ace38b89c0ebaa0738753fcd11b0fdd4ed21cd | /pPb_2016_v0/tmp/src/HeavyIonsAnalysis/Configuration/python/CommonFunctions_cff.py | 91086211c2e1e40d624c3c05d33519b29ac5e554 | [] | no_license | ssanders50/pPb_2016_v0 | 3c32c2920067a2f8a0a7a7fadba6225babf9a905 | 9fc4ae61cf4343c88ce6666f55c0738f963754a3 | refs/heads/master | 2020-12-12T16:30:41.253014 | 2020-02-14T21:51:17 | 2020-02-14T21:51:17 | 234,162,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,894 | py |
import FWCore.ParameterSet.Config as cms
# Turn of MC dependence in pat sequence
def removePatMCMatch(process):
process.prod.remove(process.genPartons)
process.prod.remove(process.heavyIonCleanedGenJets)
process.prod.remove(process.hiPartons)
process.prod.remove(process.patJetGenJetMatch)
process.... | [
"ssanders@ku.edu"
] | ssanders@ku.edu |
997a8de78abc8bebd0d3c0a5c3c00212839535a5 | dd586139c891041a4e84fdda3d3e6180b44f3c72 | /TTH/python/joosep/trimmer_data.py | be48fbc5273f1dd947ca9c19cd175ce44ae9a194 | [] | no_license | mmeinhard/CodeThesis | e92c734dacad4e3bfc9065b98b8a8ae00908aae3 | 7792c96048e250e0008861062d4f63069204efeb | refs/heads/master | 2023-07-15T02:53:39.503146 | 2021-08-14T16:44:35 | 2021-08-14T16:44:35 | 396,058,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | # -*- coding: utf-8 -*-
"""
@author: christina reissel
"""
import numpy as np
import ROOT as r
import rootpy
from rootpy.tree import Tree, TreeChain
from rootpy.io import root_open
import time
import os
blacklist_files = [
]
# Function to create histograms
def process(file_names, output_file):
# file_names (list o... | [
"marenm@student.ethz.ch"
] | marenm@student.ethz.ch |
1d18863aa4414be8a199e6947ee49c6bebfb6468 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2654/60796/270017.py | 0cddc222778d5c1e6c5530f9a2665571242cdcb3 | [] | 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 | 426 | py | n=int(input())
instruct=[]
m=0
for i in range(n):
instruct.append(input().split(" "))
instruct[i]=[int(x) for x in instruct[i]]
this=max(instruct[i])
if this>m:
m=this
ls=[]
for i in range(m+1):
ls.append(0)
for i in range(n):
for j in range(instruct[i][0],instruct[i][1]):
if ls... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
508725812a80f77d2fb533744c4a29f41c11bc7d | 5d1840772b9a5c2b0ea3e603212285a61e2ba21f | /inference/gen_kernel.py | 33f73e6b42e531a1786176be59113141611006ee | [] | no_license | Xharlie/IVT | 68ae80a098a5f87b5998bca0c009a5a6d388be95 | 219cc598f4be05e4febd37be6a1391a7d527fe02 | refs/heads/master | 2022-05-21T06:51:39.097523 | 2020-04-28T05:31:25 | 2020-04-28T05:31:25 | 235,966,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,408 | py | import numpy as np
import sys,os
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '../preprocessing'))
import gpu_create_ivt as ct
import pymesh
import trimesh
def get_unigrid(ivt_res):
grids = int(1 / ivt_res)
x_ = np.linspace(-1, 1, num=grids).astype(np.float32)
y_ = np.linspa... | [
"charlie.xu007@yahoo.com"
] | charlie.xu007@yahoo.com |
976f94f39297bc368d702192cfe844f6278715c8 | 53484aa8982148ce908adb9fa4995a7f7e46268a | /_01_drawing/_a_shapes_and_colors.py | 5f2dbf73fd65ac91a37c8944fe91f1aa5af37464 | [] | no_license | league-python-student/level0-module0-100297 | 5d41bad057065c1d87ab0307a7a2dbad5312b953 | d327271878189afd3a0da0a70605e7082a1221ae | refs/heads/master | 2022-11-25T04:38:32.646650 | 2020-08-05T21:22:57 | 2020-08-05T21:22:57 | 284,807,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | import turtle
if __name__ == '__main__':
window = turtle.Screen()
window.bgcolor('white')
# This code makes a new Turtle. Pick a new name for the turtle
myTurtle = turtle.Turtle()
# Make your turtle's shape 'turtle', .shape('turtle')
# Set your turtle's speed using .speed(2)
... | [
"you@example.com"
] | you@example.com |
671dd7c7af21c8bbc5dbd1f45984dbac23030092 | a7b78ab632b77d1ed6b7e1fa46c33eda7a523961 | /src/foreign_if/python/UT/src/sssp/test_002.py | 5dc762add6368fd99d5bb29eeebf440fb57911df | [
"BSD-2-Clause"
] | permissive | frovedis/frovedis | 80b830da4f3374891f3646a2298d71a3f42a1b2d | 875ae298dfa84ee9815f53db5bf7a8b76a379a6f | refs/heads/master | 2023-05-12T20:06:44.165117 | 2023-04-29T08:30:36 | 2023-04-29T08:30:36 | 138,103,263 | 68 | 13 | BSD-2-Clause | 2018-12-20T10:46:53 | 2018-06-21T01:17:51 | C++ | UTF-8 | Python | false | false | 1,401 | py | '''
directed graph - src with little reachable nodes >> "Passed"
'''
from frovedis.exrpc.server import FrovedisServer
import os
import sys
import time
import numpy as np
import pandas as pd
import networkx as nx
import frovedis.graph as fnx
DATASET = "input/data"
src = 28
#FROVEDIS
try:
argvs = sys.argv
arg... | [
"takuy_araki@nec.com"
] | takuy_araki@nec.com |
a5a2aad7b7a55565ca80246de78fed2a9df8072a | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/uniteelcom_personalizacao/models/partner.py | a028eafe3cede8aa412db5ead743859d751d6c64 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- encoding: utf-8 -*-
from osv import osv, fields
class res_partner(osv.osv):
_name = 'res.partner'
_inherit = 'res.partner'
_columns = {
'categoria_comissao_ids': fields.one2many('orcamento.categoria_comissao', 'partner_id', u'Comissões para venda'),
'categoria_comissao_servico_ids... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
d2c6223798e10b77cf0d99eb4b3b0524189a6621 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/plotly/py2/plotly/graph_objs/splom/__init__.py | 5550dd575087d03740eed36282d30eaee7054cb0 | [
"MIT",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 98,520 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Unselected(_BaseTraceHierarchyType):
# marker
# ------
@property
def marker(self):
"""
The 'marker' property is an instance of Marker
that may be specified as:
... | [
"robot-piglet@yandex-team.com"
] | robot-piglet@yandex-team.com |
fc56366d35af454c9d565a153d1825eb9c7cb223 | da8730b3977d0b1e59e0b80d88cc871d92cd2700 | /tf/fm/config.py | 27818c99194a6ea2c38d1aa66bc6d0055a4e882c | [] | no_license | legend1412/PythonDemo | 44b62f82a8826b5a50cf0a6506e6082d89d1ab7b | 3e6e4624801b9b9c272d0891f5675ec9466b4205 | refs/heads/master | 2020-12-28T01:27:39.942087 | 2020-10-12T02:33:29 | 2020-10-12T02:33:29 | 238,136,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # set the path-to-files
TRAIN_FILE = '../../data/fm/train.csv'
TEST_FILE = '../../data/fm/test.csv'
SUB_DIR = '../../data/fm/output'
NUM_SPLITS = 3
RANDOM_SEED = 2017
# type of columns of the dataset dataframe
CATEGORICAL_COLS = [
# 'ps_ind_02_cat','ps_ind_04_cat','ps_ind_05_cat',
# 'ps_car_01_cat','ps_car_02... | [
"zhaojianhao_1984@163.com"
] | zhaojianhao_1984@163.com |
6f3f18998a07acda9e114a7a829ad9735b68b87f | 3c92c3f633b613a62fb67476fd617e1140133880 | /leetcode/881. Boats to Save People.py | 6fea67bfbf3122892368a05efe6f9a9319af1cd1 | [] | no_license | cuiy0006/Algorithms | 2787f36f8164ded5252a006f723b570c9091bee9 | 00fd1397b65c68a303fcf963db3e28cd35c1c003 | refs/heads/master | 2023-03-31T13:55:59.191857 | 2023-03-31T03:39:42 | 2023-03-31T03:39:42 | 75,001,651 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | class Solution:
def numRescueBoats(self, people: List[int], limit: int) -> int:
cnt = 0
people.sort()
i = 0
j = len(people) - 1
while i <= j:
if i == j:
cnt += 1
break
if people[i] + people[j] > limit:
j ... | [
"noreply@github.com"
] | cuiy0006.noreply@github.com |
e15c3ed09a533e7762bc26cb8cd6a3437ba84170 | a03a7935a191d63bee76fd3b85a61ee27f98904a | /test/tests/operators/displace.py | 8ba10288637a67e1761d161ac84c4aadad75154b | [] | no_license | cchriste/visit | 57091c4a512ab87efd17c64c7494aa4cf01b7e53 | c72c413f571e56b52fb7221955219f11f4ba19e3 | refs/heads/master | 2020-04-12T06:25:27.458132 | 2015-10-12T15:41:49 | 2015-10-12T15:41:49 | 10,111,791 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: displace.py
#
# Tests: mesh - 2D/3D rectilinear, single domain.
# 3D unstructured, single domain.
# 2D/3D curvilinear, single domain.
# ... | [
"bonnell@18c085ea-50e0-402c-830e-de6fd14e8384"
] | bonnell@18c085ea-50e0-402c-830e-de6fd14e8384 |
a3270c6f138d29cf8fc265b546123c9534da9d70 | db0e49a94c2554ec8853133d09afca65d697eb62 | /tests/test_probe.py | bd0942f45a266d4aaaea342c78133af176f9c5c5 | [
"BSD-3-Clause"
] | permissive | rapidsai/ucx-py | 415c631039c9c6ceb8d90b04e872d5a61a12eb0f | 9ba056f9f2b1af169c6312b178e9853b066928bd | refs/heads/branch-0.34 | 2023-09-02T21:33:25.839513 | 2023-08-28T13:40:30 | 2023-08-28T13:40:30 | 149,822,197 | 103 | 45 | BSD-3-Clause | 2023-09-08T18:41:12 | 2018-09-21T21:53:38 | Python | UTF-8 | Python | false | false | 1,090 | py | import asyncio
import pytest
import ucp
@pytest.mark.asyncio
@pytest.mark.parametrize("transfer_api", ["am", "tag"])
async def test_message_probe(transfer_api):
msg = bytearray(b"0" * 10)
async def server_node(ep):
# Wait for remote endpoint to close before probing the endpoint for
# in-tra... | [
"noreply@github.com"
] | rapidsai.noreply@github.com |
02c5d0df17fbf695539b5a21205a71f70e4c4f2e | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/matplotlib/tests/test_arrow_patches.py | bbf151794a871721e6d0e67cbb91b62d7c41c1c6 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a626015f78d398681814dc3e40967f850626b61e26ca1ca01a2979888f132f2c
size 4149
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
5f7b4a0ccc4946d4400c8cc01db56e48b2377e90 | f59f70dae24dcf833ef125359e1acba15ec43954 | /deb/openmediavault/usr/sbin/omv-env | 7666a57c3e720cc57ec19b7de04c92d41bf447e0 | [] | no_license | a-seddiqi22/openmediavault | d2fd4fa8b4b7a065e554125216757d90e7dd664b | 903cfcf68d53070bd9eb8a778f8f627a175eb3fd | refs/heads/master | 2023-01-06T13:19:34.130969 | 2020-11-10T09:39:57 | 2020-11-10T09:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | #!/usr/bin/env python3
#
# This file is part of OpenMediaVault.
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2009-2017 Volker Theile
#
# OpenMediaVault is free software: you can redistribute it and/or modify
# ... | [
"votdev@gmx.de"
] | votdev@gmx.de | |
24d70415324635bcf0e0f82c5049ff335d568a53 | 60684073cb594748f7a33ec18f6da5f1be9c76f1 | /MODEL/LHCB2/OLD/GenerateFullResp.py | 7ae3645de19e5b2805ef269da88ecc978ace3265 | [] | no_license | thbde/Beta-Beat.src | af2337e56109f00a1fa7eb6cd2b2129eac8d4fb9 | 036a1883bfe27b88754a330794d3cb525cd8639a | refs/heads/master | 2021-09-06T05:17:36.647195 | 2018-02-02T14:36:08 | 2018-02-02T14:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | #!/usr/bin/env pythonafs
from Numeric import *
from LinearAlgebra import *
import sys
from os import system
import math
from Numeric import *
#from pymadtable import madtable
from metaclass import twiss
from AllLists import *
#########################
def writeparams(deltafamilie):
#########################
glob... | [
"yngve.levinsen@gmail.com"
] | yngve.levinsen@gmail.com |
e1aad048b7eb9609d6157c914590ae8742671d4e | 5b68845f5e24085d6f85fbc805251ffb690eae6e | /Pmw/Pmw_2_0_1/tests/PmwBase_test.py | ea6470f5fc52436101075501b094cef2c421edf6 | [] | no_license | rdb/panda3d-thirdparty | 15bf5646635b812c7c68f6dfc7a9a43013c2b7c9 | a7db4147cfdf22c639e79fc20843496966038e6c | refs/heads/main | 2023-08-31T18:27:12.388222 | 2023-08-24T10:22:02 | 2023-08-24T10:22:02 | 56,599,172 | 33 | 29 | null | 2023-02-19T15:47:23 | 2016-04-19T13:29:06 | M4 | UTF-8 | Python | false | false | 5,697 | py | # Tests for Pmw megawidgets
import tkinter
import Test
import Pmw
Test.initialise()
class TestWidget(Pmw.MegaWidget):
def __init__(self, parent = None, **kw):
# Define the megawidget options.
optiondefs = ()
self.defineoptions(kw, optiondefs)
# Initialise the base class (after d... | [
"git@rdb.name"
] | git@rdb.name |
27e87c6611e0a3dcc342c84b055fe1b49a59ff1f | 68cd659b44f57adf266dd37789bd1da31f61670d | /2020-02/python/2115_갤러리.py | 09656f526c9d70ecf6b21f488593831822394e34 | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | import sys
sys.stdin = open("갤러리.txt")
N, M = map(int, input().split())
MAP = [list(input()) for _ in range(N)]
res = 0
flag = 1
for y in range(N - 1):
for x in range(M):
if MAP[y][x] == 'X':
if flag:
if MAP[y+1][x] == '.':
flag = 0
else:
... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
516474c88963322de93b7698b0152f1bc8950e56 | 3af1a0ba485f28ee695c9a95773140b6cfa721f1 | /Tools/quick-starter/django/main.py | e99d2b6934da3dc1e890dfc9e9c8ece89a0358cf | [] | no_license | odify/PORT-OF-PYTHON | d985e1a25ac20072f375ed96b4186279e17f237e | b7335af2c55eb10768e3a0b9ad621e263e1b766d | refs/heads/main | 2023-08-18T06:48:19.103446 | 2021-10-13T18:37:41 | 2021-10-13T18:37:41 | 311,485,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!/usr/bin/env python3
import pyautogui
import time
terminal = ''
dir = ''
folder = ''
project = 'test'
new = 'app'
pyautogui.press('win')
pyautogui.typewrite(terminal)
pyautogui.typewrite(['enter'])
pyautogui.typewrite('cd ./' + dir + ' &&' + ' mkdir ' + folder + ' && ' + 'cd ' + folder)
pyautogui.typewrite(['... | [
"odify495@gmail.com"
] | odify495@gmail.com |
d931bee9d2af036a56ca409f094212076dfb3dc9 | 757b100c2689f61dbd140672fc10059938bda603 | /SportsSimulation/apps/sportApp/migrations/0002_auto_20191118_1159.py | aa82b65a889fc72c31276c335da65d6bddaef141 | [] | no_license | tbkrft567/Portfolio | 089d8d94d735bbb757eb61688c515f9f25451595 | bbe514905a734e14c0bda5579928fdc9dad5a69e | refs/heads/master | 2023-03-15T23:02:01.640998 | 2021-02-21T21:32:44 | 2021-02-21T21:32:44 | 231,143,663 | 0 | 0 | null | 2023-03-08T20:27:46 | 2019-12-31T20:31:56 | HTML | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-11-18 17:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sportApp', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"tbkrft@gmail.com"
] | tbkrft@gmail.com |
64f47ff898a5e8902be0669a812f4ca32e858f29 | 17e3234ab01fd93233cc453f1495d50424c3bd8f | /latte/latte/doctype/whatsapp_log/test_whatsapp_log.py | 5b5e77967599e1b7b72a55c8914312771152dfc7 | [
"MIT"
] | permissive | sunnyakaxd/latte | 8943dbf70ce934e04e51b147a54e6dd02dfe43db | de74065122a1f858bd75f8e1a36fca3b23981f4c | refs/heads/master | 2023-06-11T10:25:31.217047 | 2021-07-06T06:40:19 | 2021-07-06T06:40:19 | 383,363,137 | 0 | 0 | NOASSERTION | 2021-07-06T06:26:49 | 2021-07-06T06:26:49 | null | UTF-8 | Python | false | false | 213 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Sachin Mane and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestWhatsAppLog(unittest.TestCase):
pass
| [
"himanshu.mishra@elastic.run"
] | himanshu.mishra@elastic.run |
ab630999aad4d798ef1e069f68f66c2db926e16b | 252a056cc1ff050c1988fe44d10cac5fcd43ff54 | /2020/osu-ctf-autumn/ride/main.py | 54258511ffd36d31c24d0d67d063da86c5f6ce32 | [] | no_license | qxxxb/ctf | 95510bc607f0ac18f7bb97b4e82ae12fcc4506ae | 525f2f86bfd55b2cfa1b4e5fdf297b5145bedd19 | refs/heads/master | 2021-12-31T16:09:47.807553 | 2021-12-21T04:53:10 | 2021-12-21T04:53:10 | 252,059,602 | 30 | 4 | null | 2021-02-08T02:38:20 | 2020-04-01T03:15:00 | Python | UTF-8 | Python | false | false | 285 | py | with open('ride.txt') as f:
with open('ride_col.txt', 'w') as fout:
is_x = True
for l in f.readlines():
fout.write(l.strip())
if is_x:
fout.write(",")
else:
fout.write("\n")
is_x ^= 1
| [
"46016483+qxxxb@users.noreply.github.com"
] | 46016483+qxxxb@users.noreply.github.com |
c67dfd58f802d9fe0ce9884f6173dd6be568d3ea | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyUnresolvedReferencesInspection/EvaluateExpressionBuiltins/evaluateExpressionBuiltins.py | 1bf13edc2bf8349c7062841ccb2c19f21cc5ab1d | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 29 | py | a = [1, 2, 3]
b = 3
c = a + b | [
"Elizaveta.Shashkova@jetbrains.com"
] | Elizaveta.Shashkova@jetbrains.com |
dd329e60d772fafd9098dc2dc4a9a3902938c7fc | b0bc4de8c2de837f3c6574dbb87b24f89e08a08f | /proyecto/Apps/Usuarios/migrations/0003_auto_20190531_1215.py | 3c12645cc031b4fff966f05fa8899cbf256d76bd | [] | no_license | urimeba/proyectoWeb | 33f62ad2c4ce2b83a365c1d88a3f69f26f1030bf | c6bc9ff9684c785317cd3c4a9af48c3b98c0ecd1 | refs/heads/master | 2022-01-11T15:56:14.677911 | 2019-06-24T15:48:04 | 2019-06-24T15:48:04 | 189,804,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # Generated by Django 2.2.1 on 2019-05-31 17:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Usuarios', '0002_usuarios_user'),
]
operations = [
migrations.AlterField(
... | [
"urimeba511@gmail.com"
] | urimeba511@gmail.com |
1acc507efb0e32b681e0b7c774828d76fa1e7d89 | bd48e8af13abb5a8574b47ea3337e64a45e8f672 | /nanum/topics/utils/permissions.py | 1754698b84f3200c6f936384d8db6fd5c8d16ea7 | [] | no_license | markui/nanum-project | d221cacfaed9d6e2e882f3d4f29dc77055a4e97b | 399064b62a7c8049b37efd77a98f17a903754070 | refs/heads/master | 2021-09-08T08:03:30.667750 | 2018-01-09T07:06:11 | 2018-01-09T07:06:11 | 110,780,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from rest_framework import permissions
class IsAdminUserOrAuthenticatedReadOnly(permissions.BasePermission):
"""
Object-level permission to only allow owners of an object to edit it.
Assumes the model instance has an `owner` attribute.
"""
def has_object_permission(self, request, view, obj):
... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
6f460c01e4b2dcc3051aa176ca70833dcbe33932 | 46af6a0977b01c9a4c8cf1d8b3544228eb889913 | /mlp.py | b0acb8188582c4aba60f1946498f652c264708a4 | [
"Apache-2.0"
] | permissive | mingmingyang/tensorflow_examples | 40a00d36ed78d218caea7170cbc984bd2a6f4eeb | 2e66508210e85910813d424887461604515e5416 | refs/heads/master | 2021-01-21T18:46:52.687284 | 2016-08-04T10:29:44 | 2016-08-04T10:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | #!/usr/bin/env python
import tensorflow as tf
import math
import os
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
# Define the model
input_units = 784
hidden1_units = 10
hidden2_units = 20
output_units = 10
x = tf.placeholder("float", [None,... | [
"tobeg3oogle@gmail.com"
] | tobeg3oogle@gmail.com |
df94e22c7990f17cbff24ba172b1345868eb8b06 | 6c607eb9c1869f71fb58c475b183d7e0d63a056c | /backend/yellow_king_28822/settings.py | 6efbe39b9be69261bd4f38176fb68a990a131b06 | [] | no_license | crowdbotics-apps/yellow-king-28822 | 237d44c2bb0d41fddfda1559853851d4e4ffa3bc | f2e1b12997b4418e9f83221679ca4717ee71cb9b | refs/heads/master | 2023-06-20T09:58:52.292268 | 2021-07-14T01:25:30 | 2021-07-14T01:25:30 | 385,778,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,188 | py | """
Django settings for yellow_king_28822 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/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6c2ef2f2ed969c04e644e3d726eb16c4fadd1624 | ba1bd12f040edd97bbe3b21b8bba56d41a684305 | /squareplay/settings.py | 3b52a4aa6f9cbc8b519fc188672284abf9828d82 | [] | no_license | arineto/SquarePlay | 9cb9943b459dda8d0963e1b44664bd5322284b3f | 6df22eede34909743efb550c9cf272097b826256 | refs/heads/master | 2020-12-24T15:04:36.101000 | 2015-08-01T13:17:46 | 2015-08-01T13:17:46 | 37,018,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | """
Django settings for squareplay project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build p... | [
"arineto30@gmail.com"
] | arineto30@gmail.com |
97e3ba191b45dd2a2fef80314d9309461c6d07ba | 5251a6be594dff7e56bbe6b4f968ea43c3315471 | /coral/composer/parser/__init__.py | 7e414aa4cb92ba96f9c3991876e1870c3c4e03f5 | [
"Apache-2.0"
] | permissive | coralproject/atoll | aec2e529fd7c5164864c4a2e9a501a8477fc3872 | 2b62b37d3a320480264c4a0242532aad99c338ec | refs/heads/master | 2021-07-14T03:39:09.761086 | 2016-07-26T18:57:16 | 2016-07-26T18:57:16 | 43,079,410 | 12 | 1 | NOASSERTION | 2021-03-19T21:53:15 | 2015-09-24T16:37:32 | Python | UTF-8 | Python | false | false | 1,503 | py | import re
from .numeric import NumericStringParser
from .function import parse_func
# TODO make this take more than comments
# and properly match the proper input to the right function
# TODO clean up a bit
def parse(expr, inputs, funcs, colors):
"""
Parses a mathematical expression (string)
that can incl... | [
"f+accounts@frnsys.com"
] | f+accounts@frnsys.com |
43a4688b3bc056941209f041f1808228d7713ad1 | 88a5e10904659e999eb5d76dff91146ea58fa615 | /src/form/OrderSchema.py | 21d8feeea6890f8df385e04e8757ce0f1190dfd8 | [] | no_license | Fen1kz/outdoors | 9a50920f90024ab5cfbb2b689e49099fc98fd6c1 | 6868ba76abee2eb003cfca6ea10ee39b72e8faf2 | refs/heads/master | 2023-01-24T04:41:20.756658 | 2020-04-19T12:39:30 | 2020-04-19T12:39:30 | 252,117,994 | 0 | 0 | null | 2023-01-05T19:33:07 | 2020-04-01T08:35:57 | JavaScript | UTF-8 | Python | false | false | 359 | py | from marshmallow import Schema, fields
class ThingSchema(Schema):
id = fields.Str(required=True)
count = fields.Int(required=True)
class OrderSchema(Schema):
name = fields.Str(required=True)
email = fields.Email(required=True)
comment = fields.Str()
things = fields.List(fields.Nested(ThingSchema))... | [
"you@example.com"
] | you@example.com |
273ede329cd84bf103c479a152d093e4824f9e09 | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /Validation/Performance/scripts/cmsPerfHarvest.py | 396860a9a9d8f129340d332bbeda17f6ccaee528 | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | Python | false | false | 4,641 | py | #!/usr/bin/env python
from cmsPerfCommons import Candles, CandFname
import optparse as opt
import cmsPerfRegress as cpr
import sys, os, glob, re
_PROG_NAME = os.path.basename(sys.argv[0])
###################
# Parse options
#
def optionParse():
parser = opt.OptionParser(usage="""./%s [perf dir] [options]""" % _P... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
6b76aa0fdab7b31d318710bf62e4b0d9e6df87f6 | af1d7dc97f2e42147c49c787dd140846c01f5708 | /samples/shell/reidentification/gallery_generator.py | 2137ff0a65f88fb5239f746d3353e7da72163dd0 | [
"MIT"
] | permissive | TolyaTalamanov/gst-video-analytics | 8d368841136c57b21ef87b7fe6e9c975cf68fe1d | 7b3d74b9887911eaedbe8cad9ce4af64174d6568 | refs/heads/master | 2020-04-29T21:51:06.437877 | 2019-03-18T15:38:32 | 2019-03-18T15:38:32 | 176,426,610 | 0 | 1 | MIT | 2019-03-19T04:54:22 | 2019-03-19T04:54:21 | null | UTF-8 | Python | false | false | 5,663 | py | #!/bin/python3
# ==============================================================================
# Copyright (C) <2018-2019> Intel Corporation
#
# SPDX-License-Identifier: MIT
# ==============================================================================
import json
import argparse
import os
import subprocess
import ... | [
"openvino_pushbot@intel.com"
] | openvino_pushbot@intel.com |
4569d187d4a044070560ad47b7bb712f7ad17292 | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/130_Fluent_Python/somme.py | 115b0bfd1744b65647f9371c13d01fbe810fbd8d | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # somme.py
# Example of typing.Protocol to implement Addable, used to constraint a generic type to support __add__
# Ok for Mypy, Jedi and Ruff, but Pylance doesn't understand it
#
# 2023-07-30 PV
from collections.abc import Iterable
from collections import Counter
from collections.abc import Sequence
from typing i... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
1369339d988ef160d0282178c8ffe53d4270082f | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /BitPim/rev3177-3237/right-branch-3237/phone_root.py | ac8a61cf7f829ca9f2f5cde53680afb61423b031 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,733 | py | """The main gui code for BitPim"""
import ConfigParser
import time
import os
import cStringIO
import zipfile
import re
import sys
import shutil
import types
import datetime
import sha
import codecs
import locale
import wx
import guiwidgets
import common
import version
import helpids
import bpcalendar
import comdiagnose... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
a970612b0eb1f0017048c94c9be98b6ab986d09c | f3aecb944b3c35a78424883c218d19bfd175d210 | /packaging/setup/ovirt_engine_setup/domains.py | 6a1538eaaa97c2a01c69d0414082abd748fb0af7 | [
"Apache-2.0"
] | permissive | gilad-chap/ovirt-engine | 0f4a83efbef3d40540e4d21022aa5b96ad342bf8 | c53334b18201e04319bf70ba848e31c46cb4cd05 | refs/heads/master | 2021-01-21T19:47:24.961957 | 2014-03-31T13:57:05 | 2014-04-06T07:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | #
# ovirt-engine-setup -- ovirt engine setup
# Copyright (C) 2013 Red Hat, Inc.
#
# 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 r... | [
"gerrit2@gerrit.ovirt.org"
] | gerrit2@gerrit.ovirt.org |
9ed72d601719ef54b6c30aca71fe336b5034c4ae | c9287937c4d7900d311640a2b16c08c42eedfe58 | /tensorflow/python/data/kernel_tests/data_service_ops_test.py | 488bf97f1847956e8c28043d7bcdb7e492fcf6d2 | [
"Apache-2.0"
] | permissive | Purplme/tensorflow | e868e9bf59cc8eb680f1c35bf0b8615ec2b68c62 | d2d6c3f07a0b874e64a024c767deb7c9fb39b704 | refs/heads/master | 2022-11-23T23:38:00.243591 | 2020-07-16T06:20:19 | 2020-07-16T06:25:23 | 280,074,885 | 2 | 0 | Apache-2.0 | 2020-07-16T06:39:14 | 2020-07-16T06:39:13 | null | UTF-8 | Python | false | false | 16,726 | py | # 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 required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
9fd7f2878fa430c980f558d3343330d77fbab08a | 7be4ea87c56934873b22eef9fe1313a18bae430b | /pizza/scripts/pizza/__main__.py | 248ff8552fba7df0d78fda1fcdb7c8049be355f7 | [] | no_license | cjerdonek/groome-python-expected | 7ab249efe02710afff570fb0545aa65f72fdb0da | 33c8963fc295045554b3a6f7afa9010957b2fd23 | refs/heads/master | 2021-01-18T14:09:39.451506 | 2013-11-12T07:41:27 | 2013-11-12T07:41:27 | 7,537,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | """
XXX: add a docstring.
"""
import pizza.scripts.pizza.main as main_mod
main_mod.main()
| [
"chris.jerdonek@gmail.com"
] | chris.jerdonek@gmail.com |
580fdc3997f454759542efa18b7d60e7daee2e8f | 1bfa8b84152538e89c5db3ef7b083a122b276144 | /CorticalStimulation/run_cs_exc_lum.py | 571dad19b7eafcac6adfcf56573b1fb49324d0dc | [] | no_license | antolikjan/mozaik-contrib | 49c534640924aefdc39e005bf4077c674dd16493 | 74b979b85357c1fd68adff4817e568dde1596604 | refs/heads/master | 2021-07-16T09:29:57.004787 | 2021-03-17T15:28:02 | 2021-03-17T15:28:02 | 6,177,172 | 0 | 2 | null | 2021-01-15T12:09:57 | 2012-10-11T16:44:07 | Python | UTF-8 | Python | false | false | 868 | py | # -*- coding: utf-8 -*-
"""
"""
import matplotlib
matplotlib.use('Agg')
from mpi4py import MPI
#from pyNN import nest
import sys
import mozaik.controller
from mozaik.controller import run_workflow, setup_logging
import mozaik
from experiments import create_experiments_cortical_stimulation_luminance_exc
from model im... | [
"antolikjan@gmail.com"
] | antolikjan@gmail.com |
c62fe14864753058a083238e42d0d05938042b0f | 296794e1ce005f86bc338d0a5eed690a64aa86da | /examples/buttons.py | 784207302b5ab971bef40496dd2666fb7b6c381c | [] | no_license | alfredocdmiranda/pyglet-gui | 5407119a2cd832f82490d5d994b70cc5ae49f58e | 1af34b14e818dab57da0423c3e7189d55527edae | refs/heads/master | 2020-05-30T12:26:40.064621 | 2014-11-24T11:17:16 | 2014-11-24T11:17:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | from setup import *
from pyglet_gui.manager import Manager
from pyglet_gui.buttons import Button, OneTimeButton, Checkbox
from pyglet_gui.containers import VerticalContainer
from pyglet_gui.theme import Theme
theme = Theme({"font": "Lucida Grande",
"font_size": 12,
"text_color": [255, 25... | [
"jorgecarleitao@gmail.com"
] | jorgecarleitao@gmail.com |
dd26724d9a1c00f6e9f811bfa08d87a127e5cc18 | a44e832f18acd5a0616dd51d7df045c064ac81b9 | /weberetikettenbg/pipelines.py | 795d41047d1d65919f2090a9e29827f888893636 | [] | no_license | hristo-grudev/weberetikettenbg | e5d06896f405a51af6a0af6ee419b220c2185453 | 5d1d1ae750ee2c5476100e6d8468e4a37a5039dd | refs/heads/main | 2023-02-21T03:39:02.689869 | 2021-01-25T07:33:53 | 2021-01-25T07:33:53 | 332,665,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | import sqlite3
class WeberetikettenbgPipeline:
conn = sqlite3.connect('weberetikettenbg.db')
cursor = conn.cursor()
def open_spider(self, spider):
self.cursor.execute('''CREATE TABLE IF NOT EXISTS `weberetikettenbg` (
... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
4296aab59302b7649b01c7acc88eb3551b101ccb | 4dd7b50928d3684a999036f74725fad65eea4b1e | /interviews-master/LeetCode-Python-master/165 Compare Version Numbers.py | d94b7aa5d031fcd700d8c28a594970b6adde53d5 | [] | no_license | jiguang123/PythonLearningNote | ac52ac537dd249335f2fc49a31215553d2090cec | e09458b7c064cbd050b7120543b4c75309c1d7f2 | refs/heads/master | 2021-08-23T02:35:43.987572 | 2017-12-02T15:24:23 | 2017-12-02T15:24:23 | 111,756,217 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | '''
Compare two version numbers version1 and version2.
If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.
You may assume that the version strings are non-empty and contain only digits and the . character.
The . character does not represent a decimal point and is used to separate num... | [
"1528840916@qq.com"
] | 1528840916@qq.com |
cb51aa913ce4086ee52c1f586b46be91cf277b9f | 51a6413af4995a221bb7cf9bce20a00acedcff9d | /snakify-problems-python/5/Remove the fragment.py | ff84b18ba4e92ad39c8472b905386044e58d9a20 | [] | no_license | famaxth/Way-to-Coding | 4dff099de31c1a5870cf72a2aaaab74fdcbfed36 | bcb2048898edf418b059ec506eb5ad1507889cfb | refs/heads/main | 2023-08-15T19:34:16.510571 | 2021-10-08T04:53:42 | 2021-10-08T04:53:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | s=input()
a=s.find('h')
b=s.rfind('h')
print(s[:a]+s[b+1:]) | [
"jobin25051999@gmail.com"
] | jobin25051999@gmail.com |
4b760077aab5713a3e42030e22a611acf233b372 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_1x_lvis_v1.py | da41709eb663fe3b71e4f2ddf829dd4edfc56317 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,751 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
ec2a6571744bbe539c05739c4c35ca74e64afac4 | 0373adc3dc21eec19652176de743e68b358a5e83 | /gbgb/export/gff3.py | fd13c632665c2b546f24cf2d018b0e0c784aa093 | [
"Apache-2.0"
] | permissive | wangdi2014/goodbye-genbank | 72c0548057e6b3862fa2d25488bb7e0b4ced67fe | 99305997df1c42bf8c5f21204e094935f5803459 | refs/heads/master | 2020-06-23T18:44:44.385411 | 2016-04-27T16:00:25 | 2016-04-27T16:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | from gbgb import single
class GFF3Writer(object):
def __init__(self):
pass
def write(self, record, fp, include_sequence=False):
pass
def write_feature(self, feature, fp, sequence=None):
pass
def _feature_id(self, feature):
"""
Uses the following steps to fi... | [
"lars@lyschoening.de"
] | lars@lyschoening.de |
b1d16e7725f8f6214344592f7d0a806eb694a7ef | 796613525c40a241b0f88ceb761838a5bca311e1 | /uncertainties/PDF/mkPDFFlatTrees.py | 2bfa3ec28bce600b38d9e4a6208804ec6a595700 | [] | no_license | UAEDF/vbfHbb | 377e956a2d002eacd2090a4abbaa6bffb141454e | ecd5bfefa3db8d2c8283e306d68da42de44f7e39 | refs/heads/master | 2020-04-22T16:54:48.622168 | 2015-12-26T16:07:44 | 2015-12-26T16:07:44 | 12,751,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | #!/usr/bin/env python
import sys,os,json,re
basepath=os.path.split(os.path.abspath(__file__))[0]
sys.path.append(basepath+'/../../common/')
tempargv = sys.argv[:]
sys.argv = []
import ROOT
from ROOT import *
sys.argv = tempargv
from toolkit import *
from write_cuts import *
import main
# OPTION PARSER #############... | [
"sara.alderweireldt@cern.ch"
] | sara.alderweireldt@cern.ch |
23bd0d96e902fa2fc707bf4d927deeaacf85cc0b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1595491_1/Python/Masaki/googlers.py | 2078f578ed42e01b34958c29c602aff0859b4aab | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | def best(x,y,p,l):
m=0
if p==0:
return(x)
for i in range(0,x):
if (l[i]>0) and (l[i]>=3*p-2):
m=m+1
elif (l[i]>0) and (y>0) and (l[i]==3*p-3 or l[i]==3*p-4):
m=m+1
y=y-1
return(m)
file=input("filename\n")
inp=open(file,"r")
n=int((inp.readline()).strip())
out=open("googlerslarge.txt","w... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
fe69099fb453813da0e7a65fe518e5075b8d05c4 | 92e31ccc6f1dae3d62b727b7adaddb894e72b9a1 | /trunk/examples/kusp/subsystems/gsched/tools/gschedctrl | f560544c00fa7cb6570e39a2c04df5c8cac0cf09 | [] | no_license | dillonhicks/ipymake | 3ae9fe8a976faf8f41b8ee2bf2b8d20eee856000 | dbd4fc09e468d16a2de8f4be2357e8b4f64a702c | refs/heads/master | 2020-04-13T01:31:36.480051 | 2013-06-20T19:39:27 | 2013-06-20T19:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,987 | #!/bin/env python
""" gschedctrl
Group Scheduling API Python Controller Program
@author: Dillon Hicks
@organization: KUSP
@contact: kusp[at]googlegroups[dot]com
@contact: hhicks[at]ittc[dot]ku[dot]edu
@summary: Python Interface for the Group Scheduling API. Used to load configuration files
into Group Scheduling as a ... | [
"hhicks@ittc.ku.edu"
] | hhicks@ittc.ku.edu | |
5bf058556c6750d9fc5e6a3b55fe1876365bb826 | e8ec7fa19810e28b0ad406aa561bd04bc5f1ef3d | /examples/07_files/script_sh_ip_int_br_list.py | 394491ac4fd7873111ff1edad2a1368ac7048705 | [] | no_license | ry7tam/pyneng-online-11-jun-aug-2021 | 7695c7a284330a1626d9ab174f1672c48b3a1493 | 01d4aa5124e457c0d8abe9a4abe9f9c41df6f501 | refs/heads/main | 2023-08-19T21:58:21.195163 | 2021-10-17T17:51:42 | 2021-10-17T17:51:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from pprint import pprint
result = {
"FastEthernet0/0": "15.0.15.1",
"FastEthernet0/0": "15.0.15.1",
"FastEthernet0/0": "15.0.15.1",
}
result_list = []
with open("sh_ip_int_br.txt", "r") as f:
for line in f:
line_list = line.split()
# if len(line_list != 0):
# if line_list:
... | [
"pyneng.course@gmail.com"
] | pyneng.course@gmail.com |
4f345dded448bd5881f7f83908c62e842d38c17c | 921f5c21500eb3526d153c6b50fb73bbfe4ecef9 | /3.2 Complete Search/Iterative 3D Easier/p735.py | bef7e29c034b8273d2837b6300abcc57ccffe564 | [] | no_license | alex-stephens/competitive-programming | c3c2919b1e3978e2f498f2d53837774b490c2a3c | 833363f56ef9ada91952c501829a8f430db0caf5 | refs/heads/master | 2021-09-13T18:25:22.432073 | 2018-05-03T00:46:39 | 2018-05-03T00:46:39 | 119,809,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # Competitive Programming 3
# Problem 735
from bisect import bisect_left
scores = sorted([x for x in range(1,21)] + [2*x for x in range(1,21)] \
+ [3*x for x in range(1,21)] + [0] + [50])
scores = list(set(scores))
length = len(scores)
print(scores)
while True:
N = int(input())
if N < 0:
... | [
"alexstephens9@gmail.com"
] | alexstephens9@gmail.com |
e6e24b1a60273d6aa935da5622c3428790510610 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /concrete_instances/register-variants/vfmaddsub132ps_xmm_xmm_xmm/instructions/vfmaddsub132ps_xmm_xmm_xmm/vfmaddsub132ps_xmm_xmm_xmm.gen.vex.py | ede9a0222794b92a5c62dd9f986509891bcb6da4 | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import angr
proj = angr.Project('./instructions/vfmaddsub132ps_xmm_xmm_xmm/vfmaddsub132ps_xmm_xmm_xmm.o')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
c538e77f89805161628aed6cdb98c72ec0443262 | be97cd0e64f1ccae0bc80a55d8b118c1e5696286 | /driver/forms.py | e1904a774a6b717f364afc5f87ee7abd5b5ed8d4 | [] | no_license | miyanda2/Driver-Qr | 3f27b33d8a30ebf9d76acc3dc5f785047763717b | a3fe15f7b7bbe63de3ee6ef9de97c378d2a16e4f | refs/heads/master | 2022-05-03T03:58:14.399863 | 2020-01-09T00:27:18 | 2020-01-09T00:27:18 | 221,199,337 | 0 | 1 | null | 2022-04-22T22:59:34 | 2019-11-12T11:14:41 | JavaScript | UTF-8 | Python | false | false | 6,334 | py | from django import forms
from .models import Driver,FieldNumber
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm,AuthenticationForm
class AddDriverForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fie... | [
"gootech442@yahoo.com"
] | gootech442@yahoo.com |
7862b230e487982016b14fdf87773e012f10b9b1 | a7d4699663dd467352eaf5a1b809669be0568071 | /backend/delivery_order/migrations/0001_initial.py | 9966dc2551732ccde2faad027d5e6c41fd44ccac | [] | no_license | crowdbotics-apps/try-to-win-20414 | 31e3bc5b807ede401177b841eff2e83aa321c05c | fd0690422c13ea55e2445fbdf8e4072a9ba702b3 | refs/heads/master | 2022-12-18T03:27:49.656207 | 2020-09-18T22:23:35 | 2020-09-18T22:23:35 | 296,728,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | # Generated by Django 2.2.16 on 2020-09-18 21:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('menu', '0001_initial'),
('delivery_user_profile', '0001_initial'),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fd78d6b55f79ce7f0c2c057260cec6b5d3afa644 | a8769709aeb7299fa3757f0e7bba5c617eb8cfe3 | /lesson-3/k8s/lib/python2.7/site-packages/kubernetes/client/models/v1beta2_daemon_set_list.py | bfbcf68ab014ae2eadfe2d1dd18816c05943bebd | [
"Apache-2.0"
] | permissive | simox-83/workshop-k8s | 2ac5e8b282bb7c3337acc726a7d972717bf649cc | 04cb18e8b5925a3cfd84ca316952a6cb64960b31 | refs/heads/master | 2020-03-31T20:52:21.421995 | 2018-10-11T14:43:08 | 2018-10-11T14:43:08 | 152,558,678 | 0 | 0 | Apache-2.0 | 2018-10-11T08:37:20 | 2018-10-11T08:37:20 | null | UTF-8 | Python | false | false | 6,558 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.11.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"simone.dandreta@concur.com"
] | simone.dandreta@concur.com |
244b4fe306a6533f530ce054878e821d5bb8fc6b | 18e687608ff326fae4d1e1604cf452f086f99559 | /all.py | 9ecca2700d0499e7f7ce4e75c187b4b6cdff2546 | [
"Apache-2.0"
] | permissive | nu11byt3s/lms-ml | 955bad451ddcb78e464227294496ee0a92be08c0 | c0ea63f09d4125b0ae9033fd8b0a4aab2604bb42 | refs/heads/main | 2023-08-13T08:09:53.097312 | 2021-10-12T09:51:31 | 2021-10-12T09:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from profiles.models import Student
user=Student.objects.get(id=1)
print(user.__dict__) | [
"farsin310yeariha9701@gmail.com"
] | farsin310yeariha9701@gmail.com |
ee5719d712052f7fa42a3a999adad95b8ce75a38 | e7c03b71f26c463b2670c52cd2fddbc198e3c8cb | /apps/sorm_export/serializers/individual_entity_serializers.py | 9aadf0ce9be294732754b309c2463b4ff2b3a1ac | [] | no_license | nerosketch/djing2 | 71cc96f4829fc047d788dd7d8a94f1035e9740f9 | 1fbb0941f26389cbfdc8015527ab0d426c2e2c01 | refs/heads/master | 2023-01-13T15:12:50.492646 | 2022-11-18T11:24:21 | 2022-11-18T11:24:21 | 196,469,351 | 7 | 3 | null | 2020-02-29T19:38:37 | 2019-07-11T21:50:34 | Python | UTF-8 | Python | false | false | 24,169 | py | from django.core import validators
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
from sorm_export.models import (
CommunicationStandardChoices,
date_format, datetime_format,
CustomerDocumentTypeChoices
)
class CustomerRootObjectFormat(serializers.Serializer... | [
"nerosketch@gmail.com"
] | nerosketch@gmail.com |
77913486a24c2d1cd1bae083581cef4f21144f6b | 6580ba5d135c4f33f1a0996953ba2a65f7458a14 | /applications/lteadmin302/models/fdnavbarform2.py | 29c8b5887af53173892c0b386ae750f03269f263 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | ali96343/facew2p | 02b038d3853691264a49de3409de21c8a33544b8 | a3881b149045e9caac344402c8fc4e62edadb42f | refs/heads/master | 2021-06-10T17:52:22.200508 | 2021-05-10T23:11:30 | 2021-05-10T23:11:30 | 185,795,614 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | db.define_table( 'dnavbarform2',
Field( 'f0', 'string', label= 'f0', default= 'w2p f0' ),
) | [
"ab96343@gmail.com"
] | ab96343@gmail.com |
b82e81fa318b2f69b98e17ab1dfa203993ccdfc8 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayPayApplepayTransactionauthtokenCreateResponse.py | c2a6405063c24b70faee6ec71c3619b16377cf4e | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,821 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.BaseOpenApiResponseHeaderDTO import BaseOpenApiResponseHeaderDTO
class AlipayPayApplepayTransactionauthtokenCreateResponse(AlipayResponse):
def __init__(self):
... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
f824b4c676a325865e2009431ceae4a037e802c1 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /raw_scripts/132.230.102.123-10.21.11.31/1569574036.py | 1cfcd4f0556aced15ede1431861dbab33f5ff3c8 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisors(n: int) -> list:
"""Calculates all the divisors of a given number.
Args:
A natural number n.
Returns:
A list of all divisors of n.
"""
result = []
for d in range(1, n + 1):
... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
77141b8c02140d55581e37831af2e92c2e8cee3c | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/l2/egrbytes1year.py | 0b2cfcfe8bdebe9c126f80f8ef98d0600e83fb7b | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 20,638 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
56d0eadd33bb222597d55405e8f71c2f288408f7 | cea30aead7f0b529ee072c1bcab2896777e1408d | /PreprocessingCropsData/venv/Lib/site-packages/sklearn/metrics/_classification.py | 14cd4949f5fc45e42264e946090c5cefe41dd7be | [] | no_license | pgj9702/FarmSolution | 3730ab3ca983b335ed48a60935c5fa6e3983cbb1 | a8cacc45b8519e79b51ab65b9539a01f5006e64f | refs/heads/master | 2023-03-30T15:41:10.312044 | 2021-03-31T08:47:23 | 2021-03-31T08:47:23 | 334,019,778 | 0 | 1 | null | 2021-02-22T09:32:57 | 2021-01-29T02:52:46 | Python | UTF-8 | Python | false | false | 97,176 | py | """Metrics to assess performance on classification task given class prediction.
Functions named as ``*_score`` return a scalar value to maximize: the higher
the better.
Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize:
the lower the better.
"""
# Authors: Alexandre Gramfort <alexandre.gr... | [
"cao147147@naver.com"
] | cao147147@naver.com |
dc7fea2916735c383bf19d5cf2bd90eee79a8aa4 | 52266a44e2aca241707984e3b138775681b3e95f | /Exercise/多任务/协程/2、yield 生成器使用浅析.py | 37e27f3052a6155370c11d93cab3b55ca98c8de1 | [] | no_license | Mr-hongji/pythonNote | 91b1252711ce0b919fc365932276b89d85d4c16b | ff5eda0c8f63345de4d98cff8f0f7ab5254c77a6 | refs/heads/master | 2020-04-11T14:49:39.637983 | 2019-05-26T09:21:09 | 2019-05-26T09:21:09 | 161,869,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,912 | py | # -*- coding:utf-8 -*-
''''''
'''
可能听说过,带有 yield 的函数在 Python 中被称之为 generator(生成器),何谓 generator ?
生成器的用处主要可以迭代
当一个函数中含有yield时,它不再是一个普通的函数,而是一个生成器.当该函数被调用时不会自动执行
先抛开 generator,以一个常见的编程题目来展示 yield 的概念。
'''
'''
如何生成斐波那契數列
斐波那契(Fibonacci)數列是一个非常简单的递归数列,除第一个和第二个数外,
任意一个数都可由前两个数相加得到。用计算机程序输出斐波那契數列的前 N 个数是一个非常简单... | [
"shihongji@xiaoneng.cn"
] | shihongji@xiaoneng.cn |
9b113bbf12caf403ff9af75eb1c5d1f7d728349c | e37fa62da82ae60561e59027f8626facc9728b4a | /astroML_testbed/lombscargle_sim.py | 0d6aa995d3d85f76a07357cd356f4e78ba7edcff | [] | no_license | nhuntwalker/mystuff | ea05551ae17cfc0a6e4286a0dd97fe85f39bfe89 | bf2e79a1213fea1249ce93ef28d0caeffc710eb1 | refs/heads/master | 2021-01-19T01:04:22.215725 | 2016-06-23T00:22:22 | 2016-06-23T00:22:22 | 13,390,985 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | import numpy as np
import matplotlib.pyplot as plt
from gatspy.periodic import LombScargle
import sys
N_trials = 10000 # 10,000
N_pts = 1000
# time array
t = np.linspace(0, 100, N_pts)
# fnum = eval(sys.argv[1])
W = [50, 500, 5000]
scores = np.zeros((N_trials, len(W)))
for ii in range(N_trials):
for jj in ra... | [
"nhuntwalker@gmail.com"
] | nhuntwalker@gmail.com |
a0297528c51ad8d60bc241f8297d19590c4c50a5 | bf634993187db67766662c635879caf545b10d3d | /deep500/frameworks/caffe2/op_validation.py | d253215b29ece6c01500491d08cb6a40f7b62925 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | deep500/deep500 | e94b1fa067466adf7b6b4a2d7bba06a6f9a07a3c | cd9b21ec9d494388d5e44ac1057d9bedea44d9ba | refs/heads/master | 2022-06-02T19:26:10.368021 | 2022-05-23T12:01:31 | 2022-05-23T12:01:31 | 153,253,963 | 93 | 28 | BSD-3-Clause | 2022-05-23T12:01:32 | 2018-10-16T08:53:53 | Python | UTF-8 | Python | false | false | 2,659 | py | from typing import List, Any, Tuple, Optional
import numpy as np
from caffe2.proto import caffe2_pb2
from caffe2.python import core, workspace
from deep500 import DefaultOpMetrics, TestMetric
def test_nativeop_forward(
model,
inputs: List[Tuple[str, np.ndarray]],
reference_outputs: List[Tupl... | [
"talbn@inf.ethz.ch"
] | talbn@inf.ethz.ch |
4a18868a02f8e009b6736f11b36e23bdcbc63790 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02952/s404051778.py | 5b071b0bb708cb5795cd55ac0a04bb3bb38de262 | [] | 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 | 109 | py | n=int(input())
count=0
for i in range(1,n+1):
s=str(i)
if(len(s)%2!=0):
count+=1
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.