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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb73179a28bb142c274961bea46d714b9cd87d26 | 923a3f7be34e10931936823df0740d5d845d26e5 | /Courses/MCCT2009/Intro/execute_request.py | ff0b0046dc6b4bed302c6269c14964844dc8cb8d | [] | no_license | o-smirnov/public-documents | 0572ccef548a321e70b8cad2e2f2c249926f017d | 9e758ddf375c0f748376d2e37d0fea9661ed7c37 | refs/heads/master | 2021-01-15T23:40:03.183127 | 2015-06-04T17:18:22 | 2015-06-04T17:18:22 | 31,723,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | # file: ../beginners_guide/execute_request.py
from Timba.TDL import *
from Timba.Meq import meq
request_counter = 0
#------------------------------------------------------------------------
TDLRuntimeMenu("Parameters of the Request domain:",
TDLOption('ropt_num_freq', 'nr of freq channels',
... | [
"osmirnov@gmail.com"
] | osmirnov@gmail.com |
5d6c44da5a001474f63de5209baa264dfce32af8 | 353626e216085601f8be641be4c775a563fdc95e | /word_discovery.py | c4428bb88d5996cf78f774e79fa5218f517f8dff | [] | no_license | houking-can/english-word-discovery | 148729a4cda980b1b6a67ef49e6a934ffc53ac90 | 1c6276642ac360f411c9841daa2edd4bc4b959d2 | refs/heads/master | 2020-09-24T18:59:44.044460 | 2019-12-04T08:56:40 | 2019-12-04T08:56:40 | 225,821,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,307 | py | # ! -*- coding: utf-8 -*-
import struct
import os
import math
import logging
from collections import Counter
logging.basicConfig(level=logging.INFO, format=u'%(asctime)s - %(levelname)s - %(message)s')
from tqdm import tqdm
class KenlmNgrams:
"""加载Kenlm的ngram统计结果
vocab_file: Kenlm统计出来的词(字)表;
ngram_file... | [
"1240723224@qq.com"
] | 1240723224@qq.com |
4890cec1b8a3eaa8cba2cc2ab2ac83c56273c669 | 9d4a03990d94e9fb0248ec94875376c82139891a | /Python实战:四周实现爬虫系统/week_2/2_1/coed_of_video_test.py | 3c7ec1007817205d0834c78e477ba2709266b5bf | [] | no_license | wenhaoliang/learn-python | 114744f3c94859f665a998b03c6d5f5d908fb94d | bd31daa34cc79f3171a2e195c149af60a7e0ebed | refs/heads/master | 2020-04-16T02:14:36.345629 | 2019-07-06T12:26:23 | 2019-07-06T12:26:23 | 58,053,238 | 7 | 7 | null | 2017-07-21T09:35:55 | 2016-05-04T13:14:26 | Python | UTF-8 | Python | false | false | 574 | py | import pymongo
client = pymongo.MongoClient('localhost',27017)
walden = client['walden']
sheet_ta = walden['sheet_ta']
path = 'walden.txt'
# with open(path,'r') as f:
# lines = f.readlines()
# for index,line in enumerate(lines):
# data = {
# '序列':index,
# '句子' :line,
# ... | [
"641541452@qq.com"
] | 641541452@qq.com |
9aab9e36ef99567c70e4715d279ae9ef813a672e | 04d8f0b5a291ec6c3470f4498dd64ab9c1845f96 | /library/built-in/database/dbm/ex.py | e2347d6fe6f3c862de6cdd12869a7f251d5b925c | [] | no_license | volitilov/Python_learn | 8c0f54d89e0ead964320d17eeddeacd5b704b717 | f89e52655f83a9f1105689f0302ef5b0ee30a25c | refs/heads/master | 2022-01-10T13:39:59.237716 | 2019-07-17T11:39:10 | 2019-07-17T11:39:10 | 70,601,503 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import dbm
# :::::::::::::::::::::::::::::::::::::::::::::::::::
db = dbm.open('test_db', 'c')
db['color'] = 'yellow'
db['base'] = 'postgresql'
# print(len(db)) # 2
# print(db['base']) # b'postgresql'
db.close() | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
ab00117ee31dc1546140039d63966c6b83f2cafc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00001/s250444754.py | 9c0e0cef29bc195aedb50f3701974ecffe83e6bb | [] | 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 | 111 | py | h=[]
for i in range(10):
h.append((int)(input()))
h.sort()
h.reverse()
for i in range(3):
print(h[i])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b3a5bd338a2ef2f1cffb1d0d5665b8859fd3b5f5 | d785e993ed65049c82607a1482b45bddb2a03dda | /nano2017/cfg2018/WZTo3LNu_0Jets_MLL-4to50_cfg.py | 78a3135cc48d53686e3d778eb84aa962dc40c43e | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'WZTo3LNu_0Jets_MLL-4to50_2018'
config.General.transferLogs= False
config.section_("JobType")
config.JobType.pluginName = '... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
b7a171a8ca7594633d34875c4d50705544339839 | 3b13020b492003912b2da62ff29a00e584a63766 | /examples/porta.py | 0dd8608dd36b1443ee39805620dc2511b8d38284 | [
"MIT"
] | permissive | tigertv/secretpy | c0d62a2934fa5ac1e07f1c848429fc062e2f2976 | e464f998e5540f52e269fe360ec9d3a08e976b2e | refs/heads/master | 2021-08-16T00:05:53.089587 | 2021-08-09T23:55:42 | 2021-08-09T23:58:09 | 147,110,283 | 65 | 15 | MIT | 2021-05-28T16:49:09 | 2018-09-02T18:15:14 | Python | UTF-8 | Python | false | false | 1,755 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
from secretpy import Porta, CryptMachine, alphabets as al
from secretpy.cmdecorators import UpperCase, Block, SaveAll
alphabet = al.GERMAN
plaintext = u"schweißgequältvomödentextzürnttypografjakob"
key = u"schlüssel"
cipher = Porta()
print(plaintext)
enc = cipher.encrypt(... | [
"maxvetrov555@yandex.ru"
] | maxvetrov555@yandex.ru |
3b22ec060a5ee9a4d7e472fcd58efc85a0fa7166 | 05caf48bd067c050666026b75686f23d02327378 | /190.reverse-bits.py | 0354dd2a79eead8c8799d5b9bbb18ef9c64541ca | [
"MIT"
] | permissive | elfgzp/Leetcode | 3b6fa307c699fd5a1ba5ea88988c324c33a83eb7 | 964c6574d310a9a6c486bf638487fd2f72b83b3f | refs/heads/master | 2023-08-21T23:11:38.265884 | 2020-10-17T11:55:45 | 2020-10-17T11:55:45 | 168,635,331 | 3 | 0 | MIT | 2023-07-21T03:50:43 | 2019-02-01T03:14:49 | Python | UTF-8 | Python | false | false | 1,718 | py | #
# @lc app=leetcode.cn id=190 lang=python
#
# [190] 颠倒二进制位
#
# https://leetcode-cn.com/problems/reverse-bits/description/
#
# algorithms
# Easy (34.07%)
# Total Accepted: 10.9K
# Total Submissions: 28.7K
# Testcase Example: '00000010100101000001111010011100'
#
# 颠倒给定的 32 位无符号整数的二进制位。
#
#
#
# 示例 1:
#
# 输入: 00000010... | [
"741424975@qq.com"
] | 741424975@qq.com |
28a5e30cebf3bae89a61faf4acd46d0b226d4ceb | 8567438779e6af0754620a25d379c348e4cd5a5d | /third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/buildbot_results.py | 9f7c39861ca14381afdc1e8db9e3c93347493dcf | [
"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 | thngkaiyuan/chromium | c389ac4b50ccba28ee077cbf6115c41b547955ae | dab56a4a71f87f64ecc0044e97b4a8f247787a68 | refs/heads/master | 2022-11-10T02:50:29.326119 | 2017-04-08T12:28:57 | 2017-04-08T12:28:57 | 84,073,924 | 0 | 1 | BSD-3-Clause | 2022-10-25T19:47:15 | 2017-03-06T13:04:15 | null | UTF-8 | Python | false | false | 8,191 | py | # Copyright (C) 2012 Google 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
# notice, this list of conditions and the ... | [
"hedonist.ky@gmail.com"
] | hedonist.ky@gmail.com |
ebc6bcb0e32507f21be5c31bd75c0749d8cfa2a2 | d7532e2ac4983c042f50525aab564597db154719 | /day2/strings_2/5.py | 28eea9134e6d119f85cd7e9ebcb7e881cc234697 | [] | no_license | shobhit-nigam/qti_panda | d53195def05605ede24a5108de1dbfbe56cbffe7 | 35d52def5d8ef1874e795a407768fd4a02834418 | refs/heads/main | 2023-08-24T14:56:34.934694 | 2021-10-22T09:59:05 | 2021-10-22T09:59:05 | 418,381,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | spain = [34, 67, 12, 55, 89]
sep = '__'
strx = sep.join(str(x) for x in spain)
print(strx)
# another way
# list comprehensions
| [
"noreply@github.com"
] | shobhit-nigam.noreply@github.com |
67b64deafbb427a7ebd867ae2548343252614cb8 | 13ea6fa027c8ae33852bde3335846cdaab78ee71 | /DataScienceWithPython/sample_python_code/ml/supervised/MNIST-knn.py | 2b9c0d32ff6783e60788238adaea7dd368a1f00c | [] | no_license | dmonisankar/pythonworks | c98de04b191135451556ca9d1ee513a0a69f2edb | 4f3a14460272ec959c2f2e6975814d9ac43cb90a | refs/heads/master | 2023-03-31T00:36:46.016403 | 2020-06-11T05:39:36 | 2020-06-11T05:39:36 | 271,455,493 | 0 | 0 | null | 2021-03-20T04:19:45 | 2020-06-11T05:00:00 | Jupyter Notebook | UTF-8 | Python | false | false | 3,736 | py | # Train/Test Split + Fit/Predict/Accuracy
# Now that you have learned about the importance of splitting your data into training and test sets, it's time to practice doing this on the digits dataset! After creating arrays for the features and target variable, you will split them into training and test sets, fit a k-NN ... | [
"das.monisankar@gmail.com"
] | das.monisankar@gmail.com |
78d27f7b1092241934f1510f40ad8bfc3ece1523 | 8be2c3a2ee48b004f5894899f5b06d2c8a91d044 | /1290. Convert Binary Number in a Linked List to Integer.py | ae85f70de8e54ae6a54c9caa78f230b822a70c87 | [] | no_license | themockingjester/leetcode-python- | 8ea8caf047b4ad2ebc63d98278d96f0bdd788a34 | eda7d6d1d1860c4382b20acfb69e03c648845e72 | refs/heads/main | 2023-07-07T10:02:45.796512 | 2021-08-11T03:53:42 | 2021-08-11T03:53:42 | 337,762,767 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def check(self,root):
if root:
self.s+=str(root.val)
self.check(root.next)
def getDecimalValue(self, head: ListNo... | [
"noreply@github.com"
] | themockingjester.noreply@github.com |
288debbd2d6ead371f0da1214457fd35434bc1eb | 51d0377511a5da902033fb9d80184db0e096fe2c | /10-merging-dataframes-with-pandas/3-merging-data/05-merging-dataframes-with-outer-join.py | 7a31458d2aa2968025b9b9bae577f0e16510903a | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | '''
Merging DataFrames with outer join
This exercise picks up where the previous one left off. The DataFrames revenue, managers, and sales are pre-loaded into your namespace (and, of course, pandas is imported as pd). Moreover, the merged DataFrames revenue_and_sales and sales_and_managers have been pre-computed exact... | [
"a@skrasnov.com"
] | a@skrasnov.com |
865583beca3fb707cdb0ca6e0bf1a2c5ad855011 | 5577a04c006e73b8a40f68055b2173ffe34ce83e | /htsint/version.py | 4cd84d84873f49809c25cbb132ee84a7af132708 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | changanla/htsint | 1617c56bd5f02ab01e0de80d3d06d2d75983a376 | a343aff9b833979b4f5d4ba6d16fc2b65d8ccfc1 | refs/heads/master | 2020-03-16T13:10:15.082839 | 2017-05-24T21:27:27 | 2017-05-24T21:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | MAJOR = 0
MINOR = 5
MICRO = 2
__version__ = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
| [
"adamricha@gmail.com"
] | adamricha@gmail.com |
db3f25723dd795bcab80fc1f8b11a28cb554856d | 74d0235c4eed1e4bc57dd906d2b3958cb48b9dba | /test/package/test_directory_reader.py | 576a7f0c064cd5611c6407557e00686670650e4a | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | anjali411/pytorch | a31ecf84fe892f19452b1063f2b1de1f88d84bb0 | 51b67f2bca3014aa5e7f675237543b8f82743032 | refs/heads/master | 2022-07-22T16:58:56.800837 | 2021-10-14T17:22:15 | 2021-10-14T17:23:55 | 208,863,312 | 1 | 0 | NOASSERTION | 2020-05-14T06:54:25 | 2019-09-16T17:56:13 | C++ | UTF-8 | Python | false | false | 10,506 | py | # -*- coding: utf-8 -*-
import os
import zipfile
from sys import version_info
from tempfile import TemporaryDirectory
from textwrap import dedent
from unittest import skipIf
import torch
from torch.package import PackageExporter, PackageImporter
from torch.testing._internal.common_utils import (
run_tests,
IS_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
667999762976f5897af604a84543897c3dfe2b68 | 568d7d17d09adeeffe54a1864cd896b13988960c | /month03.2/django/day05/mysitel3/otm/migrations/0001_initial.py | b086e0cf6fc07d1aa13bbaa6ef12c79c1ce841bb | [
"Apache-2.0"
] | permissive | Amiao-miao/all-codes | e2d1971dfd4cecaaa291ddf710999f2fc4d8995f | ec50036d42d40086cac5fddf6baf4de18ac91e55 | refs/heads/main | 2023-02-24T10:36:27.414153 | 2021-02-01T10:51:55 | 2021-02-01T10:51:55 | 334,908,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | # Generated by Django 2.2.12 on 2021-01-13 07:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Publisher',
fields=[
... | [
"895854566@qq.com"
] | 895854566@qq.com |
89bd7df5f7a432880d48493b2c552aee2bc579cf | a19275ff09caf880e135bce76dc7a0107ec0369e | /catkin_ws/src/robot_python/nodes/int_adp_imp_gazebo_node.py | 507b24e5a419629eee10af64ead79937980c61a4 | [] | no_license | xtyzhen/Multi_arm_robot | e201c898a86406c1b1deb82326bb2157d5b28975 | 15daf1a80c781c1c929ba063d779c0928a24b117 | refs/heads/master | 2023-03-21T14:00:24.128957 | 2021-03-10T12:04:36 | 2021-03-10T12:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | #!/usr/bin/env python
# -*-coding:utf-8-*-
#本文档用于上层积分自适应阻抗控制仿真
#程序员:陈永厅
#版权:哈尔滨工业大学
#日期:初稿:2020.1.11
import rospy
from std_msgs.msg import Float64MultiArray
from sensor_msgs.msg import JointState
from geometry_msgs.msg import WrenchStamped
import threading
import time
import numpy as np
#自定义函数
from robot_python impor... | [
"qyz146006@163.com"
] | qyz146006@163.com |
1a12a25abec059bc393ea4132c9fce703a963a74 | d6ea8bd65e7fffc12575737817083d6456eec828 | /vigenere.py | 2bb25639d7d300467bcedb4607ff5a9a22628d91 | [] | no_license | informatiquecsud/cs-simply-utils | 3888ce47d77e2732044efe555a66c87c25d100e7 | 4c6d82897fbd96f3718f81920a324c379988e403 | refs/heads/master | 2022-10-05T02:27:25.209972 | 2022-09-16T07:53:39 | 2022-09-16T07:53:39 | 217,407,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | from utils import alphabet, shift_char
class VigenereCypher:
def __init__(self, key):
self.key = [0] * len(key)
alpha = alphabet()
for i, el in enumerate(key):
if isinstance(el, int):
self.key[i] = el
elif isinstance(el, str):
if el... | [
"cedonner@gmail.com"
] | cedonner@gmail.com |
b81111166f9a39b8a29e524ea7739667bfcca158 | 350db570521d3fc43f07df645addb9d6e648c17e | /0355_Design_Twitter/solution.py | 8d3edca5abd4d8fcb391e591c9019e0f9172a4af | [] | no_license | benjaminhuanghuang/ben-leetcode | 2efcc9185459a1dd881c6e2ded96c42c5715560a | a2cd0dc5e098080df87c4fb57d16877d21ca47a3 | refs/heads/master | 2022-12-10T02:30:06.744566 | 2022-11-27T04:06:52 | 2022-11-27T04:06:52 | 236,252,145 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | '''
355. Design Twitter
Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able
to see the 10 most recent tweets in the user's news feed. Your design should support the following methods:
postTweet(userId, tweetId): Compose a new tweet.
getNewsFeed(userId):... | [
"bhuang@rms.com"
] | bhuang@rms.com |
95612479cdfabbcffd276a39d0b4137bbd5a1c0d | 62ef47b5e63042c46f2a5dd360bfb3dc65cc611f | /geomdl/vis.py | 5bf49d4e15e5a13a3f41e9ef6283fa2b9c3ceca2 | [
"MIT",
"Python-2.0"
] | permissive | Mopolino8/NURBS-Python | 3abdd7266312779cc1e860608c304b5703420ace | 009089b27b2a8308b1834ba41b429471346b2654 | refs/heads/master | 2020-04-17T22:29:48.418346 | 2019-01-18T17:09:19 | 2019-01-18T17:09:19 | 166,996,473 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,589 | py | """
.. module:: vis
:platform: Unix, Windows
:synopsis: Provides abstract base classes for visualization modules
.. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com>
"""
import abc
import six
from typing import Any, Sequence, List
# Initialize an empty __all__ for controlling imports
__all__ = []
@six... | [
"orbingol@gmail.com"
] | orbingol@gmail.com |
81c2bbd50fbc15ba6b4e23ef213f426d6fd669ee | 1eaa6c2500868d0c60b5b2cd552cd671b635de32 | /Algorithm/sword of offer/14.链表中倒数第k个结点.py | cb3067b70c193a8dddb22fc816f0869477255b87 | [] | no_license | jiangyuwei666/my-study-demo | f85f14a599c328addb5af09078d404f1139e0a82 | 9e2baef2f36f071f8903768adb8d5a5a8c1123f6 | refs/heads/master | 2022-04-30T16:47:24.715570 | 2022-03-24T09:08:43 | 2022-03-24T09:08:43 | 152,565,041 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | """
两个指针
首先两个指针都在头部,然后让第一个指针移动k-1个位置,此时第一个指针指向+k个位置的那个节点。
这个时候再同时移动两个节点当第一个指针移动到最后一个节点是时,第二个指针就指向了-k位置的节点。
"""
class ListNode:
def __init__(self, x):
self.x = x
self.next = None
def init_list(num_list):
node_list = []
for i in num_list:
node = ListNode(i)
node_list.append... | [
"739843128@qq.com"
] | 739843128@qq.com |
b63b7c3218e2814ed3fcd990e0e23b066dfd88dd | ecf77933549cb56ebde35df35556accc9684424d | /html_to_css.py | 1ddd48e7590e6bf5d37ee74ba9c3c1f7474dce08 | [] | no_license | jayd2446/cuda_html_ops | 3ba102fb87ba9f591fb9cd4ccad7dbc8fab53bf4 | 0fea8430aa057feafac167adbc18f08c647ef099 | refs/heads/master | 2020-05-31T12:18:38.938276 | 2018-08-31T09:35:20 | 2018-08-31T09:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import re
from cudatext import *
REGEX1 = r'\bclass\s*=\s*"(.+?)"'
REGEX2 = r"\bclass\s*=\s*'(.+?)'"
def do_html_to_css_clipboard(compact):
text = ed.get_text_sel()
if not text: return
res = re.findall(REGEX1, text, 0) + re.findall(REGEX2, text, 0)
res = sorted(list(set(res)))
if not res:
... | [
"support@uvviewsoft.com"
] | support@uvviewsoft.com |
934c03e88433588a4a2cb7d674fb33c1b3da2a36 | d50bb3387316a4f1a06fe4c84714568a73b2a125 | /tasks/utils.py | b47f431f31a462efa50b11ae15be1623ac038375 | [] | no_license | pmav99/fastapi_docker_compose | 8830006876db35d43614a38945581f9868aa31fc | 491ad3e31fc9ef1ac4306624ba27c945733ac103 | refs/heads/master | 2022-12-09T16:33:19.924385 | 2020-07-30T20:22:01 | 2020-07-30T20:22:01 | 249,724,494 | 1 | 0 | null | 2022-12-08T03:52:43 | 2020-03-24T14:06:22 | Dockerfile | UTF-8 | Python | false | false | 209 | py | import contextlib
import os
import pathlib
@contextlib.contextmanager
def chdir(dirname: str):
curdir = os.getcwd()
try:
os.chdir(dirname)
yield
finally:
os.chdir(curdir)
| [
"pmav99@gmail.com"
] | pmav99@gmail.com |
1ab6d8949c8d7742e9cf369e05fdc49f447c63d2 | 60096eba428275a28ab53d364aef0b9bc29e71c8 | /hris/api/users.py | 712b95f287ba42e8411e092d49989f3123ba0dca | [] | no_license | RobusGauli/hris_new | 30ef8d17aceceb5f6c8f69f65df508228cb31f33 | 634f18d162310df9331543f7a877cac619ee1622 | refs/heads/master | 2021-01-19T21:55:39.279378 | 2017-04-29T04:32:38 | 2017-04-29T04:32:38 | 88,724,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,091 | py | from hris.utils import hash_password, gen_access_token, decode_access_token
from flask import request, abort, jsonify, g
from functools import wraps
from hris.api import api
from sqlalchemy.exc import IntegrityError #foreign key violation #this won't come up oftern
from sqlalchemy.orm.exc import NoResultFound
from hri... | [
"user@Users-MacBook-Air.local"
] | user@Users-MacBook-Air.local |
6c81044eca74f7f61211a98dc724ffa9c7c7969a | a367a015dbc36287ca933955ded1ee58b5a2a61a | /swagger_client/api/v1fertilizer_to_registration_api.py | 96ecf2b9f7ded845fb1b9fc0b13746f187ed7549 | [] | no_license | kerniee/inno_intership_1_test_task | 70211e153450011c427df595a02e3574dfe7ed9f | fc0619ef54b00806a3b59f3c07c1c1684682d65b | refs/heads/master | 2023-05-23T02:24:40.083723 | 2021-06-21T16:15:04 | 2021-06-21T16:15:04 | 365,855,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,286 | py | # coding: utf-8
"""
Teleagronom
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re ... | [
"karapys.mor@gmail.com"
] | karapys.mor@gmail.com |
c2f6f2417db54c1403f0fd7961a24ede9f71b21c | 76b5be6d12c6885c8cb9ae458bf878a3dcf0401c | /DojoAssignments/Python2/PythonAssignments/Django/DjangoIntro/SessionWords/apps/session_words_app/views.py | 539759b21089b070bef198b2336a8eced707120c | [] | no_license | DaseinUXD/CodingDojo | ba1d532750d61a21feb401243c49e05623e9b8c2 | 19b2d0f0ce9f8c9d08747438412e5c988073f385 | refs/heads/master | 2020-03-11T16:36:51.312297 | 2018-09-19T22:32:09 | 2018-09-19T22:32:09 | 130,121,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect, HttpResponse
# Create your views here.
# Index view
def index(request):
return render(request, 'session_words_app/index.html')
def add(request):
if request.method=="POST":
return redirect(... | [
"markmatthewsphd@gmail.com"
] | markmatthewsphd@gmail.com |
79aa73692fd55784d617c6924ab841e36efee841 | fd97689f062e6d90837ea27b9a5e3de87bcd1e92 | /Servidor/MET-Server-udp.py | c79bc598c86aa8500e06b913a44a9d4c03e14fb1 | [] | no_license | Edresson/MET | 9f7b8a43bdea29ee844d0c98a20f0aef4afbcdd2 | 5945116d0d52fdf8f892a5f266bf6b51afb529eb | refs/heads/master | 2023-08-31T10:18:35.942324 | 2019-10-29T12:17:15 | 2019-10-29T12:17:15 | 93,848,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,525 | py | # -*- coding: utf-8 -*-
from threading import Thread
from PyQt4 import QtTest
from time import time
import time
from socket import *
import Motor
import celula
serverSocketMotor = socket(AF_INET, SOCK_DGRAM)
serverSocketMotor.bind(('', 12001))
serverSocketCelula = socket(AF_INET, SOCK_DGRAM)
serverSocketCelula.b... | [
"edresson1@gmail.com"
] | edresson1@gmail.com |
54203602ebefeb4d7e49a6c2cd32adf327c9e6e9 | df20dc807d2d9ba666377a2a23cbe80b268c75cd | /0 Python Fundamental/32a5_readCSVasDICT_noCSVpkg.py | 70ff4ebfcfdaa9b57a22e5f3a9a52a19d38883f8 | [] | no_license | stevenwongso/Python_Fundamental_DataScience | e9bb294017d0fcc05e2079f79f880ac8be726e11 | 706c61c8bdfcec1461328fa7a58a55a2d0f9f2d8 | refs/heads/master | 2021-01-04T07:32:11.856979 | 2020-02-13T05:18:06 | 2020-02-13T05:18:06 | 240,449,486 | 0 | 1 | null | 2020-02-14T07:12:16 | 2020-02-14T07:12:15 | null | UTF-8 | Python | false | false | 252 | py | # read csv as dict without csv package
myfile = open('32a4.csv', 'r')
data = []
for i in myfile.readlines()[1:]:
no = int(i.split(';')[0])
nama = i.split(';')[1].replace('\n','')
x = {'no': no, 'nama': nama}
data.append(x)
print(data) | [
"lintangwisesa@ymail.com"
] | lintangwisesa@ymail.com |
86ee833065018990ffb7d10de8b4eae90e0400fa | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/weather3.py | da29540c7ea77779f74cf0c9f89c0af03f26e5b3 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:01477c0dba3b4f14c6e88c20abc1a741e612745ccaadd12514f86251fcb26f5d
size 1382
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
c2c3b84b358107d0e1be19f8975fcf001efefb02 | 9147a96572715604a31b6c026b7608b6d26276e8 | /cfn_model/model/IAMManagedPolicy.py | 4d24b42f6b0516a2f905011d5e7faab8fef05b51 | [
"MIT"
] | permissive | rubelw/cloudformation-validator | 9890c024174640c79914f2f8bd153dc2900fc078 | 4ba3b05ae3abd3a941aa6a34419c594d8e0d0e5d | refs/heads/master | 2020-03-23T18:31:29.084701 | 2019-01-17T21:55:04 | 2019-01-17T21:55:04 | 141,914,515 | 6 | 1 | NOASSERTION | 2019-01-17T21:55:05 | 2018-07-22T16:58:55 | Python | UTF-8 | Python | false | false | 699 | py | from __future__ import absolute_import, division, print_function
from cfn_model.model.ModelElement import ModelElement
class IAMManagedPolicy(ModelElement):
"""
IAM managed policy model
"""
def __init__(self, cfn_model):
"""
Initialize
:param cfn_model:
"""
Mo... | [
"rubelwi@Wills-MacBook-Pro.local"
] | rubelwi@Wills-MacBook-Pro.local |
5591a8edf408ec43904d5a0e73a02795dc193eee | a183a600e666b11331d9bd18bcfe1193ea328f23 | /pdt/core/admin/__init__.py | 58e1d13908fc242d51b379fa54a382780b919b22 | [
"MIT"
] | permissive | AbdulRahmanAlHamali/pdt | abebc9cae04f4afa1fc31b87cbf4b981affdca62 | 5c32aab78e48b5249fd458d9c837596a75698968 | refs/heads/master | 2020-05-15T07:51:09.877614 | 2015-12-01T18:22:56 | 2015-12-01T18:22:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | """PDT core admin interface."""
from .case import CaseAdmin # NOQA
from .case_category import CaseCategoryAdmin # NOQA
from .case_edit import CaseEditAdmin # NOQA
from .ci_project import CIProjectAdmin # NOQA
from .deployment_report import DeploymentReportAdmin # NOQA
from .instance import InstanceAdmin # NOQA
fr... | [
"bubenkoff@gmail.com"
] | bubenkoff@gmail.com |
01e5ffbf994198ee773823897db4431035f17668 | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-lib-keychain-cfg/nc-create-xr-lib-keychain-cfg-20-ydk.py | 5c5384fcd79c34f4269bfd0585bb229e990d76bd | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 3,690 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, 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 required by applicab... | [
"deom119@gmail.com"
] | deom119@gmail.com |
6cc0e33277b45a17ffd8b11d609e36880c5ac4b5 | 5a281cb78335e06c631181720546f6876005d4e5 | /blazar-3.0.0/blazar/api/v1/utils.py | c6c359945627b31672386b79cba056931827683b | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 9,523 | py | # Copyright (c) 2013 Mirantis 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 required by applicable law or agreed to in writ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
889eb827f803875363cea68f5952d72e22de0ae9 | 3db5eeeb0d34e7f093a9f3d9750c270df4ba3845 | /blog/admin.py | a4138cc33360d508be75461be64727fa3c2f6d3d | [] | no_license | DeepakDarkiee/stackunderflow | b0d052d2b1ef62dbb948a2789abfb80fd097191b | d68161e5729bdb8033f5ae0c28379b1e89c31044 | refs/heads/master | 2022-10-13T10:16:34.104129 | 2020-06-04T07:44:38 | 2020-06-04T07:44:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | from django.contrib import admin
from .models import Post, Comment ,Category,Contact
from django_summernote.admin import SummernoteModelAdmin
class PostAdmin(SummernoteModelAdmin):
list_display = ('title', 'slug', 'status', 'category', 'created_on')
list_filter = ('status', 'created_on' ,'category')
searc... | [
"mdipakpatidar@gmail.com"
] | mdipakpatidar@gmail.com |
80ed4fcaa32b7bbe66686eaeffe9a665e2afbf26 | 629a62dc600b356e55b25b21c93d088f5bc8aa64 | /source/webapp/forms.py | 3710a393967147c566da58a87bcfcf5247950ce3 | [] | no_license | Azer-Denker/ex_9 | 70e70408355d602ff11817d6cc53d53c0f1e3b1f | bfb8272ebb1764a9a3b382f2cabb19778d5f5541 | refs/heads/main | 2023-05-04T23:41:22.362929 | 2021-05-29T13:05:06 | 2021-05-29T13:05:06 | 306,867,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django import forms
from webapp.models import Photo, Album
class PhotoForm(forms.ModelForm):
class Meta:
model = Photo
fields = ['photo_img', 'signature', 'album', 'status']
class AlbumForm(forms.ModelForm):
class Meta:
model = Album
fields = ['name', 'description']
| [
"azerarlen312@gmail.com"
] | azerarlen312@gmail.com |
26e9f1206b06f85917f4e41c797556210b4773d7 | 57dc9f8e67bb396ce6c7a96c699e943825b8cebe | /slowfast/models/video_model_builder.py | 9c529ef68386403c571a84e84958fccd62f5366f | [
"Apache-2.0"
] | permissive | akshaybankapure/SlowFast | 35cd914b9b0b64bf9d26c46a7e416ad30085e8bf | 57daed622e8bb4af7cb6d1d9fed4395bc19dfa50 | refs/heads/master | 2022-07-05T01:04:56.543577 | 2020-05-24T03:00:19 | 2020-05-24T03:00:19 | 266,459,214 | 0 | 0 | Apache-2.0 | 2020-05-24T02:59:30 | 2020-05-24T02:59:29 | null | UTF-8 | Python | false | false | 22,107 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""Video models."""
import torch
import torch.nn as nn
import slowfast.utils.weight_init_helper as init_helper
from slowfast.models.batchnorm_helper import get_norm
from . import head_helper, resnet_helper, stem_helper
fr... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cd4a79c68bdb5852d47593b9eae2e82afb13efcf | 01733042e84a768b77f64ec24118d0242b2f13b8 | /uhd_restpy/testplatform/sessions/ixnetwork/topology/ospfv3pseudointerface_bbc932877888c8c8400661ec299754a8.py | ccd8ef58ec5ea22207686188107961420a1e6fb2 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 13,844 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
43b9a78891cc24a21f373baf585e2e5eac2ae706 | b872ccff0c2f79886c0136b32da5f04cb8d3276c | /etcewrappers/emane/emaneshsnapshot.py | 41b82af702fc1382f8e41bee540758ecd9d07d0d | [] | no_license | prj8121/python-etce | 9c22b3a182f103f46b1d865d13ded277482e4a34 | bbd74a65280a09f3edc05457961b8c51ec009165 | refs/heads/master | 2022-11-18T05:19:19.324966 | 2020-04-02T15:15:47 | 2020-04-02T15:15:47 | 276,674,792 | 0 | 0 | null | 2020-07-02T14:57:07 | 2020-07-02T14:57:06 | null | UTF-8 | Python | false | false | 6,808 | py | #
# Copyright (c) 2015-2018 - Adjacent Link LLC, Bridgewater, New Jersey
# 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
# ... | [
"eschreiber@adjacentlink.com"
] | eschreiber@adjacentlink.com |
2825170807eb9df9a190facef2b577aa2de44ffe | 764f63ef031b38bde74657cd9bd198014ecfa0c7 | /alien.py | 82a55cbe8717ccdbb9cc68b2ba4f7b9fe6945b1e | [] | no_license | turkey66/alien_invasion | 4396668a8ca9737d340da9532d448cc90c7c3ed6 | dae2df7175a885c32951804c6ede6c53cedc749f | refs/heads/master | 2020-03-20T20:03:12.467496 | 2018-06-17T16:17:35 | 2018-06-17T16:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""表示单个外星人的类"""
def __init__(self, ai_settings, screen):
"""初始化外星人并设置其起始位置"""
super().__init__()
self.screen = screen
self.ai_settings = ai_settings
# 加载外星人图像,并设置其rect属性
self.image = pygame.ima... | [
"eric@example.com"
] | eric@example.com |
ec12cb00959d4c864928b34ae07a95a09be47e7e | e0934ca26ac6c3f8816952ceafb3c84ace34d6aa | /resources/lib/services/nfsession/nfsession_ops.py | 1f8a2160764d032869515e944132a3d60cbd33c4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | masQelec/plugin.video.netflix | 62e4f6416c0f9bf547a8a5980de9747f677236b6 | 90ebf3343ebeaf6b790fdb1048d78fe5bf127dde | refs/heads/master | 2023-02-09T17:07:36.200308 | 2021-01-04T01:36:55 | 2021-01-04T01:36:55 | 288,575,867 | 0 | 0 | MIT | 2021-01-04T01:36:56 | 2020-08-18T22:17:06 | Python | UTF-8 | Python | false | false | 14,863 | py | # -*- coding: utf-8 -*-
"""
Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix)
Copyright (C) 2020 Stefano Gottardo (original implementation module)
Provides methods to perform operations within the Netflix session
SPDX-License-Identifier: MIT
See LICENSES/MIT.md for more information.
"""
i... | [
"gottardo.stefano.83@gmail.com"
] | gottardo.stefano.83@gmail.com |
100386502e3c3fa6f1d4f6adbb120b741631dee0 | 113f803b721984992bdc8f2177056b0f60de546a | /ex20/ex20.py | 196cbc7f5b0a27f8d770e8b025470d262aa428c5 | [] | no_license | Na-Young-Lee/16PFA-Na-Young-Lee | ddb215b0dc9cb0572b96aa90d8db71fbbea13c13 | 6cdcea12fd46a5218f9b6a7cd4ac5ee5e347cbb7 | refs/heads/master | 2021-01-17T15:15:27.429510 | 2016-06-01T11:37:20 | 2016-06-01T11:37:20 | 53,923,583 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 1,160 | py | #-*-coding:cp949
from sys import argv # 시스템으로부터 매개변수를 가져온다
script, input_file = argv # 매개변수는 input_file(test.txt)이다.
def print_all(f): # 함수 print_all, f는 변수
print(f.read()) # 이 파일의 모든 내용을 읽어라
def rewind(f): # 함수 rewind, f는 변수
f.seek(0) # 시작 위치로 돌아감.
# seek(): 자기 테이프 위에 원하는 위차를 지정하기 위함.
... | [
"CAD Client"
] | CAD Client |
63da80f93496f9f06ca03c36ca38b215fd4ab8d9 | d7a4701e18be0f38820f5c15d80099fda6385f9f | /ABC106/B.py | dd13915b9a187916ed4f7f263d2be9013e8353ba | [] | no_license | shiki7/Atcoder | 979a6f0eeb65f3704ea20a949940a0d5e3434579 | c215c02d3bfe1e9d68846095b1bd706bd4557dd0 | refs/heads/master | 2022-05-21T16:59:01.529489 | 2022-04-29T11:26:42 | 2022-04-29T11:26:42 | 201,536,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | N = int(input())
def is_divisor_counter8(num):
count = 0
for i in range(1, num+1):
if num % i == 0:
count += 1
return True if count == 8 else False
count = 0
for i in range(1, N+1, 2):
if is_divisor_counter8(i):
count += 1
print(count)
| [
"bitbite8@gmail.com"
] | bitbite8@gmail.com |
d06f80d7cbcfeb09aca48198e849b2aeff779bcd | 1cff45f4b9beab91e06c30f4f2de2d719706fcdd | /tools/log2thbrep.py | a1b5b9a2906431d63e81738290657503cf7cb0ac | [] | no_license | chilamkatana/thbattle | 2c1b30bd243a216454e075f636b5c92c1df77f86 | 5219509c58f1b96bfd431f84e405f4f9aa981809 | refs/heads/master | 2021-01-18T00:07:46.283892 | 2016-06-19T15:12:30 | 2016-06-19T15:12:30 | 62,997,020 | 1 | 0 | null | 2016-07-10T12:13:04 | 2016-07-10T12:13:03 | null | UTF-8 | Python | false | false | 2,158 | py | # -*- coding: utf-8 -*-
# -- prioritized --
import sys
sys.path.append('../src')
# -- stdlib --
from urlparse import urljoin
import argparse
import gzip
import json
# -- third party --
# -- own --
from client.core.replay import Replay
from game import autoenv
from settings import ACCOUNT_FORUMURL
# -- code --
def ... | [
"feisuzhu@163.com"
] | feisuzhu@163.com |
3c12d70f689a90719f80a3bd3c5077bf23834e0f | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OEFModel/Classes/Dummy.py | e96d20609045111125c43f47cdf1e3ee6f8fca51 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 1,195 | py | # coding=utf-8
from OTLMOW.OEFModel.EMObject import EMObject
from OTLMOW.OEFModel.EMAttribuut import EMAttribuut
from OTLMOW.OTLModel.Datatypes.StringField import StringField
# Generated with OEFClassCreator. To modify: extend, do not edit
class Dummy(EMObject):
"""DUMMY Installatie"""
typeURI = 'https://lgc... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
f86c3abe1a96c40b82537c05c9790353dd1c4268 | 3dd43ff0dab514a39f611487ab421256b3b5b13b | /scripts/client/bootcamp/BootcampGarage.py | b78fd948610779a2240fe345836bca9b820783ad | [] | no_license | kusaku/wotscripts | 04ab289e3fec134e290355ecf81cf703af189f72 | a89c2f825d3c7dade7bc5163a6c04e7f5bab587d | refs/heads/master | 2023-08-20T00:17:36.852522 | 2018-02-26T14:53:44 | 2018-02-26T14:53:44 | 80,610,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,786 | py | # Embedded file name: scripts/client/bootcamp/BootcampGarage.py
import BigWorld
from functools import partial
from BootCampEvents import g_bootcampEvents
from BootcampConstants import BOOTCAMP_MESSAGE_WINDOW, MESSAGE_BOTTOM_RENDERER, getBootcampInternalHideElementName
from constants import QUEUE_TYPE
from debug_utils_b... | [
"kirill.a@aggrostudios.com"
] | kirill.a@aggrostudios.com |
aaf45a9200b30d752b7d7761ba15eabd843892ff | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /PIDCalib/CalibDataScripts/jobs/Stripping5TeV/Lam0/ganga_Lam0Fit_MagUp.py | f823e503e3df060e3276df738366d614877ed200 | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,567 | py | # set the stripping version
stripVersion = "5TeV"
# magnet 'Up' or 'Down'?
magPol='Up'
# file suffix:
#
# dst_k_and_pi: Kaons and pions from D*
# lam0_p: Protons from Lambda0
# jpsi_mu: Muons from J/psi
# dst_k_and_pi_muonUnBiased: 'MuonUnBiased' kaons + pions from D*
# lam0_p_muonUnBiased: 'MuonUnBiased' protons fro... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
9a050e8af3a0f33b423d7e500a3c375688e6fc12 | ba91eb5329fd8e69aa9d9fe1e74e2c7b968806c7 | /robocode-python-ls-core/src/robocode_ls_core/unittest_tools/cases_fixture.py | ba40c23945a6b2d060d0511504b35d5688caabc8 | [
"Apache-2.0"
] | permissive | emanlove/robotframework-lsp | aba9deb43ee7fdd3328e08b4d904d6c4ca44e185 | b0d8862d24e3bc1b72d8ce9412a671571520e7d9 | refs/heads/master | 2022-12-06T01:04:04.103593 | 2020-08-30T15:56:43 | 2020-08-30T15:56:43 | 292,014,577 | 1 | 0 | NOASSERTION | 2020-09-01T14:05:52 | 2020-09-01T14:05:51 | null | UTF-8 | Python | false | false | 1,570 | py | import os.path
class CasesFixture(object):
def __init__(self, copy_to_dir: str, original_resources_dir: str):
"""
Upon initialization copies the `original_resources_dir` to
`copy_to_dir`.
So, for instance, we may copy the contents from
/my/test/resource
... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
ded0f7ed8ac286c43c9d29d7d977eca66a5abe6a | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-8113.py | d62d31ef237d64f11e21225d75aaf0a1ade776a6 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2f0695813aafeda05fd430df7c0449e407cb4e4a | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /common/recipes-rest/rest-api/files/common_logging.py | cb60bf695450c4cc5c97453d1354d71f6db5c614 | [] | no_license | facebook/openbmc | bef10604ced226288600f55248b7f1be9945aea4 | 32777c66a8410d767eae15baabf71c61a0bef13c | refs/heads/helium | 2023-08-17T03:13:54.729494 | 2023-08-16T23:24:18 | 2023-08-16T23:24:18 | 31,917,712 | 684 | 331 | null | 2023-07-25T21:19:08 | 2015-03-09T19:18:35 | C | UTF-8 | Python | false | false | 3,993 | py | #!/usr/bin/env python3
#
# Copyright 2014-present Facebook. All Rights Reserved.
#
# This program file 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; version 2 of the License.
#
# This program is distributed ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
d9eb34855131358c7270e0fa5ad93d1566736595 | 8f46693b9933763cadb8f9272e6451cb0f7a3e8e | /conductor/devices/blue_pmt/__init__.py | 3a587eb13c200e44055625096de8e262ae4b1103 | [] | no_license | yesrgang/labrad_tools | f4099a2c365400b4501a261855dd122b3845c09f | 7441b2cb00f851b491136a8e0e9a3bf374c132c4 | refs/heads/master | 2018-10-05T11:03:20.386418 | 2018-09-20T22:13:18 | 2018-09-20T22:13:18 | 28,723,788 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | import json
from labrad.wrappers import connectAsync
from time import strftime
from twisted.internet.defer import inlineCallbacks
from conductor_device.conductor_parameter import ConductorParameter
class Recorder(ConductorParameter):
priority = 1
recorders = {
'image': 'record_g',
'image_clock... | [
"yesrgang@gmail.com"
] | yesrgang@gmail.com |
541985950b3efb0c43cbfe5c764f2684dae8b431 | 990a8f72428655d22775ee9dc2c52b7d6de98e4d | /config.py | 099c5e6c905132b2718e17f60e5c5c6b52cbbc51 | [] | no_license | saulshanabrook/cosc465-iprouter | a2c55906d2ef16e101f9eab7459a3a9cc49de1a0 | a8b08e4929ca13fe34f33c7a433f6cf9670ddf3d | refs/heads/master | 2021-01-18T10:32:59.159476 | 2015-04-15T22:21:58 | 2015-04-15T22:21:58 | 31,486,286 | 0 | 1 | null | 2015-03-01T04:05:49 | 2015-03-01T04:05:49 | null | UTF-8 | Python | false | false | 255 | py | python_interpreter = "python" # the interpreter to use
project = "anaconda" # the name of the project
extra_paths = None # a list of extra paths
port = '19360' # the port to listen on (as string)
| [
"s.shanabrook@gmail.com"
] | s.shanabrook@gmail.com |
25be5db700331b2813ceafbe554648b1b9bac0b5 | 959122eea21cec24a4cf32808a24482feda73863 | /store/admin.py | 2688e5c86b17695b37c5f342258f8b995eb6a74d | [] | no_license | AsadullahFarooqi/InventoryWebApp | 9fbe6ccafcb93bb5cb1879b728954867014d0afd | 07e8e6cb06e11f8ef6ada6a590e52f569a8c2d6b | refs/heads/master | 2020-06-18T15:06:18.612258 | 2019-07-11T07:32:00 | 2019-07-11T07:32:00 | 196,341,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from django.contrib import admin
from .models import (
Store,
StoreEmployers,
Customer,
Supplier,
Products,
# ContainersTypes,
Imported,
Exported,
PaymentsToSuppliers,
PaymentsOfCustomers,
EmployersLedger,
)
# Register your models here.
admin.site.register... | [
"asadullah.itcgcs@gmail.com"
] | asadullah.itcgcs@gmail.com |
2654cbe512ac34c4f9823c1c8c40a7d8514e0217 | ee8cb974f12977894f7f0fda5b8129570224618b | /gim/core/migrations/0030_auto__del_unique_milestone_repository_number.py | c3757774bc525644d74039b596210a07f04dccd0 | [] | no_license | derekey/github-issues-manager | 996b3c7b9acd0362b7d99948d45a15ea05d58cc2 | 63a405b993e77f10b9c2b6d9790aae7576d9d84f | refs/heads/develop | 2021-01-21T01:03:01.739800 | 2014-11-09T21:26:49 | 2014-11-09T21:26:49 | 42,234,954 | 1 | 0 | null | 2015-09-10T09:22:40 | 2015-09-10T09:22:39 | null | UTF-8 | Python | false | false | 33,049 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing unique constraint on 'Milestone', fields ['repository', 'number']
db.delete_unique(u'core_milesto... | [
"s.angel@twidi.com"
] | s.angel@twidi.com |
35547dfbf0da2184a2d66b93a10e753d236b05d0 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/MR_FRN.py | 7e2641a53a7dc52193f36d0754f261e9d80fedfb | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,672 | py | '''
Purpose :[Market Risk feed files],[Added section for generic instruments and updated StrCfPayFctrVAL and StrCfPayVAL]
Department and Desk :[IT],[Market Risk]
Requester: :[Natalie Austin],[Susan Kruger]
Developer :[Douglas Finkel],[Willie van der Bank]
CR Number ... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
e5b2ae4c4440478fd5c24f1011f898ba4711d6d7 | 153da69b35f032f5b83a06f17008ba41a1b336b4 | /src/main/hspylib/modules/mock/mock_request.py | 4742062ecc57e21e043658fa728a7644c1327e85 | [
"MIT"
] | permissive | TrendingTechnology/hspylib | 6400cadf9dfe6ab5733712dcfeccf8022d61c589 | c79a2c17e89fe21d00ccd9c1646a03407cd61839 | refs/heads/master | 2023-06-20T15:47:35.962661 | 2021-07-19T22:12:18 | 2021-07-19T23:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
TODO Purpose of the file
@project: HSPyLib
hspylib.main.hspylib.modules.mock
@file: mock_request.py
@created: Tue, 4 May 2021
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
@site: https://github.com/yorevs/hspylib
@license: MIT - P... | [
"yorevs@gmail.com"
] | yorevs@gmail.com |
8309f762bf07a0defed03dbce33a49f1d8a33ac1 | 3f1fb9704f76f0fa29723267595be1cc68a55248 | /Alignment/OfflineValidation/test/PrimaryVertexResolution_templ_cfg.py | 8c2c84451bec65c0380fa4d278e51e02e60b8eaa | [
"Apache-2.0"
] | permissive | jeongsumin/cmssw | 639838651cbaf007a4c3d0df6fa33f705326c95d | 54acaec3dc59abda01c018920077db98db976746 | refs/heads/master | 2021-07-05T15:32:01.271717 | 2020-10-15T04:31:06 | 2020-10-15T04:31:06 | 189,147,548 | 0 | 0 | Apache-2.0 | 2019-05-29T03:57:00 | 2019-05-29T03:56:59 | null | UTF-8 | Python | false | false | 7,514 | py | #! /bin/env cmsRun
'''
cfg to produce pv resolution plots
here doing refit of tracks and vertices using latest alignment
'''
from __future__ import print_function
import FWCore.ParameterSet.Config as cms
from fnmatch import fnmatch
import FWCore.ParameterSet.VarParsing as VarParsing
from pdb import set_trace
proces... | [
"marco.musich@cern.ch"
] | marco.musich@cern.ch |
d7c88e4ca86943f69f81f3921df26bdc568e03f7 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2017/shared_code/central_comp/nonfatal/dismod/cascade/varnish.py | 12362e5c319099abfeea8ab6a7ed8f6bbac1abc4 | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | import sys
import os
import subprocess
import logging
import upload
import fit_stats
import drill
from db_tools.ezfuncs import query
from cascade_ode.demographics import Demographics
from cascade_ode import importer
from cascade_ode import __version__
from setup_logger import setup_logger
from jobmon import sge
from s... | [
"nsidles@uw.edu"
] | nsidles@uw.edu |
99cde40683919de208741a0fa26e32d59716076f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/ca12b50208d34a91a0c096b495e0335f.py | 3379fdc004517ed04596ff5a900c04804f7681e2 | [] | 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 | 126 | py | def is_leap_year(year):
if (year%4 == 0 and year%100 !=0) or (year%4 == 0 and year%400==0):
return True
return False
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
e5e2e59c9ab3d23f95baa947c2fa5b9cadd2f20c | d7016f69993570a1c55974582cda899ff70907ec | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01_preview/models/_network_management_client_enums.py | 928973d87b1432a5f248e44814aab212aca2c8e4 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 5,160 | 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"
] | kurtzeborn.noreply@github.com |
2162180fac3c2f22e1b133a7bd03f473cf420898 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pDQ8sTXDxesqiTRuY_10.py | 41e821e37f31ef7c60499d78de1c6dcbdb72db34 | [] | 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 | 45 | py |
import re
pattern = "(?<=tall height)"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a0a6f63d91b35f4e1b0adeff1d440b64e0536984 | 3cdd7019f3acbf7b7a7e879444454703fcc73d62 | /solutions/319.bulb-switcher.py | 49544fa00a51fc10ac7fe2b65b52d85034bc6e67 | [] | no_license | quixoteji/Leetcode | 1dc2e52e53a7b58d9bae15ce2d5c4142cbd365af | 00bf9a8164008aa17507b1c87ce72a3374bcb7b9 | refs/heads/master | 2021-07-15T07:59:21.294297 | 2020-05-13T03:08:47 | 2020-05-13T03:08:47 | 138,812,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #
# @lc app=leetcode id=319 lang=python3
#
# [319] Bulb Switcher
#
# @lc code=start
class Solution:
def bulbSwitch(self, n: int) -> int:
return self.sol1(n)
def sol1(self, n) :
# 0 : off 1 : on
ons = 1
while ons * ons <= n : ons += 1
return ons-1
# @lc code=e... | [
"jxj405@case.edu"
] | jxj405@case.edu |
9165e19f93dedecb81d6600c76cdff8a1644df31 | 262311e60529868e38c2c57ee3db573f8e11c458 | /qa-automated/pages/app/guide_page.py | 4c174083b2c451704f06adb30ab6f1ce1a034b09 | [] | no_license | huileizhan227/untitled | 1c5604736d9ffcce6f7cb7e308cdc0ebd07e116a | 07df74c89291b1664a28e3c8dcba51a917f1835f | refs/heads/master | 2023-01-27T11:51:37.609210 | 2020-04-16T11:49:59 | 2020-04-16T11:49:59 | 150,606,504 | 1 | 0 | null | 2023-01-09T12:00:12 | 2018-09-27T15:12:18 | HTML | UTF-8 | Python | false | false | 380 | py | from poium import Page
from poium import PageElement
from poium import PageElements
class GuidPage(Page):
skip_btn = PageElement(id_='com.transsnet.news.more:id/skip')
topic_btn_list = PageElements(xpath='//*[@id="com.transsnet.news.more:id/recycler"]//*[@id="com.transsnet.news.more:id/name"]')
confirm_btn... | [
"374826581@qq.com"
] | 374826581@qq.com |
a17a0329e2df352957ffa0acef086b440581e622 | c0717724c7dc3937252bb4a7bd7c796088db4c5d | /solutions/judgingmoose.py | 58fb1ab1e281b3934eb20ba684504c74ec01dce3 | [] | no_license | matthew-cheney/kattis-solutions | 58cd03394ad95e9ca7ffa3de66b69d90647b31ff | d9397ca4715a3ad576046a62bdd6c0fb9542d838 | refs/heads/main | 2023-01-24T12:49:18.871137 | 2020-12-10T04:10:48 | 2020-12-10T04:10:48 | 318,857,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | l, r = [int(x) for x in input().split(' ')]
if l == 0 and r == 0:
print('Not a moose')
elif l != r:
print(f'Odd {2 * max(l, r)}')
else:
print(f'Even {2 * l}') | [
"m.cheney95@outlook.com"
] | m.cheney95@outlook.com |
bfd7447e28cd315f542b2e4c3883455d18c758b4 | 55dc6e337e634acb852c570274a1d0358b7300a5 | /tests/extension/resolver_/single_module/test_resolver_single_module.py | 91d5af2b94b4d6d03772bf6913b03b34a1fe7c9a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fifoteam/veriloggen | 97ad45671f053c85f495b08a030f735fd9822146 | 23cb7251c0f126d40d249982cad33ef37902afef | refs/heads/master | 2020-05-27T00:28:37.575411 | 2017-02-20T01:47:00 | 2017-02-20T01:47:00 | 82,518,602 | 2 | 0 | null | 2017-02-20T05:02:37 | 2017-02-20T05:02:37 | null | UTF-8 | Python | false | false | 1,162 | py | from __future__ import absolute_import
from __future__ import print_function
import veriloggen
import resolver_single_module
expected_verilog = """
module blinkled #
(
parameter WIDTH = 8,
parameter INC = 1
)
(
input CLK,
input RST,
output reg [8-1:0] LED
);
reg [18-1:0] count;
always @(po... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
b78531b1f1e38104f41d807a2b3eaea73882c0fe | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/e658c13140c18d36a72cabf611a7dcaca154d8deurls.py | e658c13140c18d36a72cabf611a7dcaca154d8de | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 2,069 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'acidentes_em_rodovias.controller.home', name='home'),
# url(r'^acidentes_em_rodovias/', inc... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
c61fa4711a00062c8bb8b50504176552f291335f | 98420fdd66b8dce46ef88cd34fcace36777fa232 | /py3/torch_tutor1/main1.py | 1b70aba34044d998d433534cedb6c8f91228cf1b | [] | no_license | Daiver/jff | f972fe7464f78ba6008a036b697ea3f04b7010a4 | 33d6a781af8d7f6ae60c25e10051977af2fef1b9 | refs/heads/master | 2023-04-07T06:33:41.487938 | 2022-05-03T10:07:32 | 2022-05-03T10:07:32 | 12,180,634 | 1 | 1 | null | 2023-04-03T19:25:00 | 2013-08-17T15:03:14 | C++ | UTF-8 | Python | false | false | 107 | py | import torch
import numpy as np
if __name__ == '__main__':
x = torch.ones((2, 3)).cuda()
print(x)
| [
"ra22341@ya.ru"
] | ra22341@ya.ru |
cc4e35adf99011ab4eaf8c5561d665063815d5ad | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/piratesgui/GameOptions.py | 5fd28ae10abd4d11e337bd0b1d91ebdac6a2391c | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 112,675 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.piratesgui.GameOptions
import copy, string, os, sys, datetime
from direct.gui.DirectGui import *
from pandac.PandaModules import... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
c142dee0cde1b43a81c0d5697afeee12e008eb37 | 243d0543f8d38f91954616c014456122292a1a3c | /CS1/0320_herbivwar/draft04/critterAI1.py | 90f7ec363bc8911db4de6b7fb77c35166c061e2a | [
"MIT"
] | permissive | roni-kemp/python_programming_curricula | 758be921953d82d97c816d4768fbcf400649e969 | eda4432dab97178b4a5712b160f5b1da74c068cb | refs/heads/master | 2023-03-23T13:46:42.186939 | 2020-07-15T17:03:34 | 2020-07-15T17:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | import random, critter
class CritterAI1(critter.Critter):
def __init__(self, screen, row, col, image, team, name):
super().__init__(screen, row, col, image, team, name)
def reproduce(self, critter_cells):
'''You have to have this in each critter child
class so that CritterAIs can repro... | [
"neal.holts@gmail.com"
] | neal.holts@gmail.com |
4685ca9231aef2f67fedb4b4c61bf9b489279acf | 9cd27764abf5412dffd351a0a4956075191dd67e | /day 2/rename_file.py | 932ad167449c991f82661fd48217b3e1ca8221aa | [] | no_license | EHwooKim/Start_camp | 1cebb6775f68af1ca6ecaf37bc8ad4d0864e77de | d582e20ce1a3ccb9cd31422b3d5be3b64c2627d5 | refs/heads/master | 2020-06-17T15:26:14.898280 | 2019-08-05T00:12:59 | 2019-08-05T00:12:59 | 195,963,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import os
# 1. dummy 폴더로 들어간다.
os.chdir('./dummy')
print(os.getcwd())
# 2. 하나씩 파일명을 변경한다. => 반복문
files = os.listdir('.')
print(type(files))
#for file in files:
# os.rename(file, f'SAMSUNG_{file}')
# 3. SAMSUNG이 아니라 SSAFY를 붙였어야지!
for file in files:
os.rename(file, file.replace('SAMSUNG_SAMSUNG','SSAFY'))
| [
"ehwoo0707@naver.com"
] | ehwoo0707@naver.com |
057ae25723d470ecd9c4657c06e722e7cb93acd7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/50/usersdata/111/17678/submittedfiles/contido.py | 67535e3f4f65734c36914824446b50ff8537f736 | [] | 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 | 471 | py | # -*- coding: utf-8 -*-
from __future__ import division
def incluso(a,b):
cont=0
for i in range(0,len(a),1):
if a[i] in b:
cont = cont +1
if cont!=0:
return True
else:
return False
n=input('Tamanho da lista : ')
a=[]
for i in range(0,n,1):
a.append(input('E... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4c371b4f7afd64a5b4c2bd58df54c3b208d71660 | 55a4cd36bbea38fda0792020225d849dbc23f4a8 | /initUserState.py | 866f870de02309f8d88e1dc455f61454eb88a387 | [] | no_license | liyonghelpme/findAMatch | 4e4e4960715292e14aa59bbec5407d38562fb4c5 | 3e8d96106247b72c4b89412ab290d4f6462bdcea | refs/heads/master | 2021-01-19T08:10:31.909865 | 2013-05-04T11:06:16 | 2013-05-04T11:06:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #coding:utf8
import MySQLdb
import random
myCon = MySQLdb.connect(host='localhost', passwd='badperson3', db='UserMatch', user='root', charset='utf8')
for i in xrange(0, 100):
sql = 'insert into UserState (uid, shieldTime, attackTime, onlineTime, score) values(%d, %d, %d, %d, %d)' % (i, 0, 0, 0, random.randint(0, ... | [
"liyonghelpme@gmail.com"
] | liyonghelpme@gmail.com |
bd679510fd69971fb1346300fec7f9ac0725b03b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/453/usersdata/281/109875/submittedfiles/programa.py | 22338be239a906640e2e45b03fa532fc2036ad96 | [] | 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 | 732 | py | # -*- coding: utf-8 -*-
n=int(input('Digite a dimensão do tabuleiro: '))
m=[]
for i in range (0,n,1):
m_linha=[]
for j in range(0,n,1):
m_linha.append(int(input('Digite o números (%d,%d) de entrada: '% (i+1,j+1))))
m.append(m_linha)
soma_linha=[]
for i in range(0,n,1):
c=0
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5acb43c07eab61bc8a8fd5259359e49af52e3a64 | bbb21bb79c8c3efbad3dd34ac53fbd6f4590e697 | /restAPI/manage.py | 6f0f73c179c0948e0594011d582e9bccf06ad320 | [] | no_license | Nusmailov/BFDjango | b14c70c42da9cfcb68eec6930519da1d0b1f53b6 | cab7f0da9b03e9094c21efffc7ab07e99e629b61 | refs/heads/master | 2020-03-28T21:11:50.706778 | 2019-01-21T07:19:19 | 2019-01-21T07:19:19 | 149,136,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'restAPI.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dj... | [
"nusmailov@gmail.com"
] | nusmailov@gmail.com |
8871075a56cf9bb00ab3a122de9f2f785bb77da6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch70_2020_09_10_19_51_05_981407.py | 124c962afd71fd9efb28559670d236a70a72b1d4 | [] | 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 | 53 | py | def esconde_senha(n):
senha='*'n
return senha | [
"you@example.com"
] | you@example.com |
050629c4fcfc80b4ca7aa69dbbfa34c66605e8f1 | 76050b0002dac757866a9fb95dc199918da665bb | /examples/multiagent/multigrid/run_multigrid.py | 0b5ef0a06d99e8fcd41152dacded9ea9f749c7e6 | [
"Apache-2.0"
] | permissive | RaoulDrake/acme | 2829f41688db68d694da2461d301fd6f9f27edff | 97c50eaa62c039d8f4b9efa3e80c4d80e6f40c4c | refs/heads/master | 2022-12-29T01:16:44.806891 | 2022-12-21T14:09:38 | 2022-12-21T14:10:06 | 300,250,466 | 0 | 0 | Apache-2.0 | 2020-10-01T11:13:03 | 2020-10-01T11:13:02 | null | UTF-8 | Python | false | false | 4,123 | py | # python3
# Copyright 2018 DeepMind Technologies Limited. 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 re... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e7cb34776c3c785a60bea9c5a22fb9ffeb4f16e9 | 6220d04a60dae0e44ba2232cba6c79114bf2fd3f | /test_remote_project/test_remote_project/urls.py | 565409fca290c5720a80e2fa65d99ec0a96bd81b | [
"MIT"
] | permissive | ollytheninja/django-autocomplete-light | bc65e92ffddbe1332a59bf4d6248976e8c0542b4 | 6e4723c4a75870e7421cb5656248ef2b61eeeca6 | refs/heads/master | 2021-01-21T03:50:46.975650 | 2015-10-07T23:20:47 | 2015-10-07T23:20:47 | 44,034,996 | 0 | 1 | MIT | 2020-10-01T19:22:48 | 2015-10-11T01:36:02 | Python | UTF-8 | Python | false | false | 761 | py | from django.conf.urls import patterns, include, url
import autocomplete_light
autocomplete_light.autodiscover()
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'test_project.views.home', name='home')... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
cccc7cd7cbbfc831f29622384dbebe04357cdfdf | d5682d2ef13ad63c68d59d3d0706853a88035ff1 | /week3/snmp_app.py | b8ca881ab0a218a4afdf708477df3f8fd7f7a8a6 | [
"Apache-2.0"
] | permissive | mikealford/ktbyers_automation | 66467f5352a3fbb111fc18f9c90b83cf97a75e79 | d8b30e7ddbe27b4bc62b74bfc051b6d1c099f7f9 | refs/heads/master | 2020-04-17T19:37:42.365653 | 2019-02-19T01:16:41 | 2019-02-19T01:16:41 | 166,872,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import snmp_helper
IP = '192.168.122.172'
COMMUNITY_STRING = 'galileo1'
SNMP_PORT = 161
pynet_rtr1 = (IP, COMMUNITY_STRING, SNMP_PORT)
snmp_data = snmp_helper.snmp_get_oid(pynet_rtr1, oid='1.3.6.1.2.1.1.5.0')
output = snmp_helper.snmp_extract(snmp_data)
print(output)
| [
"mike.alford13@gmail.com"
] | mike.alford13@gmail.com |
db966fb201c69d1a48e53305e1b2f6e3e7545f15 | d8cf5130deaf3bfba0e5b9d326012fbcddd18fb2 | /embed/models/position_embedding_heads/avg_embedding_head.py | 7600e1b37195e715a9b593977585a70e4af69f1a | [] | no_license | xmyqsh/embed | 0ed297e636fb9d9db20dd908f92ef6212b9c3549 | 46d07ddf6c5908bdfff86ca3203c325ad34423dc | refs/heads/master | 2023-06-11T08:25:37.733238 | 2021-06-30T10:41:24 | 2021-06-30T10:41:24 | 379,320,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,392 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from embed.cv.cnn import ConvModule, bias_init_with_prob, normal_init
from embed.cv.runner import auto_fp16
from embed.core.utils import multi_apply
from embed.models import POSITION_EMBEDDING_HEADS
from .base_position_embedding_head import BasePositi... | [
"xmyqsh@gmail.com"
] | xmyqsh@gmail.com |
c607e65351a974ba2577b564935d2ab18480067d | d039f2a5bbf15cb8bfb99e3b67354a23f2065745 | /sisco1/app1/migrations/0001_initial.py | 5d6ceeea2fd02745addadf912f0c2a3ff4d28b0e | [] | no_license | prasadnaidu1/django | 22ad934eaee1079fbcd0a988245bdc18789a48f1 | b64a341d7c8916dd8000d85b738241c0b369b229 | refs/heads/master | 2020-04-12T19:21:42.565686 | 2019-04-18T16:35:16 | 2019-04-18T16:35:16 | 162,707,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 2.1.1 on 2018-10-18 11:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='friends',
fields=[
('entry', models.Integer... | [
"you@example.com"
] | you@example.com |
87c583b7c77c5623c85ce162a31ae8d56854f57f | d5ed141e513dcb6fc8ab851835ec9a4630e3651b | /anaconda/anaconda/lib/python2.7/site-packages/anaconda_navigator/widgets/dialogs/tests/test_update_dialog.py | 133fa37a1c4ac99aae7e8bf6af80e4f6edc4f01d | [
"Python-2.0"
] | permissive | starrysky1211/starrysky | 713998b366449a5ae4371e38723c56ea40532593 | abb642548fb9b431551133657f1a67858041a7e6 | refs/heads/master | 2022-11-09T21:51:22.558151 | 2017-02-25T14:42:37 | 2017-02-25T14:42:37 | 67,608,074 | 0 | 1 | null | 2022-10-16T05:17:25 | 2016-09-07T13:16:45 | Python | UTF-8 | Python | false | false | 1,165 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2016 Continuum Analytics, Inc.
#
# May be copied and distributed freely only as part of an Anaconda or
# Miniconda installation.
# -------------------------------------------------------------------------... | [
"starry_sky_@outlook.com"
] | starry_sky_@outlook.com |
013dd0590c4d0f506c064b1f272085f45e765844 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2541/60698/283571.py | dff37af14ff1eafccf659e6c4b6fba4047e355ac | [] | 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 | 1,407 | py | def test():
n = int(input())
matches = list(eval(input()))
segList = []
for match in matches:
if not getSegList(segList, match):
print('[]')
return
res = []
for seg in segList:
topology(res, seg)
for i in range(0, n):
if i not in res:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
de3583f4711cd44ff8a4fe3228a6ec6a3a7093e0 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/achievement/_admin_create_new_achievement.py | a6fedd2b1b5536aa5a2b987bb622cd5b4b5b5def | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,699 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Achievement Service (2.21.0)
# pylint: disable=duplicate-cod... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
050ffca21e8e249c55e742ca4256ecf84715d92b | 52a32a93942b7923b7c0c6ca5a4d5930bbba384b | /unittests/test_adminsite.py | bc48a7ea4540ec9daadd22614619ced502491a61 | [
"MIT-open-group",
"GCC-exception-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-3.0-or-later",
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"PSF-2.0",
"LicenseRef-scancode-python-cwi... | permissive | DefectDojo/django-DefectDojo | 43bfb1c728451335661dadc741be732a50cd2a12 | b98093dcb966ffe972f8719337de2209bf3989ec | refs/heads/master | 2023-08-21T13:42:07.238370 | 2023-08-14T18:00:34 | 2023-08-14T18:00:34 | 31,028,375 | 2,719 | 1,666 | BSD-3-Clause | 2023-09-14T19:46:49 | 2015-02-19T17:53:47 | HTML | UTF-8 | Python | false | false | 938 | py | from .dojo_test_case import DojoTestCase
from django.contrib import admin
import django.apps
class AdminSite(DojoTestCase):
fixtures = ['dojo_testdata.json']
def test_is_model_defined(self):
for subclass in django.apps.apps.get_models():
if subclass._meta.proxy:
continue
... | [
"noreply@github.com"
] | DefectDojo.noreply@github.com |
2dd33060faa5ea97aa63c818cbb22f222dffe9f7 | 85e3baf2668db0592df3d9f9aa447b9f20ef25d6 | /ImageManipulations/BitwiseOperations.py | 72025d6bb36fc3b91511cc5460f59a6ff32501ee | [] | no_license | pekkipo/Computer_Vision | cd33a93f5706cd933761d02735f943354c6468fc | 55aaeae5b955540722270aab07295e85cfa26a95 | refs/heads/master | 2021-01-20T06:54:45.912254 | 2017-05-22T12:59:28 | 2017-05-22T12:59:28 | 89,944,925 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # Very useful for masking the images
import cv2
import numpy as np
# CREATE HALF AN ELLIPSE AND A RECTANGLE
# If you're wondering why only two dimensions, well this is a grayscale image,
# if we doing a colored image, we'd use
# rectangle = np.zeros((300, 300, 3),np.uint8)
# Making a square
square = np.zeros((300, ... | [
"pekkipodev@gmail.com"
] | pekkipodev@gmail.com |
9605f4f4ccc4457804b9e7322ac882c255c923d5 | 691f49708fa5121e261650f01f2e9b93e9bdd26f | /skills.py | 01571c068d6ecf27898b218f52ef8c80bffac8a8 | [] | no_license | michelelee/skills-dictionaries- | 29a14980308ea1cc3b76bcc1f1c72a0236fd91e8 | 9c029792ab238f463b3642815b5dd6316299a6b3 | refs/heads/master | 2021-01-10T19:43:29.314898 | 2015-04-21T15:59:29 | 2015-04-21T15:59:29 | 34,235,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,307 | py | # To work on the advanced problems, set to True
ADVANCED = False
def count_unique(string1):
"""Count unique words in a string.
This function should take a single string and return a dictionary
that has all of the distinct words as keys, and the number of times
that word appears in the string.
F... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
93f309b526e26efd52fc955c3c44e08647392b4b | 7e3a2c989b81f425080c36f60ca0dca1e6a804ab | /cardpay/model/payment_callback.py | 43489e213e1613874a9b69b802907fb6fb4113cb | [
"MIT"
] | permissive | cardpay/python-sdk-v3 | 2a7c6ab4d8cfe0de2e9e362624ba4df49cd20445 | db1f250f0f6083497a468eeef0c537716a5e9fa8 | refs/heads/master | 2023-09-01T14:05:30.241622 | 2023-09-01T06:02:51 | 2023-09-01T06:02:51 | 197,133,457 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 11,888 | py | # coding: utf-8
"""
CardPay REST API
Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to c... | [
"rnd@cardpay.com"
] | rnd@cardpay.com |
eef5b333c3116e66c2bb74ed66d69cdc15a106b0 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /LightGBM_sklearn_scipy_numpy/source/sklearn/feature_selection/from_model.py | 2502643453d797d2ecf32c119697a97f4ab76e5e | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 7,363 | py | # Authors: Gilles Louppe, Mathieu Blondel, Maheshakya Wijewardena
# License: BSD 3 clause
import numpy as np
from .base import SelectorMixin
from ..base import BaseEstimator, clone, MetaEstimatorMixin
from ..externals import six
from ..exceptions import NotFittedError
from ..utils.metaestimators import if_delegate_h... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
a37c234ec1d0be68fbafc60a4a1427f320971ba1 | ff88a620c7437af9af946643cd65f06c99fe3601 | /IntermediateCodeAndTesting/OldTaskVersions/LearningStopAuction3_lastrun.py | 86ce178aa462740ffb8c23c4acfcbc6267b4b722 | [] | no_license | bissettp/TrainedInhibitionTask | c2f20dadbb0e440c4fcf2bd3c4d670a7416df93c | 82727bd3ffa101209a61f2ff4f057f8896522d5d | refs/heads/master | 2020-06-06T20:02:16.470092 | 2015-06-23T17:56:15 | 2015-06-23T17:56:15 | 34,129,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118,715 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy2 Experiment Builder (v1.82.01), Thu Apr 2 12:39:07 2015
If you publish work using this script please cite the relevant PsychoPy publications
Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neurosci... | [
"pbissett@stanford.edu"
] | pbissett@stanford.edu |
d6c2bad547afdcc4851a6ed9eed95609d1640240 | 2043a3bbe2c2ac4fcf293a578b4c82018871290b | /495-提莫攻击/495.py | 61a9feaa9420b9b22f46819187a87d008b5eb0e4 | [] | no_license | agave233/leetcode | 7f3804a5ec544a9fb1a6ae34a91886d283075e2a | 57629c9b0f9a7539bed9f28ba6771ee9d13aafaa | refs/heads/master | 2021-09-13T21:42:55.535234 | 2018-05-04T15:57:24 | 2018-05-04T15:57:24 | 124,670,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | class Solution(object):
def findPoisonedDuration(self, timeSeries, duration):
"""
:type timeSeries: List[int]
:type duration: int
:rtype: int
"""
if timeSeries == []:
return 0
res = 0
for i in range(1, len(timeSeries)):
... | [
"632679697@qq.com"
] | 632679697@qq.com |
8ed01875c063dd4231bf7ef743d43b3956f30e37 | c1cd6a7a446934c428bc4fbf988f8d6680460488 | /dist/restclient.app/Contents/Resources/wx/lib/analogclock/__init__.py | dd4f8fbf2da9a0565f3d6ba9a9fb0217e29fc3aa | [] | no_license | devvmh/restclient-py2app | ed016d1763ee99779388c8700dfb9c129cf8ce1a | 6826f6cb81c08a36b30878683a58e4f7a18f5041 | refs/heads/master | 2021-01-10T12:01:31.411373 | 2016-01-18T03:34:02 | 2016-01-18T03:34:02 | 49,850,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | /Users/devin/git/restclient/venv/lib/python2.7/site-packages/wx/lib/analogclock/__init__.py | [
"devin@callysto.com"
] | devin@callysto.com |
7cd3431aa501d19d14be6f45d4b21f1e5eda4263 | 12317e3617b1bd900d131c2047ec2e3211bcb16b | /musictrack-albumadd.py | 3cc9dec9f6c567bfb41ce67dad1f7e0dd357bf09 | [] | no_license | apocalyptech/musictrack-cli | b5fd7dedb4c6bb23ceea8e9e717ad2062a087a15 | 6563f9177df7f0a28039ffeabae005d940bdb205 | refs/heads/master | 2021-08-12T05:53:44.831965 | 2021-08-09T15:58:35 | 2021-08-09T15:58:35 | 72,576,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/env python3
# vim: set expandtab tabstop=4 shiftwidth=4:
# Adds a new album to the database
from app import App, AppArgumentParser
# Parse arguments
parser = AppArgumentParser(description='Adds a new album to the database')
group = parser.add_mutually_exclusive_group()
group.add_argument('-l', '--live',... | [
"pez@apocalyptech.com"
] | pez@apocalyptech.com |
760804ea8af855cfc7abba00fb01151a90c8e877 | 0e820627e68413aebe27fbc32dde66a3c99651d3 | /flamingo/core/context.py | 3a16f23a65abc8322d5d15a2a9a1734cc8c6f8c1 | [
"Apache-2.0"
] | permissive | ejoerns/flamingo | 17de116008561a4a64613b2b6528eb6d52706281 | 1d61c99c9ad34dd0a2a652f80783226051e07238 | refs/heads/master | 2020-04-11T02:53:47.295752 | 2018-12-14T11:17:23 | 2018-12-14T11:37:39 | 161,460,547 | 0 | 0 | Apache-2.0 | 2018-12-12T09:00:34 | 2018-12-12T09:00:34 | null | UTF-8 | Python | false | false | 7,368 | py | import logging
import shutil
import os
from flamingo.core.parser import FileParser, ParsingError
from flamingo.core.data_model import ContentSet, Content
from flamingo.core.utils.imports import acquire
class Context:
def __init__(self, settings):
self.settings = settings
# setup logging
... | [
"f.scherf@pengutronix.de"
] | f.scherf@pengutronix.de |
f79ed3b7e1c14de99d256cd73c36799358a75bf8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_enthroning.py | 9e1ce436218ffae4fce5553d7c0bc87d31485be5 | [
"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 | 232 | py |
#calss header
class _ENTHRONING():
def __init__(self,):
self.name = "ENTHRONING"
self.definitions = enthrone
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['enthrone']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f4d1328cdd7e3637702bea1c4b7253ed5dfb96ad | 206330d8ce5266630f4500be8df90e59d72addc2 | /xcube/api/chunk.py | 0262939968fce4992e3e91ed0596b24ac8e8afd3 | [
"MIT"
] | permissive | dzelge/xcube | 4c70dda7e1efc4517e558af7ac9a2d1ae440b782 | 1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd | refs/heads/master | 2020-06-17T15:56:54.187694 | 2019-07-08T07:39:08 | 2019-07-08T07:39:08 | 195,969,440 | 0 | 0 | MIT | 2019-07-09T08:46:03 | 2019-07-09T08:46:03 | null | UTF-8 | Python | false | false | 3,171 | py | import itertools
from typing import Dict, Tuple, Iterable
import numpy as np
import xarray as xr
from xcube.util.dsio import FORMAT_NAME_ZARR, FORMAT_NAME_NETCDF4
def chunk_dataset(dataset: xr.Dataset,
chunk_sizes: Dict[str, int] = None,
format_name: str = None) -> xr.Dataset:
... | [
"norman.fomferra@gmail.com"
] | norman.fomferra@gmail.com |
3ac5574809b0a987b095ff860930ce7889a6010d | 3b9338d99cf8090387418e32ca81617f072c39fb | /build_system_kit/extpy/runme.py | 9984d9c89d00a26c95c9f157fb45f863659100e9 | [] | no_license | sillsdevarchive/wsiwaf | 8ca14c286bafceb9ee6fad740b64ad7131282dc3 | 2dcddafc3602a7220acbe995df4ba85abb06b767 | refs/heads/master | 2020-12-30T17:10:21.701380 | 2017-05-12T05:12:17 | 2017-05-12T05:12:17 | 91,052,898 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #! /usr/bin/env python
# encoding: utf-8
"""
Create a waf file able to read wscript files ending in ".py"
execute a small test to show that it works
The waf file includes "extpy.py" which performs the required modifications
"""
import os, subprocess
up = os.path.dirname
join = os.path.join
cwd = os.getcwd()
extpy ... | [
"tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85"
] | tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85 |
6370647795edf476bd74936a53934d7af363aa50 | a6ed990fa4326c625a2a02f0c02eedf758ad8c7b | /meraki/sdk/python/getOrganizationSamlRole.py | 59bfeed4271e31d35e33f75e08f64889f85458c1 | [] | no_license | StevenKitavi/Meraki-Dashboard-API-v1-Documentation | cf2352976c6b6c00c17a5f6442cedf0aeed46c22 | 5ed02a7def29a2ce455a3f2cfa185f76f44789f5 | refs/heads/main | 2023-03-02T08:49:34.846055 | 2021-02-05T10:31:25 | 2021-02-05T10:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import meraki
# Defining your API key as a variable in source code is not recommended
API_KEY = '6bec40cf957de430a6f1f2baa056b99a4fac9ea0'
# Instead, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/
dashboard = meraki.DashboardAPI(API_KEY)
organization_... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
af55da00f419a54f60e6f9d444592cf6fc9dfe8a | 09301c71638abf45230192e62503f79a52e0bd80 | /besco_erp/besco_sale/general_sale_margin/report/__init__.py | 2b722f4eaeb7ee64f222222d8f751f72bc36c203 | [] | no_license | westlyou/NEDCOFFEE | 24ef8c46f74a129059622f126401366497ba72a6 | 4079ab7312428c0eb12015e543605eac0bd3976f | refs/heads/master | 2020-05-27T06:01:15.188827 | 2017-11-14T15:35:22 | 2017-11-14T15:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # -*- coding: utf-8 -*-
##############################################################################
#
#
##############################################################################
import sales_fiscalyear
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| [
"son.huynh@nedcoffee.vn"
] | son.huynh@nedcoffee.vn |
dd080f3fb34b5813c336f55367f9d6d793eaf669 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/get_api_version_set.py | c4fb809e041874e3b5c0a04404aedfa32889fdd7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 5,626 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
ba1c31019cb0473c8d9a0fc745dd4ab39cc21871 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/ge_o_ip_item.py | 72a31edbef1b0539fc0a31b68dbbd71f194d46b5 | [
"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 | 10,269 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class GeOIpItem:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
82ae37234ed8faca25da728bce00c8bd915110f3 | c0ec2874527baba93c7c4107d1755326f800e470 | /tests/aws/lambda_/test_models.py | f900fb18d64ef56bcc9db65927fbb7bc0bdfc35a | [
"MIT"
] | permissive | koxudaxi/pydantic-collection | 10772ae426c38b07e58575e4849218a3fba29a6c | 6483517e9582109eafc3e2bc84e3a1a8660b9b81 | refs/heads/master | 2021-03-30T02:02:12.884974 | 2020-07-15T15:54:33 | 2020-07-15T15:54:33 | 248,004,593 | 4 | 0 | MIT | 2020-07-15T16:22:42 | 2020-03-17T15:25:07 | Python | UTF-8 | Python | false | false | 81 | py | from pydantic_collection.aws.lambda_ import models
def test_models():
pass
| [
"koxudaxi@gmail.com"
] | koxudaxi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.