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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9df488729a33c40b7f0a79805a0e490939c392cc | de06c4a1fb02fd23eadfc58c770d87edfd0a6d38 | /group_buying/payment/migrations/0002_auto_20200829_0923.py | da6c064bd2bf89bfec813229cb49073801216a4d | [] | no_license | saisantoshchirag/group_buying | c12dc0bf1882cf03d20e6865dd98105a28907f80 | 1d9fb28f99dfb9b085e43bb5429bde476680ffa7 | refs/heads/master | 2023-08-15T01:27:56.203321 | 2020-11-13T11:16:36 | 2020-11-13T11:16:36 | 267,057,651 | 0 | 1 | null | 2021-09-22T19:21:23 | 2020-05-26T13:58:14 | HTML | UTF-8 | Python | false | false | 1,038 | py | # Generated by Django 2.1.5 on 2020-08-29 03:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('payment', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='orders',
name='address',
),
... | [
"saisantosh.c17@iiits.in"
] | saisantosh.c17@iiits.in |
538215aa0cc6b8084fff013b4fd1dac21131423c | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /80_best.py | c500e3032fd796de2b2a3073cdc4baa3dbdbb67f | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
n=0
p=0
pre=float("inf")
for i in range(len(nums)):
if nums[i]==pre:
if n==2:
continue
e... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
ce9a504baf33919b24dc53bdf46a87dc45cd164e | fa45fe7eaba7ef7c27ecf95db7c460ca189ce0d4 | /everydays/day002/flask_test/hm_07_helloflask.py | c5e844f1d49376ac75384f887e29197ae23fd8cb | [] | no_license | jake20001/Hello | be1a2bb5331f2ad4c1d8f30c6a9a530aff79e605 | 08217871bb17152eb09e68cd154937ebe5d59d2c | refs/heads/master | 2021-07-10T09:48:15.883716 | 2021-04-23T14:49:03 | 2021-04-23T14:49:03 | 56,282,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | from datetime import timedelta
from flask import Flask, session,jsonify
app = Flask(__name__)
# 设置应用秘钥会被用于session签名
app.secret_key = 'test'
# 设置session过期时间 默认31天
print(f'默认过期时间: {app.permanent_session_lifetime}')
# 通过赋值一个 timedelta 对象来修改 session 的过期时间
app.permanent_session_lifetime = timedelta(days=0,seconds=20)
print... | [
"jianke.zhang@beantechs.com"
] | jianke.zhang@beantechs.com |
c9979f423a456cb880b77c2b8a584ec0c5691070 | b007d88e6726452ffa8fe80300614f311ae5b318 | /educative.io/coding_patterns/hash_maps/isomorphic_string.py | 3f2177702a7f146a99345b2c40f7a05c9cd83761 | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | """
Given two strings, check whether two strings are isomorphic to each other or not. Two strings are isomorphic if a fixed mapping exists from the characters of one string to the characters of the other string. For example, if there are two instances of the character "a" in the first string, both these instances sho... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
dc4ba9522892d2b29251cd8eab33b73c5fffbcf8 | 2d2c10ffa7aa5ee35393371e7f8c13b4fab94446 | /projects/ai/mrc/haihua/mrc_guwen/loss.py | b36544f5e4359d2393243aba18e0a179e657b745 | [] | no_license | faker2081/pikachu2 | bec83750a5ff3c7b5a26662000517df0f608c1c1 | 4f06d47c7bf79eb4e5a22648e088b3296dad3b2d | refs/heads/main | 2023-09-02T00:28:41.723277 | 2021-11-17T11:15:44 | 2021-11-17T11:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file loss.py
# \author chenghuige
# \date 2021-01-09 17:51:33.472128
# \Description
# ==================================================================... | [
"chenghuige@gmail.com"
] | chenghuige@gmail.com |
b95feeca262a9036432d30423ce62dd23cffdd32 | 415fcefe59c8d33bc3f8b0784d48a7509ea7d5da | /addanother_example/models.py | f005bc5f0ebd821cc308a8ef2e021933eecd6f68 | [] | no_license | asifpy/django-quickstart | 6f517699375015584a7d17f112b70b8eeff89762 | 0ff625915cf169d3fb2f9646d9838260629c1576 | refs/heads/master | 2021-01-11T11:19:22.446634 | 2017-05-04T05:28:55 | 2017-05-04T05:28:55 | 72,719,312 | 2 | 1 | null | 2017-05-04T05:28:56 | 2016-11-03T07:24:32 | Python | UTF-8 | Python | false | false | 795 | py | from django.db import models
class Team(models.Model):
name = models.CharField(max_length=20)
def __str__(self):
return self.name
class Player(models.Model):
name = models.CharField(max_length=20)
current_team = models.ForeignKey(
"Team", related_name="current_players",
he... | [
"saluasif@gmail.com"
] | saluasif@gmail.com |
a511646d6604a9c524b484c4ff7546e7ca14116e | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav457.py | 245f22a2fc444ac2254832c1c88ff8828465938b | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = -1 * prey[1]
if temp0 != 0:
temp1 = temp0 / temp0
else:
temp1 = temp0
temp0 = -1 * prey[1]
temp1 = temp0 * prey[0]
if temp0 != 0:
temp2 = temp1 % temp0
else:
temp2 = temp0
temp3 = temp1 + prey[1]
if temp2 > temp0:
if temp3 != 0:
temp3 = temp... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
a5c866848db0a2d103e4eccf93def3588d598874 | f20da8440bae10fe73900f787fc7781f23196325 | /downsample/downsample_dense.py | ad5654289ac0181edcac53448c9e825628577396 | [] | no_license | ramesh720/recipe_zs2017_track2_phoneme | 9c5cdb3066a84e5059153b1390802e700c66978e | f8bbd9b8e6ae4f542e52c2582eab1cf166923226 | refs/heads/master | 2020-04-29T11:07:47.406768 | 2018-01-13T13:03:46 | 2018-01-13T13:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,364 | py | #!/usr/bin/env python
"""
Perform dense downsampling over indicated segmentation intervals.
Author: Herman Kamper
Contact: kamperh@gmail.com
Date: 2015-2017
"""
from datetime import datetime
from os import path
import argparse
import cPickle as pickle
import numpy as np
import scipy.signal as signal
import sys
OUTP... | [
"kamperh@gmail.com"
] | kamperh@gmail.com |
0f149d04b001516f7e44891758e4f4b9fe1459e9 | 88d555a009f9075e59177fac70036892f397b439 | /bin/saluki_train_folds.py | b0855e380c8a5fecbcf452fe9356988f2c5c8f01 | [
"Apache-2.0"
] | permissive | calico/basenji | f9f406971d355dda81821dcf274696a7d27e332d | 615b9eec8a591783b16d959029ddad08edae853d | refs/heads/master | 2023-09-04T11:14:15.620786 | 2023-07-27T00:05:13 | 2023-07-27T00:05:13 | 96,346,574 | 326 | 143 | Apache-2.0 | 2023-08-16T00:36:32 | 2017-07-05T17:54:18 | Python | UTF-8 | Python | false | false | 13,420 | py | #!/usr/bin/env python
# Copyright 2019 Calico LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agr... | [
"drk@calicolabs.com"
] | drk@calicolabs.com |
e0cef2e9484c65cdeaf1980ebb7c8d939eeb49b2 | 738b4fd5d8ebb8c424947a6786bd41ba30df46d6 | /ibeatles/fitting/fitting_launcher.py | 4d66c124f6dace8967669f0f642adedd8f81d6c0 | [
"MIT"
] | permissive | indudhiman/bragg-edge | ba6e5c02e2bf2c2c5f87b626a4578238f7973e43 | 56af0a448534ef9cb5428879ba900e194dc05db2 | refs/heads/master | 2020-04-16T22:49:53.274903 | 2019-01-08T14:18:32 | 2019-01-08T14:18:32 | 165,985,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,018 | py | try:
import PyQt4
import PyQt4.QtGui as QtGui
import PyQt4.QtCore as QtCore
from PyQt4.QtGui import QMainWindow
from PyQt4.QtGui import QApplication
except:
import PyQt5
import PyQt5.QtGui as QtGui
import PyQt5.QtCore as QtCore
from PyQt5.QtWidgets import QMainWindow
fro... | [
"bilheuxjm@ornl.gov"
] | bilheuxjm@ornl.gov |
8425cd0230586cba7d321dc4706f57f721a3c5d4 | b246bdb4ae3d845bbf8dee704b8936c32211c0f5 | /Figure_1/initial_subtyping/do_tsne.py | fe059a8bd9f38cb0c2f026356b59d034111066fc | [] | no_license | KnottLab/bladder-snSeq | abfd3d77a04250622e6a28d84878e5adcd335d00 | 2e087dc745046e30c2814ab3e4c295bfa34e6820 | refs/heads/master | 2023-04-07T13:36:44.794889 | 2021-12-08T15:37:45 | 2021-12-08T15:37:45 | 323,445,511 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | #!/usr/bin/env python
import numpy as np
import argparse
from load_data import load_data
from MulticoreTSNE import MulticoreTSNE as TSNE
try:
import cuml
CUML_FLAG=True
except:
print('[DO_TSNE] WARNING failed to import cuML. GPU accelerated TSNE will not be available.')
CUML_FLAG=False
"""
Modules have two ... | [
"ing.nathany@gmail.com"
] | ing.nathany@gmail.com |
14e1a228d0680642f41d17ebeaa1552a75c5e0c5 | 1aa0ddb70fb893a6f958841b0a606cdcac954e18 | /settings/forms/batches.py | a1931328efe9b17262c46d238776331d3278fa66 | [] | no_license | shitalluitel/LibraryManagementSystem | 3042860a70096bf3821299fb10ca35958e680f62 | eecd909b272ad7e524a031c9142d22a356141fda | refs/heads/master | 2023-02-17T06:42:19.044516 | 2021-01-10T14:52:18 | 2021-01-10T14:52:18 | 166,533,846 | 2 | 1 | null | 2023-02-07T22:14:35 | 2019-01-19T10:22:41 | HTML | UTF-8 | Python | false | false | 1,003 | py | from django import forms
from django.forms import ModelMultipleChoiceField
from settings.models import Batch, CourseBatch, Course
class BatchForm(forms.ModelForm):
class Meta:
model = Batch
fields = ['name', 'code']
widgets = {
'name': forms.TextInput(attrs={'class': 'form-c... | [
"ctalluitel@gmail.com"
] | ctalluitel@gmail.com |
5f01b00fb146fec0d23c878194633081590499e0 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/framework/entities/abstract/tooltipmgrmeta.py | a6dfedb52bce9035a795727e60fc365f096a4dbc | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,329 | py | # 2016.05.01 15:22:59 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/framework/entities/abstract/ToolTipMgrMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIModule import BaseDAAPIModule
class ToolTipMgrMeta(BaseDAAPIModule):
"""
DO NOT MODIFY!
Generated with yaml.
_... | [
"info@webium.sk"
] | info@webium.sk |
85d95bdfbd59a153f246c62bca01d14bff2342be | 8382f4ec907950a8cfc618d3cceb97b0d00ab478 | /6kyu/encryptThis.py | 98249bc9ece7063bffc8fcf98db0cc716a54aaba | [] | no_license | naistangz/codewars_challenges | 80788f3869a4283c89ee2a05f19142b18ba4820c | 372bbb6f1668b378183a169206526b52315107a8 | refs/heads/master | 2023-04-14T11:52:31.412554 | 2021-04-25T09:39:03 | 2021-04-25T09:39:03 | 299,615,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | def encrypt_this(text):
words = text.split(" ")
res = []
for i in words:
new = ""
temp = ""
for j in range(len(i)):
if j == 0:
new += str(ord(i[j]))
elif j == 1:
temp = i[j]
new += i[-1]
elif j == len(i) - 1:
... | [
"a6anaistang@hotmail.co.uk"
] | a6anaistang@hotmail.co.uk |
7c8e4675d0711026385f5328533e7c8eeb8fad4d | 56db1ccba3f8976b2df6d97c99e5aae7108149a1 | /spending/main/admin.py | 2c410651c1a51abbb5f05621793ae519229eae80 | [] | no_license | peterbe/django-spending | 4d60b7a77250fc58eb7a397e388fd22fe73576de | ab2ab1730fbdd999e5ef8d75575795fa3a48d2b9 | refs/heads/master | 2021-01-10T05:32:00.005607 | 2013-07-06T05:41:41 | 2013-07-06T05:41:41 | 8,384,613 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from django.contrib import admin
from spending.main.models import Household, Expense, Category
class HouseholdAdmin(admin.ModelAdmin):
list_display = ('name', 'no_users')
def no_users(self, obj):
return obj.users.all().count()
no_users.short_description = '# users'
class ExpenseAdmin(admin.Mode... | [
"mail@peterbe.com"
] | mail@peterbe.com |
11ef2cc4fb52774a2fb7d480df6720fc9c79afd9 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /02_Statistical_Methods_for_Machine_Learning/14/01_tolerance.py | 4a81741857f5d7f81dd597a2d99ba09c2f2bae3b | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | # parametric tolerance interval
from numpy import mean
from numpy import sqrt
from numpy.random import randn
from numpy.random import seed
from scipy.stats import chi2
from scipy.stats import norm
# seed the random number generator
seed(1)
# generate dataset
data = 5 * randn(100) + 50
# specify degrees of freedom
n = ... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
4fdc6b0d3c0d6e664d22960a9926a3b2127f2f29 | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/deeplab/datasets/build_cityscapes_data.py | ce81baef20a460abaa634d3f1dcb6760a0858dec | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 6,244 | py | # Lint as: python2, python3
# Copyright 2018 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
#
#... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
36427016924bc734286ed9ff39b3812b2d38b21a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2367/60699/251530.py | e61d0d3cb0da03640cd9f10d895c7a604b12880b | [] | 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 | 167 | py | res1=1
list1=[1]
for i in range(0,30):
res1=res1*10+1
list1.append(res1)
n=int(input())
for i in list1:
if i%n==0:
print(i)
break
print(-1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6c1288b99b5652fc745dbe1c2daa5fa84a0b459f | cd91dd22b391968e077fd0a693813893543cdf1f | /src/opserver/consistent_schdlr.py | d4dee2598c34380e1ab5750983d488d72b64a7fd | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | forsakening/controller | 6c89476901d78423721b4b444d54123630eaa300 | 408892746ea189aecae33ce3b5a8ac6c1200a8d8 | refs/heads/master | 2020-04-08T12:08:27.204902 | 2019-02-13T08:56:03 | 2019-02-13T08:56:03 | 159,334,442 | 0 | 1 | Apache-2.0 | 2019-01-31T01:44:29 | 2018-11-27T12:48:27 | C++ | UTF-8 | Python | false | false | 10,996 | py | #
# Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
#
from consistent_hash import ConsistentHash
import gevent
import os
import hashlib
import logging
from kazoo.client import KazooClient
from kazoo.client import KazooState
from kazoo.handlers.gevent import SequentialGeventHandler
from random import rand... | [
"forsakening@sina.cn"
] | forsakening@sina.cn |
47e5b33bf2c46dffa3df76a2bf4134619041815a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/RecExample/RecExCommon/share/ContainerRemapping.py | 00f5c31d568f606d42fba403b8779c3df62a656f | [] | 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 | 4,782 | py | include.block ("RecExCommon/ContainerRemapping.py")
from AthenaCommon.AppMgr import ServiceMgr
# Instantiate the address remapping service:
if not hasattr( ServiceMgr, "AddressRemappingSvc" ):
ServiceMgr += CfgMgr.AddressRemappingSvc()
pass
if not hasattr( ServiceMgr, "ProxyProviderSvc" ):
ServiceMgr += C... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
70b13e09918671ec8f42febe6f91674c2a84f798 | d4f2e2e3552ab4b111f78cfbad0d30c144201093 | /2016-12-20/semaphore.py | 2c1f4492110d89b3a3f1daa84001456b57596e8d | [
"Apache-2.0"
] | permissive | dongweiming/mp | c1e9f6f2c1fd8adbd4d7b8ffc45c5cc288cdcd80 | 129c31c818e1f0c39c983aad1f2f1ad9fa7efb1c | refs/heads/master | 2023-04-29T07:56:27.198574 | 2022-10-30T04:20:09 | 2022-10-30T04:21:27 | 75,051,758 | 96 | 35 | Apache-2.0 | 2023-04-17T17:34:17 | 2016-11-29T06:44:53 | Python | UTF-8 | Python | false | false | 509 | py | import aiohttp
import asyncio
NUMBERS = range(12)
URL = 'http://httpbin.org/get?a={}'
sema = asyncio.Semaphore(3)
async def fetch_async(a):
async with aiohttp.request('GET', URL.format(a)) as r:
data = await r.json()
return data['args']['a']
async def print_result(a):
with (await sema):
... | [
"ciici1234@hotmail.com"
] | ciici1234@hotmail.com |
3d2cdb0df6994ed18122a7d3e04ebebc15aee7da | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnuiy.py | d0fcd3f412294aeefbace25ce9b8a1fa5cf588aa | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 44 | py | ii = [('MedwTAI2.py', 1), ('MereHHB.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
b097b7a2e91b91ea67969ca245e6a9c69ad4bc7f | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Selenium_Chromium/source/selenium/webdriver/edge/service.py | 9eac51171035f1d2bd648ca409aeee7b8c69b782 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 2,161 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
fe0e6cff95e5d8a330eff9257815093428fb3c63 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_od_mcomplex_type_definition_range_check.py | 1654fc81fa59cb3e96dcfdc2ece04a4d325049a1 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import rcc
from rcc.models.od_mcomplex_type_definition_range_... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
d273be6ad84e00816624c1c2db81aeb55764ad1f | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/ops/metrics_impl.py | 07a43d2961aef78c6af194c06eb1cd62d641f352 | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144,255 | py | # Copyright 2016 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... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
33daf81383f07a60e1205b82c0c803721e8fd23e | 25985aeeee54373d26a164e4cc6a014770e3ebf3 | /windows/w3af/w3af/core/ui/gtkUi/.svn/text-base/exploittab.py.svn-base | 7ad6f040980ac9f8abcf7cb7387f8c80945f7141 | [] | no_license | sui84/tools | 4b750dae90940fbe3a226cba72dc071d8fb88b7c | 651cc08eb50199ce1044c684dbf714ea26df6432 | refs/heads/master | 2021-01-22T19:22:26.964580 | 2017-08-20T15:23:38 | 2017-08-20T15:23:38 | 100,774,276 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 29,792 | '''
exploittab.py
Copyright 2007 Andres Riancho
This file is part of w3af, w3af.sourceforge.net .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope t... | [
"sui84@126.com"
] | sui84@126.com | |
9057b02d2ebad2cfc59b5649da5d1eeb5780b432 | 8d5f49fa1fda8ffc473e7f5a62786c77838a5820 | /website/drawquest/dbrouters.py | 23bbfb4be240253be8526040cf768de593b23d88 | [
"BSD-3-Clause"
] | permissive | MichaelBechHansen/drawquest-web | dfc6f5d9541860a5df23db678e82564a230bd42e | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | refs/heads/master | 2021-01-14T10:30:10.861222 | 2015-11-10T03:13:42 | 2015-11-10T03:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from django.conf import settings
class DatabaseAppRouter(object):
"""
A router to control all database operations on models for different
databases.
In case an app is not set in settings.DATABASE_APPS_MAPPING, the router
will fallback to the `default` database.
Settings example:
DAT... | [
"alex.ehlke@gmail.com"
] | alex.ehlke@gmail.com |
444afd65d83f521bbd49a2443f13fc3fbfceb654 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03078/s480863669.py | ac933d8bc820956754a8b02303270586b6a2aaa3 | [] | 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 | 495 | py | # solution
x,y,z,k = map(int, input().split())
a = sorted(list(map(int, input().split())), reverse = True)
b = sorted(list(map(int, input().split())), reverse = True)
c = sorted(list(map(int, input().split())), reverse = True)
ans = []
for p in range(min(k,len(a))):
for q in range(min(k,len(b))):
for r in range(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3a074572647edca905c1104c2e82709c859ebddb | 4050f786f3cc505760e25608d66805e3543835f8 | /the_flyer_15147/urls.py | 141a25667c75334ebfabf7887b5c99cfe55f3ff9 | [] | no_license | crowdbotics-apps/the-flyer-15147 | 6fb0a403286d06c5393d9f58b39f76ad5c538312 | e2f62327110f1200c8d4ebf46f127ce4fe903189 | refs/heads/master | 2022-12-11T02:03:31.153849 | 2020-03-28T02:01:50 | 2020-03-28T02:01:50 | 250,693,069 | 0 | 0 | null | 2022-12-08T05:09:49 | 2020-03-28T01:59:48 | Python | UTF-8 | Python | false | false | 2,055 | py | """the_flyer_15147 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
664fa09f48389314c2a900ac4b98a88fce679aba | 84a617d20424c0e06847ee5230c579d99e85956c | /pytorch/re/pure/entity_models.py | 36fb6f121c714294e0fbd9672ed9362eec3ddb85 | [] | no_license | ienoob/neo_nlp_project | a6b1fce5ba3413e3d8dba174ffba8b8700d03444 | 1009dc9780b8827813ee3e575e8bfcb03aa5d388 | refs/heads/master | 2023-02-22T20:09:06.366958 | 2022-07-14T02:45:12 | 2022-07-14T02:45:12 | 249,361,823 | 8 | 0 | null | 2023-02-16T03:31:49 | 2020-03-23T07:22:13 | Python | UTF-8 | Python | false | false | 12,864 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) ***
import torch
import torch.nn as nn
from transformers import BertTokenizer, BertPreTrainedModel, BertModel
from transformers import AlbertTokenizer, AlbertPreTrainedModel, AlbertModel
from torch.nn import CrossEntropyLoss
import logging
logger = logging.... | [
"mostli@qq.com"
] | mostli@qq.com |
1e445cc5bd290315f961eb98d248e02c72584909 | f4653b4bd7528150a53c8f454658c00d7ea0b836 | /cbm/ipycbm/ipy_view/view_main.py | e19d0de98e84ac96843c63b82e5adf468f855f50 | [
"BSD-3-Clause"
] | permissive | mokasini/cbm | ccb09cb8ab96e6b06b0e13d86ff51124538706f6 | 33bd9c8a0d107f6cdc3343953ae9f7c9bd9272cd | refs/heads/main | 2023-02-24T04:44:07.744715 | 2021-02-01T12:29:38 | 2021-02-01T12:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of CbM (https://github.com/ec-jrc/cbm).
# Author : Konstantinos Anastasakis
# Credits : GTCAP Team
# Copyright : 2021 European Commission, Joint Research Centre
# License : 3-Clause BSD
from ipywidgets import Tab
from cbm.ipycbm.utils import h... | [
"Konstantinos.ANASTASAKIS@ext.ec.europa.eu"
] | Konstantinos.ANASTASAKIS@ext.ec.europa.eu |
27c35318c6b5f8212dd449e282c2b081d6dc4c61 | 046c1141399890afa13fd243e55da3dbf31085c5 | /test/test22.py | 05c20e2d7892acce138d4df0ab6d184be9b7d49e | [] | no_license | carusyte/tflab | 1d0edf87282352aeb5a38b83c58ab9c0189bbb1a | 2324c3b0ad22d28c50a4fd8db56e36a2836735c3 | refs/heads/master | 2021-05-12T06:58:26.270868 | 2019-03-24T14:57:44 | 2019-03-24T14:57:44 | 117,232,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,165 | py | from __future__ import print_function
# Path hack.
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/..")
import tensorflow as tf
from pstk.model import model11
from time import strftime
from pstk.data import data as data0
from pstk.data import data12
from test import collect_summary
... | [
"carusyte@163.com"
] | carusyte@163.com |
4ecf47ca7e7b37620817c44064a35600aa63affa | dfc2c18053b8e7576f88e7b2524d7ca3a8f47282 | /ch03/session3/63.py | a3458fac0a02818719ccecbeba2d2a88982ce7e0 | [] | no_license | Xoozi/tchomework | a6eed3bbf697ff12af8d42249ec58a139aed0c4c | 627c98b0b652ef20fd93025a17341bba76fbfce6 | refs/heads/master | 2021-01-23T21:18:15.793703 | 2018-10-21T11:05:55 | 2018-10-21T11:05:55 | 57,583,655 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | #一族三次曲线
#(a)对k = 0, 及其邻近的k的正和负值, 把f(x) = x**3 + k*x的图形画在一个公共屏幕上.
#k的值是怎么影响到图形的形状的
#k小于0时, 函数递减, 只有一个根
#k向0移动, 函数图像开始逆时针旋转, 并且开始弯曲, 靠近0时开始有多个根
#k大于0时, 又开始伸展,
#(b)求f'(x). 正如你知道的, f'(x)是一个二次函数, 求该二次函数的判别式. 对什么样的k值, 该判别式
#为正, 为零, 为负? 对什么k值f'有两个零点, 一个或,没有零点?
#说明k的值对f图形的形状有什么影响?
#f'(x) = 3*x**2 + k
#Δ = -4*3*k = -12k
#k>0时Δ... | [
"wwfxtt@gmail.com"
] | wwfxtt@gmail.com |
d954433fc734887cf2bed62499ea0205cefd66a3 | 30b97efb2f36f81aa684d16d19e0e2db17f2967d | /기타/2468.py | 05d75b8ff59e165f6298ad243ba4d49c20202b24 | [] | no_license | jmseb3/bakjoon | 0a784a74c6476ef51864e2ada9d2551c7c7979eb | a38db54e851372059b0e45add92e43e556835e62 | refs/heads/main | 2023-08-25T08:43:04.579785 | 2021-10-01T08:40:37 | 2021-10-01T08:40:37 | 362,287,450 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from collections import deque
N = int(input())
maps = []
max_len = 0
for _ in range(N):
temp = list(map(int, input().split()))
max_len = max(max_len, max(temp))
maps.append(temp)
moves = [(-1, 0), (1, 0), (0, 1), (0, -1)]
ans = 0
def bfs(y, x, ck, visited):
q = deque()
q.append((y, x))
visite... | [
"jmseb3@naver.com"
] | jmseb3@naver.com |
e1ecdb9dddc1bcdc4da805d75772b02eead18e04 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/LIVINGSTON-PM4-MIB.py | aa942223a96f63f216f498a166e8bc9c5381dac9 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 135,200 | py | #
# PySNMP MIB module LIVINGSTON-PM4-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LIVINGSTON-PM4-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:07:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
49307e4030a27ff3a99f09bee2dfa9b7677a0bfa | 6109a95a284891792c35d0d19906ab8d1697f9c7 | /src/datamigration/azext_datamigration/vendored_sdks/datamigration/operations/_database_migrations_sql_mi_operations.py | 442a15827c7342be590b73150c6bde88654f882a | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Tatsinnit/azure-cli-extensions | 3e5a1752edced00d7c33660027d2c17fae074569 | a1959b123d4c11149adae2728ab5791949889d54 | refs/heads/master | 2022-10-05T17:40:10.825889 | 2022-03-16T10:33:56 | 2022-03-16T10:33:56 | 250,102,909 | 0 | 0 | MIT | 2020-03-25T22:12:01 | 2020-03-25T22:12:01 | null | UTF-8 | Python | false | false | 26,682 | 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"
] | Tatsinnit.noreply@github.com |
931dd466a1df578c537a95a690a9c0529161c7ba | 6553f98336fa296ca4faa6e3e247c0a343d883f3 | /yolo/utils.py | c639349f2c4306f0ce792157149cee22126cc8ce | [] | no_license | DableUTeeF/algea | 5341a529534e26f1d7ae4ad71d064f32f8f0aba5 | 3a34c796bdddd07f2ab17811fe472cdce6d9207a | refs/heads/master | 2020-08-29T12:27:39.566480 | 2019-11-08T02:41:03 | 2019-11-08T02:41:03 | 218,030,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,045 | py | import numpy as np
import os
import xml.etree.ElementTree as ET
import csv
import cv2
# from keras.optimizers import Optimizer
# from keras import backend as K
import copy
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from six import raise_from
import csv
import sys
import os.path
def _p... | [
"palm22180@gmail.com"
] | palm22180@gmail.com |
84f29f68b65af4c479188bad5fe13eb540caa362 | 7fac5e7216c8f4328f21a14f9e222005890a57f8 | /11_Actor_Critic_Advantage/refactor/CartPole/network.py | a91406a51ae6f89da620c63ac4298837c272d612 | [] | no_license | ZhangRui111/MorvanRL | bee77d644df50ce9900be6ec7d702c395238fae4 | ad443d56314427aa9ebe4af552dde0f5470da967 | refs/heads/master | 2021-04-14T12:05:14.657272 | 2019-03-26T02:28:31 | 2019-03-26T02:28:31 | 126,663,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | import numpy as np
import tensorflow as tf
def build_actor_network(n_features, n_actions, lr):
s = tf.placeholder(tf.float32, [1, n_features], "state")
a = tf.placeholder(tf.int32, None, "act")
td_error = tf.placeholder(tf.float32, None, "td_error") # TD_error
with tf.variable_scope('Actor'):
... | [
"zhangruisg111@163.com"
] | zhangruisg111@163.com |
e0b1b9862bfdcbcd85808a3da492258a9d3be3b4 | 05148c0ea223cfc7ed9d16234ab3e6bb40885e9d | /Packages/matplotlib-2.2.2/examples/units/basic_units.py | be07f0c9fce57fe2c456d751270dfbe77b983ac9 | [
"MIT"
] | permissive | NightKirie/NCKU_NLP_2018_industry3 | 9ee226e194287fd9088429f87c58c874e050a8b3 | 23ac13644b140587e23cfeffb114c7c6f46f17a2 | refs/heads/master | 2021-06-05T05:33:09.510647 | 2018-07-05T10:19:47 | 2018-07-05T10:19:47 | 133,680,341 | 1 | 4 | MIT | 2020-05-20T16:29:54 | 2018-05-16T14:43:38 | Python | UTF-8 | Python | false | false | 10,875 | py | """
===========
Basic Units
===========
"""
import six
import math
import numpy as np
import matplotlib.units as units
import matplotlib.ticker as ticker
from matplotlib.axes import Axes
from matplotlib.cbook import iterable
class ProxyDelegate(object):
def __init__(self, fn_name, proxy_type):
self.pr... | [
"qwer55113322@gmail.com"
] | qwer55113322@gmail.com |
5db9f1bb82aaada88a79243dab0be796299f41e9 | a1d8fefb84ce2f69ebce5fedcdf5262ba0005a5f | /zvt/recorders/eastmoney/meta/china_stock_category_recorder.py | a0a6b9c47e284491ad80a9fade92202ba428d1f4 | [
"MIT"
] | permissive | vinhphu3000/FinanceCenter | f2c827ffe268421011682ed45375f55ac6ddc54a | 1511751fe6d7d1f1fb940ae66d29b45eb0782fea | refs/heads/master | 2023-03-30T19:55:17.124679 | 2021-03-27T11:40:18 | 2021-03-27T11:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py | # -*- coding: utf-8 -*-
import pandas as pd
from numba import njit
from zvt import zvt_config
from zvt.api.data_type import Region, Provider, EntityType
from zvt.api.quote import china_stock_code_to_id
from zvt.domain import BlockStock, BlockCategory, Block
from zvt.contract.api import df_to_db
from zvt.contract.recor... | [
"doncat99@gmail.com"
] | doncat99@gmail.com |
a25196a8f29cc48a0abcab0af5d74810790319c3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/470/usersdata/281/112524/submittedfiles/Av2_Parte3.py | a4b0c34470239c11ef1a33686d04422e6413ad37 | [] | 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 | 477 | py | # -*- coding: utf-8 -*-
m=int(input('Digite a quantidade de listas desejada: '))
for i in range(0,m,1):
lista=[]
n=int(input('Digite a quantidade de elementos da %d lista: ' %(i+1)))
for i in range(0,n,1):
lista.append(int(input('Digite o %d elemento dessa lista: ' %(i+1))))
media=sum(lista)/len... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
aca102ba379f86d774530313c359be0ea25547c8 | 747f759311d404af31c0f80029e88098193f6269 | /extra-addons/hr_attendance_analysis/interface.py | 01271421ed420fa708a35f11eb536752ed1a9217 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Clock Reader for OpenERP
# Copyright (C) 2004-2009 Moldeo Interactive CT
# (<http://www.moldeointeractive.com.ar>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribu... | [
"geerish@omerp.net"
] | geerish@omerp.net |
1648baed214078a8926589e49711518dd6f5a517 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/220/users/4258/codes/1647_2445.py | e74ad3e0112c554a5f274784d793ec04694fb134 | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | escala = input("Escolha C para Celsius, ou F para Fahrenheit: ")
temp = float(input("Temperatura: "))
c = (5/9)*(temp - 32)
f = ((9/5)*temp) + 32
if(escala == "C"):
print(f)
if(escala == "F"):
print(c) | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
21b8c9f44927459be125440bea1eff530f530da0 | 040236bf3bb45826c0bbc39e7432512ff420a0d1 | /geomk/api/serializers.py | 6c022a859e6e149bbc1d0f638e27c128eb57e92b | [] | no_license | ThiagoDiasV/parking-lot-api | 2768baf8921b9dc087616def8c93ccc4f2fe8cf5 | 5cb3f687099bea59740b0034aeebf9a65b791358 | refs/heads/master | 2022-12-13T02:25:50.754524 | 2020-02-12T12:08:32 | 2020-02-12T12:08:32 | 232,959,041 | 4 | 3 | null | 2022-03-08T21:10:08 | 2020-01-10T03:36:52 | Python | UTF-8 | Python | false | false | 991 | py | from .models import Car
from rest_framework import serializers
class CarSerializer(serializers.ModelSerializer):
class Meta:
model = Car
fields = "__all__"
read_only_fields = ["entry_time", "left_time", "time", "paid", "left"]
def create(self, validated_data: dict) -> Car:
"""... | [
"thiago76ers@gmail.com"
] | thiago76ers@gmail.com |
769afb7623da0289c6dc97015f9e4fa301f95254 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/mzm.py | 3ec62cfc159dc28f0f1be15728991241acff646f | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
27da08cfa78217f9a5c0fc73b6cccf72ff2e25ac | 69a2f0c4419d0bf39d2fe46e8ff2ee117eaf237a | /mutilprocess/test.py | 5b992fe9cd521106dc327da20aafd0555f827fc5 | [] | no_license | lxy5513/python | 7da339e8ef6e2fa827e2da723c0f4e3595e11e04 | 228c3e631e642228de659e68f98ea938bcb2509f | refs/heads/master | 2020-03-27T03:21:03.582842 | 2020-01-17T00:39:57 | 2020-01-17T00:39:57 | 145,855,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import multiprocessing
import time
import collections
Queue = collections.deque(maxlen=10)
def consume(interval):
while True:
print("Queue: ", Queue)
if len(Queue) == 0:
print("no data")
time.sleep(0.5)
else:
num = Queue.pop()
print("Num: ", ... | [
"lxy5513@gmail.com"
] | lxy5513@gmail.com |
883182e36ae3c57c73a7b281ee795b79299603a9 | 191fbcc96b9f0c74b88b001003f024064c973753 | /gateware/rtl/platform/syzygy/boson.py | 8ca2d666a8022c603a68c64631c4c2278825ce82 | [
"BSD-2-Clause"
] | permissive | gregdavill/boson-eth-firmware | f0b5895469260e414b90cd7e7e0fad37a5728159 | 056843c43fac6486114bfb916fb78a4f7d38e87c | refs/heads/main | 2023-08-24T12:55:10.648741 | 2021-10-15T00:28:16 | 2021-10-15T00:28:16 | 374,504,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | # This file is Copyright (c) 2020 Gregory Davill <greg.davill@gmail.com>
# License: BSD
from litex.build.generic_platform import *
def boson_syzygy_r0d1(syzygy_id=0):
_id = f'SYZYGY{syzygy_id}'
return [
("Boson", 0,
Subsignal("data", Pins(f'{_id}:S27 {_id}:P2C_CLKN {_id}:D5P {_id}:S26 \
... | [
"greg.davill@gmail.com"
] | greg.davill@gmail.com |
00d0a14e123abd54a6e59a43184ae690361ef49d | acbb6e1e33cf2c5dae45c73e3d07723ce21f1cf9 | /migrations/versions/ad4630b5d9d4_followers.py | 6b6dd161cc165a486f3c1637ff7b444302d21143 | [] | no_license | Tur-4000/microblog | 24edde54599937bc97bf782861868fea0f57814e | 24de02ed7c1d417b68171079dc366833f7d2e6c7 | refs/heads/master | 2022-05-25T22:16:10.609591 | 2018-08-02T20:34:40 | 2018-08-02T20:34:40 | 141,682,858 | 1 | 0 | null | 2022-05-25T00:20:33 | 2018-07-20T08:05:00 | Python | UTF-8 | Python | false | false | 840 | py | """followers
Revision ID: ad4630b5d9d4
Revises: 6f99f9ee47c0
Create Date: 2018-07-24 17:35:58.696784
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ad4630b5d9d4'
down_revision = '6f99f9ee47c0'
branch_labels = None
depends_on = None
def upgrade():
# ### ... | [
"tur.4000@gmail.com"
] | tur.4000@gmail.com |
b54dbcbba5b87d5e208a4286878095d159ab7260 | 4f75cc33b4d65d5e4b054fc35b831a388a46c896 | /test_watchlist.py | 395cd36afd93c199d6f54cfb098279bd0d6044b4 | [] | no_license | Lr-2002/newpage | c3fe2acc451e24f6408996ea1271c61c321de702 | c589ad974e7100aa9b1c2ccc095a959ff68069b6 | refs/heads/main | 2023-09-03T06:13:53.428236 | 2021-11-23T10:41:21 | 2021-11-23T10:41:21 | 402,606,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,048 | py | from os import name
from re import A, T
import unittest
from app import app, db, Movie, User
class WatchlistTestCase(unittest.TestCase):
def setUp(self):
app.config.update(
TESTING = True,
SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
)
db.create_all()
... | [
"2629651228@qq.com"
] | 2629651228@qq.com |
9dedcdee6a2d68515c547bd4a1b13efe3b23bdce | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/dnspython-1.15.0/examples/ddns.py | f351524ee738290cfe64177208bb0df88bbff61f | [
"LicenseRef-scancode-warranty-disclaimer",
"ISC",
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 1,204 | py | #!/usr/bin/env python
#
# Use a TSIG-signed DDNS update to update our hostname-to-address
# mapping.
#
# usage: ddns.py <ip-address>
#
# On linux systems, you can automatically update your DNS any time an
# interface comes up by adding an ifup-local script that invokes this
# python code.
#
# E.g. on my systems I have... | [
"yingchen@cloudera.com"
] | yingchen@cloudera.com |
499388b2165572001dc1138029488a7777cf7e8c | 45fdc51cf264bbd50e59655440eefc91451c50ea | /text/src/textwrap_dedent.py | 5084ccaedb083bd8a9ae1878d3c3217339c0efd4 | [] | no_license | blindij/python3_stl | 2163043f3a9113eac21a48a35685a4a01987e926 | ea138e25f8b5bbf7d8f78e4b1b7e2ae413de4735 | refs/heads/master | 2021-12-24T20:37:54.055116 | 2021-09-29T13:37:38 | 2021-09-29T13:37:38 | 191,508,648 | 0 | 0 | null | 2019-08-27T15:45:53 | 2019-06-12T06:10:30 | Python | UTF-8 | Python | false | false | 142 | py | import textwrap
from textwrap_example import sample_text
dedented_text = textwrap.dedent(sample_text)
print('Dedented')
print(dedented_text)
| [
"blindij@users.noreply.github.com"
] | blindij@users.noreply.github.com |
2eb81e6bc89d77f0ee7640edaec9543348a8f465 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/315/101991/submittedfiles/minha_bib.py | 37dfe39276605bb65b991985c20942c3898a1b93 | [] | 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 | 3,182 | py | # -*- coding: utf-8 -*-
import random
#Simbolo que o Jogador quer utilizar
def solicitaSimbolodoHumano(a):
a = input('\nQual símbolo você deseja utilizar no jogo? ')
while a!='O' and a!='X' and a!='o' and a!='x':
a = input('\nQual símbolo você deseja utilizar no jogo? ')
if a == 'x' or a =='X':
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
80de93ce6ac31685b8012386a62622a1db6f1fc7 | aa9297175621fcd499cad5a0373aaad15f33cde8 | /impractical_py_projects/04/null_cipher_finder.py | 217c00b8e15b8e5e7cc33e404b729d1f1166c3ca | [] | no_license | eflipe/python-exercises | a64e88affe8f9deb34e8aa29a23a68c25e7ba08a | b7a429f57a5e4c5dda7c77db5721ca66a401d0a3 | refs/heads/master | 2023-04-26T19:19:28.674350 | 2022-07-19T20:53:09 | 2022-07-19T20:53:09 | 192,589,885 | 0 | 0 | null | 2023-04-21T21:23:14 | 2019-06-18T18:06:14 | HTML | UTF-8 | Python | false | false | 1,433 | py | import sys
import string
def load_text(file):
"""Load a text file as a string"""
with open(file) as f:
file = f.read().strip()
return file
def sole_null_cipher(message, lookahead):
for i in range(1, lookahead+1):
plaintext = ''
count = 0
found_first = False
... | [
"felipecabaleiro@gmail.com"
] | felipecabaleiro@gmail.com |
14378df2d496adc2ab62a597cefb735979db3c8d | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/muahangtructuyencomvn.py | e3ab3bbbf0f13987eaeba9a31f3ed5a9bd875132 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='product-info']/h1[@class='mainbox-title']",
'price' : "//div[@class='product-info']/div[@class='clear']/p/span/span/span... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
ee57f682e295cbfd9747da50306e7deadad5f554 | b66e70a8bb3c53595acd01dceb23298694884b67 | /cloudy/cloudy/models.py | 92cd7f135177bdbc3b72c907c8741df29eb2c148 | [] | no_license | flupke/cloudy-release | d7735a38d79f816c52da3d983c714512a32919b1 | 6b160188a7067f125b107eb68dc8db4bbb4bfdf4 | refs/heads/master | 2016-09-06T05:23:40.856287 | 2013-02-23T18:17:16 | 2013-02-23T18:17:16 | 8,377,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | from django.db import models
class SshIdentity(models.Model):
name = models.CharField(max_length=256)
public = models.TextField()
private = models.TextField()
class HostsGroup(models.Model):
name = models.CharField(max_length=256)
ssh_user = models.CharField(max_length=32, blank=True)
ssh_... | [
"luper.rouch@gmail.com"
] | luper.rouch@gmail.com |
b69d77bed712f5e5879450544915df9006afc0cc | 40b31d45c216a876843b9285be626180e7e989c9 | /novaagent/__init__.py | a46e74db9c3f0d040015cbc7e988088a38ea173b | [
"Apache-2.0"
] | permissive | inflatador/nova-agent | 7221d492f35d4862e482e3803358a514e6a012d4 | c0449d500166f4adf3cd753dddb7c67087260bb1 | refs/heads/master | 2020-03-23T13:44:16.624566 | 2018-06-28T19:58:18 | 2018-06-28T19:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py |
__version__ = '2.1.14'
| [
"david.kludt@rackspace.com"
] | david.kludt@rackspace.com |
6adc753cf5c0b93e22a7d940f84597658076e3fa | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /F/FindResultantArrayAfterRemovingAnagrams.py | b380d59a74a054967ffe8ad6c2e2113609d1576b | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | '''
-Easy-
You are given a 0-indexed string array words, where words[i] consists of lowercase English letters.
In one operation, select any index i such that 0 < i < words.length and words[i - 1] and words[i] are anagrams, and delete words[i] from words. Keep performing this operation as long as you can select an in... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
ce2343c09e39f921202647e30c1bfea5cae7d3a8 | 463c053bcf3f4a7337b634890720ea9467f14c87 | /rllib/examples/deterministic_training.py | 3a0a9c725acda75ce6b9cd7557c4fb04fd59a650 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 2,464 | py | """
Example of a fully deterministic, repeatable RLlib train run using
the "seed" config key.
"""
import argparse
import ray
from ray import tune
from ray.rllib.examples.env.env_using_remote_actor import (
CartPoleWithRemoteParamServer,
ParameterStorage,
)
from ray.rllib.policy.sample_batch import DEFAULT_POLI... | [
"noreply@github.com"
] | pdames.noreply@github.com |
f9ac252177ad6e419233ca977c739c8b9a08c30c | 4bf5a16c17f888d5e0a2b043a6b752a6111824fd | /src/biotite/structure/util.py | 34495270dbcba6c8b3f79077462e59bc1fe60708 | [
"BSD-3-Clause"
] | permissive | AAABioInfo/biotite | 1b0e8c6d6fbc870ff894fc1ae91c32fe6568aed3 | 693f347534bcf2c8894bbcabf68c225c43190ec6 | refs/heads/master | 2022-07-06T01:15:25.373371 | 2020-05-18T13:27:01 | 2020-05-18T13:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
"""
Utility functions for in internal use in `Bio.Structure` package
"""
__name__ = "biotite.structure"
__author__ = "Patrick Kunzmann"
__all__ = ["vector_dot", "n... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
742ed5a7da53469a0161d9225e9841a8d8cd06b4 | 90ec9a009d84dd7eebbd93de4f4b9de553326a39 | /app/customer/views.py | f18aa6381cc21c8fb4bfde7ab8a60775f87a3157 | [] | no_license | alexiuasse/NipponArDjango | 18a86bb108b9d72b36c8adf7c4344398cc4ca6b2 | ddc541a8d7e4428bde63c56f44354d6f82e0f40d | refs/heads/master | 2023-08-03T12:16:56.431870 | 2021-07-15T23:43:33 | 2021-07-15T23:43:33 | 278,093,323 | 0 | 0 | null | 2021-09-22T20:04:15 | 2020-07-08T13:13:22 | CSS | UTF-8 | Python | false | false | 7,674 | py | # Created by Alex Matos Iuasse.
# Copyright (c) 2020. All rights reserved.
# Last modified 24/08/2020 17:44.
from typing import Dict, Any
from django.contrib.admin.utils import NestedObjects
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from django.shortcuts import render
from ... | [
"alexiuasse@gmail.com"
] | alexiuasse@gmail.com |
a7c26984aed690a4bffc47db05dcfca2eaafb289 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/MaximumNestingDepthofTwoValidParenthesesStrings.py | 67d4f477e9fa483c28fe2874e85607452ffd9d93 | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | """
A string is a valid parentheses string (denoted VPS) if and only if it consists of "(" and ")" characters only, and:
It is the empty string, or
It can be written as AB (A concatenated with B), where A and B are VPS's, or
It can be written as (A), where A is a VPS.
We can similarly define the nesting depth depth(S)... | [
"here0009@163.com"
] | here0009@163.com |
f7dd8f55dc709f693b0211d8fcd73662147731f0 | 5574620c834f96d4baf50d6aa349242dae7c17af | /41.first-missing-positive.py | 76b5ddd14a2ff4b66c5f2817265ba08c132b15ab | [] | no_license | Ming-H/leetcode | 52dceba5f9a605afbdaa65e286a37205873e21bb | 057cee4b830603ac12976ed7d5cea8d06a9b46a0 | refs/heads/main | 2023-09-02T21:30:48.796395 | 2023-09-01T01:59:48 | 2023-09-01T01:59:48 | 489,290,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #
# @lc app=leetcode id=41 lang=python3
#
# [41] First Missing Positive
#
class Solution:
def firstMissingPositive(self, nums):
"""
不能用额外空间,那就只有利用数组本身,跟Counting sort一样,
利用数组的index来作为数字本身的索引,把正数按照递增顺序依次放到数组中。
即让A[0]=1, A[1]=2, A[2]=3, ... , 这样一来,最后如果哪个数组元素
违反了A[i]=i+1即说明i+1就是我... | [
"1518246548@qq.com"
] | 1518246548@qq.com |
d28bf400e50f8c6d766ed1c1fb8dc15f1e4e723f | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/trailing_comma_tuple.py | a832ccc28973265a5df8150f54034ca8fc5a239a | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 732 | py | """Check trailing comma one element tuples."""
# pylint: disable=bad-whitespace, missing-docstring
AAA = 1, # [trailing-comma-tuple]
BBB = "aaaa", # [trailing-comma-tuple]
CCC="aaa", # [trailing-comma-tuple]
FFF=['f'], # [trailing-comma-tuple]
BBB = 1, 2
CCC = (1, 2, 3)
DDD = (
1, 2, 3,
)
EEE = (
"aaa",
)
de... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
283575d0431210f70f269274660f9a4d6ba55839 | 667c324c7e8ac6a38cc91cd8ec4921a0dc9a0492 | /backend/accounts/models.py | 1340ee3158c537192b304432dd0f40f65bb50e5d | [] | no_license | litvaOo/elmy-clone | 86fdf80fff91642c088fa3cee50bd4ad32518afd | eb30b5fd2eb8cfc177f3c6fec53d61722c7fe9cd | refs/heads/master | 2021-05-08T02:33:48.277250 | 2017-10-23T16:11:21 | 2017-10-23T16:11:21 | 108,006,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class ServiceProvider(models.Model):
rating = models.DecimalField(max_digits=2, decimal_places=1)
description = models.CharField(max_length=1000)
latitude = models.FloatField(default=0)
longitude = models.FloatField(defau... | [
"alexander.ksenzov@gmail.com"
] | alexander.ksenzov@gmail.com |
8bac119f9df15d577d94fded7585b260efde9cc7 | a563a95e0d5b46158ca10d6edb3ca5d127cdc11f | /tccli/services/captcha/captcha_client.py | 8382673aac4f34d3d54b5528b41376e67b95efa9 | [
"Apache-2.0"
] | permissive | SAIKARTHIGEYAN1512/tencentcloud-cli | e93221e0a7c70f392f79cda743a86d4ebbc9a222 | d129f1b3a943504af93d3d31bd0ac62f9d56e056 | refs/heads/master | 2020-08-29T09:20:23.790112 | 2019-10-25T09:30:39 | 2019-10-25T09:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,063 | py | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from ... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
973985b9f213204d6193613b33715c89be7142b6 | 555b9f764d9bca5232360979460bc35c2f5ad424 | /google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2.py | 1ee3878ce83414b2d29fbf7d33f34fba67bb97ed | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | juanmacugat/google-ads-python | b50256163782bc0223bcd8b29f789d74f4cfad05 | 0fc8a7dbf31d9e8e2a4364df93bec5f6b7edd50a | refs/heads/master | 2021-02-18T17:00:22.067673 | 2020-03-05T16:13:57 | 2020-03-05T16:13:57 | 245,215,877 | 1 | 0 | Apache-2.0 | 2020-03-05T16:39:34 | 2020-03-05T16:39:33 | null | UTF-8 | Python | false | true | 5,671 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v1/proto/services/operating_system_version_constant_service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor... | [
"noreply@github.com"
] | juanmacugat.noreply@github.com |
b30622071ac8d8b8f022702c199e4e3e3d14d14c | 9ed05e94ad0779adda724a15591c459f47cd083a | /scripts/visualize_genomic_elements.py | f07cf8f8c747c5756efd2bcd74e54120f5620300 | [
"BSD-3-Clause"
] | permissive | greenelab/tad_pathways | b9dad990a21dc30bb01fe9e6e8ed294ac9af18c7 | c871d99c6d73cc68f58ef89fffbc9b6bbefe416c | refs/heads/master | 2023-08-01T00:11:16.873202 | 2017-04-21T17:37:06 | 2017-04-21T17:37:06 | 65,410,058 | 1 | 2 | null | 2017-04-21T17:37:07 | 2016-08-10T19:21:20 | Python | UTF-8 | Python | false | false | 13,030 | py | """
2016 Gregory Way
scripts/visualize_genomic_elements.py
Description:
Summarizes the location of genomic elements across TADs
Usage:
Is called by 'scripts/visualize.sh' which is run inside of
'scripts/run_pipeline.sh'. This particular script will output the location
of genomic elements in a given input TAD
p... | [
"noreply@github.com"
] | greenelab.noreply@github.com |
69e1dec6b346397c1857340caf4299600c26a600 | 2fe8194db578820629740e7022326355ef76632a | /instaladores/migrations/0004_merge_20201128_1647.py | 52b65ade950c986c1f9bf531762ba99d0d9e0cfe | [] | no_license | Aleleonel/newloma | 01213a14036aa7437b5951b8bb7ef202de6b86c2 | 7910c5b3170b953134240536b6e5376c96382266 | refs/heads/master | 2023-01-18T19:15:08.890658 | 2020-11-28T20:22:48 | 2020-11-28T20:22:48 | 312,459,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # Generated by Django 3.1.3 on 2020-11-28 19:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('instaladores', '0003_instaladores_email'),
('instaladores', '0002_auto_20201122_1232'),
]
operations = [
]
| [
"you@example.com"
] | you@example.com |
d90fb9bc6062203554935aaa9d2091c9aa8edcdb | 72579db4299be6d512a766ce38ae50e3c7753368 | /.history/Pythonlearning/day9_20200802091221.py | c5ab6ce577d7bd4429235686a4956391bbf742ca | [] | no_license | moteily/Python_Learning | f0d1abf360ad417112051ba52f32a141452adb2d | c294aa1e373254739fb372918507cd7dbe12c999 | refs/heads/master | 2022-11-26T11:09:48.145308 | 2020-08-04T08:47:15 | 2020-08-04T08:47:15 | 284,379,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #接上一天的第九章
# 静态方法和类方法:
# 定义和表示:静态方法和类方法
class Myclass:
def smeth():
print('This is a static method')\
smeth = staticmethod(smeth)
def cmeth(cls) | [
"994283977@qq.com"
] | 994283977@qq.com |
5fba23b3bfb05e91ac578ebeb773c34c16a2d760 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoEgamma/EgammaIsolationAlgos/python/eleTrackExtractorBlocks_cff.py | a0465cbb16938dc958035bcbba12f0a0b49dbf37 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 643 | py | import FWCore.ParameterSet.Config as cms
EleIsoTrackExtractorBlock = cms.PSet(
ComponentName = cms.string('EgammaTrackExtractor'),
inputTrackCollection = cms.InputTag("generalTracks"),
DepositLabel = cms.untracked.string(''),
Diff_r = cms.double(9999.0),
Diff_z = cms.double(0.2),
DR_Max = cms.d... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
0f679e9becb942faabe154fdacf30c7f881b2d4f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/671.py | 42a2e415e2dafaa7888c38febad69fbcb7a3fdab | [] | 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,988 | py |
FILE_NAME = 'C-large';
INPUT_FILE = FILE_NAME+'.in';
OUTPUT_FILE = FILE_NAME+'.out';
def algorithm(N, K):
segments = [N]
while K > 0:
segments.sort(reverse=True)
biggest_segment = segments[0]
del segments[0]
if(biggest_segment % 2 == 0):
left = biggest_segment / 2 - 1
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
be370b1c9635cd0f42269dd7fcec37bb899a703c | f0ef364ed2d20390ff76bc7c5b9506cb41ba2e71 | /widgets4py/websocket/examples/w2ui_toolbar_example.py | 9f430804dd5066d43512e58a6ed47619c6c1eb7f | [] | no_license | singajeet/widgets4py | 07c983e06d6101b6421bf96224fa1bcc3793f47a | e3ca6a459dee896af755278257a914efe04b1d11 | refs/heads/master | 2020-06-09T19:08:20.295781 | 2020-02-14T15:55:23 | 2020-02-14T15:55:23 | 193,489,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | import os
import webview
from flask import Flask # , url_for
from flask_socketio import SocketIO
from widgets4py.base import Page
from widgets4py.websocket.w2ui.ui import Toolbar, ToolbarButton, ToolbarCheck
from widgets4py.websocket.w2ui.ui import ToolbarHTML, ToolbarMenu, ToolbarMenuCheck
from widgets4py.websocket.w... | [
"singajeet@gmail.com"
] | singajeet@gmail.com |
cf2901edbd6511a02d111b4d1c700a63f479a31e | d27a97334691bd4dcce72f772b382aacda5ab26f | /tests/rdf_album.py | fe438dcfc34744a41d358fd2a69623c7dfcc289e | [] | no_license | qood/vgmdb | e238c19d437eeb609466504d2a5d92416f936987 | 978f2245be746ea37faed2707e56c6002b8a0426 | refs/heads/master | 2021-01-24T01:11:25.427263 | 2015-08-05T05:41:50 | 2015-08-05T05:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,611 | py | # -*- coding: UTF-8 -*-
import os
import datetime
import unittest
import decimal
from ._rdf import TestRDF
from vgmdb.parsers import album
from vgmdb.config import BASE_URL
from urlparse import urljoin
class TestAlbumsRDF(TestRDF):
data_parser = lambda self,x: album.parse_page(x)
outputter_type = 'album'
def setUp... | [
"hufman@gmail.com"
] | hufman@gmail.com |
23ee2ea3fb54a9d1d459ca0edb986191ba823dca | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week9/Efficiency/Sequencing.py | 5cd59f4ad5c2b4f90a8180536091d1c58517304a | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # what is the total cost here?
L = [ 52, 83, 78, 9, 12, 4 ] # assume L is an arbitrary list of length N
L.sort() # This is O(NlogN)
L.sort(reverse=True) # This is O(NlogN)
L[0] -= 5 # This is O(1)
print(L.count(L[0]) + sum(L)) # This is O(N) + O(N)
| [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
ee1620b5cccb60aa52d2725d3e10e369eb226f0f | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/suntimes/testcase/firstcases/testcase1_004.py | af83c435e940513a3fe6bb22542eaddd2ba85ec4 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
85d86a4f98edb5e00f54a8dadafebb34f0999ee8 | 60284a471e48e49e9b184305b08da38cbaf85c38 | /src/tests/ftest/datamover/posix_symlinks.py | fd9e6762fe298a9f0f9f8a40b9bffbe555cdb234 | [
"BSD-2-Clause-Patent",
"BSD-2-Clause"
] | permissive | minmingzhu/daos | 734aa37c3cce1c4c9e777b151f44178eb2c4da1f | 9f095c63562db03e66028f78df0c37f1c05e2db5 | refs/heads/master | 2022-05-10T17:23:32.791914 | 2022-02-28T18:44:50 | 2022-02-28T18:44:50 | 228,773,662 | 1 | 0 | Apache-2.0 | 2019-12-18T06:30:39 | 2019-12-18T06:30:38 | null | UTF-8 | Python | false | false | 9,058 | py | #!/usr/bin/python
'''
(C) Copyright 2020-2021 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
'''
from data_mover_test_base import DataMoverTestBase
from os.path import join
class DmvrPosixSymlinks(DataMoverTestBase):
# pylint: disable=too-many-ancestors
"""Test class for POSIX DataMover ... | [
"noreply@github.com"
] | minmingzhu.noreply@github.com |
ad3b703785a4e63fadd304fe931f34553ff93077 | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /tests/test_phl_cpu.py | 31e28bd39d8728b69f948db45d80ae5f98ade8d0 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 9,018 | py | # Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
723faaf18a590d38c7b2d7ddbf82a2f78035fdb4 | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/driver_unittest.py | f65b682fea8a8d1e1f1c13f0fda30331da23efb3 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 10,886 | py | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
9dbc5aad569ad45d58831448aa34a51bc8258984 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02996/s612893539.py | 7bab9fefb9759e4aca7500b4bfc54fe21ec5e098 | [] | 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 | 663 | py | import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2146132029e154c9162b74995f0cf34f0ef3342e | 60654caf2633613021470d0285817343f76223e5 | /daily_catch/public_update/config.py | 566a37dc4796f6f4c390e00778aea0555a926b77 | [] | no_license | whoiskx/com_code | 79460ccee973d1dfe770af3780c273e4a0f466c9 | 388b5a055393ee7768cc8525c0484f19c3f97193 | refs/heads/master | 2020-04-09T23:14:28.228729 | 2018-12-06T07:10:25 | 2018-12-06T07:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
import os
read_ver_url = 'http://dispatch.yunrunyuqing.com:38082/resources/sourceVersion/weixin/version.txt'
download_url = 'http://dispatch.yunrunyuqing.com:38082/resources/sourceVersion/weixin/public_update.zip'
base_path = os.path.dirname(os.path.abspath(__file__))
core_spider_path = os.pa... | [
"574613576@qq.com"
] | 574613576@qq.com |
0b313513a4e40c31df181c98f2e15203095458e5 | 9bfd93b93531c7d66335fffded2d00db0c1f8935 | /blog_censurfridns_dk/blog/translation.py | 9e8157edd7537f26fe16f55c391113b0d9039730 | [] | no_license | mortensteenrasmussen/blog.censurfridns.dk | 7d5da3961b6abf4124fddba7b1fdf5a4fc014c2c | 53939dee90ad5028256aace4c876d38695ec9e07 | refs/heads/master | 2021-01-14T14:23:17.443442 | 2016-08-29T20:11:22 | 2016-08-29T20:11:22 | 65,412,684 | 0 | 0 | null | 2016-08-10T20:03:31 | 2016-08-10T20:03:31 | null | UTF-8 | Python | false | false | 412 | py | from modeltranslation.translator import register, TranslationOptions
from .models import BlogPost
from taggit.models import Tag
@register(BlogPost)
class BlogPostTranslationOptions(TranslationOptions):
fields = ('title', 'body', 'slug')
required_languages = ('en', 'da')
@register(Tag)
class TaggitTranslatio... | [
"thomas@gibfest.dk"
] | thomas@gibfest.dk |
60de944ffe3715da94961884dba29a2e0af82137 | 2937d60b7f5259b4899ba5af08146bd874529a67 | /Assignment 5 q4.py | d9776a0e669e961e49153c7ebd3133b4fe52a833 | [] | no_license | gourav47/Let-us-learn-python | 9a2302265cb6c47e74863359c79eef5a3078358a | b324f2487de65b2f073b54c8379c1b9e9aa36298 | refs/heads/master | 2021-06-27T03:33:27.483992 | 2021-01-07T12:26:16 | 2021-01-07T12:26:16 | 204,323,390 | 1 | 1 | null | 2020-07-19T14:25:12 | 2019-08-25T16:53:56 | Python | UTF-8 | Python | false | false | 212 | py | '''python script to print square of numbers from a to b'''
a=int(input("Enter the first number: "))
b=int(input("Enter second number: "))
if a>b:
a,b=b,a
for i in range(a,b+1):
print(i**2,end=' ')
| [
"noreply@github.com"
] | gourav47.noreply@github.com |
e43dc1c4687a848c69bf66702ed69a995ab3c08f | 1291b1974904918accf29f87c2d303e679297e03 | /038comp2dates.py | 8f57b80d77fd8950587bb9796dea50f4a02bffb6 | [] | no_license | utkarsh192000/PythonAdvance | 853a594ed678c462d9604a8bd6300aa0449dd610 | e2e5f3059050b94f2e89ba681ddd6e3f01091b97 | refs/heads/master | 2023-04-05T09:42:34.942443 | 2021-04-04T19:07:18 | 2021-04-04T19:07:18 | 354,625,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py |
from datetime import *
d1=date(2021,3,23)
d2=date(2010,3,23)
print(d1<d2)
print(d1>d2)
print(d1==d2) | [
"iutkarshyadav192000@gmail.com"
] | iutkarshyadav192000@gmail.com |
d7c0d7693181b79f9f44abbeaedd2d8e7988f5ff | caa14cf78fe15affc96acc3de6f4fb1b54bcdf70 | /sap/sap/saplib/tests/test_saputils.py | 6eec437d874842f6cbed599b9adb923e141e3f69 | [] | no_license | jesstherobot/Sycamore_FPGA | 2e3f0dea21482de87ea444506ae2af3f58b5a344 | d1096e15f07b17a8dcb2276e312c5ba3e0006632 | refs/heads/master | 2021-01-18T07:57:14.268157 | 2011-10-19T22:46:28 | 2011-10-19T22:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,689 | py | import unittest
import sys
import os
class Test (unittest.TestCase):
"""Unit test for saputils"""
def setUp(self):
os.environ["SAPLIB_BASE"] = sys.path[0] + "/saplib"
#print "SAPLIB_BASE: " + os.getenv("SAPLIB_BASE")
def test_create_dir(self):
"""create a directory"""
import saputils
result = saputil... | [
"cospan@gmail.com"
] | cospan@gmail.com |
f7ecbb6e60d58f81414014d4eb23c770a0e6acd9 | c4a8e44b171bbfcce4773fbd5820be40d991afab | /dispatcher_sample.fcgi | 299c4ad0e1726445c0909f317429f2fd66a4824f | [
"MIT"
] | permissive | sveetch/DjangoSveetchies | a2462c29839d60736077f647b3014396ce700f42 | 0fd4f23d601287dbfb5a93b4f9baa33481466a25 | refs/heads/master | 2021-01-01T20:48:08.824288 | 2013-03-10T12:14:56 | 2013-03-10T12:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | fcgi | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
FastCGI dispatcher for development environment
"""
import sys, os
sys.path.insert(0, '/home/django/py_libs') # An optionnal path where is installed some Python libs
sys.path.insert(0, '/home/django/gits/') # Path to the directory which contains 'DjangoSveetchies'
# Specif... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
524a64d718c9a87331dcd95f4b5511761a102a97 | 3e397609ebd59d50ed0f9928e6bd039030e35f9a | /contract_api/lambda_handler.py | 4757ef1411c05ce3dff3425d4a41156dd03276bb | [] | no_license | prashantramangupta/marketplace | d8f64462668f1bb15c37fd52c17236d7565e5ae5 | acae91d90ec8626bc79ae46168c37a4d8bbab46a | refs/heads/master | 2020-06-05T15:48:19.063615 | 2019-06-26T05:28:16 | 2019-06-26T05:28:16 | 159,120,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,511 | py | import json
import logging
import re
import traceback
from schema import Schema, And
from common.constant import NETWORKS
from common.repository import Repository
from mpe import MPE
from registry import Registry
NETWORKS_NAME = dict((NETWORKS[netId]['name'], netId) for netId in NETWORKS.keys())
db = dict((netId, Rep... | [
"you@example.com"
] | you@example.com |
ec204e589862d7db078962cf5fe0c41711f5cbcb | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Logit/trend_Lag1Trend/cycle_30/ar_12/test_artificial_32_Logit_Lag1Trend_30_12_20.py | b308b4cbc07f69e3c5a3e07412703d09b5786f7b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 266 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 30, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
699bfc4d77e051f4b0b9b95cde59fbb62b5cf72d | 4edbeb3e2d3263897810a358d8c95854a468c3ca | /python3/version/python_version.py | dec52afee6ab14dce005f6ae31bb0e544017de89 | [
"MIT"
] | permissive | jtraver/dev | f505d15d45b67a59d11306cc7252114c265f388b | 2197e3443c7619b856470558b737d85fe1f77a5a | refs/heads/master | 2023-08-06T02:17:58.601861 | 2023-08-01T16:58:44 | 2023-08-01T16:58:44 | 14,509,952 | 0 | 1 | MIT | 2020-10-14T18:32:48 | 2013-11-19T00:51:19 | Python | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python3
#!/usr/bin/python
import os
import platform
import sys
import aerospike
def main():
print("\nos")
print("os.name = %s" % str(os.name))
print("sys.platform = %s" % str(sys.platform))
print("platform.platform() = %s" % str(platform.platform()))
print("\npython")
print("sy... | [
"john@aeropsike.com"
] | john@aeropsike.com |
bffc4998a73a001af96ff4d89986c7f07ba844b4 | 65f94b2fe3794b6fd682e52c7f4047a737cae6c7 | /env/bin/symilar | f88c0874a96d9c0b5e2366b5b1482cc352a5092d | [] | no_license | udoyen/vgg-project-challenge | 47e7e0c5352437f3df00aff9ac055dbadaadebb5 | 76a005edec6e77f9467b67bda20002c58abef7a9 | refs/heads/master | 2022-10-04T14:42:46.267458 | 2020-02-11T10:47:22 | 2020-02-11T10:47:22 | 238,899,753 | 0 | 1 | null | 2022-09-16T18:17:10 | 2020-02-07T10:45:53 | Python | UTF-8 | Python | false | false | 276 | #!/home/george/Documents/vgg-docs/vgg-project-challenge/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"datameshprojects@gmail.com"
] | datameshprojects@gmail.com | |
bf1ede23da3e02e00b2cf1c77c17765bc71ab71a | b39d72ba5de9d4683041e6b4413f8483c817f821 | /GeneVisualization/ass1/Lib/site-packages/itk/itkAggregateLabelMapFilterPython.py | 0dbdcf699057bdee2b4e73071db281a38799bb72 | [] | no_license | ssalmaan/DataVisualization | d93a0afe1290e4ea46c3be5718d503c71a6f99a7 | eff072f11337f124681ce08742e1a092033680cc | refs/heads/master | 2021-03-13T05:40:23.679095 | 2020-03-11T21:37:45 | 2020-03-11T21:37:45 | 246,642,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,395 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkA... | [
"44883043+ssalmaan@users.noreply.github.com"
] | 44883043+ssalmaan@users.noreply.github.com |
19b0f1f8a7c09dc649e0cad037b8f1d8ebb8b242 | 81579ecd0678d652bbb57ff97529631fcfb74b12 | /corehq/motech/openmrs/tests/test_repeater_helpers.py | 83282f2a7427ec1fa865d3dd1356587c444939b9 | [
"BSD-3-Clause"
] | permissive | dungeonmaster51/commcare-hq | 64fece73671b03c1bca48cb9d1a58764d92796ea | 1c70ce416564efa496fb4ef6e9130c188aea0f40 | refs/heads/master | 2022-12-03T21:50:26.035495 | 2020-08-11T07:34:59 | 2020-08-11T07:34:59 | 279,546,551 | 1 | 0 | BSD-3-Clause | 2020-07-31T06:13:03 | 2020-07-14T09:51:32 | Python | UTF-8 | Python | false | false | 1,089 | py | from unittest import skip
from nose.tools import assert_regexp_matches
from corehq.motech.auth import BasicAuthManager
from corehq.motech.openmrs.repeater_helpers import generate_identifier
from corehq.motech.requests import Requests
DOMAIN = 'openmrs-test'
BASE_URL = 'https://demo.mybahmni.org/openmrs/'
USERNAME = ... | [
"nhooper@dimagi.com"
] | nhooper@dimagi.com |
2d9f94c5939c209e95cd90f452b218045cd65527 | 373c43096384a2ea7f351fdedc64312660a1c344 | /src/cli.py | f3ccd5fb4c85d42a6d92d16f6863a85c68bacb64 | [
"MIT"
] | permissive | VanirLab/weever | 7ad69c76227ac0981b1dd0570e3dbae4dd67de21 | b602e90ddecb8e469a28e092da3ca7fec514e3dc | refs/heads/master | 2020-05-27T20:57:48.320430 | 2019-05-27T09:02:33 | 2019-05-27T09:02:33 | 188,788,722 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 49,577 | py | """
Implementation of weever's command line interface.
"""
import sys
import traceback
import argparse
import logging
import getpass
import typing as typ
from src.wrapper.bad_cluster import BadClusterWrapper
from src.wrapper.cluster_allocation import ClusterAllocation
from src.fat.fat_filesystem.fat_wrapper ... | [
"noreply@github.com"
] | VanirLab.noreply@github.com |
dae9dc485e3fb180f377368fb642b0eeeb1004c6 | 1640189b5bf78114e2749a8ed1216e099bae9814 | /src/xmlsec/rsa_x509_pem/pyasn1/debug.py | 5aa42ced36ef65aadacddb629cebd74977b9d1a4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | hfalcic/pyXMLSecurity | fb69cce12c1b417928d85b91a4c3dc87f46935ec | b29a68e6d21a0485b9190be45d532b9042fdc918 | refs/heads/master | 2020-04-03T13:19:13.016532 | 2014-07-08T17:57:55 | 2014-07-08T17:57:55 | 21,471,398 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | import sys
from .compat.octets import octs2ints
from . import error
from . import __version__
flagNone = 0x0000
flagEncoder = 0x0001
flagDecoder = 0x0002
flagAll = 0xffff
flagMap = {
'encoder': flagEncoder,
'decoder': flagDecoder,
'all': flagAll
}
class Debug:
defaultPrinter = sys.stde... | [
"harvey.falcic@gmail.com"
] | harvey.falcic@gmail.com |
c9cbfca3f4c84cb5e219730e43194e7238cda653 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/358/usersdata/296/102792/submittedfiles/estatistica.py | 79ada402f0ec9ec03a71780b75717f4fa32662f5 | [] | 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 | 1,036 | py | # -*- coding: utf-8 -*-
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
def media(lista):
media = sum(lista)/len(lista)
return media
def desvio_padrao(lista):
somatorio = 0
for i in range (0,len... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9cab9dc37c46f3af6d44d688dd5c03fcf4425162 | 10c459a49cbc8ee2dc3bc2a8353c48b5a96f0c1d | /AI/nai_bayes.py | 131804de264e30fc0df16076a4ac00543533cbaf | [] | no_license | alinzel/Demo | 1a5d0e4596ab4c91d7b580da694b852495c4ddcc | cc22bbcdbd77190014e9c26e963abd7a9f4f0829 | refs/heads/master | 2020-03-10T22:26:30.247695 | 2018-04-15T15:37:28 | 2018-04-15T15:37:28 | 129,619,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,994 | py | import numpy as np
from sklearn.naive_bayes import MultinomialNB, BernoulliNB
from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import GridSearchCV
from sklearn import metrics
from time import time
from pprint import pprint
import ma... | [
"944951481@qq.com"
] | 944951481@qq.com |
080a6e7e8f5e0c897c92846f23df703ff1cf81f0 | a8750439f200e4efc11715df797489f30e9828c6 | /LeetCodeContests/87/845_longest_mountain.py | 141d5018c884992b88f6afeddcd2fd5ae122f0db | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | '''
Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold:
B.length >= 3
There exists some 0 < i < B.length - 1 such that B[0] < B[1] < ... B[i-1] < B[i] > B[i+1] > ... > B[B.length - 1]
(Note that B could be any subarray of A, including the entire array A.)
Given an array A of int... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
681440009127bf5750638d9a87a4155477b2fda3 | 43b34ed0be64771f236c086f716bc6a92ae3db32 | /kt_ph_n.py | 8073dcefb011746731594e8d83f99505915ad414 | [] | no_license | elonca/LWB-benchmark-generator | ad5b6dc5e591941184056476db3ad13f01900879 | 7a7f28800f7574c98a3883f6edccad727dd509bc | refs/heads/main | 2023-07-28T01:42:22.532324 | 2021-09-16T07:22:56 | 2021-09-16T07:22:56 | 407,061,367 | 0 | 0 | null | 2021-09-16T07:12:38 | 2021-09-16T07:12:37 | null | UTF-8 | Python | false | false | 135 | py | from k_ph_n import *
def kt_ph_n(n):
return str(kt_ph_n_f(n))[1:-1]
def kt_ph_n_f(n):
return left(n) |IMPLIES| Dia(right(n))
| [
"u6427001@anu.edu.au"
] | u6427001@anu.edu.au |
16b25ff5a3aed45017c060619a98e4dfce6a60d6 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_sp_outer/Jobs/Pc/Pc_neut_neut_inner1_outer4/Pc_neut_neut_inner1_outer4.py | 416385fcff412563b8446a40888f5125d9823323 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 5,279 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
5fbfc72f14ae2926b33488a6f8779cdf247fa0b7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_397/ch12_2020_03_04_11_23_47_173814.py | 6f4b82bd91b75fe7a2fadd6fbd05585a048320bf | [] | 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 | 61 | py | def resolve_equacao_1o_grau (a, b):
X=(0-b)/a
return X | [
"you@example.com"
] | you@example.com |
894482ee3334014d91285e7f29af8f4772c1e0bf | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/tools/cr/main.py | dced8cd4069ceea9d47ee5b9b17ca6fc164b8c81 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 3,092 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Chromium cr tool main module.
Holds the main function and all it's support code.
"""
import os
import sys
import cr
import cr.auto.user
import cr.autoco... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.