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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be5e0b741dc6ad841c668031edaee115bfe5314e | 36059411cedfeec7478fd725c43f2120ab5ad38d | /boulder_ftp.py | a055a456e089b72f19569b633bd3059a4fd66cd2 | [] | no_license | tytechortz/Arctic-Ice | a8345746bdd2d73559941ea71efe06601212a7f1 | 83aac39c00027cca6bd85fd2709fcfe86cf3ef31 | refs/heads/master | 2022-07-09T13:38:41.735808 | 2020-01-02T16:22:52 | 2020-01-02T16:22:52 | 167,096,158 | 1 | 0 | null | 2022-06-21T23:10:16 | 2019-01-23T01:35:54 | Jupyter Notebook | UTF-8 | Python | false | false | 541 | py | from ftplib import FTP
import os
import pandas as pd
# Log into ftp site.
ftp = FTP('sidads.colorado.edu')
ftp.login(user='anonymous', passwd='ICE_PSWD')
ftp.login()
# Read file.
ftp.cwd('/pub/DATASETS/NOAA/G02135/north/daily/data/')
ftp.retrbinary('RETR N_seaice_extent_daily_v3.0.csv', open('N_seaice_extent_daily_v3... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
51834523099e3ca59c889ea40d94cfd03ffdbb05 | f31fda8014ecadf6af7d4e3392fb917c49e0352a | /HeavyIonsAnalysis/JetAnalysis/python/jets/akPu5CaloJetSequence_pp_data_cff.py | ee3d9695514ad371c28857cd6d3dce622b1ebe50 | [] | no_license | jniedzie/lightbylight | acea5051f053c49824a49a0b78bac3a2247ee75f | f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8 | refs/heads/master | 2020-03-18T12:24:31.970468 | 2018-02-09T15:50:00 | 2018-02-09T15:50:00 | 134,724,759 | 0 | 1 | null | 2018-05-24T14:11:12 | 2018-05-24T14:11:12 | null | UTF-8 | Python | false | false | 14,202 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"rchudasa@cern.ch"
] | rchudasa@cern.ch |
076bf3038294b33eac256cefdfcdc846835b8fba | 9905901a2beae3ff4885fbc29842b3c34546ffd7 | /nitro-python/build/lib/nssrc/com/citrix/netscaler/nitro/resource/config/filter/filterglobal_filterpolicy_binding.py | 5aac2b8dd0a9540023a40b6dd3d6be45a9da1f39 | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | culbertm/NSttyPython | f354ebb3dbf445884dbddb474b34eb9246261c19 | ff9f6aedae3fb8495342cd0fc4247c819cf47397 | refs/heads/master | 2020-04-22T17:07:39.654614 | 2019-02-13T19:07:23 | 2019-02-13T19:07:23 | 170,530,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,576 | py | #
# Copyright (c) 2008-2016 Citrix 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 applicable l... | [
"mdculbert@marathonpetroleum.com"
] | mdculbert@marathonpetroleum.com |
f4291ee93deaf810818660a525dacb66b3a2eb7c | 6227d63532f2d657ef66d90709a3a1f484e9784b | /oviqpr/wsgi.py | 02a76e64db03ba8feffdd1981fb6c14b65e4ad1b | [] | no_license | vassily-la/oviq | 2edff4e61e5ac8cb94b462e2ed5c5bec2c5b014a | 65a86ca5cddd0180e8309a7659eaab6a35a5c785 | refs/heads/master | 2021-04-28T03:05:02.908010 | 2018-02-22T17:14:32 | 2018-02-22T17:14:32 | 122,131,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for oviqpr project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"vasil.deville@gmail.com"
] | vasil.deville@gmail.com |
d5046c3c0b613b372fc250a121575cad4d03bc38 | 89d230ad44d17b18897da507725b0a10c32960d8 | /Gen2_0_PP/Contest/weaponsProblem.py | 4262d5dcd74a8bb81dd8ecc8b8b5afcbc6146ab4 | [] | no_license | KB-perByte/CodePedia | aeeae87b56cf0ff6e02200cfd6b34da42a007338 | 287e7a3ce981bbf594436cdc06dde23a02b53bb0 | refs/heads/master | 2021-06-19T07:32:53.849871 | 2021-01-23T16:17:27 | 2021-01-23T16:17:27 | 163,250,017 | 0 | 1 | null | 2020-03-21T14:39:36 | 2018-12-27T05:13:55 | JavaScript | UTF-8 | Python | false | false | 2,014 | py | '''
Daenerys has N types of weapons. There are Ai number of weapons of type i (1 <= i <= N). She wants to distribute these weapons among K soldiers. She wants to distribute them in such a way that:
All soldier get equal number of weapons.
All the weapons which a soldier gets must be of same type.
As she wants to make ... | [
"paul.sagar@yahoo.com"
] | paul.sagar@yahoo.com |
bf5c6fee091e8426d7dd6d71ed755b2e3e1eaeed | 7e4425342a4d7e0f40978af17091f32d2712c79c | /Cb_DeepLearning_lec/Day_04_02_collection.py | 280b5a625f46315f5d0d9b50bfda8439d9fccca1 | [] | no_license | yunhui21/CB_Ai_NLP | eca3da00c6c9615c8737b50d2c5ebe8dd1e3ba8a | b66ecc24abfd988fc9e7f19fa1941826b1bf38a4 | refs/heads/master | 2023-01-07T14:21:26.758030 | 2020-11-16T05:57:30 | 2020-11-16T05:57:30 | 291,835,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | # Day_04_02_collection.py
a = [1, 3, 7, 9]
for i in a:
print(i, end=' ')
print()
# 문제
# 리스트를 거꾸로 출력하세요
for i in reversed(a):
print(i, end=' ')
print()
# 튜플 : 상수 버전의 리스트 (읽기 전용 리스트)
b = (1, 3, 7, 9)
print(b)
print(b[0], b[1])
for i in b:
print(i, end=' ')
print()
# b[0] = -1 # error
# b.append(... | [
"yunhui21@gmail.com"
] | yunhui21@gmail.com |
ae9c23f5fdb98de82ae8cbf6a8e4ee62419a45d6 | 493a36f1f8606c7ddce8fc7fe49ce4409faf80be | /.history/B073040023/client_20210614185044.py | dc83e9c3495b85ade6ac751b06199f40df2ea143 | [] | no_license | ZhangRRz/computer_network | f7c3b82e62920bc0881dff923895da8ae60fa653 | 077848a2191fdfe2516798829644c32eaeded11e | refs/heads/main | 2023-05-28T02:18:09.902165 | 2021-06-15T06:28:59 | 2021-06-15T06:28:59 | 376,568,344 | 0 | 0 | null | 2021-06-13T14:48:36 | 2021-06-13T14:48:36 | null | UTF-8 | Python | false | false | 4,772 | py | import socket
import threading
import tcppacket
import struct
# socket.socket() will create a TCP socket (default)
# socket.socket(socket.AF_INET, socket.SOCK_STREAM) to explicitly define a TCP socket
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # explicitly define a UDP socket
udp_host = '127.0.0.1' # Host... | [
"tom95011@gmail.com"
] | tom95011@gmail.com |
21108a445d65be0ac0386514b2c345649b88fd66 | 32fb781cb6718ef90c4fdfba0469f9278380a256 | /AntShares/Core/Transaction.py | 83091faf4d380c5c037c959eb17dbfab2778feca | [
"MIT"
] | permissive | OTCGO/sync_antshares | 1dcd6f809518ff2f9f89047d7da5efedb14e8625 | 5724a5a820ec5f59e0c886a3c1646db2d07b4d78 | refs/heads/master | 2021-01-22T22:49:26.094742 | 2017-12-14T17:15:33 | 2017-12-14T17:15:33 | 85,582,206 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,899 | py | # -*- coding:utf-8 -*-
"""
Description:
Transaction Basic Class
Usage:
from AntShares.Core.Transaction import Transaction
"""
from AntShares.Core.AssetType import AssetType
from AntShares.Core.TransactionType import TransactionType
from AntShares.Helper import *
from AntShares.Fixed8 import Fixed8
from AntShar... | [
"flowjacky@gmail.com"
] | flowjacky@gmail.com |
cc3e8e736099a578fdb1575de3070766cc9c13fb | e66770daf4d1679c735cfab1ac24dd1f5107bd83 | /Chapter06/Ch06_Code/GUI_multiple_threads_starting_a_thread.py | a33887dfb3fb91f64788072ca95a614df27e233a | [] | no_license | CodedQuen/Python-GUI-Programming-Cookbook | c038eb6cec4945ff4f2b09e1551f9db712dd2502 | f02b0f9916fb8272edc7ed4704eecce53ae0231c | refs/heads/master | 2022-05-27T19:35:35.004455 | 2020-05-05T01:00:51 | 2020-05-05T01:00:51 | 261,329,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,778 | py | '''
May 2017
@author: Burkhard A. Meier
'''
#======================
# imports
#======================
import tkinter as tk
from tkinter import ttk
from tkinter import scrolledtext
from tkinter import Menu
from tkinter import messagebox as msg
from tkinter import Spinbox
from time import sleep
im... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
22b06f917a2e60d9e5443d0a32cf7b4cb27e71c3 | 50f42e142c7b989afc9bc9d9fd53515923aceb56 | /ML_practice/test_field.py | 824433785cb92c1abe62e59a015e4140ff9a6c0c | [] | no_license | shincling/MyCommon | 7d02da4408f1ab0acf883845cbb8b8e54e364076 | ae362fdef8d51c808645f7827a86e43d07db6e0f | refs/heads/master | 2021-01-17T04:10:57.546936 | 2018-11-06T13:17:27 | 2018-11-06T13:17:27 | 45,384,609 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | def f():
print "Before first yield"
yield 1
print "Before second yield"
yield 2
print "After second yield"
g = f()
# g.next()
# g.next()
print "Before first next"
g.next()
print "Before second next"
g.next()
print "Before third yield"
g.next() | [
"shijing609@163.com"
] | shijing609@163.com |
b77f6cb4c37844887fe9769139d3b4cf953d6420 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL18_mMed-1000_mDark-20_ctau-500_unflavored-down_cff.py | a689762b309b5edaf406483255496d14a1d0b40b | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,981 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
bb7711a1d9a0542bf0147818f036a11eb8eb630f | 5f65e12a62b59aea9263f35240c960b7e6009aa5 | /cb_scripts/game_on.py | 5cd86411560201702863ecffeab27460f20cfee6 | [
"MIT"
] | permissive | christopher-burke/python-scripts | 23e80b8e7f26a74ab68dc7d0ad1a8093d900cf8b | f5dceca0bdbe9de6197b26858600b792f6adff8a | refs/heads/main | 2022-05-20T01:36:04.668447 | 2022-04-25T20:31:33 | 2022-04-25T20:31:33 | 6,054,247 | 1 | 1 | MIT | 2022-03-16T02:24:45 | 2012-10-03T01:49:53 | Python | UTF-8 | Python | false | false | 1,233 | py | #!/usr/bin/env python3
"""Game on.
Games won tracker.
"""
from dataclasses import dataclass, asdict
import json
import sys
# from datetime import date
@dataclass
class Player:
"""Player dataclass."""
name: str
@dataclass
class Match:
"""Match dataclass."""
game: str
date: date = date.today... | [
"christopherjamesburke@gmail.com"
] | christopherjamesburke@gmail.com |
9f1faec8e0731fbad823f5000c61ae7553ec1af1 | 9083d620ec89d3c85f4270fd724010c20799368e | /app/admin.py | a6361094fdf44cebc131a84ddfb668ce2f22b52a | [] | no_license | riyadhswe/CovidHelp | e122aa1fefacb985c862e758a3021af4af08712e | 5e004739ec3facebbccdf0e9e46f96d3c01b2bb6 | refs/heads/master | 2023-08-14T04:14:37.458150 | 2021-10-10T05:02:23 | 2021-10-10T05:02:23 | 370,762,838 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.contrib import admin
from app.models import *
# Register your models here.
admin.site.register(Division)
admin.site.register(City)
admin.site.register(Hospital)
admin.site.register(Service)
| [
"riyadhswe@gmail.com"
] | riyadhswe@gmail.com |
f0da7aa51ef368c2762cf0033e027208273b4603 | 41188a72facc51c65d0d58efe127f5e8c8811f5e | /0046. Permutations/Solution.py | 76886c436d83c51c92b29bc0f627d71268d88c1c | [
"MIT"
] | permissive | furutuki/LeetCodeSolution | 74ccebc8335125bbc4cbf1a76eb8d4281802f5b9 | 089d27af04bf81149251787409d1866c7c4390fb | refs/heads/master | 2022-10-31T08:46:15.124759 | 2022-10-25T02:57:54 | 2022-10-25T02:57:54 | 168,449,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from typing import List
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
def dfs(num: List[int], cur_res: List[int]):
if not num:
ret.append(cur_res)
return
else:
for i in range(len(num)):
d... | [
"furutuki@foxmail.com"
] | furutuki@foxmail.com |
32d2b673b4421719313ac17c64560921dade7d60 | 2b8d4e22d10ca118fba0100cc87af04f3939448f | /ioud10/ioud_sale_order/__manifest__.py | 22982bed7d88a58ac835d123e58c4e47090afaf9 | [] | no_license | ahmed-amine-ellouze/personal | f10c0a161da709f689a3254ec20486411102a92d | 4fe19ca76523cf274a3a85c8bcad653100ff556f | refs/heads/master | 2023-03-28T23:17:05.402578 | 2021-03-25T13:33:18 | 2021-03-25T13:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
{
'name': "ioud_sale_order",
'summary': """
This module is for customization of sale for iOud """,
'description': """
This module is for customization of sale for iOud
""",
'author': "SolutionFounder",
'website': "http://www.solutionfounder.com",
... | [
"hussnainsajid08@gmail.com"
] | hussnainsajid08@gmail.com |
193122adf0ef9170907c47e035ebe8434d378807 | e3910a25ca4456a35112d41f184fe2a919214ac0 | /reservation/migrations/0003_auto_20160310_2101.py | 4bd2beed2f08e5987ae67f1bc5dbe13adea43864 | [] | no_license | RobertPastor/studio_reservation | a498f1ae2077bb21199651d245f22cb59ef13370 | 63a47de856cc1d5aedbd4024d8696b39470d11f2 | refs/heads/master | 2021-01-10T16:13:32.935529 | 2018-01-28T14:19:28 | 2018-01-28T14:19:28 | 54,514,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-10 20:01
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reservation', '0002_reserva... | [
"robert.pastor0691@orange.fr"
] | robert.pastor0691@orange.fr |
fad28a7559308bee0c5acdfc8681f51b8076f9be | c101c4f7dfdb4492a380e7564beaf2892c9ae527 | /modules/s3/s3resource.py | f30e194ceb9f99545db7f694b1314d6241141f10 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | somayjain/eden | 0137b4c89f04ae35b431881d27a175deb4b31ebb | d401e20a7512e7b7781f16a13503bbd984bf2dbb | refs/heads/master | 2021-01-18T11:56:50.477613 | 2014-11-16T11:34:27 | 2014-11-20T12:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210,832 | py | # -*- coding: utf-8 -*-
""" S3 Resources
@copyright: 2009-2014 (c) Sahana Software Foundation
@license: MIT
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
restri... | [
"dominic@nursix.org"
] | dominic@nursix.org |
8b346eaacf62c7cde882fe6c60be97b4649c2519 | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/DICTIONARY/Day48 Tasks/Task2.py | 81b89aa1ff7a364846dcb6ab7608ea8ed5a16508 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 211 | py | '''2. Write a Python script to add a key to a dictionary.
Sample Dictionary : {0: 10, 1: 20}
Expected Result : {0: 10, 1: 20, 2: 30} '''
original_dict = {0: 10, 1: 20}
original_dict[2] = 30
print(original_dict) | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
8753a921a15f6a43bf864b793500b8df7df5a232 | bc437dc74647765b51996f64b35fda3d047daf93 | /2_Intermediate/day18_The_Hirst_Painting_Project/main.py | 4c03978fb420c12c9f275227d28b734e5c0a907b | [] | no_license | macosta-42/100_days_of_code | e06720d57b6ed870a3dd4fa4e6d019296206a08f | 5b527dc18bae2ef556c26f653ef3c4badf94bb82 | refs/heads/main | 2023-05-22T03:26:02.422275 | 2021-06-10T10:31:26 | 2021-06-10T10:31:26 | 328,963,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # import colorgram
#
# Extract 30 colors from an image.
# colors = colorgram.extract('image.jpg', 30)
#
# rgb_colors = []
#
# for color in colors:
# r = color.rgb.r
# g = color.rgb.g
# b = color.rgb.b
# new_color = (r, g, b)
# rgb_colors.append(new_color)
#
#
# print(rgb_colors)
import turtle as t
... | [
"macosta@student.42.fr"
] | macosta@student.42.fr |
39449e677ee1bf94f14738a476fbaeffef554460 | 11e484590b27585facf758f0432eeebe66bf790a | /fal_default_discount/__openerp__.py | ebb37f69d114ff8b401e6a98002ffca961d71f5d | [] | no_license | jeanabreu/falinwa_branch | 51b38ee5a3373d42417b84a0431bad9f7295f373 | be96a209479259cd5b47dec73694938848a2db6c | refs/heads/master | 2021-01-18T10:25:49.866747 | 2015-08-25T10:05:05 | 2015-08-25T10:05:05 | 41,369,368 | 0 | 1 | null | 2015-08-25T14:51:50 | 2015-08-25T14:51:50 | null | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
{
"name": "GEN-39_Default Discount",
"version": "1.0",
'author': 'Falinwa Hans',
"description": """
Module to give default discount
""",
"depends" : ['base','account','sale','purchase'],
'init_xml': [],
'data': [
],
'update_xml': [
'res_partner... | [
"hans.yonathan@falinwa.com"
] | hans.yonathan@falinwa.com |
63a3859655163da8d1b68d6100318174b51087b3 | fa69eadde7b449647ebd976214d2f99886b6db18 | /FireHydrant/common/enum/task/type.py | da3d9f0df70ac9947f6d9e55b12919b3b7ed67be | [] | no_license | shoogoome/FireHydrant | 0da1d6e06aa9e853837f6435a30ac4ef73118764 | 7467cd66e1fc91f0b3a264f8fc9b93f22f09fe7b | refs/heads/master | 2020-06-21T01:29:25.711595 | 2019-12-18T00:31:01 | 2019-12-18T00:31:01 | 197,309,304 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# coding:utf-8
from common.core.dao.enumBase import EnumBase
class TaskTypeEnum(EnumBase):
PERSONAL = 0
TEAM = 1
__default__ = PERSONAL
__desc__ = {
'PERSONAL': '个人任务',
'TEAM': '团队任务',
} | [
"shoogoome@sina.com"
] | shoogoome@sina.com |
7db647d25a21499083092c001e5dbe7f68539f5a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/506ae8f067379afa4417a57db5814487ea198a23-<_ldflags>-fix.py | e74dc5c62be559f47e3819254ac49089008a296f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | @utils.memoize
def _ldflags(ldflags_str, libs, flags, libs_dir, include_dir):
'Extract list of compilation flags from a string.\n\n Depending on the options, different type of flags will be kept.\n\n Parameters\n ----------\n ldflags_str : string\n The string to process. Typically, this will be t... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3020613b94d8ab6d48331de09fbcc650efe92b54 | 1978a9455159b7c2f3286e0ad602652bc5277ffa | /exercises/15_module_re/task_15_2a.py | ff8cb7e603b04c43d8bed5f08c6262dda11c4009 | [] | no_license | fortredux/py_net_eng | 338fd7a80debbeda55b5915dbfba4f5577279ef0 | 61cf0b2a355d519c58bc9f2b59d7e5d224922890 | refs/heads/master | 2020-12-03T17:32:53.598813 | 2020-04-08T20:55:45 | 2020-04-08T20:55:45 | 231,409,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | # -*- coding: utf-8 -*-
'''
Задание 15.2a
Создать функцию convert_to_dict, которая ожидает два аргумента:
* список с названиями полей
* список кортежей со значениями
Функция возвращает результат в виде списка словарей, где ключи - взяты из первого списка,
а значения подставлены из второго.
Например, если функции пер... | [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
042afc513c24332f122836a2cec49692b2f77a28 | 7a63ce94e1806a959c9c445c2e0bae95afb760c8 | /tests/incident/test_resolve.py | 8ccf653a5dbc4b46fd96837ef309be097512d6e1 | [
"MIT"
] | permissive | pklauke/pycamunda | 20b54ceb4a40e836148e84912afd04d78d6ba0ec | 3faac4037212df139d415ee1a54a6594ae5e9ac5 | refs/heads/master | 2023-08-18T10:23:30.503737 | 2022-04-17T18:34:40 | 2022-04-17T18:34:40 | 240,333,835 | 40 | 16 | MIT | 2023-09-12T13:29:08 | 2020-02-13T18:37:25 | Python | UTF-8 | Python | false | false | 1,602 | py | # -*- coding: utf-8 -*-
import unittest.mock
import pytest
import pycamunda.incident
from tests.mock import raise_requests_exception_mock, not_ok_response_mock
def test_resolve_params(engine_url):
resolve_incident = pycamunda.incident.Resolve(url=engine_url, id_='anId')
assert resolve_incident.url == engi... | [
"peter.klauke@tu-dortmund.de"
] | peter.klauke@tu-dortmund.de |
b1363d2eeea65f67da9c4da23778667e39565849 | ee4152e9b5eafa7afafe05de04391a9a3606eea3 | /client/API/AddRecord.py | 431bc9058aefc1020df12034d650ed008e3998a5 | [] | no_license | adibl/password_saver | 3a06c8c04905d82f01fc14b41b646a6578af2b70 | 2ea73781db92ce750f91039251f2c06e929da7bb | refs/heads/master | 2020-04-09T23:51:34.804870 | 2019-06-16T10:13:42 | 2019-06-16T10:13:42 | 160,665,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | """
name:
date:
description
"""
import base64
import json
import requests
import os
from .connection import Request
class Passwords(object):
FILE_NAME = 'token.txt'
@classmethod
def handle(cls, url, username, password):
return cls.POST(url, username, password)
@classmethod
def GET(cls):
... | [
"bleyer23@gmail.com"
] | bleyer23@gmail.com |
881b5c0fc9bea295c8d51dcae0942461610bb9c2 | 8c5f1e07333edfd14a58677ea90ea9a8ec24daa7 | /examples/simple_pendulum/custom_simple_pendulum.py | 423dcab619d69ba966d9a866ae2b925a8862fb9f | [
"MIT"
] | permissive | echoix/pyro | 52c37b3c14fb3b52977be510545fdc43922dd8f9 | 787920cb14e3669bc65c530fd8f91d4277a24279 | refs/heads/master | 2020-09-07T09:08:21.114064 | 2019-11-10T05:59:50 | 2019-11-10T05:59:50 | 220,733,155 | 0 | 0 | MIT | 2019-11-10T02:52:39 | 2019-11-10T02:52:38 | null | UTF-8 | Python | false | false | 1,412 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 7 12:19:01 2018
@author: nvidia
"""
###############################################################################
import numpy as np
###############################################################################
from pyro.dynamic import pendulum
######################... | [
"alx87grd@gmail.com"
] | alx87grd@gmail.com |
2b8edfa347b5b9d6a6b2c2d912242611e9907980 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /nonfatal_code/hospital/Formatting/001_pre_format_UK_UTLA_fit_models.py | a401509726a0ff362b8b717c593c63c90020b098 | [] | 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 | 5,688 | py | # -*- coding: utf-8 -*-
"""
formatting UK UTLA data
"""
import pandas as pd
import numpy as np
import platform
import sys
import statsmodels.formula.api as smf
import statsmodels.api as sm
import time
sys.path.append("FILEPATH")
from hosp_prep import *
# Environment:
if platform.system() == "Linux":
... | [
"nsidles@uw.edu"
] | nsidles@uw.edu |
ae3c07417196b04210dbed26d9b1fba5aac5f9ec | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/numpy/core/tests/test_regression.py | 39a92211635a6dcc5cd242241cf5f18f0e08b70e | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2d5a65e7c1da1e87651cabd3481c0012ad15f784275aad1259a1312faf19cfc2
size 81211
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
bce22db2adda5234a705ff0d1fb719565b3bddd8 | 9692a20a1e7a224a72785e4495f31421639b9f3b | /frex/pipeline_stages/filters/candidate_filterer.py | 2d79e3b31e1ec3776b5978e1f52488af2826dfdb | [] | no_license | solashirai/FREx | 6b0cb040930761a0e269f4591d7dde36e3f636d1 | 36ad09a0cb0020661ee990c7800bafd110e2ec04 | refs/heads/master | 2023-08-14T08:49:49.270281 | 2021-09-29T14:58:23 | 2021-09-29T14:58:23 | 291,760,109 | 0 | 0 | null | 2021-09-24T22:41:19 | 2020-08-31T15:57:47 | Python | UTF-8 | Python | false | false | 2,535 | py | from abc import abstractmethod
from typing import Generator, Optional, Any
from frex.models import Explanation, Candidate
from frex.pipeline_stages import PipelineStage
class CandidateFilterer(PipelineStage):
"""
CandidateFilterer is a PipelineStage that determines whether input candidates should be removed f... | [
"solashakashirai@gmail.com"
] | solashakashirai@gmail.com |
113af3e207e4b01797c11ec0d406ac5a136b56c2 | 801418efbd049078c8aad4cd17297f3ece571412 | /temp/toy/python/238. Product of Array Except Self.py | d7da2b067439b8c2b107a462617c0fb4b8eac579 | [] | no_license | xixihaha1995/CS61B_SP19_SP20 | 2b654f0c864a80a0462fdd4b1561bdc697a8c1e2 | 7d6599596f7f49b38f1c256ece006b94555c1900 | refs/heads/master | 2023-01-01T18:41:48.027058 | 2020-10-29T04:50:01 | 2020-10-29T04:50:01 | 240,976,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
res, p, q = [1], 1, 1
for i in range(len(nums)-1):
p *= nums[i]
res.append(p)
for i in range(len(nums)-1, 0, -1):
q *= nums[i]
res[i-1] *= q
return res
| [
"wulicheneason@gmail.com"
] | wulicheneason@gmail.com |
75d2f93063a4feaf6b869a50b0e5a88d40500e00 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /httpy/tags/0.7/tests/TestCaseHttpy.py | 08a1fc6dd3fb6eb41284fefc3f7dc8c1602cb96c | [] | no_license | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,199 | py | """The idea and code for running a test._server in another thread are from the
standard library's test/test_socke._server.py.
TODO: This is out of date now that we are using asyncore (via httpy._zope._server).
"""
import asyncore
import os
import select
import socket
import threading
import time
import unittest
fro... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
e827ef9de12fa0211e6677aa82084594cd16d444 | 6b76819d395bb76591fc12e9de83161b37d61672 | /woot/apps/expt/management/commands/step02_zmod.py | f30ef4f4d650e4b9e4688253eed2cfb7feb067a9 | [] | no_license | NicholasPiano/img | 8426530512ee80a4ed746874c4219b1de56acbfd | 3a91c65c3c9680ba7ed7c94308a721dd0cff9ad5 | refs/heads/master | 2020-05-18T15:48:50.566974 | 2015-07-16T00:01:17 | 2015-07-16T00:01:17 | 38,632,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # expt.command: step03_zmod
# django
from django.core.management.base import BaseCommand, CommandError
# local
from apps.img.models import Composite
from apps.expt.util import *
# util
from optparse import make_option
spacer = ' ' * 20
### Command
class Command(BaseCommand):
option_list = BaseCommand.option_lis... | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
16bf0ef9ec53acb6b4376b1146bb236b50565626 | fddad101c7be2fcbc05131081e708f31948c002f | /329. Longest Increasing Path in a Matrix/answer_bfs.py | a9141a61f5be8c4c3d3ff273a059e79b03652077 | [] | no_license | LennyDuan/AlgorithmPython | a10c9278c676829ab5a284a618f6352414888061 | 523c11e8a5728168c4978c5a332e7e9bc4533ef7 | refs/heads/master | 2021-07-16T12:31:08.284846 | 2021-03-28T20:31:28 | 2021-03-28T20:31:28 | 244,040,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | def longestIncreasingPath(self, matrix) -> int:
if not matrix:
return 0
res = 0
visited = set()
rows, cols = len(matrix), len(matrix[0])
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def traverse(i, j, visited):
if (i, j) in visited:
return 0
res = 1
... | [
"hod8@aber.ac.uk"
] | hod8@aber.ac.uk |
8679eb15e7abddc2ffc51114e648c08423ab7ebd | 2aec9c5e8c72b731d3abf22f2a407fe09c1cde09 | /QDS_Test/case/dbwytest.py | 22710e1c97b825043ebe5514995dd8e8038a0300 | [] | no_license | jiangyg/ZWFproject | 8b24cc34970ae0a9c2a2b0039dc527c83a5862b5 | aa35bc59566d92721f23d2dd00b0febd268ac2dd | refs/heads/master | 2020-09-26T17:01:00.229380 | 2019-11-15T13:16:21 | 2019-11-15T13:16:21 | 226,297,631 | 0 | 1 | null | 2019-12-06T09:55:37 | 2019-12-06T09:55:36 | null | UTF-8 | Python | false | false | 3,860 | py | # coding=utf-8
import time
import logging
from selenium.webdriver import ActionChains
from utils.mytestcase import MyTestCase
from utils.logincookie import DengLuPage
from utils.random import unicode
from utils.screenshort import get_screenshort
class DbWyTest(MyTestCase):
"""担保无忧测试集"""
... | [
"34021500@qq.com"
] | 34021500@qq.com |
2ac108f270cf5ffa0bfbca7755b958d446b3a030 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/21-tideGauge.py | 784ddb0d0f655471f76357e1f1df6c7540900599 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
72228f507a4ac8d98397a992ca802e652f3d5c8f | 2207cf4fb992b0cb106e2daf5fc912f23d538d0d | /src/catalog/serializers.py | 1e85a0316ce6f1e7fa4b866254126cb6dd9a095a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | litedesk/litedesk-webserver-provision | 95bc75f61532c5f1c7cb21fb5372ff288999689e | 1576b9d3e5e2e64d1136d276767c2710cfb1938f | refs/heads/master | 2021-05-15T01:35:31.984067 | 2020-08-18T10:55:20 | 2020-08-18T10:55:20 | 25,595,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs)
#
# 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/lice... | [
"raphael@lullis.net"
] | raphael@lullis.net |
424a153fb67403733012e88be8f95f8f6783f4bc | 4872375eeb0b2a45c0d3046bbfb5cd2d202b2295 | /quiz.py | e89862b18df06fdbf7fe361b76ea3a36a1613f18 | [
"MIT"
] | permissive | ash018/discordQuizBot | ee3aae7171220f39bd9a0bb057c2fa5eab017dd5 | b00441553bbbeeab2c4da0264eeed8480a33c3a1 | refs/heads/master | 2020-04-13T09:00:18.410702 | 2018-12-25T17:05:28 | 2018-12-25T17:05:28 | 163,098,967 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,308 | py | # -*- coding: utf-8 -*-
"""
Quiz / Question classes for quizbot.
@author: drkatnz
"""
import asyncio
import random
import re
import os
#todo: probably need to remove punctuation from answers
class Quiz:
def __init__(self, client, win_limit=10, hint_time=30):
#initialises the quiz
self.__r... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
5edaa1b154eb40102fe6ec6a4a37b893c4eab07f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /hv572GaPtbqwhJpTb_2.py | 8e0bb6a39e996aa650ed4adf5f67abcc31d4539a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | """
In this challenge, you must think about words as elastics. What happens when
do you tend an elastic applying a constant traction force at both ends? Every
part (or letter, in this case) of the elastic will expand, with the minimum
expansion at the ends, and the maximum expansion in the center.
If the word has a... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
327169a1cb6be4099ccb7f13fab70dfa92f4742e | 7deda84f7a280f5a0ee69b98c6a6e7a2225dab24 | /Receptionist/migrations/0027_package_manage_reception.py | 45248c462110a952feffbb09a7008787a2c97129 | [] | no_license | Cornex-Inc/Coffee | 476e30f29412373fb847b2d518331e6c6b9fdbbf | fcd86f20152e2b0905f223ff0e40b1881db634cf | refs/heads/master | 2023-01-13T01:56:52.755527 | 2020-06-08T02:59:18 | 2020-06-08T02:59:18 | 240,187,025 | 0 | 0 | null | 2023-01-05T23:58:52 | 2020-02-13T05:47:41 | Python | UTF-8 | Python | false | false | 549 | py | # Generated by Django 2.1.15 on 2020-05-19 15:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Receptionist', '0026_package_manage_grouping'),
]
operations = [
migrations.AddField(
model_na... | [
"khm4321@naver.com"
] | khm4321@naver.com |
845f77bc8d39737647f4a55d183df4f8f7afdbf3 | 43aeee48c1f6fc468a43f9bb0d4edae8ee0dbee1 | /LPTW-SRC/例3_21.py | 8430bd36f542e524ac1f1798a936dc9eba351ed6 | [] | no_license | wiky2/mytestproject | f694cf71dd3031e4597086f3bc90d246c4b26298 | e7b79df6304476d76e87f9e8a262f304b30ca312 | refs/heads/master | 2021-09-07T20:54:19.569970 | 2018-02-28T23:39:00 | 2018-02-28T23:39:00 | 100,296,844 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | #这个循环用来保证必须输入大于2的整数作为评委人数
while True:
try:
n = int(input('请输入评委人数:'))
if n <= 2:
print('评委人数太少,必须多于2个人。')
else:
#如果输入大于2的整数,就结束循环
break
except:
Pass
#用来保存所有评委的打分
scores = []
for i in range(n):
#这个while循环用来保证用户必须输入0到100之间的数字
... | [
"jerry_136510@aliyun.com"
] | jerry_136510@aliyun.com |
3d0f58b74138d3d783dd0a71510afd2354a9ac4e | 243eddaee6dff4551da9c10f725d8828e13840ac | /get_premium/apps.py | d24dcc77204cd467ed804330c4f12a0a7f693080 | [
"MIT"
] | permissive | BarunBlog/Link_People | 46b0c2c141ae042b481893aee869977755790dc8 | 1ffd07bc5b31a715133c99efbbb478efe18d632b | refs/heads/master | 2023-01-24T04:54:13.545951 | 2020-12-03T05:56:33 | 2020-12-03T05:56:33 | 304,888,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class GetPremiumConfig(AppConfig):
name = 'get_premium'
| [
"bhattacharjeebarun25@gmail.com"
] | bhattacharjeebarun25@gmail.com |
afa9a1d0944e4af29df98932dd9113870175e138 | 3ac0a169aa2a123e164f7434281bc9dd6373d341 | /singleNumber.py | 4a7b92101b0350685936c92368994f2cf80679bc | [] | no_license | sfeng77/myleetcode | 02a028b5ca5a0354e99b8fb758883902a768f410 | a2841fdb624548fdc6ef430e23ca46f3300e0558 | refs/heads/master | 2021-01-23T02:06:37.569936 | 2017-04-21T20:31:06 | 2017-04-21T20:31:06 | 85,967,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
s = 0
for v in nums:
s = s ^ v
return s
| [
"sfeng77@gmail.com"
] | sfeng77@gmail.com |
d8756586064d46abf0b01f2f255a4408170c98ca | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j19485-4225/sdB_GALEX_J19485-4225_lc.py | ad5e79f01dd4bec1f067eebd2a8c3dee9507a2f5 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[297.137792,-42.429325], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_GALEX_J19485-4225 /sdB_GALEX_J19485-4225_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
be016283897b8b97fcd923c3c66271b85639e383 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /rl_metrics_aaai2021/utils.py | fdb1f66a5371b5960ba1746220fe5dec986ad621 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 7,577 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
7a3484ca24eee71aa63e4e1eb0f4a392f1f4784a | 41b4702e359e3352116eeecf2bdf59cb13c71cf2 | /contextual_bcq/rand_param_envs/mujoco_py/mjlib.py | 8f2cf8a780c82d64a893cfd22c85aaf7d6219ce8 | [] | no_license | CaralHsi/Multi-Task-Batch-RL | b0aad53291c1713fd2d89fa4fff4a85c98427d4d | 69d29164ab7d82ec5e06a929ed3b96462db21853 | refs/heads/master | 2022-12-22T19:23:45.341092 | 2020-10-01T00:05:36 | 2020-10-01T00:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,301 | py | from ctypes import *
import os
from .util import *
from .mjtypes import *
from rand_param_envs.mujoco_py import config
path_prefix = config.mjpro_path
if sys.platform.startswith("darwin"):
libfile = os.path.join(path_prefix, "bin/libmujoco131.dylib")
elif sys.platform.startswith("linux"):
libfile =... | [
"jil021@eng.ucsd.edu"
] | jil021@eng.ucsd.edu |
6f87b92696de2420ba9b14956ac1d08db4e16a86 | bc6c0cda914c23e80921793eb0ce71c45202ada4 | /src/endoexport/export.py | 66f3970d48311c18dc3f984c553dd2e423f77298 | [
"MIT"
] | permissive | karlicoss/endoexport | a2221799113a12b400e298dea8d95559926de138 | 98c8805cbcc00187822737ef32c2e0434c4f450e | refs/heads/master | 2023-04-04T09:56:57.716411 | 2023-03-15T02:19:15 | 2023-03-15T02:22:45 | 230,617,833 | 3 | 0 | MIT | 2023-03-15T02:22:46 | 2019-12-28T14:05:23 | Python | UTF-8 | Python | false | false | 1,512 | py | #!/usr/bin/env python3
import argparse
import json
from .exporthelpers.export_helper import Json
import endoapi
def get_json(**params) -> Json:
endomondo = endoapi.endomondo.Endomondo(**params)
maximum_workouts = None # None means all
workouts = endomondo.get_workouts_raw(maximum_workouts)
return w... | [
"karlicoss@gmail.com"
] | karlicoss@gmail.com |
2acbc2e004d4d067218de078794ec2dd281455fd | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/cosmos/azure-mgmt-cosmosdb/generated_samples/cosmos_db_sql_container_create_update.py | 4eb9b7c581d3ad5045f9f14afe3e0ab5a7f5f6c1 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 3,434 | 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"
] | openapi-env-test.noreply@github.com |
d10c3fb59eb602e7a438fe8b8b7ccca52fcc45d2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_syphon.py | 1ef3547d3d666728720ba4bfc26206b8a9d76bc4 | [
"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 | 295 | py |
#calss header
class _SYPHON():
def __init__(self,):
self.name = "SYPHON"
self.definitions = [u'a siphon noun ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
99f477ff8ee5eee19b30adddfcaa704802c97c42 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/Floobits-flootty/allPythonContent.py | 233f4eda6ac3b66566c18b3214288161442dcb88 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,459 | py | __FILENAME__ = api
import sys
import base64
import json
try:
from urllib.request import Request, urlopen
assert Request and urlopen
except ImportError:
from urllib2 import Request, urlopen
try:
from . import shared as G, utils
assert G and utils
except (ImportError, ValueError):
... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
ee27313bde085575df70e1d42550c376748fe931 | 08a9dc04e6defa9dc9378bfbfbe0b6185af6a86a | /manager/views.py | 78b92fee93ead9c43d6d958d58f90642c7277c7f | [] | no_license | Felicity-jt/50.008-Project-1 | 8ecc63d2302b2eaa4060f4c900d7fed2e958927c | 960b5e57a39bfda1c31653798c23ddc051a2ff19 | refs/heads/master | 2021-08-24T00:40:27.886634 | 2017-12-07T09:14:12 | 2017-12-07T09:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | from json import loads
from django.http import Http404
from django.shortcuts import render
from django.core.exceptions import PermissionDenied
from django.views.decorators.http import require_POST
from common.db import sql, page
from common.utils import pagination
from common.messages import NOT_STAFF
from common.dec... | [
"kwokshungit@gmail.com"
] | kwokshungit@gmail.com |
39ce07857213f8a281675528cad52ce7943c5bf1 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /zpt/trunk/site-packages/zpt/_pytz/zoneinfo/US/Indiana_minus_Starke.py | f06a4f85e29494d5c49f070ed6153788987fe72d | [
"MIT",
"ZPL-2.1"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,743 | py | '''tzinfo timezone information for US/Indiana_minus_Starke.'''
from zpt._pytz.tzinfo import DstTzInfo
from zpt._pytz.tzinfo import memorized_datetime as d
from zpt._pytz.tzinfo import memorized_ttinfo as i
class Indiana_minus_Starke(DstTzInfo):
'''US/Indiana_minus_Starke timezone definition. See datetime.tzinfo fo... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
511fe8b79650e5129209a33e6c7d768af423c6e6 | 2a1f4c4900693c093b2fcf4f84efa60650ef1424 | /py/dome/backend/apps.py | fc8e9e1db58cfc9dbc955eb7df36461f862fe2b5 | [
"BSD-3-Clause"
] | permissive | bridder/factory | b925f494303728fa95017d1ba3ff40ac5cf6a2fd | a1b0fccd68987d8cd9c89710adc3c04b868347ec | refs/heads/master | 2023-08-10T18:51:08.988858 | 2021-09-21T03:25:28 | 2021-09-21T03:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import unicode_literals
from django.apps import AppConfig
class BackendConfig(AppConfig):
name = 'backend'
| [
"chrome-bot@chromium.org"
] | chrome-bot@chromium.org |
bfa4051b7daa99e35be4c69d94d185b37ba84f1b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_035/ch37_2020_03_25_14_04_04_120072.py | a165e2f3c23563f7b30d6684819d8aca366bc2cd | [] | 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 | 174 | py | Senha = True
resposta = input("Qual é a senha")
while Senha:
if resposta=="desisto":
Senha = False
else:
Senha = True
return resposta
print("Você acertou a senha!") | [
"you@example.com"
] | you@example.com |
e56f0bd33da3d74267fd6ab2971ead15aa9263b8 | 1c488f486d14c19e19af1a46474af224498be193 | /experimental/serengeti/blankIBCC.py | 649a35a733279dc7605d90eb8296b4e245101794 | [
"Apache-2.0"
] | permissive | JiaminXuan/aggregation | fc2117494372428adeed85a9a413e2ff47244664 | 9a7ecbc2d4b143a73e48b1826b3727b6976fa770 | refs/heads/master | 2020-12-11T01:49:42.977664 | 2015-05-22T16:21:15 | 2015-05-22T16:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,087 | py | #!/usr/bin/env python
__author__ = 'greghines'
import numpy as np
import matplotlib.pyplot as plt
import csv
import sys
import os
import pymongo
import matplotlib.cbook as cbook
sys.path.append("/home/greg/github/pyIBCC/python")
import ibcc
client = pymongo.MongoClient()
db = client['serengeti_2014-07-28']
collecti... | [
"greg@zooniverse.org"
] | greg@zooniverse.org |
52b11a09076f3904dc2f45e1e998edf62a885d87 | aae0432eede626a0ac39ff6d81234e82f8d678c2 | /leetcode/algorithm/4.median-of-two-sorted-arrays.py | 63670a63bf49ee10613895df33ff3b9ae3388fc8 | [] | no_license | KIDJourney/algorithm | 81c00186a6dfdc278df513d25fad75c78eb1bf68 | e1cf8e12050b9f1419a734ff93f9c626fc10bfe0 | refs/heads/master | 2022-11-24T09:30:16.692316 | 2022-11-06T09:33:51 | 2022-11-06T09:33:51 | 40,428,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | #
# @lc app=leetcode id=4 lang=python3
#
# [4] Median of Two Sorted Arrays
#
# @lc code=start
class Solution:
def findMedianSortedArrays(self, nums1, nums2) -> float:
return self.easy(nums1, nums2)
def easy(self, nums1, nums2):
result = []
idx1, idx2 = 0, 0
while True:
... | [
"kingdeadfish@qq.com"
] | kingdeadfish@qq.com |
3fd8971af0057cfe6f9120d8654640df8c971099 | 99e76e9e4c8031418c4c50217b48adf1d880cf2f | /setup.py | 6974fdc5b21fd1b544eac798d4363569ad4198d7 | [
"MIT"
] | permissive | grow/grow-ext-responsive-styles | d75a5abb070613641e3da9f3f4cf7dc07e88c51f | bb3d8f68edc1f3e1bdf508bb5df8d5b296574e9b | refs/heads/master | 2021-01-03T14:04:15.882718 | 2020-05-20T20:38:09 | 2020-05-20T20:38:09 | 240,096,948 | 0 | 0 | MIT | 2020-05-20T20:34:58 | 2020-02-12T19:27:42 | HTML | UTF-8 | Python | false | false | 349 | py | from setuptools import setup
setup(
name='grow-ext-responsive-styles',
version='1.0.0',
zip_safe=False,
license='MIT',
author='Grow Authors',
author_email='hello@grow.io',
include_package_data=True,
packages=[
'responsive_styles',
],
package_data={
'responsive_s... | [
"jeremydw@gmail.com"
] | jeremydw@gmail.com |
4f21bdabf36e65773d6c9289dad471ce6aa16e31 | 178ae62be7de20a50f96361e80bdcff5a5493ae2 | /koica/templatetags/koica.py | 36b3a706fcb6f684e4f9896f13b5cc8b25353d75 | [
"MIT"
] | permissive | synw/django-koica | a043800c15fad69f2024557e62fcf0ac4808ffae | d8b1c9fa70c428f0aa0db0c523524e9d2ef27377 | refs/heads/master | 2021-01-10T03:15:24.570691 | 2015-12-09T14:55:29 | 2015-12-09T14:55:29 | 46,188,691 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from django import template
from koica.utils import sanitize_html
register = template.Library()
@register.filter(is_safe=True)
def remove_pre(value):
return sanitize_html(value, remove_pre=True) | [
"synwe@yahoo.fr"
] | synwe@yahoo.fr |
8e86bc7463a15ee8ba540cebbdc6dbebe01e0474 | 461d7bf019b9c7a90d15b3de05891291539933c9 | /bip_utils/bip39/bip39_entropy_generator.py | 47c75cf8f3c76ff3b2cb1f678605ec4780e1d6e9 | [
"MIT"
] | permissive | renauddahou/bip_utils | 5c21503c82644b57ddf56735841a21b6306a95fc | b04f9ef493a5b57983412c0ce460a9ca05ee1f50 | refs/heads/master | 2023-07-16T05:08:45.042084 | 2021-08-19T09:33:03 | 2021-08-19T09:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | 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 |
70b411ba66521bde662ff464e6ab782442fa0581 | 1508f7da93705839660e4fdfb87df7a9664bf087 | /a10API/a10API/flask/bin/migrate | bff34539b04e8d820b8b866d8ef3ee3bbc9995fb | [] | no_license | Younglu125/A10_Networks | 1a1ecebb28dd225f6a1f901a7c28350300df356d | 78a177ae4c8638d58dc873e4b1c589a1d5aaa717 | refs/heads/master | 2020-06-17T00:35:30.325740 | 2016-03-21T18:17:30 | 2016-03-21T18:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | #!/home/echou/a10API/flask/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'sqlalchemy-migrate==0.7.2','console_scripts','migrate'
__requires__ = 'sqlalchemy-migrate==0.7.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('sqlalchemy-migrate==0.7.2', 'con... | [
"info@pythonicneteng.com"
] | info@pythonicneteng.com | |
3ad99e3d7e9841da8f65b2003210f661dc96df4a | 0296bc69a0d9608ed826ad7a719395f019df098f | /Tools/Compare_images.py | f4ba586d2dfa3fcae52e277676f2b4a82ffdf59a | [] | no_license | jcn16/Blender_HDRmap_render | c0486a77e04c5b41a6f75f123dbdb3d10c682367 | 50e6cdb79fef83081de9830e7105dd425a235a9e | refs/heads/main | 2023-07-19T22:22:53.622052 | 2021-08-20T06:29:10 | 2021-08-20T06:29:10 | 377,757,283 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import cv2
import numpy as np
def tianchong(img):
m = img.shape[0]
n = img.shape[1]
append = int(np.ceil(abs(m - n) / 2))
if m > n:
constant = cv2.copyMakeBorder(img, 0, 0, append, append, cv2.BORDER_CONSTANT, value=(0, 0, 0))
else:
constant = cv2.copyMakeBorder(img, append, append... | [
"591599635@qq.com"
] | 591599635@qq.com |
f7675475bf4180ae4b05a6af1aebe4521077a136 | e131e752d826ae698e12e7bc0583362741f9d942 | /AWS.py | c886890f56cf208b48066e6c151d54611fc0b574 | [] | no_license | abalberchak/TouchFace | ba30565be91b848126524aa47377789253370e04 | d093ece8890b68c72e0855a024d908105df99b94 | refs/heads/master | 2021-01-11T01:43:35.067808 | 2016-09-29T03:41:13 | 2016-09-29T03:41:13 | 69,530,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | #----------------------------------------- Intent Schema Below:------------------------------
{
"intents": [
{
"intent": "AMAZON.ResumeIntent"
},
{
"intent": "AMAZON.PauseIntent"
},
{
"intent": "DojoInfoIntent"
},
{
... | [
"minhpn.org.ec@gmail.com"
] | minhpn.org.ec@gmail.com |
af935ba661ffbdb6c3921e41c3c65c2ba9235ccd | 843d9f17acea5cfdcc5882cf8b46da82160c251c | /adafruit_stepper.py | 8e9319c17ea13b32312acbe50d018791ab2ea40a | [] | no_license | gunny26/raspberry | 7c1da63785c86412af9fa467ea231b19a97f4384 | e4eb0d2f537b319d41b6c50b59e69fb297c62d25 | refs/heads/master | 2016-09-06T14:02:30.122102 | 2014-01-29T16:31:08 | 2014-01-29T16:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import RPi.GPIO as GPIO
import time
GPIO.cleanup()
GPIO.setmode(GPIO.BCM)
enable_pin = 18
coil_A_1_pin = 4
coil_A_2_pin = 17
coil_B_1_pin = 23
coil_B_2_pin = 24
GPIO.setup(enable_pin, GPIO.OUT)
GPIO.setup(coil_A_1_pin, GPIO.OUT)
GPIO.setup(coil_A_2_pin, GPIO.OUT)
GPIO.setup(coil_B_1_pin, GPIO.OUT)
GPIO.setup(coil_B_... | [
"arthur.messner@gmail.com"
] | arthur.messner@gmail.com |
a7072cf5db1b5527272336c6191bab4e1770b928 | c840f190b3540bf212de2c70563e57da278fa9cb | /hyacinth.py | 055e735da50162825883a5c29dfd69fcd0f7242d | [] | no_license | edelooff/hyacinth | b768a871d476dd120f7d2d1acb039a6a9ebf2e19 | 0a6dd15fa1b1357afa566f924ad27b744582464b | refs/heads/master | 2022-04-16T13:24:18.986246 | 2020-04-01T08:15:36 | 2020-04-01T08:15:36 | 251,756,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,538 | py | from collections import (
Counter,
defaultdict)
import random
import re
import sys
DESIGN = re.compile(r'''
(?P<design>[A-Z])
(?P<size>[SL])
(?P<flowers>(:?\d+[a-z])*) # The specification is fuzzy on 1+ or 0+
(?P<total>\d+)''', re.VERBOSE)
DESIGN_FLOWER = re.compile(r'''
(?P<count>\d+)
... | [
"elmer.delooff@gmail.com"
] | elmer.delooff@gmail.com |
db365ccaef28c337a5d9c69e8c10f082020063ee | c940bcb25e1ed315263b25cbdac49cc4bf92cac1 | /env/vkviewer/python/georef/georeferenceutils.py | 92de981594a95d6365cfb3fdb3f7e7f015ad83b1 | [] | no_license | kwaltr/vkviewer | 281a3f1b5b08a18a89f232ecd096cea44faca58b | 01d64df0a9266c65e0c3fb223e073ef384281bdc | refs/heads/master | 2021-01-16T22:09:41.821531 | 2014-02-07T17:19:04 | 2014-02-07T17:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,844 | py | '''
Created on Oct 15, 2013
@author: mendt
'''
import subprocess
""" function: parseYSize
@param - imageFile {String} - path to a image file
@return - {Integer} - value which represents the y size of the file
This function parse the x,y size of a given image file """
def parseXYSize(imageFile):
... | [
"jacobmendt@googlemail.com"
] | jacobmendt@googlemail.com |
49831033a0db7eb9b44e22f82a18daf733b0ede5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03698/s076680456.py | f88b228e0ad2e567dcb9e176f989690214f846c7 | [] | 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 | 100 | py | S=input()
for c in S:
if S.count(c)>1:
print("no")
break
else:
print("yes")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f0b7898e2cc53710b09420d379c41c3e2ac4a97a | cbf70750d6c265e4043fd9d1d3bd835662cd680f | /customer/apps.py | 845451d50116021235e04c440ee3b6c448bca321 | [
"Apache-2.0"
] | permissive | xxcfun/DJANGO_CRM | c54e249a9a3da9edaeb5d9b49e852d351c7e359a | 1f8d2d7a025f9dc54b5bf498e7a577469f74c612 | refs/heads/master | 2023-01-14T05:21:54.995601 | 2020-11-27T03:23:40 | 2020-11-27T03:23:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.apps import AppConfig
class CustomerConfig(AppConfig):
name = 'customer'
verbose_name = '客户管理'
| [
"55070348+hhdMrLion@users.noreply.github.com"
] | 55070348+hhdMrLion@users.noreply.github.com |
57c8c4f7a53557e403719802170a2e4a7bd660c6 | 9ecd7568b6e4f0f55af7fc865451ac40038be3c4 | /tianlikai/hubei/enshi_zhongbiao.py | aa1eb42ebd5cbeb6d019ac1072c18bf552fa29cc | [] | no_license | jasonTLK/scrapy | f5ac6e575e902c077a07dc0eb9d228506f1a173f | 2de8245fbc8731cfd868bbd91168e26271045300 | refs/heads/master | 2021-01-20T04:22:23.080864 | 2017-04-28T07:46:29 | 2017-04-28T07:46:29 | 89,681,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import Request
from scrapy.selector import Selector
try:
from scrapy.spiders import Spider
except:
from scrapy.spiders import BaseSpider as Spider
import datetime
from items.biding import biding_gov
from utils.toDB import *
# 湖北恩施招投标网站
# 中标信息
class hz_gov_Spi... | [
"18723163167@163.com"
] | 18723163167@163.com |
de8358d209f0dbfcb2af469c09f0adecc9434180 | 8aa1203e1a1c350da16921787133014831097391 | /luminardjangopgm/PythonCollection/ListDemi/listworkout2.py | 3c265d38f3861a8f435cfbcd15806d5de7e7f4df | [] | no_license | ashilz/luminarpython | 98fa4a87c60529d0c819e13bc5145e6f7d4ef01f | 9eb834448012bd60952cbc539409768cabd66325 | refs/heads/master | 2022-12-03T03:36:14.229723 | 2020-08-25T05:07:26 | 2020-08-25T05:07:26 | 290,109,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | lst=[10,12,13,14,15]
cnt=len(lst)
p=1
for i in range(0,cnt):
res=lst[i]**p
p+=1
print(res)
| [
"ashilantony333@gmail.com"
] | ashilantony333@gmail.com |
8bf02c256d73472a61e065933f71d8e075957de5 | a3d1e8a67ed43e1bea59180cc51c49f25a961a49 | /scripts/dg2dotty | 1aee7a8c68572dcdabdf99da9567433445ae7d8b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | WladimirSidorenko/TextNormalization | 38b076d88a2de40dae72dc8b4096e354b774f2f4 | ac645fb41260b86491b17fbc50e5ea3300dc28b7 | refs/heads/master | 2020-04-14T16:48:42.541883 | 2019-09-29T23:38:28 | 2019-09-29T23:38:28 | 163,962,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,209 | #!/usr/bin/env python2.7
# -*- coding: utf-8; -*-
"""
Utility for representing DG trees in DOTTY format.
Read a DG tree in CONLL-2009 format and output the read tree in GRAPHVIZ
format.
Input format (meaning of columns):
ID FORM LEMMA PLEMMA POS PPOS FEAT PFEAT HEAD PHEAD DEPREL PDEPREL FILLPRED PRED APREDs
0 1 ... | [
"wlsidorenko@gmail.com"
] | wlsidorenko@gmail.com | |
e61d248ab9d60f7194933ccc8cf31c297f485cc2 | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /examples/pytorch/dimenet/modules/envelope.py | b9d89620f674a562a255f52694e36235733374cc | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 610 | py | import torch.nn as nn
class Envelope(nn.Module):
"""
Envelope function that ensures a smooth cutoff
"""
def __init__(self, exponent):
super(Envelope, self).__init__()
self.p = exponent + 1
self.a = -(self.p + 1) * (self.p + 2) / 2
self.b = self.p * (self.p + 2)
... | [
"noreply@github.com"
] | dmlc.noreply@github.com |
c85c091a3229318315dafe45d892f4fe27ad63c5 | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/All_Solutions/0480.滑动窗口中位数/0480-滑动窗口中位数.py | b6a27a3906d116af6ae8695a4eafea53559a93c4 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 940 | py | import bisect
class Solution:
def medianSlidingWindow(self, nums: List[int], k: int) -> List[float]:
"""
My solution, using sorted list
Time: O(nlog(k))
Space: O(n+k)
"""
res = []
if not nums or not k:
return res
def append_m... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
ecc631a48f59fcc28412207e3d56e26f26d614f1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/128/usersdata/222/33411/submittedfiles/al6.py | a4e5c49916c0a47643dc35834d5f8c7cd5aca7c0 | [] | 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 | 303 | py | # -*- coding: utf-8 -*-
a=int(input('Digite a:'))
contador=0
for i in range(2,a,1):
if n%i==0:
contador=contador+1
print(i)
for i in range(2,a,1):
if n%1==0:
contador=contador+1
print(i)
if contador==0:
print('Primo')
else:
print('Não primo')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ef232dab5bc20bf3a6e6d2877ede262ab60bd9c8 | 99249dad36df26a712ae8d900041d53acf3901ea | /settings/configurations/LCLS_settings.py | 0f4d71a15a5f657650c92536b3cfb5a54b7d163c | [
"MIT"
] | permissive | bopopescu/Lauecollect | f1f79c2cc5ff106df0dedbd6939ec92630d2b305 | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | refs/heads/master | 2022-11-29T00:40:28.384831 | 2019-06-05T01:21:36 | 2019-06-05T01:21:36 | 280,989,300 | 0 | 0 | MIT | 2020-07-20T02:03:22 | 2020-07-20T02:03:22 | null | UTF-8 | Python | false | false | 1,034 | py | MicroscopeCamera.ImageWindow.Center = (679.0, 512.0)
MicroscopeCamera.Mirror = False
MicroscopeCamera.NominalPixelSize = 0.000517
MicroscopeCamera.Orientation = -90
MicroscopeCamera.camera.IP_addr = '172.21.46.202'
MicroscopeCamera.x_scale = -1.0
MicroscopeCamera.y_scale = 1.0
MicroscopeCamera.z_scale = -1.0
WideFieldC... | [
"friedrich.schotte@gmail.com"
] | friedrich.schotte@gmail.com |
a4f2c36e4c3b0cede51f060454ace8927faf42d4 | 1fd180ffcaf78a8ef5029a753e8b7ebd6aa7cdc6 | /todolistapp/wsgi.py | a0714e3a7cfcb7f303b675f6ec51b5eec97c91a5 | [] | no_license | Ayush900/todo-list-app | 05033615e7c521c16b4f840bd5401eb4c8bb7fd7 | 1f9c30dedab0ef1da9d08361a097bf31eec5c3f8 | refs/heads/master | 2022-12-25T19:53:06.353732 | 2020-10-01T07:04:22 | 2020-10-01T07:04:22 | 269,395,956 | 0 | 2 | null | 2020-10-01T07:04:23 | 2020-06-04T15:26:49 | JavaScript | UTF-8 | Python | false | false | 399 | py | """
WSGI config for todolistapp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ayush.mehrotra900@gmail.com"
] | ayush.mehrotra900@gmail.com |
09f7ff38257927f817ca76e38b02d8f4f94da9fd | 730707fdefc2934929e1309cfbb0484d62b4bc34 | /backend/home/migrations/0001_load_initial_data.py | bc0ac08ee26bc6af244f1c1862878b762c7d3a2e | [] | no_license | crowdbotics-apps/tpl-account-securty-27301 | 885f78b6256e3da6733c534cb85b89f797476e5f | 44a580b64f14f7598b9e0c7a513976795992b15d | refs/heads/master | 2023-04-26T15:38:35.791087 | 2021-05-23T22:55:42 | 2021-05-23T22:55:42 | 370,173,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "tpl-account-securty-27301.botics.co"
site_params = {
"name": "tpl account securty page",
}
if custom_domain:
site_params["domain"] = custom_domain
Si... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
557dc77ea9e99dbf933860debf7334305d13e6aa | eff5f0a2470c7023f16f6962cfea35518ec0b89c | /Storage_Xs and Os Champion.py | 7d81e185c2aae6377e67314d2e8577330d0932e8 | [] | no_license | olegJF/Checkio | 94ea70b9ee8547e3b3991d17c4f75aed2c2bab2f | fc51a7244e16d8d0a97d3bb01218778db1d946aa | refs/heads/master | 2021-01-11T00:46:42.564688 | 2020-03-02T13:36:02 | 2020-03-02T13:36:02 | 70,490,008 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | # -*- coding: utf-8 -*-
def x_and_o(grid, mark):
X_vs_O = {'X':'O', 'O':'X'}
def winner(grid, mark):
WINNER_WAYS = ((0, 1, 2), (3, 4, 5),
(6, 7, 8), (0, 3, 6),
(1, 4, 7), (2, 5, 8),
(0, 4, 8), (2, 4, 6)
)
... | [
"jf2@ua.fm"
] | jf2@ua.fm |
a49c16b1780e0f525fcaef9f2316c830deb44dd2 | 4cabdcc3cdf929fa7cf761a42cd3012d01494336 | /pipeline/mongodb/connector.py | 02c440be290a00f350da0205b88def477f43851c | [] | no_license | pjt3591oo/python-boilerplate | 660e3234aa45f18ed553f499674c54e3226bfaf4 | 1ea8d84cfc06c84bab934f779ead309e8e4e7c14 | refs/heads/master | 2021-01-01T06:53:18.184728 | 2017-07-19T01:06:54 | 2017-07-19T01:06:54 | 97,542,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | from config.DB import CONNECTOR_INFO
CONNECTOR_INFO['mongodb'] | [
"pjt3591oo@gmail.com"
] | pjt3591oo@gmail.com |
bc38069aef7b32c7c351685d0b2122f0d604529e | 2f5d221d5cd423f07da50ed8be9668d811e550b4 | /airtest/core/ios/fake_minitouch.py | b5eb7986af962fc31648c001e4259ad16c8af15a | [
"Apache-2.0"
] | permissive | Pactortester/Airtest | d1db25498591992dee525b2ceeb45de9239b319f | 18e57ae2bbde3f2b95c32f09e214fdf4aec41330 | refs/heads/master | 2022-06-03T22:52:54.939200 | 2020-06-29T01:01:30 | 2020-06-29T01:01:30 | 275,080,743 | 1 | 0 | Apache-2.0 | 2020-06-26T05:28:02 | 2020-06-26T05:28:02 | null | UTF-8 | Python | false | false | 1,979 | py | # coding=utf-8
import subprocess
import os
import re
import struct
import logging
from airtest.utils.logger import get_logger
from airtest.utils.nbsp import NonBlockingStreamReader
from airtest.utils.safesocket import SafeSocket
LOGGING = get_logger(__name__)
class fakeMiniTouch(object):
lastDown = {'x': None, '... | [
"lxn3032@corp.netease.com"
] | lxn3032@corp.netease.com |
7066f6fd5882ec68a145a9b5116e7c5eff2d33f2 | a854f81f3ca0d6e6d6cf60662d05bc301465e28c | /backend/booking/migrations/0001_initial.py | 4d479654287d6f6f7b495a5050811e171d37cb04 | [] | no_license | crowdbotics-apps/lavadoras-19637 | 7f99e2046a6a92cdcfaec052eb9eadfd807193fd | 577d0da2626867a8a1b27d2df386c8598e4adc6d | refs/heads/master | 2022-12-02T21:15:17.103593 | 2020-08-18T08:28:47 | 2020-08-18T08:28:47 | 288,397,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,317 | py | # Generated by Django 2.2.15 on 2020-08-18 08:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('location', '0001_initial'),
('taxi_profile', '0001_initial'),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
75d146601fcfb74873d0571bc7d1e05b92491d12 | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_32/0504_softmax_regression.py | 5d1daab24d438285e89be0a81cd2092dde31f122 | [
"Apache-2.0"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 1,389 | py | import myutil as mu
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import sys
sys.path.append("/data")
torch.manual_seed(1)
x_train = [[1, 2, 1, 1],
[2, 1, 3, 2],
[3, 1, 3, 4],
[4, 1, 5, 5],
[1, 7, 5, 5],
[1, 2, 5, ... | [
"793679547@qq.com"
] | 793679547@qq.com |
f3342ae253a6c3ea4cdf0a8b6733c66468df32a0 | b47a907e824b52a6ee02dfb6387d24fa4d7fe88f | /config/settings.py | 711faa6f8b40f97ba26f9110ae9b2a5e620c989a | [] | no_license | hiroshi-higashiyama/DJANGO-KAKEIBO | 413a883fdef2571cacbd6c8679e63a6aecab7ae9 | 564c6047fcc6f6bb4a45b2eec121df619d158952 | refs/heads/master | 2022-12-29T19:53:15.186934 | 2020-09-21T01:04:10 | 2020-09-21T01:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"s20840011@gmail.com"
] | s20840011@gmail.com |
6e5b22d94e41c54bed477e9c213add68291fd728 | d85cc746428e787254455c80b66a7309aa715e24 | /demo_odoo_tutorial/models/models.py | fc9e8beafbb712f17fd48d60021152bfda775a67 | [
"MIT"
] | permissive | AllenHuang101/odoo-demo-addons-tutorial | 2ef7d47432a2530f1e704f86cba78e3e975ca0f3 | e719594bc42e3a9b273f5b37980ac61773702ab9 | refs/heads/master | 2023-03-28T03:37:46.338483 | 2021-03-29T08:44:22 | 2021-03-29T08:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | from odoo import models, fields, api
from odoo.exceptions import UserError, ValidationError
class DemoOdooTutorial(models.Model):
_name = 'demo.odoo.tutorial'
_description = 'Demo Odoo Tutorial'
_inherit = ['mail.thread', 'mail.activity.mixin'] # track_visibility
name = fields.Char('Description', requ... | [
"twtrubiks@gmail.com"
] | twtrubiks@gmail.com |
271e0a82482eb25eaca4b7f12e7efeb08508fb7a | 9206e405e9be5f80a08e78b59d1cb79c519ae515 | /algorithms/codeforces/the_number_of_even_pairs/main.py | 7b7aac218751e1de472854d40e92a53218a4c619 | [] | no_license | mfbx9da4/mfbx9da4.github.io | ac4e34f0e269fb285e4fc4e727b8564b5db1ce3b | 0ea1a0d56a649de3ca7fde2d81b626aee0595b2c | refs/heads/master | 2023-04-13T22:15:19.426967 | 2023-04-12T12:14:40 | 2023-04-12T12:14:40 | 16,823,428 | 2 | 0 | null | 2022-12-12T04:36:08 | 2014-02-14T01:30:20 | SCSS | UTF-8 | Python | false | false | 738 | py | """
"""
from math import factorial
def int_as_array(num): return list(map(int, [y for y in str(num)]))
def array_as_int(arr): return int(''.join(map(str, arr)))
def read_int(): return int(input())
def read_array(): return list(map(int, input().split(' ')))
def array_to_string(arr, sep=' '): return sep.join(m... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
fb483adff09210c3a8dea90d203b5b070f3768fb | 84379e15e54ba79b7e63c1fceecf712b46f22977 | /apps/decks/migrations/0016_auto_20181011_1715.py | 2ac96bd86b326bc8447c68610a43fbba4554b4f0 | [] | no_license | CoderEnko007/HearthStoneStationBackend | a1d74c324233ebd617ad01df13bc609d1f1aa2f6 | 6cc92cb806f19f2a2a0596645028cfe2fa5895d6 | refs/heads/master | 2022-12-11T23:20:24.335737 | 2022-09-18T07:04:08 | 2022-09-18T07:04:08 | 144,392,864 | 0 | 0 | null | 2022-12-08T02:22:42 | 2018-08-11T14:40:48 | JavaScript | UTF-8 | Python | false | false | 831 | py | # Generated by Django 2.0.4 on 2018-10-11 17:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('decks', '0015_auto_20180928_1019'),
]
operations = [
migrations.AddField(
model_name='decks',
name='real_game_count'... | [
"yf381966217@163.com"
] | yf381966217@163.com |
47693d0710e9c072cad944e857787701b982ce3d | 0ea12ae71b3863a8279fd7200e61f5c40dc3dcb6 | /image_bosch_detect_ssd_mobile.py | 92fd277b6022c6d929dd37d5dae50ebf4863411d | [
"MIT"
] | permissive | scrambleegg7/Traffic-Light-Classification | 7dafb32f43bf1c73d62c645105cdc414ebb0cf44 | 2a9f6b8272866f289963905b162c35058ce6a234 | refs/heads/master | 2020-04-03T02:58:44.729521 | 2018-10-28T14:57:44 | 2018-10-28T14:57:44 | 154,973,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,201 | py | import tensorflow as tf
import numpy as np
import datetime
import time
import os, sys
import cv2
from PIL import Image
import yaml
from glob import glob
try:
import matplotlib
matplotlib.use('TkAgg')
finally:
from matplotlib import pyplot as plt
from object_detection.utils import visualization_utils as ... | [
"donchan@milano.local"
] | donchan@milano.local |
66ee42bf083364ea3975225cfe14efbc76c1c287 | 8760f182049d4caf554c02b935684f56f6a0b39a | /boar/facebook_connect/migrations/0002_profile_onetoone_to_user.py | ed79636574a8ae85a20dfee1a85138d28e7f7b15 | [
"BSD-3-Clause"
] | permissive | boar/boar | c674bc65623ee361af31c7569dd16c6eb8da3b03 | 6772ad31ee5bb910e56e650cc201a476adf216bc | refs/heads/master | 2020-06-09T06:59:31.658154 | 2012-02-28T19:28:58 | 2012-02-28T19:28:58 | 1,734,103 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py |
from south.db import db
from django.db import models
from boar.facebook_connect.models import *
class Migration:
def forwards(self, orm):
# Changing field 'FacebookProfile.user'
# (to signature: django.db.models.fields.related.OneToOneField(to=orm['auth.User'], unique=True))
... | [
"ben@firshman.co.uk"
] | ben@firshman.co.uk |
12f6cd8c0d13ddb5246553b8acd29a2595a7a282 | 82ca64c6a819f3e2cb41057f2df9f758cedee28a | /BlockChain/venv/bin/python-config | ae068f06249b1f99eb784109dbf07bbc241050d5 | [] | no_license | seanxxxx/coinx | 619a18f9b2d7f83076083055bfccf0c5e404f665 | eb1a7ed430c546cf02ddcc79f436200b218d5244 | refs/heads/master | 2023-01-28T03:09:10.358463 | 2018-09-07T07:49:19 | 2018-09-07T07:49:19 | 146,564,986 | 0 | 1 | null | 2022-12-20T14:20:06 | 2018-08-29T07:52:37 | Python | UTF-8 | Python | false | false | 2,363 | #!/Users/xuanxu/PycharmProjects/BlockChain/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if ... | [
"xuxuan@lanlingdai.net"
] | xuxuan@lanlingdai.net | |
cd50fc8b715db9544fca346be9d2f59be5483792 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/FrogRiver_20200723134656.py | b53537eb14ce4472bd411f219e101697e4edb59b | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | def Frog(X,A):
# given x where the frog wants to go
# find earliest time
# once you get the second that has that position
# return the second
pos = set()
print(Frog(5,[1,3,1,4,2,3,5,4]))
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
b37888fa6385baeb41115a66b55bec5886b14fbc | 387ad3775fad21d2d8ffa3c84683d9205b6e697d | /testsuite/trunk/el/el_test_036.py | cfab23e5ff03600c188c22c0c83bb31985905443 | [] | no_license | kodiyalashetty/test_iot | 916088ceecffc17d2b6a78d49f7ea0bbd0a6d0b7 | 0ae3c2ea6081778e1005c40a9a3f6d4404a08797 | refs/heads/master | 2020-03-22T11:53:21.204497 | 2018-03-09T01:43:41 | 2018-03-09T01:43:41 | 140,002,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
"""
(C) Copyright IBM Corp. 2008
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
file and program are licensed under a BSD style license. See
the Copy... | [
"suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26"
] | suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26 |
6f49e68819abe8b1d485500c72678faf77327817 | 146012dda21ab72badad6daa8f98e6b26fedb128 | /08day/04-练习求和.py | c539322bdecb93e196c838806f2fc360f0cb12e3 | [] | no_license | fengshuai1/1805 | 41786c3561beca580ba82d9e9d4347571e38e198 | 8dc3e6605cc1d6f91685ae45bfebfc062f0aa489 | refs/heads/master | 2020-03-19T07:41:40.608389 | 2018-06-28T01:45:43 | 2018-06-28T01:45:43 | 136,140,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | c = 0
m = 0
while c <= 100:
print("当前数字:%d"%c)
c+=1
m = c + m
print("求和是%d"%m)
| [
"1329008013@qq.com"
] | 1329008013@qq.com |
4b5be1fb84187f4d83d1e07885657d02b7a120f5 | 30d1b89b67d48efdacce5bceeee2c734bee2b509 | /manual_translation/devel/lib/python2.7/dist-packages/mavros_msgs/msg/_Mavlink.py | 2d4e562e868c5dec2e71bd13bbbde54c744bcc04 | [] | no_license | ParthGaneriwala/uppaal2ros | db4a6b20c78e423511e565477a2461942c2adceb | f88b2b860b0b970b61110a323d0397352785c9e2 | refs/heads/main | 2023-02-20T19:36:22.406515 | 2021-01-28T18:58:44 | 2021-01-28T18:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | /home/adi/ardu_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_Mavlink.py | [
"adithyatp@yahoo.com"
] | adithyatp@yahoo.com |
f6c327232f55a5253a539568cc9c8d10d656384d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02686/s642611525.py | 914bb9607791cee5d353d156d9afb343faf395b3 | [] | 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 | 981 | py | def main():
N = int(input())
up_lines = []
down_lines = []
for i in range(N):
s = input()
height = 0
bottom = 0
for c in s:
if c == "(":
height += 1
else:
height -= 1
bottom = min(bottom, height)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c19012af2e5fe52651cc00b9775abc1d3e4e6ea1 | a71d5838e292e2c0c7371f7fc7870c7018820ae1 | /day03/03_pie.py | 71c8ec39a03c52234f30d2660394d2f3d37a995f | [] | no_license | skywalkerqwer/DataScience | be91541c3da383d15ee52d0101d2dbb0289c2fde | 4cfd42f3a9795e295393cdb045852d46e99b6e59 | refs/heads/master | 2020-06-17T11:41:40.113864 | 2019-07-15T09:49:40 | 2019-07-15T09:49:40 | 195,913,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | """
绘制饼状图
"""
import numpy as np
import matplotlib.pyplot as mp
labels = ['Python', 'JavaScript', 'C++', 'Java', 'PHP']
values = [26, 17, 21, 29, 11]
spaces = [0.05, 0.01, 0.01, 0.01, 0.01]
colors = ['dodgerblue', 'orangered', 'limegreen', 'violet', 'gold']
mp.figure('Pie Chart', facecolor='lightgray')
mp.title('Lang... | [
"15902162780@163.com"
] | 15902162780@163.com |
0da39b2b6595f0a25f70e3735197ce8c382da45b | c7522a46908dfa0556ed6e2fe584fd7124ee5cdc | /ApplicationUsers/views.py | 80dd9c405729e423ad243becbd6d5c57ca1b5930 | [] | no_license | stheartsachu/Eventlee | 461cf35961a7f294229d6c611e58a09d9f4e1eb5 | 6b67dfc873203f1322c16664923ffe5a760d50ed | refs/heads/master | 2022-11-13T14:48:39.097718 | 2020-06-30T04:54:45 | 2020-06-30T04:54:45 | 276,000,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | from django.shortcuts import render,HttpResponse,redirect,HttpResponseRedirect
from ApplicationUsers.form import ApplicationuserForm
# Create your views here.
from ApplicationUsers.models import users
def home(request):
return render(request,"index.html")
def Contact(request):
return render(request,"contact.htm... | [
"seartsachu@gmail.com"
] | seartsachu@gmail.com |
7bed90a14fc2ce416d14e56c5bf265e8b646487f | 7d3b096f803d1a47ad71a5c8aab30ba3aa67828c | /chibi_file/__init__.py | fe22184683cfdc5c75ca908282fad7a086a9d2bc | [] | no_license | dem4ply/chibi_file | 462244dac712d88915f2b931c5f0822f6d1fa937 | d27cef794512014b1602486edd0235052b38087a | refs/heads/master | 2020-12-03T05:09:15.825690 | 2017-08-23T09:36:57 | 2017-08-23T09:36:57 | 95,737,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | import mmap
import os
import shutil
def current_dir():
return os.getcwd()
def inflate_dir( src ):
if '~' in src:
return os.path.expanduser( src )
else:
return os.path.abspath( src )
def is_dir( src ):
return os.path.isdir( src )
def is_file( src ):
return os.path.isfile( src ... | [
"dem4ply@gmail.com"
] | dem4ply@gmail.com |
b7e89b7513c6151d39dc8adad4fee33e8afcf8f1 | 09cc8367edb92c2f02a0cc1c95a8290ff0f52646 | /ipypublish_plugins/example_new_plugin.py | 2fe177802ec9fd3259ca9ac9ac002ef160f3c1f2 | [
"BSD-3-Clause"
] | permissive | annefou/ipypublish | 7e80153316ab572a348afe26d309c2a9ee0fb52b | 917c7f2e84be006605de1cf8851ec13d1a163b24 | refs/heads/master | 2020-04-13T16:08:59.845707 | 2018-07-30T18:26:12 | 2018-07-30T18:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | """html in standard nbconvert format, but with
- a table of contents
- toggle buttons for showing/hiding code & output cells
- converts or removes (if no converter) latex tags (like \cite{abc}, \ref{})
"""
from ipypublish.filters.replace_string import replace_string
from ipypublish.html.create_tpl import create_tpl
f... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
6846461a15b491de3c42e18d6aa4d646d87bad7a | 4bd5e9b67d98bfcc9611bd8b774c9ab9f4f4d446 | /Python基础笔记/13/代码/3.多继承.py | 1693fc8f7b66401a95f44f287cfcb7d4c149f841 | [] | no_license | zhenguo96/test1 | fe21510aea7feb674e52fd7a86d4177666f841c5 | 0d8de7e73e7e635d26462a0bc53c773d999498be | refs/heads/master | 2020-05-03T13:09:53.592103 | 2019-04-06T07:08:47 | 2019-04-06T07:08:47 | 178,646,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # # 多继承
# class Base1:
# def __init__(self,name):
# self.name = name
# def t1(self):
# print("Base1")
#
# class Base2:
# def __init__(self,name):
# self.name = name
# def t2(self):
# print("Base2")
#
# class Base3:
# def __init__(self, name):
# ... | [
"1148421588@qq.com"
] | 1148421588@qq.com |
c02698bcbb5677d5aa1cdf687d66869a34eea59c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02742/s024664971.py | 37251941a04a71608f69d756b2f8eb6bf24e8a52 | [] | 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 | 259 | py | H, W = [int(_) for _ in input().split()]
if H == 1 or W == 1:
ans = 1
else:
ans = (H // 2) * (W // 2) * 2
if H % 2 == 1:
ans += W // 2
if W % 2 == 1:
ans += H // 2
if H % 2 == 1 and W % 2 == 1:
ans += 1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6e8faee78b555a964bcdabf9d7b434fba09a3c0 | b96f1bad8a74d31d8ff79bc955813bfcd17d7b26 | /24. Swap Nodes in Pairs.py | 75e6d9a0451fd14aadd62f665ddbd922cfa44910 | [] | no_license | brianhu0716/LeetCode-Solution | e7177af15e84e833ce8ab05027683ed4ac489643 | 158a4359c90b723545b22c4898047274cc1b80a6 | refs/heads/main | 2023-07-11T05:29:56.783795 | 2021-08-28T12:53:14 | 2021-08-28T12:53:14 | 374,991,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 11 15:06:14 2021
@author: Brian
"""
'''
交換相鄰兩node的值即可
'''
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
while not head or not head.next : return head
ptr = head
while ptr and ptr.next:
temp = ptr.val
... | [
"85205343+brianhu0716@users.noreply.github.com"
] | 85205343+brianhu0716@users.noreply.github.com |
7374ce7e683ccf1d4913b6f64fb04fb50b016df7 | 6c686d118e6d3072b3694c02c684a6619d4dd03e | /rsdns/tests/test_client.py | cb34bcfaef1aa74df689f00debfbff8959f697df | [
"Apache-2.0"
] | permissive | masthalter/reddwarf | 02e7b78e1e61178647fe8d98ab53eadfabe66e7f | 72cf41d573cd7c35a222d9b7a8bfaad937f17754 | HEAD | 2016-11-08T16:12:16.783829 | 2012-04-26T22:26:56 | 2012-04-26T22:26:56 | 2,387,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | import httplib2
import mox
import unittest
from eventlet import pools
from novaclient.client import HTTPClient
from novaclient import exceptions
from rsdns.client.dns_client import DNSaasClient
ACCOUNT_ID = 1155
USERNAME = "test_user"
API_KEY="key"
AUTH_URL="urly"
MANAGEMENT_BASE_URL="mgmter"
class FakeResponse(ob... | [
"tim.simpson@rackspace.com"
] | tim.simpson@rackspace.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.