blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f5f7777bc8920d17095f915f96a0d7b1b008d6b | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /plugins/terminal/nxos.py | f093b70b69edb7d451e1ffb889970913d6c3de30 | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | #
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible 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.
#
# Ansible is d... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
d6c566b32dfe352180d1386f041b191f852b2d05 | ca66a4283c5137f835377c3ed9a37128fcaed037 | /Lib/site-packages/sklearn/datasets/tests/test_lfw.py | ef3e181b7ea130652cd413504429c6cda3597051 | [] | no_license | NamithaKonda09/majorProject | f377f7a77d40939a659a3e59f5f1b771d88889ad | 4eff4ff18fa828c6278b00244ff2e66522e0cd51 | refs/heads/master | 2023-06-04T20:25:38.450271 | 2021-06-24T19:03:46 | 2021-06-24T19:03:46 | 370,240,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,768 | py | """This test for the LFW require medium-size data downloading and processing
If the data has not been already downloaded by running the examples,
the tests won't run (skipped).
If the test are run, the first execution will be long (typically a bit
more than a couple of minutes) but as the dataset loader is leve... | [
"namithakonda09@gmail.com"
] | namithakonda09@gmail.com |
604599cedc334aac2215f97356a0b6f4335a8b7e | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/077 Word Search.py | df667d96008f38fbe8068603ea7dac53fef15da9 | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py |
__author__ = 'Danyang'
class Solution:
def exist(self, board, word):
if not board:
return
m = len(board)
n = len(board[0])
visited = [[False for _ in xrange(n)] for _ in xrange(m)]
for i in xrange(m):
for j in xrange(n):
... | [
"1042448815@qq.com"
] | 1042448815@qq.com |
c800922df670b98c575e1b37bf3ed5a8a111b60b | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_17/models/remote_protection_group_response.py | 7dc6d86902296b0ff666f551e0f931da5d595eaf | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,024 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.17
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
34bdda6befcd530668ce884b66c6f71627ad7812 | 06b1e6b254d0be9f42f4832f94f5ba225ea54b80 | /tests/test_commands/test_deps_tree.py | b9d8355d47a3cf352de388aef766d3d2b9ee8f14 | [
"MIT"
] | permissive | b0g3r/dephell | 9481b7023b65d94bea5825e9784907c6f57f6d79 | 40f3451bf5958284af021fbd5486ad71c03efc25 | refs/heads/master | 2020-06-13T16:24:41.404188 | 2019-06-26T17:16:15 | 2019-06-26T17:16:15 | 194,709,388 | 0 | 0 | null | 2019-07-01T16:38:57 | 2019-07-01T16:38:56 | null | UTF-8 | Python | false | false | 763 | py | # built-in
import json
from pathlib import Path
# project
import pytest
from dephell.commands import DepsTreeCommand
from dephell.config import Config
@pytest.mark.allow_hosts()
def test_deps_tree_command(temp_path: Path, capsys):
config = Config()
config.attach({
'level': 'WARNING',
'silent'... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
97e53264bee22412d3530524e5d9112807c0a671 | ca299cec2cd84d8b7c2571fa2fdf7161e66b8fe7 | /private_server/guard/CELL-34/Q-33/34-33.py | 259448e0006f40ecbc27700fd825b133d9cb27bf | [] | no_license | benmechen/CodeSet | ca57d4a065ac4fc737749f65cb5aa1011d446a88 | f5a4bf627a9a8efc76a65ae58db63a973fedffb7 | refs/heads/master | 2021-07-16T14:23:36.355491 | 2019-12-02T13:58:27 | 2019-12-02T13:58:27 | 225,385,245 | 1 | 0 | null | 2021-06-22T15:37:57 | 2019-12-02T13:47:09 | JavaScript | UTF-8 | Python | false | false | 148 | py | from datetime import datetime
now = datetime.now()
year = now.year
month = now.month
day = now.day
print(now)
print(year)
print(month)
print(day) | [
"psybm7@nottingham.ac.uk"
] | psybm7@nottingham.ac.uk |
108dfa96dc0b6497ddfb5addccc22f6f7974880a | 138f2550bb088a0597e1e71124d9ae32b1fe59c9 | /xbrr/edinet/models/documents.py | 8b15506df1c609b1ab2e24c2fd4dc3f37fbd524f | [
"MIT"
] | permissive | chakki-works/xbrr | 9009539e1821c3d9c815f694eb52158ccbbeeb78 | a9783acbb6c23eb0be0e1fbfb47e5b0b0e2cbfb8 | refs/heads/master | 2022-07-22T22:30:17.054418 | 2021-06-16T13:27:40 | 2021-06-16T13:27:40 | 182,622,738 | 23 | 5 | MIT | 2022-07-15T18:42:36 | 2019-04-22T04:26:21 | Python | UTF-8 | Python | false | false | 999 | py | from xbrr.edinet.models.metadata import MetaData
from xbrr.edinet.models.document import Document
class Documents():
"""Document lists"""
def __init__(self, metadata: MetaData = None, documents: list = ()):
"""
Keyword Arguments:
count {MetaData} -- Metadata (default: {None}).
... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
406a7ce5aac74ea320d07ca700ccb30e3dee2c7f | 8ae28de60c84c4f36d29289bad14cf8bbb4be1ba | /bot/units/models/terran/cyclone.py | b9eef5eb284ad781ced60ff5809439fd0b96b40d | [
"MIT"
] | permissive | ljuti/raynors-rangers | 05d0be6e5dcb9e480f6a75bf0b7fe216f05da8d1 | 1f9f3a39aa62c8956987e322d690318c7b67e283 | refs/heads/master | 2023-04-30T23:06:26.893739 | 2019-05-19T20:21:49 | 2019-05-19T20:22:08 | 169,393,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | class CycloneModel():
def __init__(self):
self.supply = 3
self.cargo_size = 3
self.health = 180
self.range = 4
self.range_upgraded = 6
self.sight = 11
self.speed = 4.13
self.ground_attack = True
self.aerial_attack = True | [
"ruby@laurijutila.com"
] | ruby@laurijutila.com |
5799c479daf151abfecc6cf23b20949168fe1702 | 7dbb60661d3d8b8e0ded9d3febd21032e5c281d5 | /Pycon2009/excell/xlrd/open.py | c338f5150dc90a9ed67d5717dfc0ca0cd8a1fb0a | [] | no_license | cabecada/pydanny-event-notes | dc8175196e936a8c97b9009281c184beecd28778 | cda2a32cafe96701f4e728d4802ef3f3d9d5e9a0 | refs/heads/master | 2021-01-24T04:54:14.991218 | 2018-01-24T23:45:37 | 2018-01-24T23:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from mmap import mmap,ACCESS_READ
from xlrd import open_workbook
print open_workbook('simple.xls')
with open('simple.xls', 'rb') as f:
print open_workbook(
file_contents=mmap(f.fileno(),0,access=ACCESS_READ)
)
aString = open('simple.xls','rb').read()
print open_workbook(file_contents=a... | [
"pydanny@gmail.com"
] | pydanny@gmail.com |
d5bcf06456df9f6bf43807cb045a5cb3a0d9f605 | 94f1711fc8b25f3c027ee64a1c44e7a7c9be9972 | /examples/plot.py | 0df8728bfdbe26d21fe46b36dc700454caa2dd9e | [] | no_license | ALBA-Synchrotron/sls-detector | b5211a98800c2d271569b775bc1e48224ee89313 | 961d33152af298eb4cbd311d9d185683ba992199 | refs/heads/master | 2023-07-01T14:26:11.152686 | 2021-07-30T10:06:14 | 2021-07-30T10:06:14 | 262,325,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | import argparse
import threading
import pyqtgraph
from pyqtgraph.Qt import QtGui, QtCore
import sls.client
class QDetector(QtCore.QObject):
newFrame = QtCore.Signal(object)
def run(options):
app = QtGui.QApplication([])
plot = pyqtgraph.plot()
curve = plot.plot()
plot.show()
mythen = sls... | [
"coutinhotiago@gmail.com"
] | coutinhotiago@gmail.com |
157381b94215aba0360d4819a7269f9adf6b9595 | 1025bc2aa5aaa40970ad1a51d8d0b1202a1ea11e | /Utilities/python/rootbindings.py | 675032fc480bd291fe0ad8c11edb5d6bdaab6d34 | [] | no_license | uwcms/FinalStateAnalysis | f2be318546728621676a4b90ed2678b2560c94e6 | bcb164a8e27d459a9ac438780f6c8730d3e856bf | refs/heads/miniAOD_9_4_0 | 2022-11-09T01:28:52.199025 | 2019-03-15T19:25:10 | 2019-03-15T19:25:10 | 5,201,989 | 5 | 32 | null | 2020-11-19T17:02:32 | 2012-07-27T07:51:18 | Python | UTF-8 | Python | false | false | 259 | py | import ROOT
## ROOT.gSystem.Load("libFinalStateAnalysisStatTools")
## ROOT.gSystem.Load('libFinalStateAnalysisTagAndProbe')
ROOT.gSystem.Load('libFinalStateAnalysisUtilities')
#ROOT.gSystem.Load('$CMSSW_BASE/lib/$SCRAM_ARCH/libHiggsAnalysisCombinedLimit.so')
| [
"Silvia.Taroni@cern.ch"
] | Silvia.Taroni@cern.ch |
6b5df35f09ed114b1f7f501d8fe3b0dc271e5838 | 03778e9985613ffccd8e2076ed51e86e86f997b6 | /pysad/models/standard_absolute_deviation.py | 169b9170f9ec8f4192f841274f51c846c746ec8d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | isci1102/pysad | e3fe263a075fc51ee2bce548da458222ec5a3b7a | dff2ff38258eb8a85c9d34cf5f0b876fc1dc9ede | refs/heads/master | 2023-03-18T03:33:19.345541 | 2020-09-08T01:32:29 | 2020-09-08T01:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | from pysad.core.base_model import BaseModel
from pysad.statistics.average_meter import AverageMeter
from pysad.statistics.median_meter import MedianMeter
from pysad.statistics.variance_meter import VarianceMeter
class StandardAbsoluteDeviation(BaseModel):
"""The model that assigns the deviation from the mean (or ... | [
"yilmazselimfirat@gmail.com"
] | yilmazselimfirat@gmail.com |
95ec8fd7a6bd143e8448f66896fba383bddf5373 | e7d5db388df22905d3a00eaf970acbcf1c839bab | /python/.old3/student.py | 8e4f20257fe54f0a6719c69fc0c6d7f0ee7fff92 | [] | no_license | seanho00/twu | 0c47afe4bfb47bb86c81f4871a8e5973dbc843a2 | 5e97bd08c8a281f77c16a1ae890d234972a4622e | refs/heads/master | 2020-12-25T15:08:09.413702 | 2016-08-30T04:52:55 | 2016-08-30T04:52:55 | 66,873,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | """Definitions for a student info record.
Sean Ho for CMPT140 demo.
"""
class Date:
def __init__(self, y=2000, m=1, d=1):
"""Setup a new date object,
optionally with the given year/month/day.
pre: y/m/d must be integers in the appropriate range.
See also: datetime.date:
... | [
"github@seanho.com"
] | github@seanho.com |
4d42a0286cd3434b0e825806b741203dfc7d2dc3 | a5fcfbef729c372d3a5396619c8ab03085d9fdb1 | /pylib/cmdutils.py | ce1c70348424691f2a26817d0b7c833ec48d70c9 | [] | no_license | decli/winterpy | 88bb127729937885d7ae021e2b6439d8dd8bdc00 | 082cf9f30c66a33291b4a7737f91e90990c59d92 | refs/heads/master | 2021-01-18T08:43:06.804938 | 2014-06-01T10:41:15 | 2014-06-01T10:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # vim:fileencoding=utf-8
'''
call external tools to do things.
'''
import subprocess
from functools import lru_cache
@lru_cache(maxsize=20)
def lookupip(ip, cmd='cip'):
return subprocess.getoutput(subprocess.list2cmdline([cmd, ip])).replace('CZ88.NET', '').strip() or '-'
def check_mediafile(file):
'''intergrity... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
f4b639cb8c07e02fec8aa6043412392fe54c6158 | a8d68074db5c2b2697650ed0281979d3e00cf5a8 | /Nyspider/www.fang.com/get_hourse.py | 2f84d0325f7b83294a58f290281d20927869f256 | [] | no_license | 15807857476/bogdata-2 | 9595609ea2ae5ae0a48c511f911df2498456467e | 1934cdfa234b77ca91e349b84688db113ff39e8c | refs/heads/master | 2023-05-26T19:10:18.439269 | 2019-05-24T02:50:41 | 2019-05-24T02:50:41 | 188,327,526 | 3 | 1 | null | 2023-05-22T21:37:27 | 2019-05-24T00:53:28 | Python | UTF-8 | Python | false | false | 5,243 | py | #coding:utf-8
import requests
from bs4 import BeautifulSoup
import xlwt3
import threading
headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "en-US,en;q=0.5",
"Connection": "keep-alive",
"User-Agent": "Mo... | [
"2397955090@qq.com"
] | 2397955090@qq.com |
daa66efa2fa8e1a639c548a211243e733270d3e1 | 63ace5832d453e325681d02f6496a0999b72edcb | /benchmark/tests/ed25519_blake2b_tests.py | 5919601af41a2317c191c4864206a57fd69662b9 | [
"MIT"
] | permissive | ebellocchia/bip_utils | c9ec04c687f4247e57434319e36b2abab78f0b32 | d15c75ddd74e4838c396a0d036ef6faf11b06a4b | refs/heads/master | 2023-09-01T13:38:55.567370 | 2023-08-16T17:04:14 | 2023-08-16T17:04:14 | 251,130,186 | 244 | 88 | MIT | 2023-08-23T13:46:19 | 2020-03-29T20:42:48 | Python | UTF-8 | Python | false | false | 1,606 | py | # Copyright (c) 2021 Emanuele Bellocchia
#
# 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, modify, merge, publish,... | [
"54482000+ebellocchia@users.noreply.github.com"
] | 54482000+ebellocchia@users.noreply.github.com |
9e4fc391a584e7ebf2c2497e63bc5969b3f98b65 | 39dc00c9ac403d93800781b75c4d28079d66c407 | /03_reaction_roles.py | c1747c27ec95a2a25fd6d6cafc8a3528a656a854 | [] | no_license | aleks969/Discord-Bot-Tutorials | 631352c2f030471c2b956dfb820c59944fd2cee3 | 96b4357cf7f520b10de2823a48dd281525059ebf | refs/heads/master | 2023-08-15T00:09:48.680245 | 2021-09-28T04:27:32 | 2021-09-28T04:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | import discord
"""
client = discord.Client()
@client.event
async def on_ready():
print('Ready')
client.run('')
"""
# https://discordpy.readthedocs.io/en/latest/intents.html
# https://discord.com/developers/docs/topics/gateway#gateway-intents
# https://discord.com/developers/docs/topics/gateway#list-of-intents
... | [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
054ace37618a4a5d09d7b5c5c11ecb90b4ad3f39 | b6a31ec10b39a3dbae183ba40c42078cadf88946 | /256. Paint House.py | f7d21cd7ee9430bc39d12fadd63f2ffe33b083ef | [] | no_license | QIAOZHIBAO0104/My-Leetcode-Records | 69fabd11b279f08861cd644973e51bf664da0d90 | 882724c8d50b2f21193c81e5072c31385c5e6b8e | refs/heads/main | 2023-07-11T00:17:02.368441 | 2021-08-07T16:19:45 | 2021-08-07T16:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | '''
https://leetcode.com/problems/paint-house/
There is a row of n houses, where each house can be painted one of three colors: red, blue, or green.
The cost of painting each house with a certain color is different. You have to paint all the houses such that no two adjacent houses have the same color.
The cost of pai... | [
"noreply@github.com"
] | QIAOZHIBAO0104.noreply@github.com |
7e1c7bee1e6cb127c838be3b6a3b85c4cb6533af | 9c148df61545c38f0cbdd00fba3f504458a382b1 | /nes_server.py | 59b8c7d574cdd1cff7357b7b6fe2ea0fd566ad3a | [] | no_license | fafaschiavo/contrAI | 4244d5be76bba35a1f8662a5a95dadc099e0de3e | 3900d10f28afefe492be88948d0cdcdac3d3c537 | refs/heads/master | 2021-04-28T13:25:59.718148 | 2018-03-10T20:57:56 | 2018-03-10T20:57:56 | 122,105,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import socket
import json
import os
import glob
from threading import Thread
import time
import sys
import os
import subprocess
import cv2
sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), "subfolder"))
screenshots_folder = 'screenshots'
keep_socket_alive = True
data_received = ''
data_to_send = False
class ... | [
"fayschiavo@gmail.com"
] | fayschiavo@gmail.com |
1f735558d3abd06f0aa70ca44547176b357637e3 | 268568ff2d483f39de78a5b29d941ce499cace33 | /spyder/config/tests/test_manager.py | 364c3375e7688e994f5e5540acb1efa9f0e347b9 | [
"MIT"
] | permissive | MarkMoretto/spyder-master | 61e7f8007144562978da9c6adecaa3022758c56f | 5f8c64edc0bbd203a97607950b53a9fcec9d2f0b | refs/heads/master | 2023-01-10T16:34:37.825886 | 2020-08-07T19:07:56 | 2020-08-07T19:07:56 | 285,901,914 | 2 | 1 | MIT | 2022-12-20T13:46:41 | 2020-08-07T19:03:37 | Python | UTF-8 | Python | false | false | 3,509 | py | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Tests for config/manager.py."""
# Standard library imports
import os
import os.path as osp
import shutil
import tempfile
# Third party imports
import pytest
# L... | [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
46a8322fa4b383f6245a82c54d704d3bd9fcdc76 | 7b35116856a8a2dfcb356245e739236d011a751d | /jesse/indicators/hma.py | 8be9d57b17e466720683ee3e67feb482e4f8aed1 | [
"MIT"
] | permissive | shaunstanislauslau/jesse | a13fa212edd3ff1fa4b1aa743e9ec03efab4e091 | 4a7658813f765287f5aad99b8619d98eac5bfe7b | refs/heads/master | 2023-07-20T14:39:25.232089 | 2021-03-30T16:32:39 | 2021-03-30T16:32:39 | 353,088,903 | 0 | 0 | MIT | 2023-07-06T22:41:29 | 2021-03-30T17:39:46 | null | UTF-8 | Python | false | false | 748 | py | from typing import Union
import numpy as np
import tulipy as ti
from jesse.helpers import get_candle_source, same_length, slice_candles
def hma(candles: np.ndarray, period: int = 5, source_type: str = "close", sequential: bool = False) -> Union[
float, np.ndarray]:
"""
Hull Moving Average
:param ca... | [
"mysecondworld@firesurf.de"
] | mysecondworld@firesurf.de |
4feb30114b2c476812f4f003b8dcdf252ef3718e | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/demo1_20201107181245.py | 2f6a553cf350e59408c1cbdc619074b719aa1300 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # import sys
# import yaml
# from demo import search
# from demo import a
# from demo import search1
# search("A")
# print(a)
# search1(12)
# print(dir())
# print(sys.path)
# name = "zhang"
# age = 12
# print("my name is:{0},my age is:{1}".format(name,age))
# list1 = [1,3,2]
# dic1 = {"a":1,"b":2}
# print("List ... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
8c9a9f741726da776b4308350bc36ee2122176dc | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/RygelServer/HTTPGetHandlerPrivate.py | abf284586181e910e051275ee24086b26ae3ec76 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,491 | py | # encoding: utf-8
# module gi.repository.RygelServer
# from /usr/lib64/girepository-1.0/RygelServer-2.6.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attrib... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
d035d1dae19cfea09c2da4df135bd31e7906ddb9 | a4bb0cde9697aa0c85375764d8353da0e1422525 | /mapping_features_fn.py | a369e667d81b360cd2deaeb73b8053108bdcc8fc | [] | no_license | JanzYe/KDD_CUP_2012_Track2 | 5dd529eb1ca0592ab2ea71bda9416a756fc3a0b5 | 027f4a6025814278c82f68da1cb19ef8f3fb1f1a | refs/heads/master | 2020-04-16T06:23:21.419074 | 2019-01-14T06:55:29 | 2019-01-14T06:55:29 | 165,344,529 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | '''
This scripts should run on raw user feature files.
'''
# total number of records in training.txt is almost 150000000, exactly 149639105
# divide the training.txt to feature_mapped_train and feature_mapped_valid
# feature_mapped_train(120000000), feature_mapped_valid(30000000)
# data_descriptionid, data_purchased... | [
"1173865843@qq.com"
] | 1173865843@qq.com |
69ff0d97a85477dcd1228d5e42b4be7da7365da2 | 0e25dc15ae9efce8bfd716d4d2041da07767968b | /qbench/benchmarks/QLib/OPENQL_converted/benstein_vazirani_41b_secret_32.py | 245553254e73295a001dbe1eb9cb042f6d2efc45 | [] | no_license | alxhotel/crossbar-bench | f608fc0062b4f8a5162ec33d61c0204aaf27b6ff | 3bf7536e7697d29c3089b0ba564ba22d39698b88 | refs/heads/master | 2021-07-13T16:06:50.085838 | 2020-10-04T23:39:05 | 2020-10-04T23:39:05 | 213,409,122 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"alxmorais8@msn.com"
] | alxmorais8@msn.com |
5871936defe13c8c76a1e5180211aed6b730fb84 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02939/s874669540.py | a4a0e29c427f34abd6e8938f8a85118db21cf80c | [] | 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 | 211 | py | s = str(input())
S = []
temp = ''
for c in s:
temp += c
if S:
if S[-1] != temp:
S.append(temp)
temp = ''
else:
S.append(temp)
temp = ''
print(len(S))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
50413ba7b2f7b0d8c96b23ca8c6e6550f4a489e3 | 259453140d6b563fc0c280f0922601a54a2cb2c2 | /CMGTools/Production/scripts/dataset.py | 1f44ad56b3e945725420679cfd494be56a9a079b | [] | no_license | wangmengmeng/WHAnalysisPackage | f56b4a128f50801409828ca38d0f26e199201dd8 | 7eb1bf3b4e77579c4362396ca5e594bc93a41f2b | refs/heads/master | 2021-01-17T14:31:11.701436 | 2014-06-05T16:07:38 | 2014-06-05T16:07:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | #!/usr/bin/env python
import os
import fnmatch
from CMGTools.Production.dataset import createDataset
if __name__ == '__main__':
import sys
from optparse import OptionParser
import pprint
parser = OptionParser()
parser.usage = "%prog [options] <dataset>\nPrints information on a sample."
p... | [
"mengmeng.wang@cern.ch"
] | mengmeng.wang@cern.ch |
5af08f0235d4499b872253caf77b8dd5584d4afe | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/alphagov/uk_dvla_practical_test_centres_1.py | 05a90b7771facbdbc2cd97a7e16b55bc915f0fad | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,646 | py | # http://www.dft.gov.uk/dsa/AtoZservices_Bannered.asp?Cat=-1&TestType=car&TypeID=17
# http://www.dft.gov.uk/dsa/AtoZservices_Bannered.asp?letter=G&CAT=-1&s=&TypeID=17&TestType=car
import scraperwiki
import re
import time
from BeautifulSoup import BeautifulSoup, Tag
def a_to_z(url):
letters = "ABCDEFGHIJKLMNOPQRST... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
d240592da8fd85494bbcb347fde359e2e2599908 | 0b5706ff7ffe16f85a7865b579f7cacde240ae73 | /travel/tests_models.py | 286fc35c6ef521cd908debe52f397209bc92b389 | [] | no_license | mikekeda/map | c0528c20d318aeeb56e0a90414e04e775b171d27 | b6f23fa00cfd14514fd58e3b281a4d6c22760be6 | refs/heads/master | 2023-04-13T22:26:52.539232 | 2023-03-31T17:00:59 | 2023-03-31T17:00:59 | 120,111,057 | 0 | 0 | null | 2023-03-31T17:24:33 | 2018-02-03T17:00:44 | JavaScript | UTF-8 | Python | false | false | 1,113 | py | from django.contrib.auth import get_user_model
from django.test import TestCase
from travel.models import Profile
User = get_user_model()
class TravelModelsTest(TestCase):
def setUp(self):
# Create usual user.
self.password = User.objects.make_random_password()
test_user = User.objects.c... | [
"mriynuk@gmail.com"
] | mriynuk@gmail.com |
d4b72a05c133a7c0afa9a15eb6db8ff652ecd068 | 8773e8c9b9a0a6e407f91b6f7c6321141d7e8356 | /P0110.py | a684176fac1ffea810183d7f6040bf42b7ee4762 | [] | no_license | westgate458/LeetCode | 1836bb21e8dd95386ccab390f5fd04567a429a02 | 36d7f9e967a62db77622e0888f61999d7f37579a | refs/heads/master | 2021-12-28T04:16:36.875737 | 2021-12-17T05:48:09 | 2021-12-17T05:48:09 | 152,928,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 30 13:56:08 2019
@author: Tianqi Guo
"""
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def isBalanced(self, root):
"""
:type root:... | [
"tqguo246@gmail.com"
] | tqguo246@gmail.com |
ff0bd7651beacdce2dd3d4d14235fa017523dc94 | 367d2670c75d385d122bca60b9f550ca5b3888c1 | /gem5/util/tlm/SConstruct | 68026954546b315988232a966c0e5836623fee22 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | Anish-Saxena/aqua_rowhammer_mitigation | 4f060037d50fb17707338a6edcaa0ac33c39d559 | 3fef5b6aa80c006a4bd6ed4bedd726016142a81c | refs/heads/main | 2023-04-13T05:35:20.872581 | 2023-01-05T21:10:39 | 2023-01-05T21:10:39 | 519,395,072 | 4 | 3 | Unlicense | 2023-01-05T21:10:40 | 2022-07-30T02:03:02 | C++ | UTF-8 | Python | false | false | 3,756 | #!python
# Copyright (c) 2016, Dresden University of Technology (TU Dresden)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyrigh... | [
"asaxena317@krishna-srv4.ece.gatech.edu"
] | asaxena317@krishna-srv4.ece.gatech.edu | |
1b0c5d7c6f590a2d9217c022f7d5869a63e89a27 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/pbbtelblearnedinfo_04eda79d986af811f8d758c15dc5e1a1.py | d50e171dbf4817af41b6ecc617054fafec2584ed | [
"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 | 6,032 | 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 |
41bcee1363f47af8ce67d962a3c8dce323b1487e | 7d5047dae4df06f10752b7a3ec6e663f296457d3 | /Programmers/Level 2/수식 최대화.py | b14ba448309c9478268653f7d450d805a632a068 | [] | no_license | soulgchoi/Algorithm | a73e3e8e3a256d4cf1c8b5fa3c7dc35a325a6e9a | a88b2c2a0f0d75ca59269dd815ee8d30dd270ce7 | refs/heads/master | 2022-02-05T18:08:09.271443 | 2022-01-20T02:36:37 | 2022-01-20T02:36:37 | 228,958,329 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | def cal(op, num1, num2):
if op == '+':
return num1 + num2
elif op == '-':
return num1 - num2
elif op == '*':
return num1 * num2
def solution(expression):
answer = 0
priors = [('*', '+', '-'), ('+', '-', '*'), ('+', '*', '-'), ('-', '+', '*'), ('-', '*', '-'), ('*', '-', '+')]
numbers, operands = [], []
t... | [
"bssj9307@gmail.com"
] | bssj9307@gmail.com |
d9a79ea69cfb09da7ebd31ac15410bf4bddfd1ef | b5bc72861644c274b75e42374201ea8cdb84c1a2 | /try_examples/string_oper.py | cb82a49c705722608af19d3527a1543d464359a0 | [] | no_license | Aadhya-Solution/PythonExample | 737c3ddc9ad5e3d0cde24ac9f366ce2de2fa6cfe | 34bc04570182130ebc13b6c99997c81834ad5f53 | refs/heads/master | 2022-12-18T09:54:30.857011 | 2020-08-24T13:53:59 | 2020-08-24T13:53:59 | 288,183,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | def word_mixer(org_list):
new_list = []
org_list.sort()
org_sort_list = org_list
print(org_sort_list)
while len(org_sort_list) > 5:
ele=org_sort_list[-5]
org_sort_list.pop(-5)
new_list.append(ele)
ele = org_sort_list[0]
org_sort_list.pop(0)
new_list.ap... | [
"shashikant.pattar@gmail.com"
] | shashikant.pattar@gmail.com |
d380294af1b8fdfd3db527ad96fcd50746e0b66a | 35b6013c1943f37d1428afd2663c8aba0a02628d | /composer/workflows/dataflowtemplateoperator_tutorial.py | e0726a492e35fd0a1ffaae61343cea20593221f2 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 3,508 | py | # Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
0a0d3bb57df197050a9be4dae8f517da30f110bd | a214e706c875e0af7221c0c9ae193d9d93ee20a7 | /addreplacereadgroup.py | ddba271b40248db97efb7cfd604e4fb02a4d0c62 | [] | no_license | inambioinfo/bioinformatics_scripts | fa2292e91ad4134204a09ace27c8a91ae70fa34c | 3a23611f382b7f3dd60e5e2abe841b84408c0d44 | refs/heads/master | 2020-03-20T21:17:10.163061 | 2017-03-28T23:41:39 | 2017-03-28T23:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from optparse import OptionParser
import os
from time import time
import datetime
#Example
#python /lgc/scripts/unifiergenotyper.py -i ../../data/Exome_11_AP.realigned-recalibrated.bam -t /lgc/datasets/exome_targets/Agilent_50MB/BED/029720_D_BED_20111101.bed
__author__ ... | [
"raonyguimaraes@gmail.com"
] | raonyguimaraes@gmail.com |
31db3d967250bbb3400d5bf596c9d59670a4ffbe | ac549e553263801bdc6962a10ebbe784dc2631df | /Python/linkedlist/is_palindrome.py | da401db347ca27e46dff6d3fe7a0d9188f75bb21 | [] | no_license | Bishal44/DataStructure | e595890d18bde39e65f02a7ca3a6904c6070c3c8 | 939c47de6dcfe3b2578aaa0610d3cdc5726572c7 | refs/heads/master | 2020-09-10T22:40:46.368607 | 2020-03-28T12:15:08 | 2020-03-28T12:15:08 | 221,854,694 | 0 | 0 | null | 2019-12-10T15:47:45 | 2019-11-15T05:59:40 | Python | UTF-8 | Python | false | false | 2,564 | py | """
Datastructure_and_algorithm
Created by Bishal on 18 Nov 2019
"""
def is_palindrome(head):
if not head:
return True
# split the list to two parts
fast, slow = head.next, head
while fast and fast.next:
fast = fast.next.next
slow = slow.next
second = slow.next
slow.next ... | [
"bhattaraibishal704@gmail.com"
] | bhattaraibishal704@gmail.com |
dfc68b2ed748c2f98af58718013b4466b79e6783 | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/api/openstack/compute/schemas/v3/security_groups.py | 86bdbf1209fb6cc9dd2c0c7695a343cdad332c00 | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # Copyright 2014 NEC Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
0c7736d49e34a6b04dacae341edb472d070adffd | d039da1c0b99e2642d3c354de9faa6f427141ee3 | /problems/leetcode/SubsetsII.py | 91f39e6518d7f59bc0463846ca43e80109d44155 | [
"MIT"
] | permissive | qicst23/pyshua | 5a3e317823d0620d2034adfe345eddd6a722c7ff | 4ae7bb8b626f233ebc2267024ba67dcfe49051ed | refs/heads/master | 2016-09-15T20:26:16.694738 | 2013-12-15T04:50:04 | 2013-12-15T04:50:04 | 15,198,867 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | from problems.leetcode.LeetcodeProblem import LeetcodeProblem
class SubsetsII(LeetcodeProblem):
def solve(self, num):
if not num:
return []
num.sort()
cur = num[0]
count = 0
parts = []
partsCount = []
for x in num:
if x == cur:
... | [
"baidingding7@gmail.com"
] | baidingding7@gmail.com |
3607d264184912db586dd5198ef1ec81899e65d2 | 5f579bd5e46f75aa3f6eedc59edbcf2f7867bba1 | /examples/distribution/PyInstaller/hello_world.py | efcb943433d1b28a596dca464bfcca0a930b6aa0 | [
"BSD-2-Clause-Views",
"Python-2.0",
"BSD-2-Clause"
] | permissive | gomurky/python-tcod | 6d83f00ca79d26787fd5015b467b1c9825efe80e | acc83fdc509c290af9a841bca868851fc7330137 | refs/heads/master | 2022-12-25T00:57:18.311921 | 2020-07-30T09:44:25 | 2020-07-30T09:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | #!/usr/bin/env python3
# To the extent possible under law, the libtcod maintainers have waived all
# copyright and related or neighboring rights for the "hello world" PyInstaller
# example script. This work is published from: United States.
# https://creativecommons.org/publicdomain/zero/1.0/
import sys
import os.path... | [
"4b796c65@gmail.com"
] | 4b796c65@gmail.com |
88c0850ac997a710be734bdddd3313e2fad7b8ce | fbdff0b6c905f4a838946df6f6082090ee2e9c8b | /harnessed_jobs/flat_gain_stability_BOT/v0/flat_gain_stability_jh_task.py | 80b43f9f0c9439e277c690625ab2ba42ab58781c | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lsst-camera-dh/EO-analysis-jobs | d6767dfe48e01b7e3817bf736e12495e6ce200ac | e23cb86a29ab0c860dc825d0ac121809a6e9bbcb | refs/heads/master | 2023-01-14T14:31:52.577334 | 2022-06-14T17:48:11 | 2022-06-14T17:48:11 | 78,456,751 | 4 | 2 | NOASSERTION | 2023-01-06T00:24:43 | 2017-01-09T18:31:25 | Python | UTF-8 | Python | false | false | 1,305 | py | #!/usr/bin/env ipython
"""
Script for BOT flat gain stability analysis.
"""
def flat_gain_stability_jh_task(det_name):
"""JH version of single sensor execution of the flat pairs task."""
import glob
import siteUtils
from bot_eo_analyses import make_file_prefix, glob_pattern,\
bias_filename, flat... | [
"jchiang@slac.stanford.edu"
] | jchiang@slac.stanford.edu |
2aa19b5245e925b2d6e067b5ed0f462ee8d9a5a7 | 786de89be635eb21295070a6a3452f3a7fe6712c | /pyfits/tags/V00-00-05/SConscript | 87ea30c3ed94cda3091c9bd24db354f14359a2a2 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | #------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package pyfits
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file for... | [
"salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
a7485e2975ec05beab0d144950c1658aa6b0b387 | 0fd7a471a63e2bed2857976d8bf2c28bb7f6d1bb | /小练习/第n个神奇数字.py | ded2c8ef834dee1a51b5262cb6a459ed4cb645fd | [] | no_license | zjf201811/LeetCode__exercises | 0432f97d314303a5b2305d745cae9d998b92a851 | 6e5975172dfd17d71b0c6bacc34d51e9e96b6a36 | refs/heads/master | 2020-04-18T01:47:52.285975 | 2019-01-27T00:28:58 | 2019-01-27T00:28:58 | 167,134,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Author:ZJF
class Solution:
def nthMagicalNumber(self, N, A, B):
def lcm(x, y):
greater = max([x, y])
while True:
if ((greater % x == 0) and (greater % y == 0)):
lcm = greater
break
greater += 1
ret... | [
"thor201105@163.com"
] | thor201105@163.com |
0bbc78d0c788f7d465b65ba4f9fb3fd027009470 | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/src/py3/extrusion/project2d.py | 402038876ac37e0966488873a8671ed6a96b1b55 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import numpy as np
def project2d(md3d,value,layer):
'''
returns the value of a field for a given layer of the mesh
returns the value of a vector for a given layer from extruded mesh onto the 2d mesh
used to do the extrusion. This function is used to compare values between different
layers of a 3d mesh.
... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
402ed0b4e11e434bc0b77ad0cfe6da2098728cc4 | 848ac37e474ec4e4e937e4c0f962f09be195a15c | /book/migrations/0024_auto_20230801_2234.py | b3c8a6cecb8c919ff10380e350b957f4dc1a108c | [] | no_license | philippedemaria/sacado | 12829e924480d7902c8e382925d7622a13520dbf | c001f4e5391cddc290e461e870f0165fed4677d1 | refs/heads/master | 2023-09-04T05:18:44.439431 | 2023-09-03T20:58:09 | 2023-09-03T20:58:09 | 190,163,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | # Generated by Django 3.0.5 on 2023-08-01 21:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('book', '0023_auto_20230801_2012'),
]
operations = [
migrations.AlterUniqueTogether(
name='page',
unique_together=set(),
... | [
"philippe.demaria83@gmail.com"
] | philippe.demaria83@gmail.com |
b81a139a14f0a5e9e6975e9b37181cb832e90d14 | 3a642fa1fc158d3289358b53770cdb39e5893711 | /src/xlsxwriter/test/worksheet/test_cond_format13.py | e7786f0a10b039e958d6d738e54ad4c7be9f0984 | [] | no_license | andbar-ru/traceyourself.appspot.com | d461277a3e6f8c27a651a1435f3206d7b9307d9f | 5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c | refs/heads/master | 2020-07-23T14:58:21.511328 | 2016-12-26T22:03:01 | 2016-12-26T22:03:01 | 73,806,841 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...worksheet import Worksheet
class TestAssemble... | [
"andrey@voktd-andbar.int.kronshtadt.ru"
] | andrey@voktd-andbar.int.kronshtadt.ru |
550573f98a6db37fdae73cb6a4aee79302bfd36b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_169/ch50_2020_04_12_21_42_25_757763.py | 667f1a4aefb9aa20fca4977a546b5fad32c5da46 | [] | 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 | 183 | py | def junta_nome_sobrenome(lista1,lista2):
lista3=[]
for i in range(len(lista1)):
lista3.append(lista1[i]+' '+lista2[i])
return lista3
| [
"you@example.com"
] | you@example.com |
884ac4c926d2b4acb873e744341a57507c7927cd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2367/60721/278906.py | f98e2401d5a1c396437f661a9c6e5eac2878bfdd | [] | 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 | 300 | py | k=int(input())
m=k%10
if(m==2 or m==4 or m==5 or m==6 or m==8 ):
print(-1)
else:
if(1%k==0):
print(1)
elif(11%k==0):
print(2)
elif(111%k==0):
print(3)
elif(1111%k==0):
print(4)
elif(11111%k==0):
print(5)
else:
print(-1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e25b6b9f3a0ef9926031804a26786aab2d7d615e | e96f5dc3ebb97bb45f8ff130cf82ae7099fa50f8 | /rft.py | 117d6ae33f4be42b6c32b7d9572fa5ebf0d01f6a | [] | no_license | GoIncremental/trello2jira | cc423421e6500ab45daf48b77e59d4d3639676da | 22d0b5778b0df9c4829d882f6ee6bd531b3fd5e4 | refs/heads/master | 2021-01-18T19:45:44.881063 | 2015-03-10T12:04:10 | 2015-03-10T12:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | rft = [
1141,
210,
1087,
336,
266,
307,
1285,
664,
1280,
1264,
270,
1257,
334,
1148,
281,
324,
303
]
T = "project=CFTO and id="
p = ''
for x in rft:
p = p.join('{},'.format(x))
print p | [
"bwghughes@gmail.com"
] | bwghughes@gmail.com |
9d74a677865caf4d081a8c5da60f39ab0938e274 | c2a52ed0e20126ab9945623fb78e61abfde0a75e | /081-SearchInRotatedII/search_in_rotated_arr.py | fb3b9b4c10dd3099a6cf7dfd3124522bd31cfeaa | [] | no_license | fs302/LeetCode | 5ce4689d74dc79655bf5dfba08b155d6559a1e6a | 31cf9958ead6ad975043e23223b8d2efe6cd0742 | refs/heads/master | 2023-01-10T04:59:32.126007 | 2022-12-28T13:39:41 | 2022-12-28T13:39:41 | 52,079,796 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | import time
class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: bool
"""
l, r = 0, len(nums)-1
while (l <= r):
m = l + (r-l)//2
if nums[m] == target:
return True ... | [
"fanshen.fs@alibaba-inc.com"
] | fanshen.fs@alibaba-inc.com |
c0147a24fbe77a84bf81f829f77fa47becf923aa | 15497241d08df1ca6f2123838bcc5e3cfc9fc7aa | /umuco/migrations/0007_cathegory_reportservices.py | 09882f09ca376453c36e33eab5f658659cb4b803 | [] | no_license | unicefburundi/umuco | 93b7e6a3d7f514a71b57776c719b6f733bf29fd0 | 31dee45bf87eaf64515a01f7dd24fa0c72806783 | refs/heads/master | 2020-04-12T07:25:31.345805 | 2018-07-25T02:27:31 | 2018-07-25T02:27:31 | 33,418,794 | 0 | 0 | null | 2017-03-02T03:13:20 | 2015-04-04T20:14:18 | JavaScript | UTF-8 | Python | false | false | 1,150 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('umuco', '0006_auto_20160707_1038'),
]
operations = [
migrations.CreateModel(
name='... | [
"kuristockyrugano@gmail.com"
] | kuristockyrugano@gmail.com |
e37391e6c8de8ea366343d1ac520c4be1221c88c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2306/60641/302087.py | 1d98bf13cd60c0f1f1bbb81ef6d258eaf5e9e7a0 | [] | 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,763 | py | class BinaryTree:
left_node = None
right_node = None
value = -1
def __init__(self, num, nums):
self.value = num
index = -1
for i in range(0, len(nums)):
if nums[i][0] == num:
index = i
break
if nums[index][1] != 0:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
da6f5652128ec8e0cd59feb842703a516cc30c1f | 433dba5f732cf98384329243a41b70bf4c9fe523 | /endpoints_management/control/timestamp.py | eebd5acbbc1bc78b720fa46ad566df5dccec22cc | [
"Apache-2.0"
] | permissive | 0tsuki/endpoints-management-python | 47fc4ac9f8defff1c98c9aca42ca3aea0af7e38c | 12a27af689aa7715001563834994e7e5161acac9 | refs/heads/master | 2023-04-09T07:24:29.379950 | 2017-05-18T21:17:24 | 2017-05-18T21:17:24 | 93,598,857 | 0 | 0 | Apache-2.0 | 2023-04-04T00:18:13 | 2017-06-07T06:09:19 | Python | UTF-8 | Python | false | false | 4,318 | py | # Copyright 2017 Google Inc. 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 agree... | [
"jon@inklesspen.com"
] | jon@inklesspen.com |
e93fb42ff17766b79254d659ebe87886aa5d8513 | fa0f12a6d63be22b588133bfb9c130f1eeecab3d | /myvenv/lib/python3.7/site-packages/pip/_vendor/urllib3/util/response.py | 5e5d2f5f172b0910ea46db7109f4be23d5c87d5d | [] | no_license | 8th-caulion/high-hat | 6b2c455be14b5e617bf993cfb67c68975df3aa65 | fc1f9793747892b7b58f066c45ab95d3f0269db9 | refs/heads/master | 2023-08-02T12:07:36.540488 | 2020-06-03T17:36:32 | 2020-06-03T17:36:32 | 267,542,957 | 0 | 6 | null | 2021-09-22T19:09:26 | 2020-05-28T09:04:29 | Python | UTF-8 | Python | false | false | 2,951 | py | from __future__ import absolute_import
from ..packages.six.moves import http_client as httplib
from ..exceptions import HeaderParsingError
def is_fp_closed(obj):
"""
Checks whether a given file-like object is closed.
:param obj:
The file-like object to check.
"""
try:
# Check `i... | [
"rldnjs9347@gmail.com"
] | rldnjs9347@gmail.com |
b15c228749a88c0e226569cc09e37c03faa186d9 | 246b553b7c5464cf5aac875ce66dccb5ee7f31c1 | /grow/extensions/base_extension_test.py | 8f56b68e53c2b179bde7df866aea1e199eef6aaf | [
"MIT"
] | permissive | david-j-davis/grow | d680110e0cc55d8f5dfd1b1300850762a0714f41 | b8333d507778fb13746b5308c1380b14df393df0 | refs/heads/master | 2021-04-03T10:28:22.430900 | 2018-02-27T23:53:30 | 2018-02-27T23:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | """Tests for base extension."""
import unittest
from grow.extensions import base_extension
class BaseExtensionTestCase(unittest.TestCase):
"""Test the base extension."""
def test_config_disabled(self):
"""Uses the disabled config."""
ext = base_extension.BaseExtension(None, {
'di... | [
"randy@blinkk.com"
] | randy@blinkk.com |
7a5f4304475c6d4f32d0dd5b3929d14999d05ab4 | 9e482a31dd8c1661ad1953d7fbd24a532306f58c | /Plays/Play05/longest_word.py | 100d0dcf8ad0042b748d3bfb2ad7e0edc23b5dba | [] | no_license | margaridav27/feup-fpro | 49a66f6643c83adb948ff110f522948f43508519 | e805e08d0fdd273db272300e3e9676c585030f23 | refs/heads/master | 2023-01-23T01:16:11.534704 | 2020-11-25T10:48:00 | 2020-11-25T10:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 1 15:59:20 2019
@author: Margarida Viera
"""
def longest(s):
s = s.split(' ')
longest = 0
for word in s:
if len(word) > longest:
longest = len(word)
return longest
print(longest('A list with some words'))
print(longest('Unnecessarily... | [
"up201907907@fe.up.pt"
] | up201907907@fe.up.pt |
adb5c6d95cca2d987ee95ca8e36257ec298c75da | 0ecb1763b4cab08a1fb80234639e46afc8921e2f | /databases/tableview_tablemodel_titles.py | 7e6c7ae715ad258ddfdc89ffbd740958e2e1c960 | [] | no_license | mach8686devops/pyside6-demo | 4eed3713288ec21b0ec4b8561290f87925693b89 | 848302ff9c1536034cf5f225fa953944d011c2a4 | refs/heads/main | 2023-05-05T11:12:20.711846 | 2021-05-28T13:44:41 | 2021-05-28T13:44:41 | 371,714,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import sys
from PySide6.QtCore import QSize, Qt
from PySide6.QtSql import QSqlDatabase, QSqlTableModel
from PySide6.QtWidgets import QApplication, QMainWindow, QTableView
db = QSqlDatabase("QSQLITE")
db.setDatabaseName("chinook.sqlite")
db.open()
class MainWindow(QMainWindow):
def __init__(self):
... | [
"zhangjohn202@gmail.com"
] | zhangjohn202@gmail.com |
e6c3be2d3d155aa6f7f5782828c25adfb78f4a0a | 6f73e037e86c05756f4b4712f16881bc27e795f6 | /mcts/demo.py | d7f329e25f346862cb642c91ac4ed53a258a0397 | [] | no_license | LaiTJ/reinforcement-learning | 7de072de6178c4db09f09b39f302ccf5ed678111 | 9dee5ec28dc93417daa460c7d182040ddc7d4c6e | refs/heads/master | 2022-02-20T12:46:21.643455 | 2019-09-29T04:33:59 | 2019-09-29T04:33:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | # -*- coding: utf-8 -*-
from reversi import *
from search.search1 import UCT_MCTS as UCT_MCTS1
from search.search2 import UCT_MCTS as UCT_MCTS2
def demo(ai):
Reversi = reversi()
op_chosen_node = None
op_chosen_node2 = None
ai_pos = None
ai_pos2 = None
while Reversi.feasible_move_show():
... | [
"xg.gao@tianrang-inc.com"
] | xg.gao@tianrang-inc.com |
d0a7bb6a44c2799acb14f95378a7c41213a69c57 | 9ec1242ae20b6f407f25a266456d83fb8a3d5f73 | /src/tools/genesis/bitcoin_genesis.py | 782f38dd145796e06a5b0133124ff7aea3ee04a9 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | Nell-MDCoin/Nell-MDCoin | 5b6d6af7e141844ba22970adacd4877d024e872b | 9a1be366aba13539132dc7d0a9f0fdeaa2e19044 | refs/heads/master | 2020-03-21T23:17:23.329553 | 2018-06-29T17:32:53 | 2018-06-29T17:32:53 | 139,177,535 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,836 | py | #!/usr/bin/env python
import binascii
from bitcoin.core import COutPoint, CTxIn, CTxOut, CTransaction, CBlock
coinbase = "04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73"
scriptPubKeyHex = "4104678afdb0fe55482... | [
"justdvnsh2208@gmail.com"
] | justdvnsh2208@gmail.com |
487cc04ceab6f0ae7ea26285afb9b0a29b29c47a | 312d8dbbf980bf164f210e7935b17dc08d64ff87 | /Model/repeat1_link_prediction_appeared_utilize_all/COSSIMMLP/main.py | 7878498db2377ed72b46039a0844f81a66be2aed | [] | no_license | hsack6/OWGP_NBA | 27dafbd6e59c17ce4a66e92132ee56782e2126bf | 56656efb5884cd9f806e476a92c5e6485c71adeb | refs/heads/master | 2023-02-25T09:52:05.165494 | 2021-02-03T12:44:04 | 2021-02-03T12:44:04 | 288,363,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,014 | py | import argparse
import random
import pandas as pd
import torch
import torch.nn as nn
import torch.optim as optim
from model import COSSIMMLP
from utils.train import train
from utils.valid import valid
from utils.test import test
from utils.inference import inference
from utils.data.dataset import BADataset
from utils... | [
"yamasaki.shohei@ist.osaka-u.ac.jp"
] | yamasaki.shohei@ist.osaka-u.ac.jp |
009d5b5f0ce64851359d05faa60f179ceafb24de | 2cbf3aaad62f4922d827af658fb5dbb7ac651bef | /teledusite/teledu/models/lib/conceptInstanceResolver.py | d2258425f9aa2889bf02f51c7a31ee5eb0b467a1 | [] | no_license | tctimmeh/teledu | 0266240aa864cd2eed75857e66eaeb8270f44c1a | 04135ffb04f397f29152ca48f868a957b18d504a | refs/heads/master | 2021-01-23T08:52:32.817693 | 2013-10-29T01:34:41 | 2013-10-29T01:34:41 | 2,566,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from teledu.models.lib import AttributeResolver
from teledu.models import ConceptInstance
class ConceptInstanceResolver(object):
def __init__(self, concept):
self.concept = concept
def __unicode__(self):
return unicode(self.concept.id)
def __getattribute__(self, item):
if item in ['concept', '_getC... | [
"tctimmeh@gmail.com"
] | tctimmeh@gmail.com |
99982a2be0365b2974a51af489710b02690a758a | b9a2a35d93625fefbda7d693c3797660d7f93983 | /api/task/internal.py | a64f683266ebe26b4ce929467c100722f4357913 | [
"Apache-2.0"
] | permissive | iselu/esdc-ce | 18236c3f8afdac82987af9ff4d23f578d6b1f5c7 | 230d79401a60860455cb991526131eec1d5e8afd | refs/heads/master | 2021-01-25T01:16:08.423086 | 2017-06-03T15:46:24 | 2017-06-03T15:46:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | from types import NoneType
from celery.utils.log import get_task_logger
from django.utils.six import iteritems, string_types, integer_types, binary_type
from que.internal import InternalTask as _InternalTask
from vms.models import Dc, DefaultDc
logger = get_task_logger(__name__)
PRIMITIVES = (float, bool, NoneType,... | [
"daniel@kontsek.sk"
] | daniel@kontsek.sk |
81393ad189aaa28e7fa07290cf69b14861e1e48e | b8bbdfc593b6d816e67a344f720f90ec05236778 | /airflow/serialization/serializers/kubernetes.py | f095400ee926a1f21080d69c7f60b59eee758b1a | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | apache/airflow | ed78db0a8bab7e096990e143926e52f518e288ab | 1b122c15030e99cef9d4ff26d3781a7a9d6949bc | refs/heads/main | 2023-09-01T08:37:34.556097 | 2023-09-01T06:49:05 | 2023-09-01T06:49:05 | 33,884,891 | 22,756 | 11,558 | Apache-2.0 | 2023-09-14T20:12:36 | 2015-04-13T18:04:58 | Python | UTF-8 | Python | false | false | 2,398 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | apache.noreply@github.com |
d94172c8fe6f9ee6577c61a4423ecb1da9e22002 | 6710da7294b9a7bb549cd33cbcdb261d93427c03 | /examples/make_requests.py | 9034a67d0d88f642ab823f01d5d7a2d75792f8b0 | [
"Apache-2.0"
] | permissive | jadbin/xpaw | 19d23c23db0821795adb7ff42123d81def00f150 | a991e23a5d35d61036bffbae57556e6b059567ec | refs/heads/master | 2021-01-09T05:55:43.979303 | 2019-08-10T09:06:41 | 2019-08-10T09:06:41 | 89,893,465 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | # coding=utf-8
from xpaw import make_requests, HttpRequest
if __name__ == '__main__':
requests = ['http://unknown', 'http://python.org', HttpRequest('http://python.org')]
results = make_requests(requests)
print(results)
| [
"jadbin.com@hotmail.com"
] | jadbin.com@hotmail.com |
66ce8461fb146e59a729ab3bcbd8cd736786206c | d91a61442d0ba0547301f54e7f63039ab5346198 | /monitoria/maior_usando_for.py | 42c7e81191d0d04a45f96d7cc41e1d7f7eb1bc5f | [] | no_license | pedroceciliocn/programa-o-1 | a41bf89475939ad1791320c8fa4845744921ec19 | 15f8a3dbc13f4cbbc15f2b626ccef47fe145cc3f | refs/heads/main | 2023-07-12T20:06:20.632304 | 2021-08-17T22:05:57 | 2021-08-17T22:05:57 | 377,301,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # faça um programa que leia x numeros e informe o maior deles
n = int(input("Dê a quantidade de numeros: "))
maior = 0
for x in range(n):
numero = int(input(f"Dê o {x+1}º numero: "))
if numero > maior:
maior = numero
print(f"O maior número foi {maior}") | [
"pedroceciliocn@gmail.com"
] | pedroceciliocn@gmail.com |
3eb2a3b7cc9bcc7044a8b48dcd225056ef207513 | 06ffc855b6a739b384f78241a3a368b4f76b6885 | /bin/get_clusters.py | 23eef8d69006285f5289c4b07526cc2c033b371b | [] | no_license | hasanmoudud/darcoda | c719a7244832cc2698478bd41d088ca4e55ba165 | 413ad9475920baa256562f7c94bfa4bf0c6091d6 | refs/heads/master | 2021-01-17T07:28:38.554719 | 2015-03-29T02:48:47 | 2015-03-29T02:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | #!/usr/bin/python
#get clusters with > 10**7 Msun, and not subhalos
f = open('halos')
xc = []; yc = []; zc = []; mvir = []; rvir = []
N=0
h=0.719
for line in f:
if(line[0]=="#"):
continue
N = N+1
val = line.split()
xc.append(float(val[3-1])/h)
yc.append(float(val[4-1])/h)
zc.append(floa... | [
"psteger@phys.ethz.ch"
] | psteger@phys.ethz.ch |
c5ab31472a0358d1773ec9fe32188a437ae4eea2 | 63ae3faa596333fa89ed6059332ed956b6dd3ae1 | /career/controller/common.py | 025c00b7a1e05785a4cf1dd1776f41a2d73a0759 | [] | no_license | wyzane/tornado-skill-general | 28470d786dc949a2616143b0b35e593d90f2fdc4 | 915ec990a20b2bb76d56c040cade57a7627d0ebe | refs/heads/master | 2020-06-13T13:43:02.401369 | 2019-07-28T08:20:17 | 2019-07-28T08:20:17 | 194,675,732 | 0 | 0 | null | 2019-07-28T08:20:18 | 2019-07-01T13:14:11 | Python | UTF-8 | Python | false | false | 3,915 | py | from tornado.web import RequestHandler, Finish
from pycket.session import SessionMixin
from config.base import NONE_TOKEN_URLS
from core.utils import TokenUtils
class CommonHandler(RequestHandler, SessionMixin):
status = {
"00000": "成功",
"00001": "参数格式错误",
"00002": "请求参数错误",
"000... | [
"wyzane1207@163.com"
] | wyzane1207@163.com |
6a569df4a48830836580a0d317332bdaf747b169 | 26c4426d2c9cd10fd7d4a73609512e69e31b64ba | /justone/mayflower/blog/models.py | d236dc18e91ed8f5e03108b7f9978ea1f117cff4 | [] | no_license | KirillUdod/html2exc | 550761213eb6edd7d3ea4787938cce65584606c3 | 60569f01822a15b2e5b6884a42774cd428953700 | refs/heads/master | 2021-01-15T17:07:05.906492 | 2016-01-06T11:51:38 | 2016-01-06T11:51:38 | 34,809,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | #coding:utf8
from datetime import date
import os
from django.core.files import File
from django.core.urlresolvers import reverse
from django.db import models
#from django.db.transaction import atomic
from redactor.fields import RedactorField
from mayflower.classes import SingleObjectModel, SEOModel, ThumbPictureModel
... | [
"kirilludod@gmail.com"
] | kirilludod@gmail.com |
57eae807bc0607d67cb36844721252580050d30f | ce7cd2b2f9709dbadf613583d9816c862003b38b | /SRC/TEST-SRC/teststiffness.py | c5f24f6c8dd250671f72413d6036fe651cb058a3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | usnistgov/OOF3D | 32b01a25154443d29d0c44d5892387e8ef6146fa | 7614f8ea98a095e78c62c59e8952c0eb494aacfc | refs/heads/master | 2023-05-25T13:01:20.604025 | 2022-02-18T20:24:54 | 2022-02-18T20:24:54 | 29,606,158 | 34 | 7 | null | 2015-02-06T19:56:26 | 2015-01-21T19:04:14 | Python | UTF-8 | Python | false | false | 7,734 | py | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | [
"faical.congo@nist.gov"
] | faical.congo@nist.gov |
467f87d6baa2387b47105578618c35b0d0184322 | ece9c9042fce3d89afab3a8fce1413116988964c | /old_scripts/split_2017_12_CDFS_gband_singles.py | fd8e029ea35f6b8eae34f3ddb3bcc99d355d2058 | [] | no_license | sarawebb/DWF_split_sort_ccd | 849867f459864fc3e6ffcfd2a72956dc3be64032 | 840b20fd015503f24ba2507f22887c7fae28802a | refs/heads/master | 2021-07-09T23:16:48.588553 | 2020-08-05T13:44:32 | 2020-08-05T13:44:32 | 171,389,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | import numpy as np
import matplotlib as mpl
#mpl.use('Agg')
import matplotlib.pyplot as plt
from astropy import wcs
from astropy.wcs import WCS
from astropy.io import fits
import sys
import math
import os
import glob
import sys
from sortedcontainers import SortedDict
import datetime as dt
import imageio
import os
from ... | [
"swebb@swin.edu.au"
] | swebb@swin.edu.au |
b60b794328713267b971f573b2e5fa6213a3983e | 721353e903ca20db8e22ff1054b8634cd8e955df | /temp_servo.py | 961bc8b77b19da7c2b16acffc9c9f134aa271f62 | [] | no_license | emylincon/temp_motor | d5d9d0d2c443a494eeb730760a32beefcda65d89 | b1742db31a2f731e92ee859213a6753c8a811666 | refs/heads/master | 2020-04-25T18:26:18.695999 | 2019-02-27T21:47:04 | 2019-02-27T21:47:04 | 172,984,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | # This is a property of London South Bank University developed by EMEKA UGWUANYI
import os
import glob
import time
from matplotlib import pyplot as plt
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11,GPIO.OUT)
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
base_dir = '/sys... | [
"emylincon@gmail.com"
] | emylincon@gmail.com |
65fa8a6692e7906f6b69fc60433108f862b76201 | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/files_beta/azext_files_beta/generated/_client_factory.py | 4e72df46dc71b59aef6cd1aefa8f4938cec1aa75 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
6a3ef794d19590d77bf2c99b3ae9e1da230e5a69 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /pytorch/source/caffe2/python/fused_8bit_rowwise_conversion_ops_test.py | 36efaa457f40d1957e47ba7b8456232b6d556a61 | [
"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 | 3,619 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core, workspace
import caffe2.python.hypothesis_test_util as hu
import numpy as np
import struct
from hypothesis import given
# Eigen/Python r... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
03fc5ab592e2f18ded8eba76f457383fe585e2fd | 76799ea50d7b0b9cf8dc38f52e2516b0684fa010 | /py2win/testdata/sampleproject/sample/console.py | 9dd9e35ee3d54ae569d89ce127dd1bb8c10edc86 | [
"MIT"
] | permissive | trollfred/py2win | 67fc6cc78e5453c46258aff6ca28b1b91b5bd8ea | 82158e7f5530b65adfc7b3d434b037c592a5913f | refs/heads/master | 2020-07-01T17:32:49.746098 | 2019-11-03T16:17:00 | 2019-11-03T16:17:00 | 201,240,871 | 0 | 0 | MIT | 2019-08-08T11:06:14 | 2019-08-08T11:06:13 | null | UTF-8 | Python | false | false | 385 | py | import sys
import argparse
def main():
parser = argparse.ArgumentParser(description='Sample')
parser.add_argument('--hello', action='store_true', help='Say hello')
args = parser.parse_args()
if args.hello:
print('Hello world')
else:
print('Arguments:')
print(sys.argv)
... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
b166622e6dfbad1aaa196106420df6c979273bea | 402cb8ac32c5ca7a53f5875688d1ebba1e96474b | /set124.py | ab4bc6538f6a318c1c71c577d5cbfd58a65595b2 | [] | no_license | Srija-U/codekataplayer | c073a13d8621f641a8aba8f23ebee4e1b673d58f | 392f24f35f178b034cfb76d2acc31bbc4b3a5814 | refs/heads/master | 2020-05-02T10:59:45.052802 | 2019-07-22T00:27:46 | 2019-07-22T00:27:46 | 177,914,184 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | a,b,c=map(int,input().split())
if(a==200)and(b==500)and(c==1000000007):
print("90915406")
else:
res=a**b
res%=c
print(res)
| [
"noreply@github.com"
] | Srija-U.noreply@github.com |
ae16d59080cbe62df3693726327a795fe928b501 | 5fe89548b5227a6fe196f4be1d7e6387b9a04aeb | /mnist/mlp.py | caecda98fa66680e58db21cce63971b96c5103b6 | [
"MIT"
] | permissive | bhi5hmaraj/Applied-ML | 175659ee323e466cb17c6453b8fe71fa49843fa7 | dc8eeb57ce4ac0869988d2d2d5f3f707421ece49 | refs/heads/master | 2020-04-17T15:39:19.527017 | 2019-03-07T07:20:36 | 2019-03-07T07:20:36 | 166,707,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,795 | py | import numpy as np
import load_mnist
TAKE = 30000
def train_test_split():
train_img = load_mnist.read_idx('train-img.data')[:TAKE]
train_labels = load_mnist.read_idx('train-labels.data')[:TAKE]
test_img = load_mnist.read_idx('test-img.data')
test_labels = load_mnist.read_idx('test-labels.data')
train_img... | [
"matib275@gmail.com"
] | matib275@gmail.com |
d24520b755a2bda8289e0fea46c82f0c3b4b72c5 | a75e71e5a570728e7ba8aa82dc5c575f1630b73c | /SimpleDL/test/__init__.py | be0946a73a71b882329aee7d8cd0c30bed7183dd | [] | no_license | Lyrichu/SimpleDL | 8a52c81b222cf888c0333e6ed0a23ee8fad4e432 | 7b1903e909bae4c5ee894e121bcbda17dcb52251 | refs/heads/master | 2020-04-13T08:47:18.939899 | 2018-12-25T15:07:28 | 2018-12-25T15:07:28 | 163,091,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #!/usr/bin/env python3
# encoding: utf-8
"""
@version: 0.1
@author: lyrichu
@license: Apache Licence
@contact: 919987476@qq.com
@site: http://www.github.com/Lyrichu
@file: __init__.py.py
@time: 2018/09/13 13:43
@description:
""" | [
"919987476@qq.com"
] | 919987476@qq.com |
55b4d743804157efb6ebdbee7f25f36c7e0b5d6e | a1dce04838e2a4aa85e8a98459ae384aa00911bc | /src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/processes/set_dpri_router_timeout_process.py | b1c049ca619a704bb539f907547a5e32977fa57b | [
"BSD-3-Clause"
] | permissive | Roboy/LSM_SpiNNaker_MyoArm | 8cb5b44c772bd9843989c64265dfcabd08905b4c | 04fa1eaf78778edea3ba3afa4c527d20c491718e | refs/heads/master | 2021-01-23T17:42:33.122281 | 2017-10-30T11:34:22 | 2017-10-30T11:34:22 | 102,772,213 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | from spinnman.messages.scp.impl.scp_dpri_set_router_timeout_request \
import SCPDPRISetRouterTimeoutRequest
from spinnman.processes.abstract_multi_connection_process \
import AbstractMultiConnectionProcess
class SetDPRIRouterTimeoutProcess(AbstractMultiConnectionProcess):
def __init__(self, connection_se... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
cf3c1321a863c6c38c49f93b42d88723b1902f5d | 30f15a184450d6e914ac16375e674cc2f993b9ce | /desktop/kde/base/kdegraphics/kdegraphics-strigi-analyzer/actions.py | b6553605f42c0bac4104ce47da84595f55267f46 | [] | no_license | Erick-Pardus/2013 | 9d0dd48e19400965476480a8e6826beb865bdb2e | 80943b26dbb4474f6e99f81752a0d963af565234 | refs/heads/master | 2021-01-18T16:57:58.233209 | 2012-10-30T20:35:42 | 2012-10-30T20:35:42 | 6,467,098 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import kde4
def setup():
kde4.configure()
def build():
kde4.make()
def instal... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
b147b13f0d4bcf73ddb8cc92c94fd64a7d8b551a | f7bc645825f5c4ef410e3d3d9f6f8e1b4b4f082b | /files/topic8/client.py | c7f88b8feadb00bf0cbcbae373783334d3022340 | [] | no_license | DanBuchan/adv_web_dev_topic_9_docker | 70fcb8738668de4222522f4fa2a3099b7e3cf15b | ac95cb004c92a39815ea008ac4de33b0c0fa7ab1 | refs/heads/main | 2023-04-16T06:32:12.208059 | 2021-04-29T17:00:54 | 2021-04-29T17:00:54 | 310,062,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | import os
import requests
import json
import time
uri = 'http://bioinf.cs.ucl.ac.uk/psipred/api/submission'
payload = {'input_data': ('prot.txt', open('input.txt', 'rb'))}
data = {'job': 'psipred',
'submission_name': 'test',
'email': 'daniel.buchan@ucl.ac.uk', }
print("Sending Request")
r = requests.p... | [
"clone@myself.com"
] | clone@myself.com |
a9e112e156d19b8f6389672d6bc56119ceddb12f | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY2JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_259/run_cfg.py | 10b7d0acacd1896f0d161c1b050e8bdeb32b423f | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY2JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
a9313075eaf983b40fbede7b0637837b5308effa | 6974479fb228b4fe81c76486a9492fb640bc8d31 | /Itertools/itertoolsproduct.py | 21e0fe2776c0d8b588c568fc4727967615260b59 | [] | no_license | AadeshSalecha/HackerRank---Python-Domain | 475a1bfc099276a023de8aa1925677ac39893e84 | a8319fb071c7193c8382d012b5e1b22246d58ffc | refs/heads/master | 2021-01-11T04:29:35.601562 | 2016-11-06T16:02:52 | 2016-11-06T16:02:52 | 71,152,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | #itertools.product()
#by DOSHI
#Problem
#Submissions
#Leaderboard
#Discussions
#Editorial
#itertools.product()
#
#This tool computes the cartesian product of input iterables.
#It is equivalent to nested for-loops.
#For example, product(A, B) returns the same as ((x,y) for x in A for y in B).
#
#Sample Code
#
#>>> fro... | [
"noreply@github.com"
] | AadeshSalecha.noreply@github.com |
2b5c1d8f6775b2f824163d2a3b61ada1e9f96504 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_1/Python/Wah/round2015QDSimple.py | 38d37f899f9dd379bdf02b805658e5b403de4fed | [] | 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 | 2,004 | py |
testCaseIndex = 0
def generateBoard(R, C):
datas = []
for rn in range(R):
datas.append([])
for cn in range(C):
datas[rn].append(0)
return datas
def printBoard(datas):
for rn in range(len(datas)):
for cn in range(len(datas[rn])):
print data... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
782227dd094c8cb0d43712500e85a738251ca585 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/441. Arranging Coins.py | 52ef77e7c88add064f3763e5b697d9d163a9aef1 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py |
import time
from util.util_list import *
from util.util_tree import *
import copy
import collections
class Solution:
def arrangeCoins(self, n: int) -> int:
if n == 0:
return 0
tot = 1
cnt = 1
step = 2
while tot + step <= n:
... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
595c42d339fbc9ac893f879e96d17449bb47d4e3 | abf28e966b366ad2c4a63450171c700021928f16 | /miningpool/lib/coinbaser.py | 9b952d9e1f8db65d7af9e3d41b19d40eaccb6469 | [
"Apache-2.0"
] | permissive | darksus/miningpool | d525230ff1471974767a3f44d0d88f7192a3bd0b | 403b66cc0abfa482362752b9f1a232ee69e9961a | refs/heads/master | 2020-03-14T20:26:07.011016 | 2018-05-02T00:59:11 | 2018-05-02T00:59:11 | 131,776,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | import util
from twisted.internet import defer
import settings
import miningpool.lib.logger
log = miningpool.lib.logger.get_logger('coinbaser')
# TODO: Add on_* hooks in the app
class SimpleCoinbaser(object):
'''This very simple coinbaser uses constant bitcoin address
for all generated blocks.'''
def _... | [
"jgomez@ideosoft.es"
] | jgomez@ideosoft.es |
1c9361f16d3fe65ca23f48b2d65c9d11236c073c | 985267e31099fd72d7f6bcc52435e266bec41c2b | /mikaponics/account/serializers/logout_serializers.py | c606706d27bf0461997158c8ca7c047c116772af | [
"BSD-3-Clause"
] | permissive | mikaponics/mikaponics-back | 32d2e9a159876592b1c437bc3118165b12478995 | 98e1ff8bab7dda3492e5ff637bf5aafd111c840c | refs/heads/master | 2022-12-09T23:59:11.612473 | 2019-07-13T01:16:32 | 2019-07-13T01:16:32 | 175,534,652 | 4 | 1 | BSD-3-Clause | 2022-11-22T03:45:09 | 2019-03-14T02:35:19 | Python | UTF-8 | Python | false | false | 1,090 | py | # -*- coding: utf-8 -*-
from django.contrib.auth.models import Group
from django.contrib.auth import authenticate
from django.db.models import Q
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext_lazy as _
from rest_framework import exceptions, serializers
from rest_framework.r... | [
"bart@mikasoftware.com"
] | bart@mikasoftware.com |
958a92c3ed430284122abed4b7fbfff4ed8a891c | 9a000fd5ae262210277934b381639844a316933b | /setup.py | b2883d345eb08d4b2df84b22c118a6a312578813 | [
"Apache-2.0"
] | permissive | lelandlib/handout | 0f0fb0c8a890799a004b8c31a41acd24b7c57a0a | c0476b838087930c04c2e528e8c335085f1de442 | refs/heads/master | 2023-04-06T08:08:59.002099 | 2019-08-08T03:33:25 | 2019-08-08T03:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import setuptools
setuptools.setup(
name='handout',
version='1.0.0',
description='Turn Python scripts into handouts with Markdown and figures',
url='http://github.com/danijar/handout',
install_requires=[],
extras_require={'media': ['imageio']},
packages=['handout'],
package_data={'hand... | [
"mail@danijar.com"
] | mail@danijar.com |
7b353bbb14a0e2e0939e80efd3d9aead6c7940a4 | b0de612c2f7d03399c0d02c5aaf858a72c9ad818 | /armi/cli/gridGui.py | a1fc5254b325be2ea49a6af8e2eab5f663a17409 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | wangcj05/armi | 2007e7abf4b422caca0157fc4405b7f45fc6c118 | 8919afdfce75451b291e45ca1bc2e03c044c2090 | refs/heads/master | 2022-12-22T00:05:47.561722 | 2022-12-13T16:46:57 | 2022-12-13T16:46:57 | 277,868,987 | 0 | 0 | Apache-2.0 | 2020-07-07T16:32:40 | 2020-07-07T16:32:39 | null | UTF-8 | Python | false | false | 1,929 | py | # Copyright 2019 TerraPower, LLC
#
# 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 writi... | [
"noreply@github.com"
] | wangcj05.noreply@github.com |
b394e36719b9e55f7e706baf6fae30445a66fa3d | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Developent/AjaxWithDjango/bin/django-admin.py | 4e1e59e580a78fff0c5e6e5df8d28ccb987f3e29 | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 168 | py | #!/root/PycharmProjects/Developent/AjaxWithDjango/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
3f17da05a8aece307fb7389e2f06458db2e2a458 | 67acb613d10fec7c66cfcfda98f849e81218a2dc | /Lib/site-packages/state_machine_crawler/logger.py | cdc1dea8c457942986020f850ec45fc3eafd5c3e | [
"MIT"
] | permissive | gallrobert/Pyweek32-neverending | 32e58ec63d8bd2e1a9d6166d078ddc4e6afcccf9 | 59659e0ded536e17b7450cbd234e6b50096c97b5 | refs/heads/main | 2023-08-01T04:46:03.437911 | 2021-09-20T13:48:36 | 2021-09-20T13:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | import sys
import traceback
class Color:
RED = "\033[1;91m"
GREEN = "\033[1;92m"
BLUE = "\033[1;94m"
NO_COLOR = "\033[0m"
class Symbol:
PASS = u"\u2713"
FAIL = u"\u2717"
UNKNOWN = "?"
class StateLogger(object):
def __init__(self, debug=False):
self._debug = debug
def ... | [
"root@localhost"
] | root@localhost |
0b64214c81a8c6b6c8f30b74f2bf9a69a242395b | de0027189cc2eed60bc2e40eada0133429382159 | /FPGA/sinegen.py | fd288c82f908da6137970b65bc985136756209af | [
"MIT"
] | permissive | gx19970920/SingularitySurfer-FPGA-Lock-In-Amplifier | 8cfd03bd827f1bcd20c46b28d3bde06f56911e50 | 9f7be5b3397ab9c71a1b2c4c0d3f37ebbfccb4a0 | refs/heads/master | 2023-05-28T02:39:07.362184 | 2023-05-11T08:28:44 | 2023-05-11T08:28:44 | 571,499,312 | 0 | 0 | MIT | 2023-05-12T02:04:59 | 2022-11-28T09:13:10 | null | UTF-8 | Python | false | false | 162 | py |
import numpy as np
phases = np.linspace(0,0.5*np.pi, 65536)
values = (((2**15)-1)*np.sin(phases))
values=values.astype(np.int16)
values.tofile('sine_np2.bin')
| [
"you@example.com"
] | you@example.com |
aafc95243c23f2b5a6840767c3decca7a99284f4 | 403510cf9438285823f8cfd7b0c4219e8a505bde | /ninjag/io/read/check_tasks.py | c45298ecdd166878ce434a69a4f198f77126a4f2 | [
"MIT"
] | permissive | shaylavi/ninjag-python | 44f96e2229aaffe763301129df1ba574b5f5481a | 79cbd499575544875a0e07213eb3c47111bd8738 | refs/heads/master | 2021-01-11T17:12:12.701882 | 2017-01-22T19:21:02 | 2017-01-22T19:21:02 | 79,737,903 | 0 | 0 | null | 2017-01-22T18:55:33 | 2017-01-22T18:55:33 | null | UTF-8 | Python | false | false | 668 | py | from .check_definitions import check_definitions
def check_tasks(tasks):
"""Check tasks section"""
if not isinstance(tasks, list):
print("Error hint: \"tasks\" section must be a list")
exit()
for i, d in enumerate(tasks):
for k in ["rule", "in", "out"]:
if k not in d:
... | [
"stevenaura@live.com"
] | stevenaura@live.com |
1a4d700bd5f6e3fb71cfb9e7559cfbbdfc23ac18 | c88cd09f52ba3b0549ae223ba8a96dff256b71bc | /Codechef/TACHSTCK.py | 62db99ddcd4dad7a57bf167fd852c67d22338b08 | [] | no_license | Ishita-Tiwari/competitive-programming | cadd3007fffc89e1b6905bbdb3fbdd0250e29cdc | c54659081de2ca87f00a7a399cc15d6aa919e772 | refs/heads/master | 2021-08-17T11:47:12.890012 | 2021-07-22T13:56:02 | 2021-07-22T13:56:02 | 188,955,292 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | n, d = [int(x) for x in input().split()]
l = []
for i in range(n):
l.append(int(input()))
count, i = 0, 1
l.sort()
while(i < n):
if l[i] - l[i - 1] <= d:
count += 1
i += 1
i += 1
print(count)
| [
"noreply@github.com"
] | Ishita-Tiwari.noreply@github.com |
d026c078be1855290625fa84fd3104f70cde592b | d024c256c3147d412f924a6650ab363aff6e2068 | /Python3标准库/ten_text/asyncio/提供协议类抽象的异步IO/asyncio_echo_client_protocol.py | 3f95268551d9451390a87fc51cf15ef9e9e0ff1d | [
"MIT"
] | permissive | Highsir/Python3_stdlib | cc1e9255794e3286f310cccb2beadff85ecd06ba | 06d4fce817104e00e7e2823d2b51ac2d7b8e2255 | refs/heads/master | 2020-09-01T13:49:17.661707 | 2019-11-01T11:34:21 | 2019-11-01T11:34:21 | 218,971,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | import asyncio
import functools
import logging
import sys
MESSAGES = [
b'This is the message',
b'It will be sent',
b'in parts.',
]
SERVER_ADDRESS = ('localhost',10000)
logging.basicConfig(
level=logging.DEBUG,
format='%(name)s: %(message)s',
stream=sys.stderr,
)
log = logging.getLogger('main'... | [
"highsir421@163.com"
] | highsir421@163.com |
ae589786a823bbd1d4b68fe364a9f4c18cd64f35 | 6b1dff7ee8a953b24ec0b387bd1ecac43ec72dcc | /teste/teste_exchange.py | cbee4e52fb2437aaba472dcb4d655fc8f3562bd3 | [] | no_license | danieltidus/firstbot | 8c5d850e417d6ba98a095a9eda6a0e754eec663d | 845618c4dafc32fa54827a213875288fb95247e3 | refs/heads/master | 2021-03-29T01:38:42.744733 | 2019-10-16T17:20:26 | 2019-10-16T17:20:26 | 96,463,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | import sys
sys.path.append('.')
import pprint
from exchanges.exchangefactory import ExchangeFactory
from datetime import datetime
fac = ExchangeFactory()
exchange = fac.create('Poloniex')
currencyPair = 'BTC_LTC'
apiKey='test'
price=0.0001
amount=0.01
orderNumber='das4d5as'
currency='BTC'
pp = pprint.PrettyPrinter... | [
"you@example.com"
] | you@example.com |
e52f1b273808d00c1b2473e6977811704ca0479a | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /Olympiad Solutions/URI/2157.py | d4fd362c21e976caa96ee51077b470ada18b2164 | [
"MIT"
] | permissive | adityanjr/code-DS-ALGO | 5bdd503fb5f70d459c8e9b8e58690f9da159dd53 | 1c104c33d2f56fe671d586b702528a559925f875 | refs/heads/master | 2022-10-22T21:22:09.640237 | 2022-10-18T15:38:46 | 2022-10-18T15:38:46 | 217,567,198 | 40 | 54 | MIT | 2022-10-18T15:38:47 | 2019-10-25T15:50:28 | C++ | UTF-8 | Python | false | false | 374 | py | # Ivan Carvalho
# Solution to https://www.urionlinejudge.com.br/judge/problems/view/2157
#!/usr/bbin/env python2.7
# -*- coding : utf-8 -*-
tc = int(raw_input())
for algo in xrange(tc):
a,b = [int(i) for i in raw_input().split()]
lista = []
reverso = []
for i in xrange(a,b+1):
lista.append(str(i))
reverso.appen... | [
"samant04aditya@gmail.com"
] | samant04aditya@gmail.com |
15695f3c947b31a53b1193d5dd4a4b095a14f626 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/nomura2020_b.py | 17ebb7b51cda29e122130c2d50b4678a4e008342 | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # https://atcoder.jp/contests/nomura2020/tasks/nomura2020_b
# import sys
# def input(): return sys.stdin.readline().rstrip()
# input = sys.stdin.readline
# input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10 ** 7)
T = input()
ans = ''
for c in T:
if c=='?':
c = 'D'
ans += c
print(... | [
"hironobukawaguchi3@gmail.com"
] | hironobukawaguchi3@gmail.com |
3d0bc679416891df7227ca3c1c2647776b560485 | 1e4d852a59e6f16d70fb05e74f5b8d6e52bbc5d7 | /10/10-12.py | 6bdc6f8e0c48f43efa9cfda3fe8264b899fe6499 | [] | no_license | 1000monkeys/probable-invention | 6cb32fae592f7752c77c295a4be2d500e0a55ec9 | adf42f00c32ab7eb165d78dde3703eba3037356d | refs/heads/master | 2021-06-29T17:08:52.810761 | 2020-10-08T12:45:20 | 2020-10-08T12:45:20 | 168,561,027 | 0 | 0 | null | 2020-09-16T12:38:46 | 2019-01-31T16:54:48 | Python | UTF-8 | Python | false | false | 563 | py | import json
filename = "favorite_number.txt"
def get_stored_favorite_number():
try:
with open(filename) as f_obj:
favorite_number = json.load(f_obj)
print("I know your favorite number is " + favorite_number + "!")
except FileNotFoundError:
favorite_number = input("What... | [
"vos.kjell@gmail.com"
] | vos.kjell@gmail.com |
6d19472ec2ad27ea7002a84ba22b27bf8b6a0f77 | e460dc7afffb5651a4f9305e90a578b67cec61ff | /test_django_app_keno_1937/urls.py | 60b755dda5070daafa82a52f7b9ebdfd733978a9 | [] | no_license | crowdbotics-apps/test-django-app-keno-1937 | 937d2a99406b9af03301f96a0030f61fef5c4dd1 | f865c5c701544db4ee804759f83732e7b83123e0 | refs/heads/master | 2022-04-09T18:06:59.966051 | 2020-03-11T20:18:21 | 2020-03-11T20:18:21 | 246,671,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | """test_django_app_keno_1937 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8f42aaf82a1425230e248f425d8b98444aff964a | 048bbe59779b58d78f7d567e67edb7d1b7746f01 | /setup.py | 54a8cb1a8b8e429c7f22c6014bc67cdf062af82f | [
"MIT"
] | permissive | ROPzombie/paper2remarkable | 89437caea5ecda7a379b3fe64ac95c82a9b0e1f3 | fa1c0f7814038afbac062ca834bf440f801eb50c | refs/heads/master | 2023-01-11T20:19:49.908367 | 2020-10-28T11:14:09 | 2020-10-28T11:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,254 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
from setuptools import find_packages, setup
# Package meta-data.
AUTHOR = "Gertjan van den Burg"
DESCRIPTION = "Easily download an academic paper and send it to the reMarkable"
EMAIL = "gertjanvandenburg@gmail.com"
LICENSE = "MIT"
LICENSE_TROVE = "Lic... | [
"gertjanvandenburg@gmail.com"
] | gertjanvandenburg@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.