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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
391945fa08d886f114674b3a77b7072759c5e4dc | 250003a344e5cb974579d67daeeed7ea6b51f620 | /day2/Day_02_Code_Challenge.py | b8de7199dfe11309dd333f06a41eb6680caec113 | [] | no_license | lakshsharma07/training2019 | 540cace993859f06b4f402fc5a7849b26fb11ce8 | d8ae0b0e1e567525e806834379713003a676ec06 | refs/heads/master | 2020-05-24T07:11:25.613107 | 2019-06-25T03:27:58 | 2019-06-25T03:27:58 | 187,154,851 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,783 | py |
"""
Hands On 1
"""
# Create a list of number from 1 to 20 using range function.
# Using the slicing concept print all the even and odd numbers from the list
"""
Hands On 2
"""
# Make a function to find whether a year is a leap year or no, return True or False
"""
Hands On 3
"""
# Make a function days_in_month to ... | [
"sharma1997lak@gmail.com"
] | sharma1997lak@gmail.com |
0bbd5853b2eed8a9e4eeb7d7d90f2b6e4eee9b72 | 267bda1518e45e183cf54c8ef3b504e3caca8e8c | /scripts/run_multitask.py | 286d6e2baacae267bdd0b0b355a516e946849a54 | [
"MIT"
] | permissive | Catsvilles/musicautobot | be83dac85b68d2fe4cd4140f4d93e675a2ee0c83 | 8ad147115a57ffcdbe539ddef62854593e87d913 | refs/heads/master | 2020-12-31T08:20:48.316493 | 2020-02-07T05:57:41 | 2020-02-07T05:57:41 | 238,949,362 | 1 | 0 | MIT | 2020-02-07T14:50:59 | 2020-02-07T14:50:58 | null | UTF-8 | Python | false | false | 4,403 | py | import music21
import torch
from fastai.distributed import *
from fastai.callbacks import SaveModelCallback
try: from apex.optimizers import FusedAdam
except: from torch.optim import Adam as FusedAdam
import numpy as np
import sys
sys.path.insert(0, '..')
from musicautobot.music_transformer import *
from musicautob... | [
"andrew.t.shaw@gmail.com"
] | andrew.t.shaw@gmail.com |
c8d39d6056868c1e76cb113b3fed863a51dc53a3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2527/60737/263807.py | b1df22d36c58e360e93c98ed822b34f785fe76cc | [] | 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 | 366 | py | rest = eval(input())
veg = int(input())
pri = int(input())
dis = int(input())
ret = []
ans = []
for i in rest:
if i[2] == veg and i[3] <= pri and i[4] <= dis and veg == 1:
ret.append(i)
elif i[3] <= pri and i[4] <= dis and veg == 0:
ret.append(i)
ret.sort(key=lambda x:(x[1], x[0]),reverse=True)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b17b1b9ad72e6573f7c2ca570122daa61efd207e | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TrigT1/TrigT1CaloByteStream/share/WriteLVL1CaloBSRun1_jobOptions.py | 5e13fabe694b0f2c72679b26c4adc21c00883ebe | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | # TrigT1Calo object containers to bytestream conversion
include.block("TrigT1CaloByteStream/WriteLVL1CaloBSRun1_jobOptions.py")
# the following include is needed to load correctly the trigger towers on/off, TT/Cells maps
include( "CaloConditions/CaloConditions_jobOptions.py" )
# To setup correctly the LArCablingServic... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
55893518006ce087010d6f18436f7f493225fe6e | 08427cf6764cb646fdd37eb239dc6dde0be68ad7 | /python/leetcode.233.py | 0dc3a5b380e9cf1cdb231429324bf3c0280ab76a | [] | no_license | CalvinNeo/LeetCode | 9d8fa71a1da8c926b5f39659a1befcfa06608945 | 02ebe56cd92b9f4baeee132c5077892590018650 | refs/heads/master | 2020-12-31T00:41:14.031066 | 2020-11-06T04:41:59 | 2020-11-06T04:41:59 | 80,634,710 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | class Solution(object):
def countDigitOne(self, n):
"""
:type n: int
:rtype: int
"""
def make_num(x):
ans = []
while x:
ans.append(x % 10)
x /= 10
if ans == []:
ans = [0]
return an... | [
"calvinneo1995@gmail.com"
] | calvinneo1995@gmail.com |
beea87fce23d562232cc635e6b18869dbfc911ac | 23e55ab51e322a3c0f967976a84f42f70f8ab701 | /tensorflow/lite/testing/op_tests/space_to_batch_nd.py | bebd80ad150919fadf134cf7a2e86b845dcb3080 | [
"Apache-2.0"
] | permissive | thangnvit/tensorflow | f58e7c2f95690f337361aa2973f2b84ac7e7f947 | c83887196eb717af66a7b3f008e970b4a226ff8f | refs/heads/master | 2021-02-21T17:51:56.030461 | 2020-03-06T07:55:33 | 2020-03-06T07:58:38 | 245,362,540 | 3 | 0 | Apache-2.0 | 2020-03-06T08:05:41 | 2020-03-06T08:05:40 | null | UTF-8 | Python | false | false | 3,919 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0b942dccc076c68c6b13517ec136b887319927b8 | 43268854505070471e0911bc0e5b280cadec8601 | /modeller9v8/modlib/modeller/id_table.py | 2ead273542c2b178aa8aaad7ba85a884f2d1ef41 | [] | no_license | realbigws/From_CA_to_FullAtom | 08621bf350c77e29140051d1af850a51e5fe138f | a59d9fcbc6c1f2bfc5fc2d77da26318c63ac3052 | refs/heads/master | 2020-05-30T01:37:47.378404 | 2019-05-30T21:42:45 | 2019-05-30T21:42:45 | 189,481,583 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | """Functions to calculate percentage sequence identities"""
import sys
def id_table(aln, matrix_file):
"""Calculate percentage sequence identities"""
coder, mat = get_seqid_matrix(aln)
print """
Sequence identity comparison (ID_TABLE):
Diagonal ... number of residues;
Upper triangle ... numb... | [
"wangsheng@ttic.edu"
] | wangsheng@ttic.edu |
569b0a605d5aaecd67ff12f62144242dd4dd14f4 | 3b8a9e3e3dc8e532b2f7cbe295a19d329da1408e | /test_masking.py | 4b736353a64ede1da519e83c47e3886a9c2a6058 | [] | no_license | pyspeckit/pyspeckit-tests | 744d7801b7d3cfcb06f9f9dbf7b9f1d40109d41f | c11ed9b3747a7b5bc18a48340ca3c2f207cd8c85 | refs/heads/master | 2023-08-31T03:31:06.086228 | 2023-08-10T00:01:49 | 2023-08-10T00:01:49 | 9,843,761 | 0 | 5 | null | 2021-09-05T19:40:22 | 2013-05-03T20:13:45 | Python | UTF-8 | Python | false | false | 1,756 | py | import numpy as np
from astropy import units as u
import pyspeckit
x = np.linspace(-50,50)
y = np.exp(-x**2/(5.**2*2))
error = np.ones_like(x,dtype='float')/10.
e = np.random.randn(x.size) * error
def test_chi2_consistency_when_masking():
sp = pyspeckit.Spectrum(xarr=x*u.km/u.s, data=y+e,
... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
8a70ffe33a68b9ec15cd9c2b38570cf927a1bb90 | 832f86e052d90916fb0c8156825c87dc13c0443e | /imported-from-gmail/2020-01-05-top-k-frequent-words.py | 7c19cdbed0a6ca14a04d2d262b207b4481c02a62 | [] | no_license | johncornflake/dailyinterview | 292615849cea62cb945ecc7039c594b6966a81f3 | 91bb0edb9e25255e6222279109c15ae9d203970c | refs/heads/master | 2022-12-09T21:02:12.204755 | 2021-06-07T13:09:34 | 2021-06-07T13:09:34 | 225,059,833 | 0 | 0 | null | 2022-12-08T11:27:38 | 2019-11-30T19:24:58 | Python | UTF-8 | Python | false | false | 758 | py | Hi, here's your problem today. This problem was recently asked by AirBNB:
Given a non-empty list of words, return the k most frequent words. The output should be sorted from highest to lowest frequency, and if two words have the same frequency, the word with lower alphabetical order comes first. Input will contain ... | [
"chadeous@gmail.com"
] | chadeous@gmail.com |
d6b68f7299d3ceb0e38148e2c4701c08fc3c51a4 | 7296bd842936b1980b2271cff84aec831fa7dceb | /PyQt5All/PyQt554ใ55ใ56/diggingold.py | 71ac63b121210e6296b6d3c4ef9d47253346457c | [] | no_license | redmorningcn/PyQT5Example | dbb1400e754909092dd13c111b4b241245a70720 | 4d4c44365d5d0bf3d9fd94922a13d0b50f17a95c | refs/heads/master | 2022-08-21T09:32:44.938410 | 2020-05-26T05:26:54 | 2020-05-26T05:26:54 | 266,952,766 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | # -*- coding: utf-8 -*-
"""
ไธไธชๅ
ณไบQTimerไธQThread็็ปผๅๅบ็จไธพไพ็ๅฐไพๅญ๏ผ
ๆ็ซ ้พๆฅ๏ผhttp://www.xdbcb8.com/archives/867.html
ๆ็ซ ้พๆฅ๏ผhttp://www.xdbcb8.com/archives/870.html
ๆ็ซ ้พๆฅ๏ผhttp://www.xdbcb8.com/archives/872.html
"""
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QWidget
from PyQt5.QtCore import QTimer, QThread, pyqtSign... | [
"redmorningcn@qq.com"
] | redmorningcn@qq.com |
85b44bc5fca6c30af6a3276fd3508f5e148cc066 | 67cbf8eba7d1303294d62d00bae69a2cd8c8d875 | /day5/registerTest.py | e1ddfeda8928fefbce24def82d0572c9196973da | [] | no_license | changchengxc/selenium1208 | c2bb5efe699c44db6b3a7abeac21d6456c5d4089 | e52460ebc93bd7466725d3f96bd0e3d036f9a2fb | refs/heads/master | 2020-04-13T01:20:43.429519 | 2018-12-23T07:46:35 | 2018-12-23T07:46:35 | 162,871,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | import time
import unittest
from selenium import webdriver
import ddt
# ็จๆฅๆต่ฏๆณจๅๅ่ฝ็ๆๆๅผๅธธๆ
ๅต
from day5.baseTestCase import BaseTestCase
from day5.readCsvFile import read
@ddt.ddt
class RegisterTest(BaseTestCase):
register_data = read("register_data.csv")
@ddt.data(*register_data)
def test_register(self, row)... | [
"51Testing"
] | 51Testing |
df646e0419e4c0c37e75917421602f1756457a75 | b1018e272ed284ab70ffe6055b90726e879004b3 | /MIDI Remote Scripts/KeyLab/DisplayElement.py | 4e5e2be1ee2027ae8d129e2c00bd234105e7a1ef | [] | no_license | aumhaa/livepy_diff | 8e593ffb30b1e7909225352f3a0084d4de2e51e6 | 266a7380c4d5a162c051c23f534f74cb7eace538 | refs/heads/master | 2020-04-12T03:17:56.545373 | 2017-04-24T02:02:07 | 2017-04-24T02:02:07 | 13,946,086 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py |
from itertools import chain
from _Framework.PhysicalDisplayElement import PhysicalDisplayElement
class DisplayElement(PhysicalDisplayElement):
_ascii_translations = {'\x00': 0,
' ': 32,
'%': 37,
'1': 49,
'2': 50,
'3': 51,
'4': 52,
'5': 53,
'6': 54,
'7': 55,
'8': 5... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
658d5167c08cb4cf4218c384682271f1f919ca80 | 36216b52f6d3c9b5d16e9d93c56540fe07bc5f5a | /submission/migrations/0020_auto_20180716_0920.py | a06c7392d8584ac4c6d15e99050145a2fb739303 | [
"MIT"
] | permissive | zerolfx/eoj3 | 3984676d1e29ad5d04f06a41836ece3f1a452054 | 156060399d1c3e5f7bcdbf34eaffbe2be66e1b20 | refs/heads/master | 2020-08-10T19:55:36.278006 | 2019-10-11T10:26:20 | 2019-10-11T10:27:19 | 214,410,171 | 1 | 0 | MIT | 2019-10-11T10:39:12 | 2019-10-11T10:39:11 | null | UTF-8 | Python | false | false | 1,180 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-07-16 09:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('submission', '0019_auto_20180713_1421'),
]
operations = [
migrations.AlterFie... | [
"scottyugochang@hotmail.com"
] | scottyugochang@hotmail.com |
07768e5c3b61710b15dae29b7a5f084328b7c680 | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/uline/uline/uline/handlers/app/distributor/transaction/exportMerchantTrade.py | b68d1d60e03c070c0f0b8eaf359ec1385d6bfd89 | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,117 | py | # -*- coding: utf-8 -*-
'''
BEGIN
่ทๅๅๆท่ฟไปถไฟกๆฏ
ๅฟ
้ๅๆฐ:
ๅฏ้ๅๆฐ:
ๆๅ:
{"code": 200, "msg": "ๆๅ"}
ๅคฑ่ดฅ:
{"code": 406, "msg": "ๅคฑ่ดฅ"}
END
'''
from __future__ import division
from tornado.web import authenticated, asynchronous
from tornado import gen
from tornado.concurrent import run_on_executor
from c... | [
"36821277@qq.com"
] | 36821277@qq.com |
f0ebca9b480e674ff5a1084e24e7215af60ac421 | 8f190e9ddf8f3dd6d9949d6a0ca7edf6c947494c | /6/6.py | e0aa8620275386574be2565db97122afb79ddcf0 | [] | no_license | abuzarrizvi/100-Python-Programming-Questions | 6ffbd0f28fc6c97c6b06e663399b19c10223449d | 2ebbbd3f865c87721d727708dd6854bcc9bdbb10 | refs/heads/master | 2020-07-11T21:37:20.303771 | 2019-08-28T07:21:45 | 2019-08-28T07:21:45 | 204,649,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import math
c=50
h=30
value = []
inpu = "100,150,180"
#items=[x for x in input().split(',')]
items=[x for x in inpu.split(',')]
for d in items:
value.append(str(int(round(math.sqrt(2*c*float(d)/h)))))
print (','.join(value)) | [
"noreply@github.com"
] | abuzarrizvi.noreply@github.com |
e5e7d8b19ca656c7aa16e5d7faa1a2ccc8289b42 | 13f495f2c947dd7f096de81fde86ea4de0138caa | /aetherguild/socket_service/mq.py | 7195d691391fd30e1e862f40a5b6b5419af1ba2e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | katajakasa/aetherguild2 | b5e568aa9c0e4d9b572acbca3ebc084af86ab43d | 086b3f24ba1e85e5a5b57104dca25513afef1ead | refs/heads/master | 2020-04-10T21:06:08.194876 | 2016-12-30T13:36:02 | 2016-12-30T13:36:02 | 60,123,426 | 1 | 0 | null | 2016-09-04T06:28:04 | 2016-05-31T21:06:16 | Python | UTF-8 | Python | false | false | 5,339 | py | # -*- coding: utf-8 -*-
import logging
import pika
import ujson
from aetherguild import config
log = logging.getLogger(__name__)
class MQConnection(object):
def __init__(self, io_loop, msg_handler=None):
self.connection = None
self.channel = None
self.consumer = None
self.connect... | [
"katajakasa@gmail.com"
] | katajakasa@gmail.com |
a63c98d56436ea7e9a005fa7637d3a457cdc06e4 | fb083444b59b19d8953147b10ed4ca3a8cf49d50 | /Attributes_Methods_Exercise/Document_Management/project/Gym/project/equipment.py | c413f95268c65641cdd78e3dbe2c16fdf9ac754a | [] | no_license | valeri1383/Python-OOP | 64f02ded2676d44be5888d067b15c7665893cbc4 | 88278905cdf8d333f34ea593c3c1246cc2c044e3 | refs/heads/main | 2023-04-23T00:42:27.446411 | 2021-04-30T15:26:59 | 2021-04-30T15:26:59 | 337,067,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | class Equipment:
auto_incremented_id = 1
def __init__(self, name: str):
self.name = name
self.id = Equipment.auto_incremented_id
Equipment.auto_incremented_id += 1
@staticmethod
def get_next_id():
return Equipment.auto_incremented_id
def __repr__(self):... | [
"noreply@github.com"
] | valeri1383.noreply@github.com |
53a9160386ad9b3e0ca2566166b5cb636b802544 | a074f60de4d3334aad671de363a1a95df52a7f42 | /model/tag_decoder.py | 15e600d11980f38e8b820a654c9c87d6ed84b558 | [
"MIT"
] | permissive | Hyperparticle/LemmaTag | 488317e6ed06bea69220f99d4cb7986b3e51242b | c25f27e5acfc3be2d7010d022bc1b7c2dc245dce | refs/heads/master | 2020-03-23T02:52:48.645915 | 2019-04-05T04:17:55 | 2019-04-05T04:17:55 | 140,996,701 | 33 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | import tensorflow as tf
def tag_decoder(gold_tags, sentence_rnn_outputs, sentence_weights,
sentence_sum_weights, num_tags, tag_type, label_smoothing):
"""Applies a tagger decoder network over the sentence-level RNN. Returns tag predictions, loss and accuracy."""
predictions, loss_tag = [], 0
... | [
"hyperparticle@gmail.com"
] | hyperparticle@gmail.com |
fdf7424d2e8a86f1c83fab9c680ec329b32d5e6f | 05b049f6a2ff7bd84b0d897996f88fc1adb1f43e | /db.py | 42a472d1425cbee2fc9d54c8f440eac87ac97847 | [] | no_license | peitaosu/WeChat_Log | 737bb0b740594b8596641f98a8a751e7e33d15b6 | 70a7279fc08f274dbdb45279bb979e710a08ffe0 | refs/heads/master | 2021-03-29T21:19:38.696137 | 2020-03-17T14:05:18 | 2020-03-17T14:05:18 | 247,985,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # -*- coding: utf-8 -*-
import os, sys, sqlite3
from datetime import datetime
def get_messages_from_table(db_file, table_name):
conn = sqlite3.connect(db_file)
conn.text_factory = str
c = conn.cursor()
c.execute("SELECT * FROM " + table_name + " ORDER BY CreateTime")
date_list = []
messages = ... | [
"peitaosu@163.com"
] | peitaosu@163.com |
10d4fad548b4eb5a7f91adbe49f7e6af31b2000d | 87ef282ee560ee2de6194f578231866b930ee313 | /keras_/kerascv/model_provider.py | de905a98b3ed5164167e11036044d226c57a4da9 | [
"MIT"
] | permissive | cydiachen/imgclsmob | 8820c2a958cf99385799ad1d319ea80dbcb33df2 | 42e04c4a2d27de25029be243df3e10e0b0d77a67 | refs/heads/master | 2020-06-07T16:01:52.596252 | 2019-06-21T05:30:05 | 2019-06-21T05:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,902 | py | from .models.alexnet import *
from .models.vgg import *
from .models.resnet import *
from .models.preresnet import *
from .models.resnext import *
from .models.seresnet import *
from .models.sepreresnet import *
from .models.seresnext import *
from .models.senet import *
from .models.densenet import *
from .models.dark... | [
"osemery@gmail.com"
] | osemery@gmail.com |
73cee7a2423b64bb863743ed7bb24fc35c00ba23 | ebd90e0d54fee3a5013eb3881a307da2895284d8 | /xnr/sina/userinfo.py | 504cdf4547d924ab5835920c02d6d22ad38ca017 | [] | no_license | NoahChanInvictus/xnr1 | a9c54c5b6598fb2e3ba166d8e22f116da101fdf1 | dc344ba8a455a83f43a81b7b2b23ad7f57440a0c | refs/heads/master | 2020-12-02T22:08:41.688653 | 2017-08-28T07:15:19 | 2017-08-28T07:15:19 | 96,089,422 | 0 | 1 | null | 2017-07-03T08:41:12 | 2017-07-03T08:41:12 | null | UTF-8 | Python | false | false | 4,250 | py | # -*-coding: utf-8-*-
import base64
import json
import os.path
import time
import urllib
import urllib2
import re
from tools.Launcher import SinaLauncher
class SinaOperateAPI:
def getUserShow(self, uid=None, screen_name=None):
"""
ๅญๆฎต่ฏดๆ่งuserinfo.txt
:return:
"""
... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
f37e3886798f0463cffb8bea25badc98682498f3 | 404977dece3a6c9f456dfc042164740f359679ff | /CaiNiao-DemandForecast-StoragePlaning-master/CaiNiao-DemandForecast-StoragePlaning-master/test/gbrt/gbrt_2/gbrt.py | 6c68e5b813939a2b824ccab9ec84cc0d1ad9d7e1 | [] | no_license | jiguang123/BigData-Competition-SolutionandCode | 8116e9f1de3acb62716fd84123865cf8ca3c3657 | 6c0363517f2f28c79fe8ffe0153216eea1666a34 | refs/heads/master | 2021-08-31T12:52:48.955485 | 2017-12-21T10:48:27 | 2017-12-21T10:48:27 | 114,995,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | #coding=utf-8
import pandas as pd
import xgboost as xgb
import numpy as np
from sklearn.cross_validation import train_test_split
from sklearn.ensemble import GradientBoostingRegressor
import os,cPickle,random
a_b = pd.read_csv('../../../data/config1.csv')
data = pd.read_csv('../../../data/train_test.csv')
hashmap =... | [
"1528840916@qq.com"
] | 1528840916@qq.com |
eda7376a4ab6f01b05fb9f04896f4feb3eda2f02 | cb0e5f210f7727f5149058755f1e5e25f0da9ed5 | /1-Machine-Learning/1-Generative-Models/1-GANs/TO DO/4-Archived/Code/Pytorch/main.py | 3fb46ab31f80cbca4093726315c15efe75d7500d | [
"MIT"
] | permissive | yz1019117968/Artificial-Intelligence | ec42897e700c08c20f683c5585ecfab1f69dd73a | f983999c46f47f74cff548d0fc25b591ec7db441 | refs/heads/master | 2023-03-10T12:28:43.713743 | 2021-02-26T06:23:17 | 2021-02-26T06:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,576 | py | import torch
from torch import nn
import torchvision.datasets as dset
import torchvision.transforms as transforms
noise_dim = 100
image_channel = 3
filters_num = 32
batch_size = 256
image_size = 64
dataroot = "D:/Data/Face/celeba"
dataset = dset.ImageFolder(root=dataroot,
transform=transfor... | [
"yang3781590@163.com"
] | yang3781590@163.com |
272c012ca77f13520c32d45ae0e9c1ea5643d119 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/e6d9a45cd02f290feb8063baa60e8a5fbde079e0-<get_service_mgr_facts>-bug.py | 82d2e0d2f422e93673e741e595a68d72705c1d24 | [] | 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 | 1,634 | py | def get_service_mgr_facts(self):
proc_1 = get_file_content('/proc/1/comm')
if (proc_1 is None):
(rc, proc_1, err) = self.module.run_command('ps -p 1 -o comm|tail -n 1', use_unsafe_shell=True)
else:
proc_1 = os.path.basename(proc_1)
if (proc_1 is not None):
proc_1 = to_native(proc... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
259faab9a45f248104788855340f8bec4d40c414 | f2f7b8e819ebbcc0d4a207a15a877878deb3a28b | /storage/memory.py | 852c3aa10bc001f40b50ffea03153c6257b61b2b | [] | no_license | Activity00/narspy | a7ea99918ce1941603ecfeacc692cabe458bfa9f | 2e5a82c806772527d6636d51aa3f6d4ee00d2714 | refs/heads/master | 2020-09-11T13:22:11.541413 | 2020-07-10T16:04:44 | 2020-07-10T16:04:44 | 222,078,227 | 0 | 0 | null | 2020-07-10T16:04:45 | 2019-11-16T09:48:27 | null | UTF-8 | Python | false | false | 237 | py | from control import general_inference
from storage.bag import Bag
class Memory:
def __init__(self, concepts: Bag):
self.concepts = concepts
def cycle(self):
general_inference.select_concept_for_inference(self)
| [
"1032662429@qq.com"
] | 1032662429@qq.com |
2a393c137371ab7647eb84d14917fc9e7da280af | d5f5d77bc6800368bd43e2737606b8b935a5e6f4 | /python/graphs.py | 704504dee29c8a032c8225596910f5bcf8a4b0d4 | [] | no_license | nandukalidindi/algorithms | eaee422224c96d23c8134a2daf16315230ba9bda | 651b76cfa9c84668df84aaac931b3f47d18cd603 | refs/heads/master | 2021-05-03T17:14:41.490894 | 2016-12-24T19:40:29 | 2016-12-24T19:40:29 | 69,610,541 | 0 | 0 | null | 2016-09-29T21:46:07 | 2016-09-29T21:46:05 | HTML | UTF-8 | Python | false | false | 5,155 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file contains Python implementations of graphs
from Intro to Algorithms (Cormen et al.).
The aim here is not efficient Python implementations
but to duplicate the pseudo-code in the book as closely as possible.
Also, since the goal is to help students to see how ... | [
"gcallah@mac.com"
] | gcallah@mac.com |
91d5f1d1a8ba801b38c599510de0ac16c07eeff4 | 2c5b71ed0e28e683008026547e30defe8d1d0039 | /ridership_by_weather_mapper.py | d5248852df36ee71ff6c1f5ea0aa9853c169e6a5 | [] | no_license | KeithYJohnson/intro_to_data_science | 977f7dd5f5f54b6bf506f2b5e0a05982831e1a1e | b4475708c69e1c05a8f7a6eb1d96500cf917857d | refs/heads/master | 2021-01-21T09:03:12.139717 | 2016-10-24T23:56:43 | 2016-10-24T23:56:43 | 68,607,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | from __future__ import division
import sys
import string
import logging
# from util import mapper_logfile
# logging.basicConfig(filename=mapper_logfile, format='%(message)s',
# level=logging.INFO, filemode='w')
HEADER_STRING = ",UNIT,DATEn,TIMEn,Hour,DESCn,ENTRIESn_hourly,EXITSn_hourly,maxpressur... | [
"keithyjohnson@gmail.com"
] | keithyjohnson@gmail.com |
d8f792d7abeb25c085729875cf728488a7f491a6 | cb61ba31b27b232ebc8c802d7ca40c72bcdfe152 | /Company-Based/comcast/prob_1.py | b2f9de3d862f3e53fdadae582fb2030f619c41f1 | [
"Apache-2.0"
] | permissive | saisankargochhayat/algo_quest | c7c48187c76b5cd7c2ec3f0557432606e9096241 | a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc | refs/heads/master | 2021-07-04T15:21:33.606174 | 2021-02-07T23:42:43 | 2021-02-07T23:42:43 | 67,831,927 | 5 | 1 | Apache-2.0 | 2019-10-28T03:51:03 | 2016-09-09T20:51:29 | Python | UTF-8 | Python | false | false | 196 | py | def minimumMovement(obstacleLanes):
# Write your code here
pass
minimumMovement([2, 3, 2, 1, 3, 1]) # 2
minimumMovement([2, 1, 3, 3, 3, 1]) # 2
minimumMovement([3, 2, 2, 1, 2, 1]) # 1 | [
"saisankargochhayat@gmail.com"
] | saisankargochhayat@gmail.com |
85f28bdee0e69e803ce6e9bb1da07371033f9b92 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02818/s946848234.py | 9d8a93dbc00a827e1d3529e8e72e5adf8b2dfb8f | [] | 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 | 357 | py | # -*- coding: utf-8 -*-
"""
B - Greedy Takahashi
https://atcoder.jp/contests/abc149/tasks/abc149_b
"""
import sys
def solve(A, B, K):
if A >= K:
return A-K, B
return 0, max(B - K + A, 0)
def main(args):
A, B, K = map(int, input().split())
ans = solve(A, B, K)
print(*ans)
if __name__ =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
34ec3551c05a82e402dbcf6e6d8cc7d8684d7e5e | 5e8c4821af727c6a3b207d37c5c0fcce0f042d3e | /d_4_counter02.py | 1e4f370ba283f0697149006b61118d6a2d84f906 | [] | no_license | masa48326/homework_d | 0ce40a4dd6683311c2cd9b5ed0ca46feb2a9434f | fbcc9d356f28c559dc41e51e2580f3d6fd5ff77f | refs/heads/master | 2020-09-05T17:05:28.772663 | 2019-11-07T06:12:24 | 2019-11-07T06:12:24 | 220,164,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | '''
่ชฒ้กD-4: ใซใฆใณใฟใผใใฎ2
ๆฌกใฎใณใผใใๆญฃใใๅไฝใใใใใช MyCounterV2 ใฏใฉในใๅฎ่ฃ
ใใฆใใ ใใ
counter1 = MyCounterV2(value=0, step=1)
print(counter1.value) # 0
counter1.count_up()
print(counter1.value) # 1
counter1.count_up()
print(counter1.value) # 2
counter2 = MyCounterV2(value=0, step=3)
print(counter2.value) # 0
counter2.count_up()
print... | [
"masayuki.shibata.0831@gmail.com"
] | masayuki.shibata.0831@gmail.com |
487a378f29418abaa110403a599b353a466ce2bc | ac235a23f22be0d6f1818bb53902177f9969813a | /ddtrace/contrib/kafka/__init__.py | 7c01572b5012a1f939114db7859ca30732cd1a63 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DataDog/dd-trace-py | f09d6d48c4c69aea68f999fc8a458ade5c6150cf | 1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17 | refs/heads/1.x | 2023-09-01T20:25:26.746324 | 2023-09-01T18:54:37 | 2023-09-01T18:54:37 | 61,572,326 | 461 | 426 | NOASSERTION | 2023-09-14T20:38:57 | 2016-06-20T18:52:23 | Python | UTF-8 | Python | false | false | 1,376 | py | """
This integration instruments the ``confluent-kafka<https://github.com/confluentinc/confluent-kafka-python>``
library to trace event streaming.
Enabling
~~~~~~~~
The kafka integration is enabled automatically when using
:ref:`ddtrace-run <ddtracerun>` or :func:`patch_all() <ddtrace.patch_all>`.
Or use :func:`patc... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
69e7533856160cc7250866e6eee0a3095b16e062 | e9c7f991c319efe0b1831e8e8360e13c3e177555 | /Python_do_zero_Guanabara/04_CondiรงรตesEmPython/desafios/45_desafio.py | 575dec339b898644f36b5d1e2aed30cabc911642 | [
"MIT"
] | permissive | HenriqueSOliver/Projetos_Python | a3c4cabc61442221da968df55a463d9ad5865fcc | f18c5a343ad1b746a12bd372298b2debe9bc65ec | refs/heads/main | 2023-06-05T03:11:42.879988 | 2021-06-17T22:26:03 | 2021-06-17T22:26:03 | 327,629,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # Crie um programa que faรงa o computador jogar Jokenpรด com vocรช.
from random import randint
pc = randint(1, 3)
print(f'~'*30)
print(f'{"JO KEN PO":^30}')
print(f'~'*30)
r = int(input('''Escolha uma opรงรฃo:
[ 1 ] PAPEL
[ 2 ] PEDRA
[ 3 ] TESOURA
Qual รฉ a sua jogada? '''))
print(f'~'*30)
if r == 1:
print('Vocรช jogou... | [
"HenriqueSOliver85@gmail.com"
] | HenriqueSOliver85@gmail.com |
a12d34c79168f25bff13dfb09e77859fbaa2d70e | 9d6ffb22c4cc47e932341307aa72cce801547b16 | /openCV/5.ๅพๅ็้้ๅ็ฆป/้้ๅ็ฆป.py | ffdcc75ace07020c6149af618adeaef78386929e | [] | no_license | xiaohaiz1/PythonStudy | 419cc7eb5babbebe4c842108e19bea976f7ce696 | 6819c89abe6d52153821bb87e09a9cb73c685111 | refs/heads/master | 2022-01-08T14:46:54.055289 | 2019-07-03T06:22:19 | 2019-07-03T06:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import cv2 as cv
src = cv.imread("../girl.jpg")
'''้้ๅ็ฆป'''
b, g, r = cv.split(src)
cv.imshow("b", b)
cv.imshow("g", g)
cv.imshow("r", r)
'''ๅฐๅพ็็3้้็ฝฎไธบ0'''
src[:, :, 2] = 0
cv.imshow("image", src)
src = cv.merge([b, g, r])
'''ๅฐๅพ็้้ๅๅนถ'''
cv.imshow("merge", src)
cv.waitKey(0)
cv.destroyAllWindows()
| [
"1095505742@qq.com"
] | 1095505742@qq.com |
5f352566ce21e40fc824e2d4a8d47e464a68e9cd | 3927343ffe102a55e098662f89297743dcff38f5 | /tests/structures/test_instances.py | 5fd6aa9960fda0993bdd5f12f077fd824a9ebee1 | [
"Apache-2.0"
] | permissive | biggamerss/detectron2 | c14a9a2916f4f9f99c5ef27a96707bac83a1bc4b | e9c7e10f1f0b90db20aea8ef6748967cb40cd874 | refs/heads/master | 2021-03-07T02:22:40.762389 | 2020-11-15T02:42:05 | 2020-11-15T02:42:05 | 246,239,939 | 1 | 0 | Apache-2.0 | 2020-11-15T02:42:07 | 2020-03-10T07:55:43 | Python | UTF-8 | Python | false | false | 7,558 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import unittest
import torch
from torch import Tensor
from detectron2.export.torchscript import patch_instances
from detectron2.structures import Boxes, Instances
from detectron2.utils.env import TORCH_VERSION
class TestInstances(unittest.TestCase):
def test_int... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4587dddde7b72e0f11cc0835a3daa3a1d971ec69 | d5344057b54a3708007cae68c72c37584ae98f57 | /4.py | bc1e97001e824e5a827948384645eb33fafc1100 | [] | no_license | JaeZheng/LeetCode | 55739ace0d25f4b3b5592f00b7eee7cab5b1564f | 9465685dcd76f7dc845665d79782565abb755739 | refs/heads/master | 2020-03-24T04:00:16.294358 | 2019-09-21T16:53:20 | 2019-09-21T16:53:20 | 142,440,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | class Solution:
def findMedianSortedArrays(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
len1 = len(nums1)
len2 = len(nums2)
len3 = len1+len2
result,i,j=0,0,0
arr = []
while i<len1 and ... | [
"846265697@qq.com"
] | 846265697@qq.com |
9f61c332db2459f71ed75bf5d9bb7b906e5c331a | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/client/models/v1_rolling_update_stateful_set_strategy.py | 4265b455e5cb28a3efea455430ab097737f8c5de | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 3,397 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import si... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
6fa9063e76f4e2f48c015e4bf491bf7065efb5af | 52583ddfa4bd0f92bbf23cca83ee7fba4be875a2 | /MonoHGenTree2DScans/python/variables.py | 27bc8f5cadec2cc478c4f1d85da36a1a24844422 | [] | no_license | fmanteca/MonoHGenTree | dabcb9c6bb5dffb99bdd854c1367e026f15d8f3d | b8d985c0a63c99c4f2ab863c26a01a977a43b7f9 | refs/heads/master | 2023-03-28T02:40:05.883125 | 2021-03-30T10:38:54 | 2021-03-30T10:38:54 | 352,962,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py |
variables['HiggsPt'] = {'name' : 'HiggsPt',
'range' : [0, 1500],
'nbins' : 40,
'label' : 'HiggsPt',
}
| [
"fmanteca@ifca.unican.es"
] | fmanteca@ifca.unican.es |
4391db4bf4c84eb2c7f39942a8940ec1d66bcbfa | 5a25f4f5f9c7cba03f9b5848eafc01a760c88768 | /reduction/pipeline_scripts/member.uid___A001_X1296_X201.hifa_calimage.casa_pipescript.py | 4e8528951b8cd89b4ee72eff55ba48858b6ee369 | [] | no_license | ALMA-IMF/reduction | b3579a548fe20193b807a7415a040f351c879beb | de606cc6bc542f088223ce84082ff333739c9007 | refs/heads/master | 2023-06-22T13:21:13.841999 | 2023-06-12T09:17:50 | 2023-06-12T09:17:50 | 115,018,799 | 9 | 29 | null | 2023-06-12T09:17:51 | 2017-12-21T15:13:55 | Python | UTF-8 | Python | false | false | 2,598 | py | __rethrow_casa_exceptions = True
context = h_init()
context.set_state('ProjectSummary', 'proposal_code', '2017.1.01355.L')
context.set_state('ProjectSummary', 'piname', 'unknown')
context.set_state('ProjectSummary', 'proposal_title', 'unknown')
context.set_state('ProjectStructure', 'ous_part_id', 'X624238402')
context.... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
2b51df48a14db79b8b7db040419100bcb70c6a4a | 70bdda35bad668051d0f148581f67c907dc1c155 | /ditto/flickr/migrations/0017_auto_20160524_1350.py | 0afb93bcb24018c733acc5bec57ef18e423546bb | [
"MIT"
] | permissive | jinjin123/django-ditto | d9e83fae05eab2576423a273c6c51818055a257c | edfad44087601149383d380b9e9b6dfa9d3ff4ac | refs/heads/master | 2020-03-07T16:48:52.717625 | 2018-03-27T17:24:01 | 2018-03-27T17:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-24 13:50
from __future__ import unicode_literals
import ditto.flickr.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flickr', '0016_photo_video_original_file'),
]
operations ... | [
"phil@gyford.com"
] | phil@gyford.com |
f515bcedfe9ce30ae51e070e125a2392b18fe4c6 | 6068114ae792e34d3e95e0e94acc87a98b4c1fda | /legionella/graphqlapp/report/service.py | bc02f4aed8026728cd54b7dd983c38a0b9cbb210 | [] | no_license | RedTurtle/legionella-backend | bffe01d16bbf3d132d88472ef44c669e040944e1 | 7929b244a40a2faf834f55f1803d131cc6324a49 | refs/heads/master | 2022-12-13T22:14:50.834171 | 2018-10-30T12:05:09 | 2018-10-30T12:05:09 | 143,589,733 | 0 | 1 | null | 2022-12-08T00:59:56 | 2018-08-05T06:39:53 | Python | UTF-8 | Python | false | false | 6,903 | py | # -*- coding: utf-8 -*-
from ..graphQL_genericSchema.schema import ReportWorstState
from .models import Report as report_model
class ReportService(object):
def getReportListByDict(self, param=None, order=None):
"""
funzione che ritorna una lista di report
input:
param: dict co... | [
"andrea.cecchi85@gmail.com"
] | andrea.cecchi85@gmail.com |
5ac61ff911e93d58d4ebe0641f9e7eb5dfe731fc | 80ea2e2803d1883c73fb6b33ad356d441cc8ccb4 | /venv/bin/easy_install | 78fcf7bf545de937bde9290853a904b6c891e05c | [] | no_license | yuttasakcom/aiohttp-1 | 5be09d54472b03491796baca56b30a8c726d1c0f | 5153b6113abae6fb6e620f7de3677dc827e80fa1 | refs/heads/master | 2020-04-18T03:27:44.609276 | 2018-11-30T08:22:47 | 2018-11-30T08:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | #!/Users/vadim/Documents/projs/aio3/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"you@example.com"
] | you@example.com | |
255f7fae77504181b1187d4f4b7b1d2b7a72df6a | 9937c4e4802f09e1adb92d865c060b05a0048422 | /player/migrations/0018_auto_20150323_1120.py | f5300fe52deb27c7b9fff62d1c3c809aaaab4db5 | [
"MIT"
] | permissive | AdrienRedon/Amoki-Music | 19787f43f43563842e4c123fae2e9fbb5ca29d3e | 32495c2b1af808fd9086887441da0fcbe1f1f033 | refs/heads/master | 2021-01-12T18:23:59.384923 | 2016-10-19T14:49:22 | 2016-10-19T16:41:38 | 71,367,736 | 0 | 0 | null | 2016-10-19T14:48:52 | 2016-10-19T14:48:51 | null | UTF-8 | Python | false | false | 514 | py | from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('player', '0017_room_can_adjust_volume'),
]
operations = [
migrations.AlterField(
model_name='room',
... | [
"hugo.duroux@gmail.com"
] | hugo.duroux@gmail.com |
cac0e028e08f68506343f21a8fefdac3695125fe | 06f3c09e0612bb35a506baf0df60a31d5e33b1e8 | /min_mem_diff.py | 38a93128d5464bc1ba27e4b9b5448dc21bacad09 | [] | no_license | vitcmaestro/player_3 | e113fa1565b49b2143af76e0b5228f91d4998480 | 5c5ab08c990403e253dd61dcb7d4ed3324643eb6 | refs/heads/master | 2020-04-18T06:57:45.322871 | 2019-01-26T06:09:59 | 2019-01-26T06:09:59 | 167,343,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | n =int(input())
a = list(map(int,input().split()))
a.sort()
miner = 1000
for i in range(n-1):
if(a[i+1]-a[i] <miner and a[i+1]-a[i]>0):
miner = a[i+1]-a[i]
print(miner)
| [
"noreply@github.com"
] | vitcmaestro.noreply@github.com |
198a22ecc4e7bbeda1132d2f43597d1c6f748465 | 3df72b63c8ba29706aebf98aa1c274677d0bae5b | /0x03-python-data_structures/5-no_c.py | e5a53c28cf2264e5deefe6ea46a6fdf51bc1516c | [] | no_license | Kenneth-ca/holbertonschool-higher_level_programming | b58371c9191f3f37c9e60f1ecf513af456b0de4e | cf52924f1600ff749b40c51cf2c66196a2a8af29 | refs/heads/master | 2021-07-01T01:53:01.173953 | 2020-11-04T17:25:15 | 2020-11-04T17:25:15 | 184,144,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | #!/usr/bin/python3
def no_c(my_string):
if my_string is not None:
new = ""
for m in range(len(my_string)):
if my_string[m] == 'C':
pass
elif my_string[m] == 'c':
pass
else:
new = new + my_string[m]
return new... | [
"kenneth.ca95@gmail.com"
] | kenneth.ca95@gmail.com |
fa9fb292d7fbb64e9c3f5394643c5489ec0214d3 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/cron.py | 7635cc72aabe45c04aa2e4c8eca49ce2a579ec75 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | import os
import tempfile
import uuid
from hardhat.util import open_file, run_or_error
class Cron:
def __init__(self, environment):
self.env = environment
self.tmp_dir = tempfile.gettempdir()
self.tmp_file = str(uuid.uuid4())[:8]
self.tmp = os.path.join(self.tmp_dir, self.tmp_file)... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
1a42cdfb16fbbc83c2b15f04a905f6ed361ece0b | 431aae0c76301c68ea720fb3a74e43a48d5f1977 | /contacts/models.py | 122977a00363dfa5cebcaaa34996e20ba17b7d61 | [] | no_license | nicbou/cockpit | ae823e251be914c11b85f94a5e4e7f5be0e343df | a0ca856eb43fcb95cd2b04722d95ab9f37c547cc | refs/heads/master | 2021-01-01T06:44:32.033069 | 2012-07-23T14:03:57 | 2012-07-23T14:03:57 | 4,847,002 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,902 | py | from django.db import models
from projects.models import *
from django.forms.models import inlineformset_factory
from PIL import Image
import os
class Contact(models.Model):
#Generic information
company = models.ForeignKey(Company) #The company who created owns this instance, not the company this Contact... | [
"contact@nicolasbouliane.com"
] | contact@nicolasbouliane.com |
d1ee04c87a13ea0a472d0e9948168bfc1e410ced | b509ef07d752e987f4cb84d1abd4c3a98488a6c7 | /resources/lib/streamlink/plugins/mrtmk.py | 1c323b3ab9ea1bba0d26414302fd4c5c78be2980 | [
"BSD-2-Clause"
] | permissive | Twilight0/script.module.streamlink.base | d91245d1a43d6b3191b62a6eb4b1cf70598ed23e | c1e4628715a81806586b10323b8cb01424bbb6fc | refs/heads/master | 2021-01-21T04:32:41.658823 | 2020-09-07T20:56:29 | 2020-09-07T20:56:29 | 101,915,967 | 6 | 4 | BSD-2-Clause | 2018-01-14T15:20:47 | 2017-08-30T18:31:47 | Python | UTF-8 | Python | false | false | 1,454 | py | import logging
import re
from streamlink.plugin import Plugin
from streamlink.plugin.api import validate
from streamlink.stream import HLSStream
log = logging.getLogger(__name__)
class MRTmk(Plugin):
url_re = re.compile(r"""https?://play.mrt.com.mk/(live|play)/""")
file_re = re.compile(r"""(?P<url>https?://... | [
"twilight@freemail.gr"
] | twilight@freemail.gr |
32ddc5bbb2432a58317b580175390ba71643f44f | 7af3888ea81123df246a73aa12c3b88c3b1e8440 | /bin/dialupcontrol | e58a7304abd94a5e4d44527f413c319de7c98018 | [] | no_license | gregorynicholas/darwinist | b29a08b2fe966e662cd94cc25d659406b3dce263 | 2a5e3d027a569b61ad54096463e2d97c95f9c029 | refs/heads/master | 2020-05-29T09:53:16.669213 | 2015-03-21T16:37:36 | 2015-03-21T16:37:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,694 | #!/usr/bin/env python
USAGE = """Connect, disconnect or show status of a Dialup connection in OS/X.
Can be used for OS/X integrated Dialup connections only. Dialup will still
ask password in a graphical window, if not permanently configured, so you
can't run this headless remotely.
If you can figure out how to enter... | [
"hile@iki.fi"
] | hile@iki.fi | |
8eeecfa564d0d6d0e79f0c82295574f83e6dc592 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/W/wolfewylie/starbucks_location_scraper.py | 574ea5859a98df56968480f5ce2af31881b07673 | [] | 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 | 3,852 | py | import scraperwiki
import re
import time
import urlparse
from scraperwiki.sqlite import save
base_url = "http://www.starbucks.ca/store/"
columns = [
'Address', 'City', 'Country', 'Lat', 'long','Phone','Store ID'
]
idcount = 1
def locationscraper(locationpagesource, idcount):
address = "not available"
st... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
0b729a7e9406443a7cc9e249b4d3c9440498ceab | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_instances_response.py | 1da47fe6ef65b555bb036d0f554d3bb821502a11 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,780 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListInstancesResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dic... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7ff7777aa030d086db3eef429116ce466b02ecab | c03d604e283f76435ee1d1c68c5830d0822357f0 | /tests/test1/run_test.py | 7860a19c9c542bbb32a4f08a1c72f6125871ad56 | [
"LGPL-2.0-or-later",
"LGPL-3.0-or-later",
"LGPL-3.0-only",
"LicenseRef-scancode-free-unknown",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | crownstone/hardware-tester-backend | 287862ccbaf13b7bd22e73fa1be4dd4c1b067438 | 356080af0929d9c3fb819a48366ee4e26d999bd4 | refs/heads/master | 2022-11-28T04:22:58.034263 | 2022-11-23T12:14:59 | 2022-11-23T12:14:59 | 202,328,601 | 0 | 0 | MIT | 2022-11-04T19:36:55 | 2019-08-14T10:29:35 | Python | UTF-8 | Python | false | false | 3,286 | py | import sys, os, time, asyncio
# this has to be on top of the run_test.py file in order for path resolving to work properly.
from BluenetLib import Bluenet
from BluenetLib.BLE import BluenetBle
from lib.TestManagerCore import TestManagerCore
from tests.__util.util import findUsbBleDongleHciIndex, findUartAddress
sys.p... | [
"alexdemulder@gmail.com"
] | alexdemulder@gmail.com |
16da390083750d46df3dc30acaaef8703787a42a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04030/s272156425.py | d56e54aaf1ee61b2b98eb3735ed4d8e757d72feb | [] | 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 | 231 | py | import sys
def LS2(): return list(sys.stdin.readline().rstrip()) #็ฉบ็ฝใชใ
s = LS2()
ans = []
for a in s:
if a != 'B':
ans.append(a)
else:
if len(ans) != 0:
del ans[-1]
print(''.join(ans)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
927139903a4db92636b6edc45a13c79f6cd1fae0 | 0959d88eb8e1ab579dec7eb4bfc1fbaac945ea0b | /Training/HackRank/Level-0/convert-1.py | 6a79efe42e83100ed71fd1da67b99b4cac71e46f | [] | no_license | mike03052000/python | ba1b871acf853710fd840284f260d82ea8e597cf | 19045d56ae1caa305f51f1cad6c71d97b82ca47d | refs/heads/master | 2020-04-04T12:21:55.284225 | 2019-06-20T05:35:25 | 2019-06-20T05:35:25 | 155,923,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py |
a=26.333
print(int(a))
print(str(a))
try:
print(int(int(a),8))
except:
print("fail to convert int(int(a),8)")
a='26.588'
# Error found: int(a)
print(int(float(a)),float(a))
x=23
print(bin(x),oct(x),hex(x))
oct_x=oct(x)
print("oct",int(oct_x,8))
hex_x=hex(x)
print("hex ",hex_x,int(hex_x,16)) | [
"mike03052000@gmail.com"
] | mike03052000@gmail.com |
2e78f6a8cf01d1ffd46b37629370a954d6b628cd | 3d62a14eb69baea0737f8c093336cbf6380b30a7 | /dingtalk/api/rest/OapiAuthorizationRbacRoleQueryRequest.py | cc69eb9216e6525e02411a1a6fc0718141fbd18f | [] | no_license | KangSpace/message_plus_server | 50cbc55c296d5e835a0c6f99f45cf699f6806add | 300954993f44648db3a2124d587533656d970d6c | refs/heads/main | 2023-05-01T15:08:18.195400 | 2021-05-27T04:41:56 | 2021-05-27T04:41:56 | 361,338,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | '''
Created by auto_sdk on 2021.02.01
'''
from dingtalk.api.base import RestApi
class OapiAuthorizationRbacRoleQueryRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.agent_id = None
self.open_role_ids = None
def getHttpMethod(self):
return 'POST'
def getapiname(sel... | [
"kango2gler@gmail.com"
] | kango2gler@gmail.com |
35fba463110fd1984e95cab4f414d365b2de8b49 | 75ec986d34d5391d46d6469c513626f69f5d978d | /Hackerrank/Alphabet_Rangoli.py | 42403ec3477f790f881f94b320f01e5e88abb3d3 | [] | no_license | CatrunaMarius/python | d9f8dc221458e4b65c3f801daf3b59aa2b946358 | d063bffb4eafa56ac1e205c2d39fc893ab50e992 | refs/heads/master | 2020-04-24T05:23:22.756002 | 2020-01-06T11:56:12 | 2020-01-06T11:56:12 | 171,703,482 | 0 | 0 | null | 2019-02-20T16:12:39 | 2019-02-20T15:59:08 | null | UTF-8 | Python | false | false | 808 | py | #input 5
import string
def print_rangoli(size):
alpha = string.ascii_lowercase
#metoda 1
width = 4 * size - 3
for i in list(range(size))[::-1] + list(range(1, size)):
print('-'.join(alpha[size-1:i:-1] + alpha[i:size]).center(width, '-'))
L=[]... | [
"noreply@github.com"
] | CatrunaMarius.noreply@github.com |
f623c606ef282c86bab48af28565d7abd765d83f | 97b3c6bd35185bda93dece21ba5d662fb8da52dc | /train.py | 2061ce3c9d9c7948bebd192da805dc59e8df5a7f | [] | no_license | YanYan0716/UNet | b0d88b37d4ce8a96eb35d4668d86e290cb4ea0a7 | 1472ac07e941a310382853a7350534f33d176205 | refs/heads/main | 2023-03-14T02:05:47.641268 | 2021-03-02T13:54:18 | 2021-03-02T13:54:18 | 341,907,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | import torch
import torch.nn as nn
import torch.optim as optim
from albumentations.pytorch import ToTensorV2
import albumentations as A
from tqdm import tqdm
from model import UNet
from utils import load_checkpoint
from utils import save_checkpoint
from utils import get_loaders
from utils import check_accuracy
from ut... | [
"yanqian0716@gmail.com"
] | yanqian0716@gmail.com |
0804a3dec6014c4d06c06b7ca6dc2bbb7a1f400c | edad2e75198bcfdf75965e132e268b4ebbbd70e2 | /65_nm_scripts/python_create_jobscript_65.py | 48eea3682ab47e7fee67396b91cc91e2eec9508d | [] | no_license | nandithaec/python-utility | d50a6e802bf3a9afadbaf3f5207efdba875c7e70 | b8b7377b87630375ff804c7204d37a1c7ecee826 | refs/heads/master | 2021-01-10T07:00:18.820227 | 2015-04-16T06:01:44 | 2015-04-16T06:01:44 | 36,727,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,800 | py | #!/usr/bin/env python
#create a jobscript.txt file in the current directory. This entire dir will be copied to the Pune CDAC machine. The jobscript file will be used to submit the job to the queue
##Example usage: python python_create_jobscript.py -m c432_clk_opFF -p /home/external/iitb/nanditha/simulations/FF_optimi... | [
"nanditha.ec@gmail.com"
] | nanditha.ec@gmail.com |
a9fac5ce87ec29e89a103ff5b7a20b44e67779b0 | fa7985da2e6a2f3db2241e0b6b997f37c7401b60 | /active-prior/expt.py | a8921ac06ccbf254bc4397e7261d8f2218786f2a | [
"BSD-3-Clause"
] | permissive | tapilab/active-prior | 3c07be8c26b6ffa11c76babfc5989722eacb1db0 | fb74db0e5bee108e4af6cdcf5a1e613af6096e13 | refs/heads/master | 2020-05-23T14:42:51.934909 | 2013-11-07T03:28:01 | 2013-11-07T03:28:01 | 13,990,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | """ Perform an active learning experiment. """
import argparse
from collections import defaultdict
import logging
import math
import pickle
import random
import matplotlib.pyplot as plt
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.naive_bayes import MultinomialNB
import active... | [
"aronwc@gmail.com"
] | aronwc@gmail.com |
0ebd4c87f24b546ef818a237562b10b40a9068cf | 1000ef8a440424768e769416e7d2206dbf5e29a3 | /PYOMO/examples/doc/pyomobook/data-abstract-ch/ABCD1.py | 2024a4af0bc536ea0c1bace4e6efa4a58fb4b52f | [] | no_license | desarrollomarquez/Proyecto_Optimization | 1c482cefd85d76720e9467ab4d249afb45965d84 | 07ee22f3c742fb74e9ba99e4eed21f97f0d7fefa | refs/heads/master | 2020-03-21T10:15:42.301602 | 2018-11-01T02:23:35 | 2018-11-01T02:23:35 | 138,441,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from pyomo.environ import *
model = AbstractModel()
model.Z = Set(dimen=4)
instance = model.create_instance('ABCD1.dat')
print(sorted(list(instance.Z.data())))
| [
"desarrollo.marquez@gmail.com"
] | desarrollo.marquez@gmail.com |
51db00477cd0007fd110bd46ed6cfaf0b9dad050 | a98bc8906c3fbe4d388442d24cbeed06d06686f9 | /Codechef 2019/April cookoff 2019/cfmm.py | 09d7dc12f9a2fd37e3013e9083951fecd6cb416d | [] | no_license | Arrowheadahp/Contests-Challenges-and-Events | 1ac4f1b2067276fa669e86ecfdb685d95ba663fd | fc156e5ae49b3074a9dbd56acd4fdc2af25c6a3f | refs/heads/master | 2022-12-13T19:50:38.041410 | 2020-08-22T14:16:23 | 2020-08-22T14:16:23 | 197,886,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | for _ in range(input()):
n=input()
D={'c':0,'o':0,'d':0,'e':0,'h':0,'f':0}
for _ in range(n):
s=raw_input()
for a in s:
if a in D:
D[a]+=1
for j in 'ce':
D[j]/=2
print min([D[i] for i in 'codehf'])
| [
"prasunbhuin.pkb@gmail.com"
] | prasunbhuin.pkb@gmail.com |
c503d31790037c2ef21399502475a8097c6aa8c7 | 53ed8b8d650439ba9aac764f5de5d96b67cbd77a | /1582. Special Positions in a Binary Matrix.py | f237151bc11becbaf0df7f704b65448082a25acd | [] | no_license | IrwinLai/LeetCode | df49d152b4bf439c966afa53eecfe3022fb043ae | 779c3a98d9052a12d319c0219324e5d0f5517fc6 | refs/heads/master | 2021-07-03T08:02:55.425285 | 2021-03-21T11:19:46 | 2021-03-21T11:19:46 | 221,848,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | class Solution:
def numSpecial(self, mat: List[List[int]]) -> int:
m = len(mat)
n = len(mat[0])
l1 = []
l2 = []
for i in range(m):
if sum(mat[i]) == 1:
for j in range(n):
if mat[i][j] == 1:
l1.ap... | [
"noreply@github.com"
] | IrwinLai.noreply@github.com |
5abd20f248042a6a8d48617c3883e8619f0f07ad | 9c63f6d39a6085674ab42d1488476d0299f39ec9 | /Python/LC_Evaluate_Reverse_Polish_Notation.py | 379adbb734e771f9407203efb3bdf38a871ed86f | [] | no_license | vijayjag-repo/LeetCode | 2237e3117e7e902f5ac5c02bfb5fbe45af7242d4 | 0a5f47e272f6ba31e3f0ff4d78bf6e3f4063c789 | refs/heads/master | 2022-11-14T17:46:10.847858 | 2022-11-08T10:28:30 | 2022-11-08T10:28:30 | 163,639,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | class Solution(object):
def evalRPN(self, tokens):
"""
:type tokens: List[str]
:rtype: int
Approach:
If you see an element not in operators, you just append it because its a number.
But, if you see an operator, then, you need to evaluate the answer for the la... | [
"noreply@github.com"
] | vijayjag-repo.noreply@github.com |
efa4cc6bf7972b8f16c38e50b833fa925a7e8ac6 | 3034e86347c71bf7e7af9e5f7aa44ab5ad61e14b | /pbase/day04/day04practise05.py | f502eeaa51c2a81114dfab9059391c12b6039114 | [] | no_license | jason12360/AID1803 | bda039b82f43d6609aa8028b0d9598f2037c23d5 | f0c54a3a2f06881b3523fba7501ab085cceae75d | refs/heads/master | 2020-03-17T00:43:42.541761 | 2018-06-29T10:07:44 | 2018-06-29T10:07:44 | 133,127,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # ๅไธไธช็จๅบ
# ่พๅ
ฅไธไธชๅผๅงๆดๆฐ็จๅ้begin็ปๅฎ
# ่พๅ
ฅไธไธช็ปๆๆดๆฐ็จๅ้end็ปๅฎ
# ๆๅฐbeginๅฐend็ๆฏไธไธชๆดๆฐ
begin = int(input('่ฏท่พๅ
ฅๅผๅง็ๆฐ'))
end = int(input('่ฏท่พๅ
ฅ็ปๆ็ๆฐ'))
for i in range(begin,end):
print(i,end = ' ') | [
"370828117@qq.com"
] | 370828117@qq.com |
1fdd87ecc04f32e3001bbc85a19d529e2ed9504a | a829287d0d53d47f39290dabc012b5f0d473656a | /aio_pika/version.py | fef261fe205e8b7e874de2fed0e6c51d5fc736c1 | [
"Apache-2.0"
] | permissive | dan-stone/aio-pika | 2ddf47944be84038fa94a1f0a39b1f80428ac92a | a03f38f26f1cf42e09b43d7b36853d7ee71d112e | refs/heads/master | 2020-03-19T02:20:19.692938 | 2018-06-07T14:11:31 | 2018-06-07T14:11:31 | 135,619,482 | 0 | 0 | null | 2018-05-31T18:11:23 | 2018-05-31T18:11:23 | null | UTF-8 | Python | false | false | 342 | py | author_info = (
('Dmitry Orlov', 'me@mosquito.su'),
)
package_info = "Wrapper for the PIKA for asyncio and humans."
package_license = "Apache Software License"
team_email = 'me@mosquito.su'
version_info = (2, 8, 3)
__author__ = ", ".join("{} <{}>".format(*info) for info in author_info)
__version__ = ".".join(ma... | [
"me@mosquito.su"
] | me@mosquito.su |
83c5ecf2adbf5b21ccc96af890d3e3692689bfd9 | 0d415c6e384e461207096fae42bd75494423ebbe | /python/websockets_demo/websocket_server.py | ea2947d1625b117a91d32cdd5ff068c5c5c4e3f4 | [] | no_license | zengzhiying/programming_languages | 56bd6382b645bf7dd513291422d9d5e6fc0dccf0 | 3ea1be28d4264675f739b27e7d21921f86502c0e | refs/heads/main | 2023-08-19T02:59:28.483104 | 2023-08-09T01:13:56 | 2023-08-09T01:13:56 | 130,447,620 | 3 | 0 | null | 2023-03-07T02:01:32 | 2018-04-21T06:44:15 | CSS | UTF-8 | Python | false | false | 760 | py | #!/usr/bin/env python3
import asyncio
import websockets
# ็ดๆฅๆถไธๆกๆถๆฏๅค็ ๆฏๆฌก้่ฆ้ๆฐ่ฟๆฅ
async def hello(websocket, path):
message = await websocket.recv()
print("ๆถๅฐๆถๆฏ: {}".format(message))
greeting = "Hello {}!".format(message)
await websocket.send(greeting)
print("่ฟๅๅๅบ: {}".format(greeting))
# ไธ็ดๅพช็ฏๆฅๆถๆถๆฏๅค็
a... | [
"yingzhi_zeng@126.com"
] | yingzhi_zeng@126.com |
a67ed6f22080fbdd21926a86d05757883e29bd60 | 1ed4f29088cba89dbe979507c161d23276ac8e8b | /config.py | 2b10517f0003308d0ab8b51574ab1126c56c376e | [] | no_license | JinYanming/jym_cmot_v1 | c61676e43ccb92bb47895a1ea7b9aaf8b3569690 | 02a1762b4e84360009ad22334e4b61be088ab589 | refs/heads/master | 2022-02-21T19:11:57.694128 | 2019-09-18T18:08:58 | 2019-09-18T18:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,491 | py | import numpy as np
import os
class Config(object):
def __init__(self):
####
self.object_count = 0
self.total_tracklet_count = 0
self.ids = 0
####
self.imgSeq_lenth = 400
###
self.draw_while_track = True
self.xy_center = True
self.use_gt... | [
"1535640262@qq.com"
] | 1535640262@qq.com |
fc83fe795895cf890db737f1a89c4bb1a0b5118f | fe5a6394e09b88dfc13279f56a4dab4cf9f15e52 | /source_py2/python_toolbox/function_anchoring_type.py | 23e4f836ecfdd837c0325deabc87240b23ed634f | [
"Python-2.0",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | alilosoft/python_toolbox | acba8f93d675650eac7f9313177af28e0388f2e0 | 7ba9d35d82a99eb243117e850a2b4b2058cd24fc | refs/heads/master | 2022-10-14T10:21:32.693760 | 2019-04-23T09:01:30 | 2019-04-23T09:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | # Copyright 2009-2017 Ram Rachum.
# This program is distributed under the MIT license.
'''
Defines the `FunctionAnchoringType` class.
See its documentation for more details.
'''
import sys
import types
from python_toolbox import misc_tools
class FunctionAnchoringType(type):
'''
Metaclass for working aroun... | [
"ram@rachum.com"
] | ram@rachum.com |
0c6077e6db1339ad85cf99c93ac8f13330ac7ea6 | 1b45d80bd33022c353cbfed358939f628e4502fe | /lib/saq/test_crawlphish.py | 19447ecc99c44539e1924dbbddce1ddef47f6179 | [
"Apache-2.0"
] | permissive | IntegralDefense/ACE | 701a37f620a344a03f6378b40bdd1c0a96f17fa9 | b03290e0ea9a91abca78c2a544838e4a7a622ac8 | refs/heads/master | 2021-06-19T14:40:38.246608 | 2019-09-08T13:35:35 | 2019-09-08T13:35:35 | 143,438,472 | 29 | 17 | Apache-2.0 | 2019-09-04T13:56:57 | 2018-08-03T14:39:29 | Python | UTF-8 | Python | false | false | 5,188 | py | # vim: sw=4:ts=4:et:cc=120
import os, os.path
import saq
from saq.test import *
from saq.database import get_db_connection
from saq.crawlphish import *
import pysip
class CrawlphishTestCase(ACEBasicTestCase):
def setUp(self):
ACEBasicTestCase.setUp(self)
# XXX get rid of verify=False
if... | [
"unixfreak0037@gmail.com"
] | unixfreak0037@gmail.com |
8ca7c1efb2f430bb3e663757c144095ca5e45707 | b8275e3c6f20a6e6638536a4333d2d1767ef868d | /calculate_cross_correlation.py | 23986b148ddaac6d3e744b6b03e16dc382d939b0 | [] | no_license | czang/Modules | 81bd991f8b57b2b99b59fe4408f95587cbf1a2b0 | 04fdbfcd46df0c8615d01d1c9d7bdb267f8a14c4 | refs/heads/master | 2022-06-10T04:21:47.045380 | 2019-03-20T01:36:02 | 2019-03-20T01:36:02 | 176,625,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,362 | py | #!/usr/bin/env python
import re, os, sys, shutil
from math import *
from string import *
from optparse import OptionParser
import operator
import bisect
## get BED module
import BED
from GenomeData import *
import separate_by_chrom
Dir = os.getcwd();
grep = "/bin/grep";
cat = "/bin/cat";
plus = re.compile("\+");
... | [
"noreply@github.com"
] | czang.noreply@github.com |
9b1015ae3254c4826ea91947f154a4c97bdd9830 | dd1dd4c159334641f3a3205a41ba7a9e4751930c | /wavenet/test/write_append.py | 0a40db4722bb1b4d69fdfcdab7645af2b10887e6 | [
"MIT"
] | permissive | Chenzhoujia/hand_shake | f552d7aa0197968350047d45d838b981d1f2fd21 | 649bea1651ac24ba50a0da03134143a7bfe885b6 | refs/heads/master | 2020-04-24T14:00:13.034382 | 2019-04-09T08:04:34 | 2019-04-09T08:04:34 | 172,006,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # -*- coding: utf-8 -*-
import numpy as np
file = r'/home/chen/Documents/tensorflow-wavenet-master/analysis/static/test.txt'
a = np.array([1.1,2.1,3.1])
for i in range(10):
if i == 0:
np.savetxt(file,a*i)
else:
a_ = np.loadtxt(file)
a_ = np.vstack((a_, a*i))
np.savetxt(file, a_) | [
"None"
] | None |
b77e764624ca610266a42c493bc630155b45a8bf | 90a65f925fdc44c9e16fd676dfbaded61cf5b02e | /src_old/data/mode.py | 326347abd1b91b62a29bbf05ee8a9613df9c3c77 | [] | no_license | fran-jo/ScriptMAE | ed47b8bf37fd5381344622b2afe30f7de43f41ec | a381336fa6b313acfbc95c6b1079321fa21ddd06 | refs/heads/master | 2021-01-17T08:11:37.952150 | 2017-11-27T16:54:51 | 2017-11-27T16:54:51 | 35,911,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | '''
Created on 26 maj 2015
@author: fragom
'''
class Mode(object):
'''
Class to store outputs from Mode estimation function (Vedran)
'''
def __init__(self):
'''
Constructor
'''
'''
Enam 18-06-2015 add attributes to class for storing mode analysis results
... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
8ff682ab083a6f608c4241f1e70ffac6b4638355 | db9f0df35b37cf6b6aae18753609ae2c64e7e549 | /JetAnalysis/python/simpleSubstructureSelector_cfi.py | 690f7437b5837e2db1e95399f8019faeccbe4ec8 | [] | no_license | justinrpilot/ZprimeAllHad | 938f0097f87ea1dfbfb290a1e553c9555768a89e | b4477e26cce570376f7671433327a8d0f9ea516c | refs/heads/master | 2021-01-13T02:16:54.485622 | 2015-01-07T21:18:56 | 2015-01-07T21:18:56 | 12,485,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | import FWCore.ParameterSet.Config as cms
simpleSubstructureSelector = cms.PSet(
# Jets: Already have jet ID applied
src = cms.InputTag('goodPatJetsCA8PrunedPF'),
# Rho from the KT6 jets
rhoSrc = cms.InputTag('kt6PFJetsPFlow', 'rho'),
# Offline Primary Vertices (all of them) to reweight MC
pvS... | [
"justin.pilot@cern.ch"
] | justin.pilot@cern.ch |
c38987c96ddb5a1e788eff0e044c05296f352d82 | dafbb40214c27993ced1c40ad3c7a6b9430a39a6 | /Code/language/Python/grammer/itertools/gropby_example.py | 94538daacaf57b177cc0a82f559125552e80327c | [] | no_license | wan-h/Brainpower | fe67de45edca22ca5de4789082c9662e84c95a13 | f42d68a27b2610ba045dfc68873c429b58cf573b | refs/heads/master | 2023-08-17T02:57:50.633504 | 2023-08-03T07:11:27 | 2023-08-03T07:11:27 | 223,208,555 | 4 | 1 | null | 2023-03-06T20:45:31 | 2019-11-21T15:45:50 | C++ | UTF-8 | Python | false | false | 559 | py | # coding: utf-8
# Author: wanhui0729@gmail.com
from itertools import groupby
'''
groupby(iterable, key=None)
ๅฏนๅญ็ฌฆไธฒ๏ผๅ่กจ็ญ่ฟ่กๅ็ป(่ฟญไปฃๅฏน่ฑก็็ธๅๅ
็ด ๅๅฐไธ็ป)
'''
# ๅฏนๅญ็ฌฆไธฒ่ฟ่กๅ็ป๏ผๅฐ็ธๅๅญ็ฌฆ็ๅๅฐไธ็ป
print("=" * 21)
print("Group by str")
for k, g in groupby('11111223'):
print(k, list(g))
# ๆ็
งๅญๅ
ธ็value่ฟ่กๅ็ป
test_dict = {
'1': 1,
'2': 1,
'... | [
"13658247573@163.com"
] | 13658247573@163.com |
57fa1c3208e06885477cd9669c8f45ca97cf00a5 | bce0d135cef83e58926e281837a19761bb8bda29 | /InmoovScript/inmoovGestures/minimalHead.py | 20f14951819a7a2282304d729b71e3257f45b5c3 | [] | no_license | taptapclick/inmoov | 2aebb8580a5209a2688dfa723978b5c7c44d7de8 | 6ddb05e8fc7f84122e985eb22a7247be91d90a0b | refs/heads/master | 2021-01-19T19:47:17.909790 | 2017-04-03T20:04:20 | 2017-04-03T20:04:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # ##############################################################################
# *** FROM InMoov3.minimalHead.py ***
# ##############################################################################
def lookleftside():
global RobotCanMoveHeadWhileSpeaking
RobotCanMoveHeadWhileSpeaking=0
i01.setHeadVe... | [
"moz4r@free.fr"
] | moz4r@free.fr |
cf5a4edb1da0593a3cce85eedea3b9f303f45572 | 5b188a06f9b615b8a4541074fc50eeb1bfac5d97 | /ๅจๆ่งๅ/shoppingOffers.py | 57c91a077df887b598bcd103e6ab19c6fce4c78b | [] | no_license | yinyinyin123/algorithm | 3a8cf48a48bd2758c1e156c8f46161fe3697342f | b53f030ea3a4e2f6451c18d43336ff9c5d7433af | refs/heads/master | 2021-01-07T20:07:12.544539 | 2020-08-31T05:16:44 | 2020-08-31T05:16:44 | 241,807,608 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 861 | py |
### one code one day
### 2020/03/12
### leetcode 638 ๅคง็คผๅ
### ๅจๆ่งๅ็ๆๆณ ๆ ้่ๅ
### ่ฏฅ่งฃๆณไธ่ฝ100%้่ฟ๏ผๅช่่ไบ2็ง็ฉๅ็ๆ
ๅต
def shoppingOffers(self, price: List[int], special: List[List[int]], needs: List[int]) -> int:
### ๅฐๅไธชๅๅๅ ๅ
ฅๅฐspecial
for i in range(len(price)):
temp = [0] * (1 + len(price))
temp[i] = 1
... | [
"1350526138@qq.com"
] | 1350526138@qq.com |
2d49fb052e62b5e1e9b0f869d12852bc9fedac83 | 8b4ccce0e26408f05297e31b590d350d9632271d | /132. Palindrome Partitioning II.py | f012ab0a427c2c5755629d5d41edf3782821b311 | [] | no_license | bryantbyr/LeetCode-solutions | 65e50e104e3504662ae7547865c326282a13a9c9 | 07b8c34b12d05413466119a82247d7ee5cc34318 | refs/heads/master | 2022-01-13T12:17:46.699379 | 2019-04-29T11:54:02 | 2019-04-29T11:54:02 | 87,683,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # -*- coding: utf-8 -*-
# @Time : 2019/3/1
# @Author : qirui
# @FileName: 132. Palindrome Partitioning II.py
# reference: https://leetcode.com/problems/palindrome-partitioning-ii/discuss/42213/Easiest-Java-DP-Solution-(97.36)
# DP
# key: ไธค้DP้ๅธธๅทงๅฆ, ๅคๆญๅๆๅญ็ฌฆไธฒไนๅฏ็จDPไผๅ
# Time: O(N^2)
# Space: O(N^2)
class So... | [
"noreply@github.com"
] | bryantbyr.noreply@github.com |
ffb27bf19fbdc832de8c255d4600d604c6bd5db9 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4051/175004051.py | 4eba627afc0fcf75c7e3288c5a119db5eaeb03e5 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,142 | py | from bots.botsconfig import *
from records004051 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'FC',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'REF', MIN: 0, MAX: 99999},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
45b2cf85f016137ba49ad498d6816c62622ff768 | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0151_add_call_part_into_call_question.py | 3ea6ed3a70daa255924ff2de49821b4dedd621be | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 899 | py | # Generated by Django 3.1.4 on 2020-12-21 14:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project_core', '0149_callpart'),
]
operations = [
migrations.AddField(
model_name='callquestion... | [
"carles@pina.cat"
] | carles@pina.cat |
ae9629051a6c30309fd6be3f99213c9ab0aa8004 | 2d5648035b8bd32b4a6ded311e48975e5ea100d4 | /runs/snort/100KB/src1-tgt1/http-par-noids-iter00100.cfg.py | 4bb77e307fc64b4c9d74cf951600940dd95270bf | [
"MIT"
] | permissive | Largio/broeval | 3975e54a1eaead6686c53e5e99250a00becbe1e0 | 89e831d07f066100afdd1a5b220f9f08f1c10b3d | refs/heads/master | 2021-05-08T08:54:06.498264 | 2017-11-10T17:09:02 | 2017-11-10T17:09:02 | 92,508,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py |
# Write results to this file
OUTFILE = 'runs/snort/100KB/src1-tgt1/http-par-noids-iter00100.result.csv'
# Source computers for the request
SOURCE = ['10.0.0.1']
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql)
IDSMODE = 'noids'
# ... | [
"larswiete@googlemail.com"
] | larswiete@googlemail.com |
e6d029fe4a2550d33098dc197b61fce0768147fc | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day26/learncrm/crmAdmin/forms.py | 1707f11a2080324ab8df4716e948dea16b600694 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 6,312 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# by Wendy
from django.forms import ModelForm
########################type ๅจๆๅๅปบ็ฑป##########################
"""
>>> type
<class 'type'>
>>> type('MyClass',(object,),{'name':'tangying'})
<class 'MyClass'>
>>>
>>> c = type('MyClass',(object,),{'name':'tangying'})
>>> c
<class... | [
"284607860@qq.com"
] | 284607860@qq.com |
edaa74dc596a39615f20da5185c7b4369978414a | 1a85b063f01c16b9fa2b1aaa09f3be864b5ae158 | /virtual/bin/mako-render | a9750d70b48367ffa59a64e4ea3c53c2234cc980 | [
"MIT"
] | permissive | MaryMbugua/myblog | 91beb572983258b7cbf804edc7985d9d1d7a52e1 | 8aba4e3db52371b269e946d47046b8402a35a69f | refs/heads/master | 2020-03-11T23:26:45.938585 | 2018-04-23T09:12:13 | 2018-04-23T09:12:13 | 130,321,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | #!/home/nish/Desktop/personalblog/virtual/bin/python3.6
# EASY-INSTALL-ENTRY-SCRIPT: 'Mako==1.0.7','console_scripts','mako-render'
__requires__ = 'Mako==1.0.7'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('Mako==1.0.7', 'console_scripts', 'mako... | [
"marymbugua.nm@gmail.com"
] | marymbugua.nm@gmail.com | |
645904bad763bc582bf424066163b420fe2588f6 | e5eec1428da1d24d3e9b86f5723c51cd2ca636cd | /binary_search/๋ฐฑ์ค/๊ณจ๋/๋๋ฐฐ์ด์ ํฉ.py | 8a3263be5235552c356e9c89421f200d5e7ab2d5 | [] | no_license | jamwomsoo/Algorithm_prac | 3c36c381f59277721517d331a8f1640399d80c1d | 8393f3cc2f950214c47f3cf0b2c1271791f115d0 | refs/heads/master | 2023-06-09T06:49:14.739255 | 2021-06-18T06:41:01 | 2021-06-18T06:41:01 | 325,227,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | # ์ ํ ๋ชจ๋ฅด๊ฒ ๋ค,,,
# ๋ฐฑ์ค ์ฌ์ดํธ https://www.acmicpc.net/problem/2143
# ์ฐธ๊ณ ์ฌ์ดํธ https://velog.io/@nyanyanyong/%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98python%EB%B0%B1%EC%A4%80-2143%EB%91%90-%EB%B0%B0%EC%97%B4%EC%9D%98-%ED%95%A9
# ํ์ด
# a ๋ฐฐ์ด์ ๋ถ๋ถ ๋ฐฐ์ด์ ํฉ์ key๋ก ํ๊ณ ๊ฒฝ์ฐ์์๋ฅผ Value๋ก ํ๋ dictionary๋ฅผ ๋ง๋ ๋ค
# t์์ b ๋ฐฐ์ด์ ๋ถ๋ถ ๋ฐฐ์ด์ ํฉ์ ๋นผ์ค key ๊ฐ์ ๊ฐ๋ dict์ ๊ฒฝ์ฐ์ ์... | [
"41579282+jamwomsoo@users.noreply.github.com"
] | 41579282+jamwomsoo@users.noreply.github.com |
34ca2da82da590aedb90673c352160dd224212b3 | 8281214acbea165fc5edfba82bd7164ba286bca6 | /mnSpecFit/models/Synchrotron.py | 48246d052bdbebe33884382b709099ef0abba769 | [] | no_license | afcarl/mnsf | 93648a07aab017b943e41506795ea65e0a0927d1 | f08c2c7c34e8b62dcfdfa75643c8eb0dd0f6d4ec | refs/heads/master | 2020-03-18T19:57:36.271080 | 2015-05-28T16:54:46 | 2015-05-28T16:54:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | from mnSpecFit.Model import Model
from mnSpecFit.synchrotron_glue import synchrotronPy
from numpy import power
from multiFit.priorGen import *
class Synchrotron(Model):
def __init__(self):
def TotalSynchrotron(ene,norm,estar,index):
norm = power(10.,norm)
return s... | [
"jmichaelburgess@gmail.com"
] | jmichaelburgess@gmail.com |
9cdd4284b459fb25c776c8ea2cd5fbdcbabde930 | 9372026aec32fa10896225813986346e472f7a7c | /2019/week20/problem1.py | 03ad718aff56101a011b7083671fa604f7093505 | [] | no_license | mjsong0712/learn_python | 5809df5b0366b37836633f5fa5e2d96a9cb99798 | 1cc31ca750e76b436596e3a4f6b8f39d7b873624 | refs/heads/master | 2022-05-17T00:54:17.975679 | 2022-05-01T08:07:33 | 2022-05-01T08:07:33 | 235,795,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | # -*- coding: utf-8 -*-
# ๋ณ์๋ช
์์
# L, M, N
# list, number_list, numbers
# input
# ํจ์ ์ฌ์ฉ์ f1(input), f2()
# ๋ณ์ ์ฌ์ฉ์ v1 = v2 + v3
# range(5) == [0, 1, 2, 3, 4]
# [0 for i in range(5)] == [0, 0, 0, 0, 0]
# m = m + 1 <=> m += 1
# a<c and c<b <=> a<c<b
# ๋ฐ๊พธ๊ธฐ: a,b = b,a
# ๋ฆฌ์คํธ ์์ ์ถ๊ฐ L.append(a)
# L.sort()
# L = [[1, 2... | [
"mjsong070712@gmail.com"
] | mjsong070712@gmail.com |
71dfb2c9acd632d062023140ec5f5ad93317275c | 3f58d963dfa0a43d5efaf0f1bd1c0a95cc4c1f18 | /doc/source/conf.py | 7634a476e31385a02a46f3070b0ad40299dff42b | [] | no_license | gelliravi/xmi2oerp | 92a0bb3073901f25bc81553205e5caafe9007d12 | f8f1593248fdef7b6bafd6b28860cde09efcd2f8 | refs/heads/master | 2021-01-21T08:33:14.941555 | 2014-02-24T15:17:49 | 2014-02-24T15:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,018 | py | # -*- coding: utf-8 -*-
#
# xmi2oerp documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 21 19:21:20 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"cristian.rocha@moldeo.coop"
] | cristian.rocha@moldeo.coop |
1b5ba5b4499d622164725ac2353895c63f7090d4 | b76aaa9ec59df7888e4b6a4fc095cc8985952de7 | /src/rantanplan/__main__.py | 277e9e9d4708e25d4ad4274c64aeb17b064b5e8d | [
"Apache-2.0"
] | permissive | linhd-postdata/rantanplan | 999c58e1e29db752d845e770ba97711051817498 | 4847a0c883b118fe98972aca1874a9b047290346 | refs/heads/develop | 2023-07-11T00:18:54.837230 | 2021-09-13T12:52:37 | 2021-09-13T12:52:37 | 188,399,886 | 10 | 4 | NOASSERTION | 2021-09-13T12:52:38 | 2019-05-24T10:07:58 | Python | UTF-8 | Python | false | false | 367 | py | """
Entrypoint module, in case you use `python -mrantanplan`.
Why does this file exist, and why __main__? For more info, read:
- https://www.python.org/dev/peps/pep-0338/
- https://docs.python.org/2/using/cmdline.html#cmdoption-m
- https://docs.python.org/3/using/cmdline.html#cmdoption-m
"""
from rantanplan.cli impo... | [
"versae@gmail.com"
] | versae@gmail.com |
fd3eb46a302edc026ae52dff53059e1ee553e1ab | 66276325d623c894c9e6344bb161f3c25974a838 | /LeetCode/0048.Rotate-Image/Rotate-Image.py | c1f1c44425e7fc051e20f27d9f1e377ff32bb7de | [] | no_license | htingwang/HandsOnAlgoDS | 034b5199b394ca82fd4fb16614ddabb45f3325e2 | 5b14b6f42baf59b04cbcc8e115df4272029b64c8 | refs/heads/master | 2021-07-11T15:50:30.944794 | 2020-09-27T05:08:02 | 2020-09-27T05:08:02 | 192,391,446 | 12 | 2 | null | 2019-07-03T04:09:35 | 2019-06-17T17:36:01 | Jupyter Notebook | UTF-8 | Python | false | false | 548 | py | class Solution(object):
def rotate(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: None Do not return anything, modify matrix in-place instead.
"""
row, col = len(matrix), len(matrix[0])
for i in range(row):
for j in range(i):
matr... | [
"49448790+htingwang@users.noreply.github.com"
] | 49448790+htingwang@users.noreply.github.com |
bdbac448bcaefc08337cd6f3846ba17a61e21020 | 7359735a42cbff8a53a65e130e66bea2f7cc7da5 | /backend/apps/theater/migrations/0010_play_slug.py | bfd7ef9e6074b60508b3cc84b4537a805dcc6961 | [] | no_license | alexmon1989/sevtuz | 1a7b21d6cb70d4af15c80101cf828af0003447d5 | 9ff068089bc286ff238bac34f785db0775699091 | refs/heads/master | 2023-03-20T06:45:29.037723 | 2022-12-27T19:07:26 | 2022-12-27T19:07:26 | 110,521,561 | 0 | 0 | null | 2023-03-06T11:38:17 | 2017-11-13T08:35:43 | Nunjucks | UTF-8 | Python | false | false | 665 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-22 09:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('theater', '0009_auto_20171122_1127'),
]
operations = [
migrations.AddField(... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
82ff353f2890cfa6eb6b09f5cca484875dddfc04 | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/possible_bipartition.py | 89274fda86ac32e671f60915d01ff5d5c7ea820d | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given a set of Nย people (numbered 1, 2, ..., N), we would like to split everyone into two groups of any size.
Each person may dislike some other people, and they should not go into the same group.ย
Formally, if dislikes[i] = [a, b], it means it is not allowed to put... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
ad2bde704d5340820a7c5dd1f1fdc2562f6d3d77 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/password_policy/tests/test_apps.py | 77f84617d5c9159deccc3518386de5a2bba0c654 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 1,321 | py | """
Test password policy settings
"""
import datetime
from unittest.mock import patch
from dateutil.parser import parse as parse_date
from django.conf import settings
from django.test import TestCase, override_settings
import openedx.core.djangoapps.password_policy as password_policy
from openedx.core.djangoapps.pa... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
e9ec44bb51cae2ff35f0e6fb82cad7612dc33e58 | 3a6d90f1e00ba93d7770b560571b7da0d36fdaac | /src/briefy/choreographer/actions/slack/leica/comment.py | a14f0a95ee5d82ee3571fcb4ce906d1f9f03032c | [] | no_license | BriefyHQ/briefy.choreographer | c62cf1b18712ab89f4ed6ecde1f9b70ade3b25b5 | cca179f55ebc3c420426eff59b23d7c8963ca9a3 | refs/heads/master | 2021-03-19T17:24:30.706502 | 2017-12-20T20:08:14 | 2017-12-20T20:08:14 | 63,544,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | """Slack actions for Comments."""
from briefy.choreographer.actions.slack import ISlack
from briefy.choreographer.actions.slack import Slack
from briefy.choreographer.events.leica import comment as events
from zope.component import adapter
from zope.interface import implementer
import typing as t
class CommentSlack(... | [
"ericof@gmail.com"
] | ericof@gmail.com |
b5436185a92dedc113d008d5159495bea7566770 | 18e359da152f6690b1d753bb6ecec75d518de167 | /user/urls.py | 6aa199361b5cf7b3008471f3f6fd9eb56dcc98c0 | [] | no_license | keniiy/Django-Ecommerce | 9ee81d3ec8373fd51371b459ef9b457a1979ac29 | 023683c3fb7dcd7c124da8bf34fbce302f2ad133 | refs/heads/master | 2022-11-15T07:39:45.832938 | 2020-07-15T07:53:32 | 2020-07-15T07:53:32 | 263,697,873 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('update/', views.user_update, name='user_update'),
path('password/', views.user_password, name='user_password'),
path('order/', views.user_order, name='user_order'),
path('order_product/', view... | [
"kehindekehinde894@gmail.com"
] | kehindekehinde894@gmail.com |
a3e063a7fdb6612f04210b24d931058d2a53cf0c | 3079cc1df2e005053c2a2034072d9bee8ff446b4 | /setup.py | 918bf5d4997cc9c3fa2727ab05c1ff78b5af4715 | [
"BSD-2-Clause"
] | permissive | dustinthughes/Flask-User | ce2f386c3523a8fce8502c32c4d52cf66b653249 | b3d5672c7a45c09e99bf223fc193613c417c1b6d | refs/heads/master | 2020-12-26T23:34:32.767778 | 2014-10-22T02:44:01 | 2014-10-22T02:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,654 | py | """
Flask-User
==========
.. image:: https://pypip.in/v/Flask-User/badge.png
:target: https://pypi.python.org/pypi/Flask-User
.. image:: https://pypip.in/d/Flask-User/badge.png
:target: https://pypi.python.org/pypi/Flask-User
.. image:: https://pypip.in/license/Flask-User/badge.png
:target: https://pypi.... | [
"ling.thio@gmail.com"
] | ling.thio@gmail.com |
c2698c4cda457417b130a7e55e5decb4af42d99c | 25debb7698c86bff35967af56e611f0f2e6e5714 | /app/main.py | eb5c7757928c4218f24b33db2b818128442be583 | [] | no_license | jsrimr/flask_cicd | 2a98b169e8a27b306926eaead97934bc91fbb02e | 75466a44ede3f5558b741f9442e87a7cab483e71 | refs/heads/master | 2022-12-15T10:19:24.221346 | 2020-09-19T06:50:03 | 2020-09-19T06:50:03 | 296,513,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World from Flask"
if __name__ == "__main__":
# Only for debugging while developing
app.run(host='0.0.0.0', debug=True, port=8080) | [
"jsrimr@naver.com"
] | jsrimr@naver.com |
6c52f8bd4335c6e42c9ce7a4c3cfc2118b0c89bf | 7bdd1e117165d93fc56930435ea1ad1f74717e0f | /Aula_36_Calcular Media.py | 1b2a13e8155db2495cd0952e78ed0f8caf26eb05 | [] | no_license | DiksonSantos/Logica_De_programa-o_Para_DataScience | cb2ddf1d0cc0061667f63a7a554e47d9c56be9ef | 0b45d08996f7a053f8827e1ecaa8762171f0e07d | refs/heads/master | 2022-12-17T00:31:19.969605 | 2020-09-16T19:18:36 | 2020-09-16T19:18:36 | 296,126,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from statistics import mean
#Uma Lista Contendo 10 Posiรงรตes:
lista = list(range(1,11)) #lista = [0:10]
#Inserimos As Notas nestas 10 Posiรงรตes:
for n in range(0,10):
print("Informa Numero Na Posiรงรฃo: ", n+1)
lista[n] = int(input('Nota: '))
#Caso digite Um Numero Menor que ZERO:
while lista[n] <=... | [
"dikson_santos@outlook.com"
] | dikson_santos@outlook.com |
a5e0b191ab85a649e9d5bb7111953ddacd5df0ad | c6295f0cb5c9ef60c8fd205dfb0236eb3d213b10 | /wyz2_ws/src/fasterrcnn2/scripts/demo_camera_ros.py | 600ee596c263c9a264793e8f0299d8bc7c3cd194 | [] | no_license | Aaron9477/workspace | 92b64ec0956f386985437496319ccbba985c7679 | ca846b030a4f2ef630c1a142574deab4d3a7bbc1 | refs/heads/master | 2020-04-14T19:53:24.918727 | 2019-01-22T07:00:49 | 2019-01-22T07:00:49 | 164,056,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,208 | py | #!/usr/bin/env python
# --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""
Demo script showing detections in sample i... | [
"869788668@qq.com"
] | 869788668@qq.com |
e2be9b4214d506b8f96cf108278d51ade7bf7e20 | f75f841a1e0e6e7915a68bebbed7233aa5d22625 | /dnspython/reverse_name.py | edd510ddb6c75353c83ccd3928db0523adb33d07 | [
"MIT"
] | permissive | Akagi201/learning-python | 4c1aa72116cdfea527fdf2afd038158e5ba7f97b | 28169d1bf0488e8be1456b40dd39d7830a65280e | refs/heads/master | 2022-12-08T01:25:57.842615 | 2022-03-14T08:02:20 | 2022-03-14T08:02:20 | 32,675,802 | 89 | 126 | MIT | 2022-11-24T18:20:28 | 2015-03-22T13:04:01 | Python | UTF-8 | Python | false | false | 137 | py | #!/usr/bin/env python
import dns.reversename
n = dns.reversename.from_address("127.0.0.1")
print n
print dns.reversename.to_address(n)
| [
"akagi201@gmail.com"
] | akagi201@gmail.com |
9bed786d2ec48a55958d5595145157cd9a8b8a8f | 310eec541663e53b4769b6cf041eee2e49692622 | /5000~5999/5622.py | 0dcd829e7d5e22c9b7518a161d6c98e702ae02f5 | [] | no_license | merry-hyelyn/Baekjoon-Online-Judge | c55d840e5815ebd04ab945373e36dffa8da2232a | 786e64be4ca34553c378555687ef6ef7fb8fa9a7 | refs/heads/master | 2023-03-20T18:22:05.426765 | 2023-03-11T14:57:34 | 2023-03-11T14:57:34 | 233,415,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # ๋ฌธ์
# ์๊ทผ์ด์ ํ ๋จธ๋๋ ์๋ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ด ์ค๋๋ ๋ค์ด์ผ ์ ํ๊ธฐ๋ฅผ ์ฌ์ฉํ๋ค.
# ์ ํ๋ฅผ ๊ฑธ๊ณ ์ถ์ ๋ฒํธ๊ฐ ์๋ค๋ฉด, ์ซ์๋ฅผ ํ๋๋ฅผ ๋๋ฅธ ๋ค์์ ๊ธ์ ํ์ด ์๋ ๊ณณ ๊น์ง ์๊ณ๋ฐฉํฅ์ผ๋ก ๋๋ ค์ผ ํ๋ค.
# ์ซ์๋ฅผ ํ๋ ๋๋ฅด๋ฉด ๋ค์ด์ผ์ด ์ฒ์ ์์น๋ก ๋์๊ฐ๊ณ ,
# ๋ค์ ์ซ์๋ฅผ ๋๋ฅด๋ ค๋ฉด ๋ค์ด์ผ์ ์ฒ์ ์์น์์ ๋ค์ ๋๋ ค์ผ ํ๋ค.
# ์ซ์ 1์ ๊ฑธ๋ ค๋ฉด ์ด 2์ด๊ฐ ํ์ํ๋ค.
# 1๋ณด๋ค ํฐ ์๋ฅผ ๊ฑฐ๋๋ฐ ๊ฑธ๋ฆฌ๋ ์๊ฐ์ ์ด๋ณด๋ค ๋ ๊ฑธ๋ฆฌ๋ฉฐ,
# ํ ์นธ ์์ ์๋ ์ซ์๋ฅผ ๊ฑธ๊ธฐ ์ํด์ 1์ด์ฉ ๋ ๊ฑธ๋ฆฐ๋ค.
# ์๊ทผ์ด์ ํ ๋จธ๋๋ ์ ํ ๋ฒํธ๋ฅผ ๊ฐ ์ซ์์ ํด๋นํ๋ ๋ฌธ์๋ก ์ธ์ด๋ค.
# ์ฆ, ์ด... | [
"h1335@naver.com"
] | h1335@naver.com |
20c626d76d7a33f7e93938090cebd0eeed5189f4 | d1cf157a5b7c37f264fe169c7241e64947d56c6d | /app/migrations/0059_alter_poitemsmerch_qtyreceived.py | 8401d1bcff684e8054b23b144489fe310993c949 | [] | no_license | albert-sobreo/mms-for-armand | 5943f0a13b5972f6ddd05578e397c7bc2b104d17 | dade04404ca65cb02a38d18bb404da585f536894 | refs/heads/master | 2023-08-26T21:41:46.234369 | 2021-10-04T07:55:26 | 2021-10-04T07:55:26 | 413,325,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Generated by Django 3.2.3 on 2021-06-26 15:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0058_alter_poitemsmerch_qtyreceived'),
]
operations = [
migrations.AlterField(
model_name='poitemsmerch',
nam... | [
"janalbertsobreo@gmail.com"
] | janalbertsobreo@gmail.com |
e6cd762030419603209bb0845740287c1abe6d01 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1881.py | 2bf031d8441c7c07efce71b716e838c9a19554c3 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import sys
def check_board(board):
# Check the rows
for row in board:
s = sum(row)
if s == 4 or s == 13:
return "X won"
elif s == -4 or s == 7:
return "O won"
# Check the columns
for idx in xrange(0, 4):
column = [row[idx] for row in board]
s = sum(column)
if s == 4 or s == 13:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.