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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8493a1b631c82cd20a805041411a0ddabce63d0 | 5e5b8a66d35be6b86d3754069613fe49108a700d | /scripts/webquestions-preprocessing/paraphrase_rules.py | b8ff50290c2c4c922205a06b3aa5feddffdd7d10 | [
"CC-BY-4.0"
] | permissive | saraswat/graph-parser | e77f9880f38d1d23cf5aebb149be997d9c715745 | da8800503174dce0590a55b817cd024354e41d9e | refs/heads/master | 2021-01-11T09:01:50.414615 | 2016-12-23T13:17:59 | 2016-12-23T13:17:59 | 77,409,845 | 1 | 0 | null | 2016-12-26T22:26:28 | 2016-12-26T22:26:28 | null | UTF-8 | Python | false | false | 3,122 | py | '''
Created on 26 May 2014
@author: siva
'''
import json
import re
import sys
for line in sys.stdin:
line = json.loads(line)
# print line
# sentence = line['sentence']
sentence = " ".join([word["word"] for word in line["words"]])
if re.search(" do \?$", sentence):
# what did Einstein... | [
"siva@sivareddy.in"
] | siva@sivareddy.in |
e1a70889e373ca860d381781148acddcf9e13a57 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/cloudiot/v1beta1/cloudiot_v1beta1_client.py | b2ff82c30ed6816f1ea9058a0ee4fe9536f38a48 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 21,034 | py | """Generated client library for cloudiot version v1beta1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.cloudiot.v1beta1 import cloudiot_v1beta1_messages as messages
class CloudiotV1beta1(base_api.BaseApiClient):
""... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
e0f9e0cc67afaf29f291926c9c6aa95c05deb166 | 5792baf9e18ad91816cc42f4725b099a4dce7b7b | /HackerRank/Strings/Python sWap cASE.py | 9e524564145bac64f1ed70970b832d5b588f495a | [] | no_license | deepakorantak/Python | 83b6782db0b5428d47fbc29193076e8ed5f5e285 | 9781133ce5a5c6f87efb5d4aa132a63ba1290f76 | refs/heads/master | 2020-03-23T19:55:30.075700 | 2019-02-19T06:24:42 | 2019-02-19T06:24:42 | 142,010,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | def swap_case(s):
return str.swapcase(s)
if __name__ == '__main__':
s = input()
if len(s) > 0 and len(s) <= 1000:
result = swap_case(s)
print(result) | [
"DeepaNKorantak@Gmail.com"
] | DeepaNKorantak@Gmail.com |
d226826efc7925a38771ffa80e803b71f8684253 | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/test_overwrites.py | 6be0434f5d59a65c73dba6e837e5662c22636de7 | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import ast
from hypothesis import given
from hypothesis.strategies import text
from pystrict3lib import assert_unknown, preknown
def test_assert_unknown():
node = ast.parse("print('hello world')").body[0]
known = {}
assert_unknown("name", known, node, "filename")
def test_assert_known():
node = ast.parse("print(... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
50509f1fcaee6a8db649657d24ee5a29044b19e6 | 6932a9ae700a623f16a3aef417d0598cf6d4f389 | /karasu_speak.py | c8c028b30786e6c5b67abc979a0d40f60e63f06a | [
"MIT"
] | permissive | MuAuan/hirakegoma | 9f1a252d913749a2c16ae5bd7a8870550048d26d | 861879af1016c25b7a14bcabe543bfba47fd57f3 | refs/heads/master | 2020-04-27T20:12:25.315594 | 2019-03-24T12:38:30 | 2019-03-24T12:38:30 | 174,649,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | # -*- coding: utf-8 -*-
import cv2
import pyaudio
import sys
import time
import wave
import pydub
from pydub import AudioSegment
import moviepy.editor as mp
import datetime
import os
from vgg16_like import model_family_cnn
from keras.preprocessing import image
import matplotlib.pyplot as plt
import keras
import numpy a... | [
"noreply@github.com"
] | MuAuan.noreply@github.com |
fb94fc1597debf5a7a51e313349f8349d6bfb26d | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/_codecs.pyi | cc46a5a2b0b4513b177439dd5c53dfa3f3058b1e | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | pyi | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-jedi-0.17.0-zugnvpgjfmuk5x4rfhhxlsknl2g226yt/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/_codecs.pyi | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
be9cf6de41337a706ff9fa46d7816b99d1f552a0 | b306aab9dcea2dd83dda700bc9f7b9f1a32cff3a | /CAIL2021/slsb/main.py | f67c06674df00f1d0948662b5528d9c5174dd6c3 | [
"Apache-2.0"
] | permissive | Tulpen/CAIL | d6ca9981c7ea2603ae61675ba330a9614cd9398d | c4cfa98ab4ecedbce34a7a5a186830486047540c | refs/heads/master | 2023-04-23T20:07:56.774530 | 2021-04-16T13:18:36 | 2021-04-16T13:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | """Test model for SMP-CAIL2020-Argmine.
Author: Tsinghuaboy tsinghua9boy@sina.com
Usage:
python main.py --model_config 'config/bert_config.json' \
--in_file 'data/SMP-CAIL2020-test1.csv' \
--out_file 'bert-submission-test-1.csv'
python main.py --model_config 'config/rnn_c... | [
"bangtech@sina.com"
] | bangtech@sina.com |
10c5cd8101cff8672ef60125ceffa4769b4d7c27 | 21682f70ff130169d8800a06b1a6d8bf7f46e45a | /functions/decoraters/variablelengthargument/demo.py | 15d8a2f86e7c77c3241c3e719adc2bc1555f7f55 | [] | no_license | Aravind2595/MarchPythonProject | 03c3aeee40f5ff2c635861ac29f31a7633499d51 | 9aa9241632b7f96e7e1cb33b3adb7b8def36f1f8 | refs/heads/master | 2023-05-05T04:16:45.556737 | 2021-05-20T08:43:52 | 2021-05-20T08:43:52 | 368,791,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def add(*args): #muttiple argument passing ;it will also accept 0 argument
res=0 #* is important not 'args' eg: *hai or *arg=
for num in args:#argument will be stored in tuple format
res+=num
return res
print(add(10,20,30,40)) | [
"nairaravind95@gmail.com"
] | nairaravind95@gmail.com |
d0bbe41af3a825c8397a6ae8f3261c2be29c4625 | 15960f0aa40915ddc93cd5c8a840a4abfb167cf1 | /groups/models.py | 0fae1fa57df655ee1187afa7e7aea983641ef30c | [] | no_license | phouse512/piper | 74d815fd443482abc80418dbed678b1431e17eb9 | 70f651db8af4edb625f6ba249556d3c2d04a350b | refs/heads/master | 2022-05-04T20:36:56.354336 | 2018-12-19T04:28:23 | 2018-12-19T04:28:23 | 40,972,739 | 0 | 0 | null | 2018-11-17T16:56:21 | 2015-08-18T13:13:15 | Python | UTF-8 | Python | false | false | 399 | py | from django.db import models
from users.models import User
class Group(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=30)
class Meta:
db_table = 'groups'
class GroupMembership(models.Model):
id = models.AutoField(primary_key=True)
user = models.ForeignKey(User)
g... | [
"philiphouse2015@u.northwestern.edu"
] | philiphouse2015@u.northwestern.edu |
62d885e2dfc1f0c0f22c2711cb0bcfabeb0641b3 | 0942ec9cdda81f754d05ae9893605769ed5c1111 | /flask-video-streaming/camera_pi.py | f94a07a7875d2c5f6778403d01ea02da3986608e | [
"MIT"
] | permissive | sourceperl/rpi.webcam.pi3 | f9fa061bc05bab9720c9e372c96f65e431ad5673 | ea8559ca93f771250961a63fbe0f7acc3a7a2338 | refs/heads/master | 2020-12-25T14:38:24.234521 | 2016-07-21T14:56:01 | 2016-07-21T14:56:01 | 63,687,773 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | import time
import io
import threading
import picamera
class Camera(object):
thread = None # background thread that reads frames from camera
frame = None # current frame is stored here by background thread
last_access = 0 # time of last client access to the camera
def initialize(self):
if ... | [
"loic.celine@free.fr"
] | loic.celine@free.fr |
34179ff136b9b68223fd42cb9f5fbe54e95a88de | af0dcf80a36da4ac6894dc517ad1870f702c3122 | /azure-mgmt-web/azure/mgmt/web/models/csm_publishing_profile_options.py | 99b9542ab7d50b0a1d29b9d31f8743561ff5afa3 | [
"Apache-2.0"
] | permissive | FlavioAlexander/azure-sdk-for-python | 4c6151ca17886f9e4d47e1ccc469859abdedca5a | 8c7416749f9a5697e0311bc9af8fe5c0d524ca03 | refs/heads/master | 2021-01-24T02:34:37.194767 | 2016-07-03T23:47:23 | 2016-07-03T23:47:23 | 62,738,173 | 0 | 1 | null | 2016-07-06T16:54:12 | 2016-07-06T16:54:10 | null | UTF-8 | Python | false | false | 1,346 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
a560d10713bc976b978431314f53a75111c1555a | 3aa8222bb2edc93c9202ccbcf6f331cdf73cd5a2 | /FundRatingNSDL/nsdl_extraction/setup.py | ac0e1546b51b54b85c28ad5f48c2c3952b296cc5 | [] | no_license | pavithra-ft/ft-automation | a977809823e587efd596b02e3a8286f887d12116 | 946e1c35b785bfc3ea31d5903e021d4bc99fe302 | refs/heads/main | 2023-04-24T19:54:28.478577 | 2021-05-11T17:53:08 | 2021-05-11T17:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | # Automatically created by: scrapyd-deploy
from setuptools import setup, find_packages
setup(
name='project',
version='1.0',
packages=find_packages(),
entry_points={'scrapy': ['settings = nsdl_extraction.settings']},
)
| [
"64137264+pavithra-ft@users.noreply.github.com"
] | 64137264+pavithra-ft@users.noreply.github.com |
460f676c069089996fb607db849fb892c0b4ab8a | c2e16633921d1efe584d93d769eaa7892a2fd8f3 | /list,advanced/Messaging.py | aa33649a6ed9732f8fa8110516c633e59d131daa | [] | no_license | yosifnandrov/softuni-stuff | bd53d418fe143ea4633a5488c1f80648da0b9ef7 | 2a76e5aee2029edf901634750d28cf153d73ece3 | refs/heads/main | 2023-04-17T19:53:30.254790 | 2021-05-06T11:33:39 | 2021-05-06T11:33:39 | 364,884,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | number = input().split()
message = input()
def get_sum(n):
sum = 0
for i in n:
sum += int(i)
return sum
for i in number:
summary = get_sum(i)
for l in range(len(message)):
if l == summary:
print(message[l], end="")
message = message[0:l:] + message[l + 1::]
... | [
"yosif1993@abv.bg"
] | yosif1993@abv.bg |
c5420358fb87484239026919e290e881a7b4c6c4 | 2ce0c37ac7d9beeac23db688f97a1f502b92d13a | /store/models/store.py | 878b20d11d588de233e55c8908f1c894374734b0 | [] | no_license | AmrElsayedEG/inventory-system | 0cdb0634b33117b13bfcae8642f979448d831369 | d4bc483612c3b721918d75f24ab0d7fa29b78ce3 | refs/heads/main | 2023-08-20T22:32:25.113740 | 2021-10-04T08:55:44 | 2021-10-04T08:55:44 | 413,344,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.db import models
class Store(models.Model):
name = models.CharField(max_length=100)
address = models.CharField(max_length=200)
coordinates = models.JSONField(blank=True, null=True)
def __str__(self) -> str:
return self.name | [
"elsayed.amr50@gmail.com"
] | elsayed.amr50@gmail.com |
1e4fc17bed5f3bca085566203de7580dbe427874 | b5187b5ffd53a2cdc8ec6ed94effc39702c1ea31 | /loyalty_app/loyalty/doctype/sales_list/sales_list.py | 3f630555c69f95a1f081ba33f89e1bac9d77c915 | [
"MIT"
] | permissive | vignesharumainayagam/engagex-loyalty_app-backup- | 946a7f75c5ae5cce33313142a0b4e6ba29d67cb6 | 4c326c5f7b22572146f0b946d6498e85ac22a143 | refs/heads/master | 2020-03-11T18:00:14.106005 | 2018-04-19T05:36:06 | 2018-04-19T05:36:06 | 130,163,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Loyalty and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Sales_list(Document):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
53b2af0868849bff57dbd8b705257e3f2690e172 | a88d9c0176f5e4c0d0bd9664270e000ebb5edbd9 | /component/tile/sensor_tile.py | 9b549723c7bbb0854467b7bcc1072e972e246aa2 | [
"MIT"
] | permissive | sandroklippel/fcdm | fb81c73fc6bd1cf296f9301272923c3627474d3f | 5a54e6352bb574ba409be38882ff0d13b3473b7a | refs/heads/master | 2023-08-19T22:05:52.055545 | 2021-08-24T11:23:40 | 2021-08-24T11:23:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | from datetime import datetime as dt
from sepal_ui import sepalwidgets as sw
import ipyvuetify as v
from component import parameter as cp
from component.message import cm
class SensorTile(sw.Tile):
def __init__(self, model):
# create adjustable variables end and start
self.end = dt.n... | [
"pierrick.rambaud49@gmail.com"
] | pierrick.rambaud49@gmail.com |
320687db2d1fc6caf127a9b4f5b1f96927e80f57 | 2acd3d3616ab6ae6a56602f8c28c9cb2d6fd6db0 | /config/settings.py | 13c13dee96727b13a815724aa918b12547a4d6e4 | [] | no_license | EgorovM/hb_maker | 45f3d7375d3aa5c06127f5bfc7cab2bff88192da | d0524cc81e5c5cb85b4de1a397219876d44daf42 | refs/heads/main | 2023-09-03T05:09:39.297948 | 2021-11-11T20:43:47 | 2021-11-11T20:43:47 | 352,812,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"EgorovM@bitbucket.org"
] | EgorovM@bitbucket.org |
ea02622ccae8492548b091136b268bf259b5cebd | 23ec6adce704bff40d04cd6fc0ba446375405b68 | /Non Leetcode Solutions/linked_list_py.py | 378d3a34b439b5b394c573f968a35ed1cc2897d6 | [] | no_license | amoghrajesh/Coding | 1845be9ea8df2d13d2a21ebef9ee6de750c8831d | a7dc41a4963f97dfb62ee4b1cab5ed80043cfdef | refs/heads/master | 2023-08-31T10:10:48.948129 | 2023-08-30T15:04:02 | 2023-08-30T15:04:02 | 267,779,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | class Node(object):
def __init__(self,data,next_node=None):
self.data=data
self.next_node=next_node
def get_next(self):
return self.next_node
def set_next(self,next_node):
self.next_node=next_node
def get_data(self):
return self.data
def set_data(self,data):
... | [
"amoghrajesh1999@gmail.com"
] | amoghrajesh1999@gmail.com |
c4be81c83c88067b9cf207fdeb2ab275f44e2c08 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /F4iemEeFfsaFoMpAF_4.py | 786cba909da3a937ac21071a5cc1d90693d4e336 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | """
This is a list of single characters with an unwanted character at the end:
["H", "e", "l", "l", "o", "!", "\0"]
You could also just type "Hello!" when initializing a variable, creating the
string "Hello!"
Create a function that will return a string by combining the given character
list, not including the ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6068e0dfbaa8b3e02df630a1f8f2d8551b444403 | 2eaecdb1ed42170463993b8b2285296c5ef2231d | /apps/ciudad/admin.py | d7e080b95887458bf100d3a8e00e6edfdc8c6041 | [] | no_license | ivanfdaza/tribunaleclesiasticoIIS | 9639fc66a2c99baa45b8276f4a1e035bdf294e2e | acb164ab8464b71d0461acf03bdd5e3386b57893 | refs/heads/master | 2022-11-21T10:32:14.925326 | 2020-07-23T16:21:26 | 2020-07-23T16:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.contrib import admin
# Register your models here.
from apps.ciudad.models import Ciudad, Departamento
admin.site.register(Ciudad)
admin.site.register(Departamento) | [
"you@example.com"
] | you@example.com |
88be1a8dbca36a3704310ed5d08336575231773d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma263.py | bc6b11402b4ca6da63e2f0bf7495b508300d9153 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=15
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0efe388f3e3a95551a15c6e5f3c3ac7d3ae444c5 | b9062ed0431544160161a270fe669858c3ca9633 | /blog/migrations/0003_auto_20191101_2319.py | f9b453d4abd8102f08dc12a51a8acc1e12851805 | [] | no_license | sd8917/LearnDjango | 350f73ed7077d0b3ac9aa2f1e0fd7d05f67faf05 | 87a9c6c5932f685a01ad6125faf81ac94a1fac5d | refs/heads/master | 2022-12-03T18:18:13.770896 | 2019-11-05T06:35:32 | 2019-11-05T06:35:32 | 219,081,219 | 1 | 0 | null | 2022-11-22T04:36:24 | 2019-11-02T00:14:05 | Python | UTF-8 | Python | false | false | 443 | py | # Generated by Django 2.2.6 on 2019-11-01 17:49
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20191101_1435'),
]
operations = [
migrations.AlterField(
model_name='blo... | [
"sudhanshuraj8917@gmail.com"
] | sudhanshuraj8917@gmail.com |
d45b2df2ceb71ae350e9d6a317ee4e09741e503e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/507.py | 3881fca5b62b736452cde9286a5ba5618161c3b5 | [] | 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,981 | py | def validate(s):
pass
def solver(line):
n,r,o,y,g,b,v = line
t1 = b - o
t2 = y - v
t3 = r - g
if t1 < 0 or t2 < 0 or t3 < 0:
return "IMPOSSIBLE"
if 0 in [t1,t2,t3]:
if line[1:].count(0) == 4:
L = [(r,'R'),(o,'O'),(y,'Y'),(g,'G'),(b,'B'),(v,'V')]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3a206f6d8e955b15bbd61988b40ea1f668583f18 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /algorithm/dp_subset_sum.py | 44580f16c302081909155ac156cefc69cf012378 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py |
nums = [34, 4, 12, 5, 2]
target = 9
#target = 40
def dfs(nums, depth, n, target):
if target == 0:
return True
if depth == n or target < 0:
return False
res = dfs(nums, depth + 1, n, target - nums[depth]),
res += dfs(nums, depth + 1, n, target),
return any(res)
... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
832974b9068a90cd72f7987a17131faae3924d37 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_cell3.py | c1150112a0c843de3db8f2c0d137662bf75a7671 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from xcp2k.inputsection import InputSection
from _cell_ref1 import _cell_ref1
class _cell3(InputSection):
def __init__(self):
InputSection.__init__(self)
self.A = None
self.B = None
self.C = None
self.Abc = None
self.Alpha_beta_gamma = None
self.Cell_file_na... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9aff07ad32360b10ae281e93532a2f1af7a967f5 | 7826681647933249c8949c00238392a0128b4a18 | /cosypose/simulator/__init__.py | 6242dfa1c761870f2a85f43957247c13b7b53277 | [
"MIT"
] | permissive | imankgoyal/cosypose | b35678a32a6491bb15d645bc867f4b2e49bee6d2 | fa494447d72777f1d3bd5bd134d79e5db0526009 | refs/heads/master | 2022-12-09T11:18:23.188868 | 2020-08-31T15:34:02 | 2020-08-31T15:34:02 | 291,834,596 | 2 | 0 | MIT | 2020-08-31T22:06:12 | 2020-08-31T22:06:11 | null | UTF-8 | Python | false | false | 173 | py | from .body import Body
from .camera import Camera
from .base_scene import BaseScene
from .caching import BodyCache, TextureCache
from .textures import apply_random_textures
| [
"labbe.yann1994@gmail.com"
] | labbe.yann1994@gmail.com |
49254eb20c5905f20020b227a913eea9b9007358 | 457c673c8c8d704ec150322e4eeee2fde4f827ca | /Programming Basic/First_Steps_in_coding_lab/07_Projects_Creation.py | ccf04b1496f502d612f560496cd25f03a08b4d0e | [] | no_license | xMrShadyx/SoftUni | 13c08d56108bf8b1ff56d17bb2a4b804381e0d4e | ce4adcd6e8425134d138fd8f4b6101d4eb1c520b | refs/heads/master | 2023-08-02T03:10:16.205251 | 2021-06-20T05:52:15 | 2021-06-20T05:52:15 | 276,562,926 | 5 | 1 | null | 2021-09-22T19:35:25 | 2020-07-02T06:07:35 | Python | UTF-8 | Python | false | false | 191 | py | architect = input()
amount_projects = int(input())
total_time = amount_projects * 3
print(f'The architect {architect} will need {total_time} hours to complete {amount_projects} project/s.') | [
"daredevil91138@gmail.com"
] | daredevil91138@gmail.com |
98e60fc6389398e16d76d7de6e665ef79eac8947 | dcc36a7744d657e15385803fcd13335685a595af | /quantdigger/demo/test_backtest.py | 9500f1a4557b50deac1f9ee32fcf107612863f33 | [] | no_license | timedcy/quantdigger | 777c28ba96d7dba1cb491a634f46e3968f3232bb | bc492811c796caaad3801d379bb485c1986d4619 | refs/heads/master | 2021-01-22T01:27:52.102183 | 2015-11-08T04:35:37 | 2015-11-08T04:35:37 | 45,767,058 | 1 | 0 | null | 2015-11-08T04:36:13 | 2015-11-08T04:36:13 | null | UTF-8 | Python | false | false | 2,362 | py | # -*- coding: utf-8 -*-
from quantdigger.engine.execute_unit import ExecuteUnit
from quantdigger.indicators.common import MA, BOLL
from quantdigger.engine.strategy import TradingStrategy
from quantdigger.util import pcontract, stock
from quantdigger.digger import deals
import plotting
#def average(series, n):
#""... | [
"dingjie.wang@foxmail.com"
] | dingjie.wang@foxmail.com |
03dde1a263827b35b7aaa86f9f7835c933b700cc | 48f73b5b78da81c388d76d685ec47bb6387eefdd | /scrapeHackerrankCode/codes/find-point.py | fc6157b3e72153e83bf8e16e66b00a8c13227285 | [] | no_license | abidkhan484/hacerrankScraping | ad0ceda6c86d321d98768b169d63ea1ee7ccd861 | 487bbf115117bd5c293298e77f15ae810a50b82d | refs/heads/master | 2021-09-18T19:27:52.173164 | 2018-07-18T12:12:51 | 2018-07-18T12:12:51 | 111,005,462 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # Accepted
# Python 3
def find_point(x1, y1, x2, y2):
print((2*x2-x1), (2*y2-y1))
for _ in range(int(input().strip())):
x1, y1, x2, y2 = input().split()
x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2)
find_point(x1, y1, x2, y2)
| [
"abidkhan484@gmail.com"
] | abidkhan484@gmail.com |
0d2b450afa4215b6663f3662b252963b05493a13 | 7e2d802a17e42d50974af29e4c9b658d5da6471b | /IC/21-Missing-drone.py | addde9d1910b7c9628616aee6fecb212e90f64fb | [] | no_license | siddharthadtt1/Leet | a46290bacdf569f69d523413c0129676727cb20e | 1d8b96257f94e16d0c1ccf8d8e8cd3cbd9bdabce | refs/heads/master | 2020-06-20T16:21:15.915761 | 2017-05-15T22:35:42 | 2017-05-15T22:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | # see Leet 136 single number | [
"me@example.com"
] | me@example.com |
a056eed4886e7ab503371a8658a267813fb8a067 | dc7632da4f04385142ea86e4a63c8537eaa2edeb | /django_app/config/urls.py | a7a6a32944ca6639e025c365d8c4507f1ca55a53 | [] | no_license | jmnghn/0621_test | bf4ecd4cc4ce56e06f4f07922d53e4dfb7471bab | 9cb3930d24644897074a336c998759a6a86b656a | refs/heads/master | 2022-10-11T17:53:34.715991 | 2017-06-22T05:03:39 | 2017-06-22T05:03:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """test_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"joengmyeonghyeon@gmail.com"
] | joengmyeonghyeon@gmail.com |
6924472770c9b64625e91f5425599c76f151c774 | e3946d91dc5fe71989c2f4b6390232865fcb5d1b | /fjord/flags/spicedham_utils.py | 2e87b27ba33d4e350010c6253dd663f313cda103 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | zeusintuivo/fjord | 61b632fd6df0e1b3508e628fe4f682a937cc0244 | 3bd227004d369df1fdc39f06acff12ebc8f0fe34 | refs/heads/master | 2021-01-16T18:28:52.564638 | 2014-09-24T21:02:51 | 2014-09-24T21:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | import json
import os
import re
import threading
from spicedham import Spicedham
from spicedham.backend import BaseBackend
from fjord.flags.models import Store
class FjordBackend(BaseBackend):
def __init__(self, config):
pass
def reset(self):
Store.objects.all().delete()
def get_key(se... | [
"willkg@mozilla.com"
] | willkg@mozilla.com |
e95625894d5cba62471ce44e67b02160ea805c8f | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/shangtai/codejamC.py | be3aad06742fb467f6074f6d0a440327d6d7dc65 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 999 | py | T = int(raw_input())
N, J = map(int, raw_input().split())
def is_prime(n):
if n == 2 or n == 3: return True
if n < 2 or n%2 == 0: return False
if n < 9: return True
if n%3 == 0: return False
r = int(n**0.5)
f = 5
while f <= r:
if n%f == 0: return False
if n%(f+2) == 0: return False
f +=6
re... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
ae5b5e91cf43266b95ffaeb5f1795e03a00655ff | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003803.py | 26d534cc630c79581554130b81c7f37de6f38777 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,094 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
a508f1b21eb0f6780f7e25f0848a5d2a51ae29ab | 1edd52cf197e5ae67b5939a3beb3e70761334e62 | /Udemy/python/Session-1&2-Intro-print-indentation-comments/using_indent.py | dce3afaf2ce37572dcc99994e37f4ba78baff000 | [] | no_license | sandeepmchary/Devops_wordpress_Notes | bdcd85d526780d03c494ecb93e714e7ffe0a4d58 | ffd2092162073e1e7342c6066d023d04e6ca8c1c | refs/heads/master | 2022-06-18T21:33:02.471025 | 2022-06-12T11:14:47 | 2022-06-12T11:14:47 | 154,679,658 | 1 | 4 | null | 2022-05-19T16:59:57 | 2018-10-25T13:51:40 | HTML | UTF-8 | Python | false | false | 117 | py | print("this is for indentation")
if 3 > 1:
print("using if condition")
print("we are comparing 3 with 1")
| [
"awssandeepchary@gmail.com"
] | awssandeepchary@gmail.com |
2b2ecf4b17dd2b31fbfbf57f46f019b2b1eb04ec | c903382b1c2d170ca5a00a4482ee23be94da76d8 | /quokka/core/admin/views.py | b7dff6308251262454ea8aa0e2499378eaebf24c | [
"MIT"
] | permissive | alyoung/quokka | 63c74ff913fe3d3b5ebdef38d9d267b149a6c9c1 | a38749379f01c01cc887838999efa364dea5de04 | refs/heads/master | 2021-01-17T22:56:34.760694 | 2013-11-22T21:42:50 | 2013-11-22T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,499 | py | # Create customized index view class
from flask import current_app
from quokka.core.models import Content
from quokka.utils.routing import expose
from quokka.core.widgets import TextEditor, PrepopulatedText
from .ajax import AjaxModelLoader
from .models import BaseIndexView, BaseView, ModelAdmin, BaseContentAdmin
cl... | [
"rochacbruno@gmail.com"
] | rochacbruno@gmail.com |
6665c52b545bfa40ef7b723af971b5ab3734efa2 | d58f9e650c4d8f1fe0379bb5c0a8d2f58ae697ec | /thorvald_penetrometer/scripts/penetrometer_driver.py | 5116ed52841c9316380b945b56beff444f675d8b | [] | no_license | mfkiwl/lcas_hardware-gnss-imu | 41a02418c3895463b0e22e36eb9669560d516e8a | 2aaed0601e2fd165cfb1f2a58b7c19df3b55ed2d | refs/heads/master | 2021-09-28T20:33:53.096301 | 2018-11-20T09:21:55 | 2018-11-20T09:21:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,844 | py | #!/usr/bin/env python
import rospy
import actionlib
import serial
import threading
import yaml
import std_srvs.srv
#import actionlib_msgs.msg
import dynamic_reconfigure.server # import Server
from thorvald_penetrometer.cfg import PenetrometerConfig
import std_msgs.msg #import String
import thorvald_penetrometer.msg
... | [
"pulidofentanes@gmail.com"
] | pulidofentanes@gmail.com |
5ba3eb2c99cb4886c0d71494e016a22abad98aee | acbe6bd6cefaf8b12070d7258dab30e4f7fcebed | /ui/style.py | c5b1d5ee83c7a5fb029f0f3becf8dba8c57a3b3b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RogueScholar/debreate | 02c98c5a78d33041798410f0e3b99e80fda65d00 | dfe9bcac7333a53082b3a2ae169806cf604d59f6 | refs/heads/master | 2023-06-07T11:49:03.821969 | 2023-04-28T02:14:25 | 2023-04-28T02:14:25 | 253,707,766 | 0 | 0 | MIT | 2023-05-28T15:24:17 | 2020-04-07T06:34:47 | Python | UTF-8 | Python | false | false | 1,267 | py |
# ******************************************************
# * Copyright © 2016-2023 - Jordan Irwin (AntumDeluge) *
# ******************************************************
# * This software is licensed under the MIT license. *
# * See: LICENSE.txt for details. *
# ********************************... | [
"antumdeluge@gmail.com"
] | antumdeluge@gmail.com |
8a9561159e82907417c9e0b374b3f8f11bf078ac | 72e11a80587342b3f278d4df18406cd4ce7531e8 | /pip-10.0.0.dev0-py3.6.egg/pip/_internal/index.py | 7c1c210b697a85f199e819826dd94ed5eab4da72 | [] | no_license | EnjoyLifeFund/Debian_py36_packages | 740666f290cef73a4f634558ccf3fd4926addeda | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | refs/heads/master | 2021-08-24T02:17:24.349195 | 2017-12-06T06:18:35 | 2017-12-06T06:18:35 | 113,167,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,528 | py | """Routines related to PyPI, indexes"""
from __future__ import absolute_import
import cgi
import itertools
import logging
import mimetypes
import os
import posixpath
import re
import sys
import warnings
from collections import namedtuple
from pip._vendor import html5lib, requests, six
from pip._vendor.distlib.compat ... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
9a6666ffe7fd9c01862329091ec04e6fb5b1e21a | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/a033dd3f296e4281ad7fae26e02d0a4d.py | 612ab04228445c3976c52b87575abb7b15c6a2a3 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 262 | py | DNA_TO_RNA = {
'G' :'C',
'C' : 'G',
'T' : 'A',
'A' : 'U',
}
def to_rna(dna):
rna = ''
for c in dna:
if c not in DNA_TO_RNA:
raise ValueError("illegal nucleotide '%s' in dna" % c)
rna = rna + DNA_TO_RNA[c]
return rna
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
53a392751a75f85027707c09f1f615efa1879fc4 | 1705e97ef5613685e142e3f78a2057399b09858c | /Code/asiportal/asiapp/wsgi.py | d3acec3485332c8d95214dd8fcb36efc399cc96e | [] | no_license | FIU-SCIS-Senior-Projects/Academic-Success-Initiative---ASI-PantherCentric-1.0 | 0b956175efb031022ed32412195531c7f0c162c5 | 8ee64b58e2634384d5905defd3701a453b49b966 | refs/heads/master | 2022-11-24T00:07:52.458186 | 2017-08-02T01:36:32 | 2017-08-02T01:36:32 | 91,715,982 | 0 | 0 | null | 2022-11-22T01:31:04 | 2017-05-18T16:37:10 | SQLPL | UTF-8 | Python | false | false | 389 | py | """
WSGI config for asiapp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"jakedlopez@gmail.com"
] | jakedlopez@gmail.com |
b31c59a0010e457b6542772a973b3e6da56bfc29 | 9cfd73a998d842d767071b26cefe0eb8efe39e90 | /learning_rates.py | 3b8df2efc6fd82922d321b26d58e4bf9e17144c4 | [] | no_license | boyko11/LogReg-DLAI | 829e9b4e6b8dd23d6f3b5f0f68550d83c080104d | d222f6501ec4f0ea427f42706bb98c28c832fdb8 | refs/heads/master | 2022-11-23T19:26:10.052482 | 2020-08-02T17:57:24 | 2020-08-02T17:57:24 | 284,513,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from logistic_regression import model
import data_service
import matplotlib.pyplot as plt
import numpy as np
train_set_x, train_set_y, test_set_x, test_set_y, _ = data_service.load_and_preprocess_data()
learning_rates = [0.01, 0.001, 0.0001]
models = {}
for i in learning_rates:
print ("learning rate is: " + str(i)... | [
"boyko11@gmail.com"
] | boyko11@gmail.com |
aa3d3d73ed130154ffeca62917f6d42d463b92b8 | 3eb99709809a493c46a79171ef9774aa4261b59d | /脚本/llianli/cfapp_ei.py | 0ca3d8cf2ee5e729d313f8426799f897d4cd36f7 | [] | no_license | bingwin/tencent | c831a5b344f597a06c7a7b179d4f67d668198c90 | ea5dc5ff398d85cfdf4df056dc8b4064e66fb5fb | refs/heads/master | 2020-07-28T21:44:00.281933 | 2016-05-28T03:21:31 | 2016-05-28T03:21:31 | 209,548,176 | 1 | 0 | null | 2019-09-19T12:29:21 | 2019-09-19T12:29:21 | null | UTF-8 | Python | false | false | 6,718 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# ******************************************************************************
# 程序名称: cfapp_ei.py
# 功能描述: cfapp每日访问的事件n数目
# 输入参数: yyyymmdd 例如:20151208
# 目标表名:
# 数据源表: teg_mta_intf::ieg_lol
# 创建人名: llianli
# 创建日期: 2015-12-08
# 版本说明: v1.0... | [
"996346098@qq.com"
] | 996346098@qq.com |
795299e5984a625559bf3332c4649ad94559164d | 52a15d4fabf68bf23a23799312ae40465764908c | /src/operation/unittest.py | ea1bd413fef2f9e5c4a43d478e9926b0e0835959 | [
"MIT",
"Apache-2.0"
] | permissive | jensl/critic | 2071a1b0600051967323df48f4d3a5656a5d2bb8 | c2d962b909ff7ef2f09bccbeb636333920b3659e | refs/heads/stable/1 | 2022-05-28T03:51:15.108944 | 2018-03-27T18:47:46 | 2018-03-29T15:08:30 | 6,430,552 | 224 | 36 | NOASSERTION | 2023-05-29T15:38:00 | 2012-10-28T18:26:04 | Python | UTF-8 | Python | false | false | 123 | py | def independence():
# Simply check that operation can be imported.
import operation
print "independence: ok"
| [
"jl@critic-review.org"
] | jl@critic-review.org |
967f4507e9be93893f9db9e8ab04d072e7c1c49c | 16ac02b8f427bd622af1564f1236e4913ed63521 | /Codes/Version 1.6/force_raised_gaussian.py | 003e679b1563108f7216fab5e0a3d0cd04424273 | [
"MIT"
] | permissive | gharib85/Brownian-dynamics-in-a-time-varying-force-field | 20660665747310e1201e8ca7d404acc15ec7a3bd | 1dce268fcc4f27e066be0ec0b511178cbc1437c5 | refs/heads/main | 2023-08-16T03:47:51.957137 | 2021-10-23T19:09:50 | 2021-10-23T19:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,593 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on March 6, 2021
@author: asif
"""
import numpy as np
import pylab as py
import matplotlib as plt
ro = 2e-6
tfinal = 12
xrange_limit = 30e-6 # Max and min of x axis range for plotting animation
zlow_limit = -10e-6
zhigh_limit = 30e-6
r_active = 0
n_o... | [
"39745895+zaman13@users.noreply.github.com"
] | 39745895+zaman13@users.noreply.github.com |
2a499fd7e7b8c5bbf2617bae35a047e99b8d6b08 | 637ec65429e817c6c12fc66bad299a9ff831ca3c | /supplier_management/supplier_management/doctype/supplier_product_info/supplier_product_info.py | a6f4b09f223a966bb66a2fb4d123987e1b8b7488 | [
"MIT"
] | permissive | ashish-greycube/supplier_management | 292ca4d956fdc8659e630ec9a8280d0b77037f25 | c6f32c383f3d6e9a459903652a42341beb7f8482 | refs/heads/master | 2020-09-02T22:05:23.001424 | 2020-01-08T07:03:05 | 2020-01-08T07:03:05 | 219,316,260 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, GreyCube Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class SupplierProductInfo(Document):
pass
| [
"mr.ashish.shah@gmail.com"
] | mr.ashish.shah@gmail.com |
553f569241527a84d22652ea7170576a0d8bb70b | c85be7ac89f702880dcc35cda13918bd01bc36a1 | /app.py | d84bdfbcfbd988b33444c67c6abe3b962bf96134 | [] | no_license | MarcoBurgos/MasterCryptoTeam | 1fb101cea08b6b99bc22b7835a4b7526b8cd4fa1 | c0a5c66cde61eefb5f173b46de7bfcb8fd79c6bd | refs/heads/master | 2022-12-13T23:47:18.031317 | 2019-06-16T05:30:14 | 2019-06-16T05:30:14 | 187,737,852 | 0 | 0 | null | 2022-12-08T01:45:51 | 2019-05-21T01:18:19 | Python | UTF-8 | Python | false | false | 81 | py | from mastercrypto import app
if __name__ == '__main__':
app.run(debug=True)
| [
"marko_burgos@gmail.com"
] | marko_burgos@gmail.com |
698615984a24120282d332cfef57d98cdf075fb5 | 0c325cf7a68ef51067ed8db566d525a20de5b635 | /python/xlrd_and_xlwt/xlrd_test.py | ff5eb4eb3632e68644309cd097ce90b78ddb3c9c | [] | no_license | alinzel/NOTES | 2ab6aa1ef1d601a9ae8c0d23c0df2bca7e1aa241 | 3e0594641a605580e920d0b08a251fbc99f34e2f | refs/heads/master | 2023-01-08T22:48:30.762625 | 2020-01-17T09:14:47 | 2020-01-17T09:14:47 | 175,339,492 | 0 | 0 | null | 2022-12-27T15:01:19 | 2019-03-13T03:28:08 | HTML | UTF-8 | Python | false | false | 3,865 | py | # TODO xlrd--一个从excel文件中读取和格式化数据信息的库,无论是xls还是xlsx文件
import xlrd
# 打开excel文件,返回实例对象-<xlrd.book.Book object at 0x000001ED41180898>
excel = xlrd.open_workbook(r"./excel/2017年人员电子档案.xlsx") #r-->保持原始字符串,不转义
# 获取sheet的名字,返回名字列表-['2017-6-22', '测试']
sheet_names = excel.sheet_names()
# 获取sheet对象,返回对象列表-[<xlrd.sheet.Sheet obj... | [
"944951481@qq.com"
] | 944951481@qq.com |
a5fa4b57b83b141e36d8a93815e1e8d828b4aaba | 4772576b2f7601fb3295cec7756c832c250ffbc2 | /max.py | 9816e594e10a7248d892a993d1deccedf0c7b493 | [] | no_license | Dhineshkumarraveendiran/Guvi | db3a956025299fcb2fd06911cc322403c0027ca1 | 3904a980fa59dd079473a4d68c345ed5116160f1 | refs/heads/master | 2020-04-15T04:59:55.974890 | 2019-05-15T10:11:59 | 2019-05-15T10:11:59 | 164,405,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | #r
n =int(input())
li=list(map(int,input().split()))
max1=max(li)
print(max1)
| [
"noreply@github.com"
] | Dhineshkumarraveendiran.noreply@github.com |
1562a42c83d7480a67c631a9a7b097f839980268 | 71c331e4b1e00fa3be03b7f711fcb05a793cf2af | /QA-System-master/SpeechToText_test/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/storage/v1/storage_v1_messages.py | d1d192d4db3de2568479ea3d6ec6356cf43099a3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iofh/QA-System | 568228bb0c0adf9ec23b45cd144d61049e720002 | af4a8f1b5f442ddf4905740ae49ed23d69afb0f6 | refs/heads/master | 2022-11-27T23:04:16.385021 | 2020-08-12T10:11:44 | 2020-08-12T10:11:44 | 286,980,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138,678 | py | """Generated message classes for storage version v1.
Stores and retrieves potentially large, immutable data objects.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import message_types as _message_types
from apitools.base.protorpclite import messages as _messa... | [
"ige-public@hotmail.com"
] | ige-public@hotmail.com |
65f5d5d7db31e03fff05009390b6ac2b06cc7f29 | 5d58fa1d54855f18bad5688de4459af8d461c0ac | /plugins/callback/yaml.py | 40bc0191f254fdf8b7a04ea6c86e06ff50051353 | [] | no_license | nasirhm/general | b3b52f6e31be3de8bae0414da620d8cdbb2c2366 | 5ccd89933297f5587dae5cd114e24ea5c54f7ce5 | refs/heads/master | 2021-01-04T07:03:21.121102 | 2020-02-13T20:59:56 | 2020-02-13T20:59:56 | 240,440,187 | 1 | 0 | null | 2020-02-14T06:08:14 | 2020-02-14T06:08:13 | null | UTF-8 | Python | false | false | 4,855 | py | # (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
callback: yaml
type: stdout
short_description: ... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
233d0ec4819d640232d4c681a2454a1e0e5966e1 | 23d25497d30accc7125f6068ad7c55ebcbea0160 | /Python/10828.py | a809aac64a520ee155f389f3eeaf52107078f583 | [] | no_license | ParkJeongseop/Algorithm | 460689e064529d65e8612493a5d338305ec6311e | 388d092ee8b07b7ea76e720053c782790563515b | refs/heads/master | 2023-08-30T23:19:46.029510 | 2023-08-09T11:08:56 | 2023-08-09T11:08:56 | 149,557,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | import sys; input = lambda:sys.stdin.readline().rstrip()
n = int(input())
a = []
for _ in range(n):
cmd = input().split()
if cmd[0] == 'push':
a.append(cmd[1])
elif cmd[0] == 'pop':
if a:
print(a.pop())
else:
print(-1)
elif cmd[0] == 'size':
print... | [
"parkjeongseop@parkjeongseop.com"
] | parkjeongseop@parkjeongseop.com |
11754e433ee8f5985f0ae11f9bae4e8dc50213e1 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/tensorboard_utils_20210411113117.py | 69315f5c5b16b26260ed37152698eb1eba53cc5e | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,424 | py | """
Project 4 - CNNs
CS1430 - Computer Vision
Brown University
"""
import io
import os
import re
import sklearn.metrics
import numpy as np
import tensorflow as tf
from matplotlib import pyplot as plt
import hyperparameters as hp
def plot_to_image(figure):
""" Converts a pyplot figure to an image tensor. """
... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
4fbe70fbf88650d84fb87c57199e97908cac72f3 | 1bf7673846aedb5beed2d065f971f2985f70df1b | /lib/stashcache_tester/output/githubOutput.py | e82f08f5b95658cef25fec44fc13f3b8251cb8d3 | [] | no_license | StashCache/stashcache-tester | 31ee90945186821f9bb0979c7bee942037ae05e7 | 5031d294050e9c6419c360e804654850efcfa32c | refs/heads/master | 2020-12-25T14:12:41.392207 | 2017-02-23T17:55:51 | 2017-02-23T17:55:51 | 40,491,284 | 0 | 2 | null | 2017-02-23T17:55:52 | 2015-08-10T15:51:17 | Python | UTF-8 | Python | false | false | 6,685 | py |
import logging
import json
import time
import shutil
import os
import sys
from tempfile import NamedTemporaryFile
from stashcache_tester.output.generalOutput import GeneralOutput
from stashcache_tester.util.Configuration import get_option
from stashcache_tester.util.ExternalCommands import RunExternal
class GithubO... | [
"djw8605@gmail.com"
] | djw8605@gmail.com |
5c49e0ec04fe15cf08be854625cc496120e28c5f | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/keyboard/keyboard/_keyboard_event.pyi | 9c511fdccf59bc88a0fc4b133c00ab9036b835c7 | [
"MIT",
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 827 | pyi | from typing_extensions import Literal
from ._canonical_names import canonical_names as canonical_names, normalize_name as normalize_name
KEY_DOWN: Literal["down"]
KEY_UP: Literal["up"]
class KeyboardEvent:
event_type: Literal["down", "up"] | None
scan_code: int
name: str | None
time: float | None
... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
cce9c2c02347ccae443d5f1e8dbebf712c264d0e | 73e277935ef28fd05935c93a3f155c9cc6dc6de7 | /ctf/crypto/quad_residue/Cipolla.py | e07aed34561ff03170436108e72f4b49b2beca9e | [] | no_license | ohmygodlin/snippet | 5ffe6b8fec99abd67dd5d7f819520e28112eae4b | 21d02015492fb441b2ad93b4a455dc4a145f9913 | refs/heads/master | 2023-01-08T14:59:38.618791 | 2022-12-28T11:23:23 | 2022-12-28T11:23:23 | 190,989,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | #python3
#https://learnblockchain.cn/article/1520
def square_root_of_quadratic_residue(n, modulo):
"""Square root of quadratic residue
Solve the square root of quadratic residue using Cipolla's algorithm with Legendre symbol
Returns:
int -- if n is a quadratic residue,
retur... | [
"laitaizong@gmail.com"
] | laitaizong@gmail.com |
4144585f59160e7268a01a9b954689f44dcc5460 | 44a6e88da453a2e368b014e403843b0c955f21f4 | /utils/make_mock_solid_dir.py | 49e00504ae9b25d4b9a7a94ae096e077cf8d7ffc | [
"Artistic-2.0"
] | permissive | golharam/genomics | a26b1f9366203ec059cc2e49281909bfc16e6ab4 | ca0c7c239b0f04353e2f2fa897db9c24a1211596 | refs/heads/master | 2020-08-06T10:28:21.604129 | 2019-09-27T07:51:41 | 2019-09-27T07:51:41 | 212,943,378 | 0 | 0 | Artistic-2.0 | 2019-10-05T04:25:24 | 2019-10-05T04:25:23 | null | UTF-8 | Python | false | false | 1,728 | py | #!/usr/bin/env python
#
# make_mock_solid_dir.py: make mock SOLiD directory for test purposes
# Copyright (C) University of Manchester 2011 Peter Briggs
#
########################################################################
#
# make_mock_solid_dir.py
#
#######################################################... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
6f1f8161ba95d3088ba7f50b93a121664fb1a322 | 57abd17391c6ef691509dae512c102f6635dab9b | /tensorflow_datasets/scripts/create_new_dataset.py | 6e57f703111ebe42c66b6fd4f7d3415e908e0bac | [
"Apache-2.0"
] | permissive | SinghKislay/datasets | 434e50eb3b8584849192f3cabe7305429cc62363 | bc09dd59826975f57c861da4bea23fa5d63d61cf | refs/heads/master | 2020-05-02T22:27:34.771036 | 2019-04-10T18:14:41 | 2019-04-10T18:14:41 | 176,097,632 | 0 | 0 | Apache-2.0 | 2019-03-17T12:25:56 | 2019-03-17T12:25:55 | null | UTF-8 | Python | false | false | 6,919 | py | # coding=utf-8
# Copyright 2019 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9442061d1c5d28bd09a835998a2e53cfa07e48e2 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/EventBoardsAwardsOverlayMeta.py | 219372a39b6b37e617c2e86dffba37acfa9ed26a | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 736 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/EventBoardsAwardsOverlayMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class EventBoardsAwardsOverlayMeta(BaseDAAPIComponent):
def changeFilter(self, id... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
fe0bd2ceaf4493e021a319b6698c83f78f07f01e | dce2e3b11804fdb141feaa48299fa8cd751f0e5d | /2.两数相加.py | ad357aa9fedb490291ad6f56660209fd8858a61c | [] | permissive | Cosmos-Break/leetcode | bf056efb6f3eb6448df7fb3fc4869992a3e7eb48 | 9f5f3d24e35b0a482ed40594ea665e9068324dcc | refs/heads/main | 2023-06-26T04:29:25.135826 | 2021-07-19T12:29:29 | 2021-07-19T12:29:29 | 293,397,157 | 0 | 0 | MIT | 2020-09-07T01:55:39 | 2020-09-07T01:55:38 | null | UTF-8 | Python | false | false | 785 | py | #
# @lc app=leetcode.cn id=2 lang=python3
#
# [2] 两数相加
#
# @lc code=start
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
head = ListNode(l... | [
"438854233@qq.com"
] | 438854233@qq.com |
cffddf3d75c1e1ce6fff97c1711d232a66a1205a | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901100012/d07/mymodule/stats_word.py | 02ebfde584c7e1c929c260f80257d92f7a50d67b | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 2,934 | py | en_text='''
The Zen of Python,by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although ... | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
78ce0f7dcfae56d27b83005282d451663d29798d | a11d83fced34854664fac72e18d48fde6aa967e4 | /0x02-python-import_modules/102-magic_calculation.py | 0162921f0da03b752aab68a8227e86622fb4338e | [] | no_license | afarizap/holbertonschool-higher_level_programming | ffe0bf1440726c952f4dd28b908eabc4ccb5225b | ad39e58f9cb20cba4b9e2c14075f216097588f47 | refs/heads/master | 2023-03-30T15:39:35.184484 | 2021-03-22T22:55:24 | 2021-03-22T22:55:24 | 259,437,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | #!/usr/bin/python3
def magic_calculation(a, b):
from magic_calculation_102 import add, sub
if a < b:
c = add(a, b)
for i in range(4, 6):
c = add(c, i)
return c
return sub(a, b)
if __name__ == '__main__':
import dis
dis.dis(magic_calculation)
| [
"afarizap@gmail.com"
] | afarizap@gmail.com |
038a56b6976ac7b4e464d15987f277155fce3956 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200703_python1/day13_py200814/output_1.py | 5599e7b1ca607505095d6c9b8c9ce7737df9672c | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | """
output format()
output formatting with placeholders
string.format()
string template
placeholder
"""
x = 1 + 3*4
y = 2 + 5*6
# not recommended
print('x=', x, ',', 'y=', y)
# recommended
print("x={} , y={}")
print("x={} , y={}".format(x, y))
print("x={},y={}".format(x, y))
print("x={}, y={}".format(x, y))
| [
"lada314@gmail.com"
] | lada314@gmail.com |
82aed50d228c4f45ff91dae2b61a13a01bd7bd66 | 87eed57b13eba5fc10756e705821a2fc861a198e | /bfg9000/platforms/host.py | 65e15de4fb2bd1e765b040415f4de4a8f23600cb | [
"BSD-3-Clause"
] | permissive | jimporter/bfg9000 | 379ac2d9debb822defacc6c5e31d7b65468f0973 | 876966cc82b5520a7bddf88c2a57716c5579b5ba | refs/heads/master | 2023-08-04T06:29:44.669098 | 2023-08-01T03:13:46 | 2023-08-01T03:13:46 | 31,297,691 | 87 | 21 | BSD-3-Clause | 2020-08-06T06:38:10 | 2015-02-25T04:47:12 | Python | UTF-8 | Python | false | false | 334 | py | from .core import _get_platform_info, _platform_info, Platform
class HostPlatform(Platform):
pass
def platform_info(*args, **kwargs):
return _platform_info('host', *args, **kwargs)
def from_json(value):
return _get_platform_info('host', value['genus'], value['species'],
v... | [
"jporter@mozilla.com"
] | jporter@mozilla.com |
2f23cbd42dee001993bc154511cf225da4760ce6 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/caaa5d634f104a58a218ff663dfc926195e3acaf-<test_notify_sentry_app_and_plugin_with_same_slug>-bug.py | 2bb03ab90a78aded197d894082a935887a555e3a | [] | 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 | 725 | py | def test_notify_sentry_app_and_plugin_with_same_slug(self):
event = self.get_event()
self.create_sentry_app(organization=event.organization, name='Notify', is_alertable=True)
plugin = MagicMock()
plugin.is_enabled.return_value = True
plugin.should_notify.return_value = True
rule = self.get_rule(... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
2fedba0cbdc8a5b29280723b6940c2f71a7bda36 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03546/s442051818.py | 0f991e8c96376c793a2bab1a38286d3a650be9e2 | [] | 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 | 324 | py | h, _ = map(int, input().split())
r = range(10)
c = [[int(i) for i in input().split()] for _ in r]
for k in r:
for i in r:
for j in r:
c[i][j] = min(c[i][j], c[i][k] + c[k][j])
else:
a = [[int(i) for i in input().split()] for _ in range(h)]
print(sum(c[i][1] for i in sum(a, []) if i != ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
27c6f04530538b5ac8c71908ab91361f20ecc16b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4013/codes/1671_1079.py | c3bb6e4c00135c7fac261439e8a41a85fc6fb9ce | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Ao testar sua solução, não se limite ao caso de exemplo.
from math import *
# Leitura dos lados do triangulo a, b, and c
a = float(input ("Lado 1: "))
b = float(input ("Lado 2: "))
c = float(input ("Lado 3: "))
print("Entradas:", a, ",", b, ",", c)
# Testa se pelo menos uma das entradas eh negativa
if ((a > 0) o... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a3833b102545d1c9387ae8d1e32f5eb76d98b791 | dd097c7ae744227b0312d762ee0482a3380ff8c6 | /interptools.py | be2c119cfc1ff251f2c6d11d1db94c2279481ab4 | [] | no_license | moflaher/workspace_python | 0d6e98274d923a721db2b345f65c20b02ca59d08 | 6551e3602ead3373eafce10d11ce7b96bdcb106f | refs/heads/master | 2023-03-06T02:15:01.945481 | 2023-03-01T19:15:51 | 2023-03-01T19:15:51 | 20,814,932 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 21,812 | py | from __future__ import division,print_function
import numpy as np
import scipy as sp
import matplotlib as mpl
import matplotlib.tri as mplt
import matplotlib.pyplot as plt
import os, sys
import scipy.io as sio
import gridtools as gt
import datatools as dt
import plottools as pt
import projtools as pjt
import misctools ... | [
"073208o@acadiau.ca"
] | 073208o@acadiau.ca |
aa478f8db29f79c33c87d31990ab69000a083ef4 | ec153cf6c65b02d8d714e042bbdcf476001c6332 | /openstack_dashboard/enabled/_802_metadata_defs.py | 715c3f57adb1b772f3513ae78202a66c8feed358 | [] | no_license | bopopescu/dashboard | c4322f7602a9ba589400212aaef865ed4ffa8bdb | a74b4a549cd7d516dd9a0f5f2e17d06679c13bf6 | refs/heads/master | 2022-11-21T15:56:42.755310 | 2017-07-05T12:04:14 | 2017-07-05T12:04:17 | 281,596,428 | 0 | 0 | null | 2020-07-22T06:38:37 | 2020-07-22T06:38:36 | null | UTF-8 | Python | false | false | 406 | py | # The slug of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'metadata_defs'
# The slug of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'system'
# The slug of the panel group the PANEL is associated with.
PANEL_GROUP = 'default'
# Python panel class of the PANEL to be added.
ADD_PAN... | [
"laurencechan@qq.com"
] | laurencechan@qq.com |
a629ff545360e6bd157e394d377cbc1f1330141e | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/mtttaf002/question1.py | 9e72945c0d743ddcf7d64cd2596254bb5b69226b | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | """produce right aligned list of names
tafara mtutu
20 apr 2014"""
names = []
count = 0
aligned = []
sort = ""
#ask user for names
print("Enter strings (end with DONE):")
name = input()
while name.lower() != "done":
if count < len(name):
count = len(name)
names.append(name)
name ... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
e5500f8613dd97c63af38a515d3fcaed24f1edfc | ef3fe422fc5644ce37cef2e8eb47a615e0865f27 | /0x00-python_variable_annotations/100-safe_first_element.py | a68a172a7b3aeffd93fd5ece78bd0461e3d8fca2 | [] | no_license | Manuelpv17/holbertonschool-web_back_end | b1b6d993b378f60e3d2312079b49fb059a2e14a7 | c4c60bf08648a8e9c846147808b6a7fbd9a818a7 | refs/heads/main | 2023-08-27T11:10:50.496692 | 2021-10-17T16:54:21 | 2021-10-17T16:54:21 | 366,537,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | #!/usr/bin/env python3
""" 10. Duck typing - first element of a sequence """
from typing import Sequence, Union, Any
def safe_first_element(lst: Sequence[Any]) -> Union[Any, None]:
""" 10. Duck typing - first element of a sequence """
if lst:
return lst[0]
else:
return None
| [
"manuelpv17@outlook.com"
] | manuelpv17@outlook.com |
fdc09392606dbaa4da061b3a530db0f87a8dc68c | 8771c94dce3c7e30c9e5b5f45cf8683ba9cac6fd | /leetcode/algorithms/p0338_counting_bits_1.py | 369900a44f586dcd107afb5c442e1ac2172ed57f | [] | no_license | J14032016/LeetCode-Python | f2a80ecb7822cf12a8ae1600e07e4e6667204230 | 9a8f5329d7c48dd34de3105c88afb5e03c2aace4 | refs/heads/master | 2023-03-12T02:55:45.094180 | 2021-03-07T07:55:03 | 2021-03-07T07:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from typing import List
class Solution:
def countBits(self, num: int) -> List[int]:
return [self._hammingWeight(x) for x in range(num + 1)]
def _hammingWeight(self, n: int) -> int:
count = 0
while n > 0:
n = n & (n - 1)
count += 1
return count
| [
"mao_xiaodan@hotmail.com"
] | mao_xiaodan@hotmail.com |
10d914f403ac5bfd4aacc7330c3db318947f429e | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/net/net_ifgrp_info.py | 51fb53a5a5d184165370e0966a17a0a5662d4247 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,702 | py | from netapp.netapp_object import NetAppObject
class NetIfgrpInfo(NetAppObject):
"""
Network interface group information
When returned as part of the output, all elements of this typedef
are reported, unless limited by a set of desired attributes
specified by the caller.
<p>
When used as inp... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
b86128aee5418c0b7ac108bd068d443064cc3ec0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sermon.py | 40a9742cbaf0299a9d7ec6767d646bfc24b37d57 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py |
#calss header
class _SERMON():
def __init__(self,):
self.name = "SERMON"
self.definitions = [u'a part of a Christian church ceremony in which a priest gives a talk on a religious or moral subject, often based on something written in the Bible: ', u'a long talk in which someone advises other people how they shou... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
22f3faef32fd2f8ae1bcc30a8ea70d09546bc638 | 4a0f8c5c0e8324fa614da776f2a704b5c369ccbb | /Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load2-new10fold_10_30_2014_server_8.py | 2dffb397ed45e0cfeb71b74a0cd9c63856f5453e | [] | no_license | magic2du/contact_matrix | 9f8ae868d71e7e5c8088bf22a9407ea3eb073be6 | 957e2ead76fabc0299e36c1435162edd574f4fd5 | refs/heads/master | 2021-01-18T21:15:07.341341 | 2015-09-16T02:14:53 | 2015-09-16T02:14:53 | 24,237,641 | 0 | 0 | null | 2015-09-10T19:58:24 | 2014-09-19T16:48:37 | null | UTF-8 | Python | false | false | 40,758 | py |
# coding: utf-8
# In[3]:
import sys, os
sys.path.append('../../../libs/')
import os.path
import IO_class
from IO_class import FileOperator
from sklearn import cross_validation
import sklearn
import numpy as np
import csv
from dateutil import parser
from datetime import timedelta
from sklearn import svm
import numpy ... | [
"magic2du@gmail.com"
] | magic2du@gmail.com |
6a650aa632dd74a7959663c87c0517cf884812e8 | 1a775a01341a17da07f520b2e28166b0aeda801e | /moneysocket1/encoding/namespace.py | a31167730706a9511fd132c00f71f73f60597b21 | [
"MIT"
] | permissive | moneysocket/py-moneysocket | cbf75cf79600abcb576b8a3144e23520b5ce19f9 | 0392b4b34d5d1ea8762d0a14c6d260b971f72597 | refs/heads/main | 2023-05-12T22:33:08.574271 | 2021-06-11T21:33:04 | 2021-06-11T21:33:04 | 314,912,605 | 2 | 3 | MIT | 2021-06-11T21:33:05 | 2020-11-21T22:11:12 | Python | UTF-8 | Python | false | false | 10,693 | py | # Copyright (c) 2021 Moneysocket Developers
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php
from .convert import b2i, b2h, h2i, h2b, i2h, i2b
from .tlv import Tlv
class Namespace:
"""
Represents a specific namespace of TLVs... | [
"jarret.dyrbye@gmail.com"
] | jarret.dyrbye@gmail.com |
8adb355b8d8850f4f2de49b4f36daf51077ab7e9 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/surface/compute/target_pools/create.py | 8e3acd78a8ae36cdba093c5765105c6b9efc81bf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 6,524 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""Command for creating target pools."""
from googlecloudsdk.api_lib.compute import base_classes
from googlecloudsdk.api_lib.compute import utils
from googlecloudsdk.calliope import exceptions as calliope_exceptions
from googlecloudsdk.third_party.apis.compute.v1 impor... | [
"joe@longreen.io"
] | joe@longreen.io |
0b52a7d8625cdde3d880fe9de03a47671ea10878 | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /tools/data_source/microbial_import_code.py | 4efa96a13a738387c857a1897e50eaa3739530c4 | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 7,420 | py |
def load_microbial_data( GALAXY_DATA_INDEX_DIR, sep='\t' ):
# FIXME: this function is duplicated in the DynamicOptions class. It is used here only to
# set data.name in exec_after_process().
microbe_info= {}
orgs = {}
filename = "%s/microbial_data.loc" % GALAXY_DATA_INDEX_DIR
for... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
0768b2e247703f696bc61b8a9841da4430449517 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/cylicRot_20200714235552.py | df3ed8e6be65ea59b21b9730c1d84306bfff2615 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # given an array rotate it k times to the right
def rotate(A,K):
# first I'd rotate the array once
# so how do we rotate the array
# we move the last element to the firs place and
# the rest follow suit
# moving elements to the right in an array
# [3,8,9,7,6]
# [6,3,8,9,7]
for i in ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
46dc15bb2d04819454a71d40ffa2011043e35239 | f8f70ed663ffccf61a739332697da5c97a41b9cf | /setup.py | 43d9b2c1a862d1468af29616515d7b25aedf5b33 | [
"MIT"
] | permissive | kanurag94/rstcheck | 123116993d9d33e3efdbafe889de94b48dd2cbe8 | fdf2d324bf20357fd47f7579c58fec693f71a120 | refs/heads/master | 2020-06-22T17:04:39.016288 | 2019-07-21T18:21:20 | 2019-07-21T18:21:20 | 197,751,048 | 0 | 0 | MIT | 2019-07-19T10:10:13 | 2019-07-19T10:10:13 | null | UTF-8 | Python | false | false | 1,415 | py | #!/usr/bin/env python
"""Installer for rstcheck."""
import ast
import io
import setuptools
def version():
"""Return version string."""
with io.open('rstcheck.py', encoding='utf-8') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse... | [
"git@stevenmyint.com"
] | git@stevenmyint.com |
76243e46b0928b11c197e4e1c939786c01d8cf63 | 72bc1c9c8d5dd0b185fa4444ac4d6d721d097480 | /cooperative/analysis/analyse_cooperative.py | 0af1fa202c00721ee6ffe8d97996ea2447abf993 | [] | no_license | PeppaYao/shepherding-problem | ad54e5051d193f71e6301d9d94d8f2b0a05d8b50 | 15e199f0fb771891bcbfb804d653b95e8c141c59 | refs/heads/main | 2023-05-06T01:20:05.874427 | 2021-05-26T01:34:17 | 2021-05-26T01:34:17 | 305,695,862 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | import numpy as np
import matplotlib.pyplot as plt
# 合作:最远距离+驱赶
# 合作:最大角度+驱赶
fig, ax = plt.subplots()
X = np.arange(40, 51)
Y = np.array([1442.000, 1191.000, 1495.000, 1266.000, 1110.000, 563.000, 594.000, 545.000, 533.000, 641.000, 676.000, ])
Y2 = np.array([4001.000, 2179.000, 2610.000, 4001.000, 4001.000, 2017.000... | [
"940334249@qq.com"
] | 940334249@qq.com |
0693ba5058ee6afecaa80396bfe052d8f61a5d6e | 242d8d05e457107bed4c539b9cbd117d2733614d | /untitled1.py | 6163b8dfaa7cfea4d89ae31f5995c63a8706940c | [] | no_license | lucmilot/datastage | b4a7abd17cec360db2fc814eddf26174ab807b9b | 5f06b74e87d25cee1c98394e4593200579cb18d6 | refs/heads/master | 2021-05-18T16:47:16.100681 | 2020-03-30T13:54:06 | 2020-03-30T13:54:06 | 251,323,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 3 13:43:46 2018
@author: XT21586
"""
import win32com.client as win32
pathx = "C:\\Users\\XT21586\Documents\\document\\Data Stage\\python\\build\\exe.win-amd64-3.6\\"
excel = win32.gencache.EnsureDispatch('Excel.Application')
outfilxls1 = pathx + "result1.xls"
wb = ex... | [
"40570847+lucmilot@users.noreply.github.com"
] | 40570847+lucmilot@users.noreply.github.com |
9356a925249fc9974103fcf1d00723517c16e27b | 5a2297cff798f4ac03255a803a25177d19235020 | /ipcrawler/spiders/xiciScrapy.py | da60480513a59924f4be0effc632c0fcfe596ecc | [] | no_license | yidun55/ipcrawler | 0d51184922470483f277ec4d1f40c2920f7b0bc5 | 7dd804bb687df57139addd63fe5e1284fea93e2d | refs/heads/master | 2021-01-19T07:31:08.804177 | 2015-07-28T09:15:51 | 2015-07-28T09:15:51 | 39,173,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | #!usr/bin/env python
#coding: utf-8
"""
从专利局官网上爬取各公司的专利信息
"""
from scrapy.spider import Spider
from scrapy.http import Request
from scrapy import log
from scrapy import Selector
import sys
from ipcrawler.items import *
reload(sys)
sys.setdefaultencoding("utf-8")
class patenttest(Spider):
# download_delay=20
... | [
"heshang1203@sina.com"
] | heshang1203@sina.com |
1867e8a3098592e90d6acaeabf4754755bba7650 | e79888cd68177e7ec5125270cdc52f888e211e78 | /kiyuna/chapter05/knock45.py | cf7d05c2a04832c8e87b16b0bf9d6c051cc71b0d | [] | no_license | cafenoctua/100knock2019 | ec259bee27936bdacfe0097d42f23cc7500f0a07 | 88717a78c4290101a021fbe8b4f054f76c9d3fa6 | refs/heads/master | 2022-06-22T04:42:03.939373 | 2019-09-03T11:05:19 | 2019-09-03T11:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | '''
45. 動詞の格パターンの抽出
今回用いている文章をコーパスと見なし,日本語の述語が取りうる格を調査したい.
動詞を述語,動詞に係っている文節の助詞を格と考え,述語と格をタブ区切り形式で出力せよ.
ただし,出力は以下の仕様を満たすようにせよ.
- 動詞を含む文節において,最左の動詞の基本形を述語とする
- 述語に係る助詞を格とする
- 述語に係る助詞(文節)が複数あるときは,すべての助詞をスペース区切りで辞書順に並べる
「吾輩はここで始めて人間というものを見た」という例文(neko.txt.cabochaの8文目)を考える.
この文は「始める」と「見る」の2つの動詞を含み,「始める」に係る文節は「ここで」,
「見る」に係... | [
"kyuna.prog@gmail.com"
] | kyuna.prog@gmail.com |
ba5d6ca0a74e5b6778ad6e411e41aefd456ae06c | 5cdbdc84b04c511a59ba649b64466d0ebe29f266 | /config.py | a829585f69f893dea66b03d7e873500875699602 | [] | no_license | Shatnerz/glad | a3298503231e4b8529d5b47e57b8279d67960ae7 | c58d44358c81a529559fc94825f911ea4ccb0e26 | refs/heads/master | 2021-05-16T03:21:05.146678 | 2020-03-09T14:56:57 | 2020-03-09T14:56:57 | 42,134,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py |
import ConfigParser
class BasicConfig(object):
def __init__(self, filename):
self.parser = ConfigParser.RawConfigParser()
self.parser.read(filename)
def get(section, option):
return self.parser.get(section, option)
def getBoolean(section, option):
return self.parser.getbool... | [
"devnull@localhost"
] | devnull@localhost |
cc63c6d723f156472557a419377fda74f8a1e977 | cfb4e8721137a096a23d151f2ff27240b218c34c | /mypower/matpower_ported/lib/toggle_reserves.py | 58caa28e588ddccd4c28b9ff179664528955fe48 | [
"Apache-2.0"
] | permissive | suryo12/mypower | eaebe1d13f94c0b947a3c022a98bab936a23f5d3 | ee79dfffc057118d25f30ef85a45370dfdbab7d5 | refs/heads/master | 2022-11-25T16:30:02.643830 | 2020-08-02T13:16:20 | 2020-08-02T13:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | def toggle_reserves(*args,nout=1,oc=None):
if oc == None:
from ...oc_matpower import oc_matpower
oc = oc_matpower()
return oc.toggle_reserves(*args,nout=nout)
| [
"muhammadyasirroni@gmail.com"
] | muhammadyasirroni@gmail.com |
169fc535e0b99ab762810b308d9274646618d9a1 | 9e2f24027e4044252639563461116a895acce039 | /biosteam/units/_vent_scrubber.py | 6dcb1e61a54f0310f69b12cd9ae417fef47bd40b | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"NCSA"
] | permissive | yalinli2/biosteam | 5010b5d430cc746f6fa00a23805a1c1f5cac7a81 | e7385ca1feac642881a357ffbc4461382549c3a4 | refs/heads/master | 2022-03-20T23:57:06.824292 | 2022-02-22T15:55:11 | 2022-02-22T15:55:11 | 190,422,353 | 0 | 0 | MIT | 2019-06-05T15:39:04 | 2019-06-05T15:39:03 | null | UTF-8 | Python | false | false | 1,150 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020-2021, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
e576d9e8d6f40fda097536aead9d3ee9a9634d63 | f7c8df084dabf0d9c5dfa6dd15322a9cd8beb587 | /misc/projecteuler/p0001.py | 0fe3b39646525f0cada498e9d384d8a0cfa36161 | [] | no_license | sahands/problem-solving | 6591464366bac635f53e0960eb5cd796bddaea8f | 04d17ee2f55babcb106fdddd56a1caf7b65df2db | refs/heads/master | 2021-01-02T09:15:38.686212 | 2014-10-23T02:26:08 | 2014-10-23T02:26:08 | 24,439,994 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | def sum_of_multiples(k, n):
"""Returns the sum of all multiples of k less than n."""
m = (n-1) // k
return k * (m * (m + 1)) / 2
if __name__ == '__main__':
n = 1000
a = sum_of_multiples(3, n)
b = sum_of_multiples(5, n)
c = sum_of_multiples(15, n)
print a + b - c
| [
"sahands@gmail.com"
] | sahands@gmail.com |
0baf82b9755194c97a4cad88ec01c3161a46cf5e | d1f2a0473cc773986482607a4b1ee9de85627949 | /model/darknet53.py | ab670311e2203e3875bae29868dcd5078aa16dd0 | [] | no_license | choodly/PaddlePaddle_yolact | fcf8273a66ce5b1a464bd30f97e77bad5362ad65 | 7344e6fa98b5451dfe47e725f3c6aabf85e71d10 | refs/heads/master | 2022-11-21T00:40:41.692806 | 2020-07-13T03:00:22 | 2020-07-13T03:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,460 | py | #! /usr/bin/env python
# coding=utf-8
# ================================================================
#
# Author : miemie2013
# Created date: 2020-01-23 15:16:15
# Description : paddlepaddle_yolact++
#
# ================================================================
import paddle.fluid as fluid
import p... | [
"53960695+miemie2013@users.noreply.github.com"
] | 53960695+miemie2013@users.noreply.github.com |
fe25948466810e069367b21e9f97ea3d090e7d98 | a15200778946f6f181e23373525b02b65c44ce6e | /Algoritmi/2019-07-30/all-CMS-submissions/2019-07-30.09:06:48.930075.VR437056.tree_transcode_disc.py | 281a15f510d37afd02faf19c70d70113b6a9bc3c | [] | no_license | alberto-uni/portafoglioVoti_public | db518f4d4e750d25dcb61e41aa3f9ea69aaaf275 | 40c00ab74f641f83b23e06806bfa29c833badef9 | refs/heads/master | 2023-08-29T03:33:06.477640 | 2021-10-08T17:12:31 | 2021-10-08T17:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,986 | py | """
* user: VR437056
* fname: MARTINI
* lname: MICHELE
* task: tree_transcode_disc
* score: 50.0
* date: 2019-07-30 09:06:48.930075
"""
#!/usr/bin/env python3
# -*- coding: latin-1 -*-
from __future__ import print_function
import sys
sys.setrecursionlimit(100000)
if sys.version_info < (3, 0):
input = raw_input #... | [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it |
2b500c17ffc14a5693b584a428ff89f9e8c3bd15 | f5a4f340da539520c60c4bce08356c6f5c171c54 | /xrpl/asyncio/clients/__init__.py | 4b2ff4b3ba3d535a0b6861fb8890cb748c22e3eb | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yyolk/xrpl-py | e3935c0a0f488793153ca29e9d71c197cf88f857 | e5bbdf458ad83e6670a4ebf3df63e17fed8b099f | refs/heads/master | 2023-07-17T03:19:29.239838 | 2021-07-03T01:24:57 | 2021-07-03T01:24:57 | 355,299,041 | 1 | 0 | ISC | 2021-04-08T05:29:43 | 2021-04-06T18:57:06 | null | UTF-8 | Python | false | false | 639 | py | """Asynchronous network clients for interacting with the XRPL."""
from xrpl.asyncio.clients.async_json_rpc_client import AsyncJsonRpcClient
from xrpl.asyncio.clients.async_websocket_client import AsyncWebsocketClient
from xrpl.asyncio.clients.client import Client
from xrpl.asyncio.clients.exceptions import XRPLRequestF... | [
"noreply@github.com"
] | yyolk.noreply@github.com |
83dfa312d9bd9029ca0080502186ef133d6477f5 | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Datasets/words-score/Correct/097.py | e9557ac613cf6b943e8bfe765d27f85eeb69ee64 | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | def is_vowel(letter):
return letter in ['a', 'e', 'i', 'o', 'u', 'y']
def score_words(words):
#print (words)
score = 0
for word in words:
num_vowels = 0
for letter in word:
if is_vowel(letter):
num_vowels += 1
if num_vowels % 2 == 0:
score... | [
"pratekshau@gmail.com"
] | pratekshau@gmail.com |
5861b98d046738f027e1fc06dca64339dafa8a2d | 2bdff209f959d7b577494f6ac908d3700ffb9eb6 | /fractals.py | d43e792a24b5f521a6fa166147c3d1007df758cf | [] | no_license | simrit1/Fractals | 347ebb3867eb0fc3f99027a657197378323bb373 | 2d4b5ed05628f616c72eed996bf579d810b3065c | refs/heads/main | 2023-03-25T16:16:18.324205 | 2021-03-25T12:16:11 | 2021-03-25T12:16:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,683 | py | import pygame
import sys
import math
import colorsys
pygame.init()
WIDTH = 1920
HEIGHT = 1080
l_system_text = sys.argv[1]
start = int(sys.argv[2]), int(sys.argv[3])
length = int(sys.argv[4])
ratio = float(sys.argv[5])
with open(l_system_text) as f:
axiom = f.readline()
num_rules = int(f.readline())
rule... | [
"noreply@github.com"
] | simrit1.noreply@github.com |
fb4ea243547d2893b0fc90f79afa28cdd4b3a796 | 961580252a30afb63cfec05debdab039741a4573 | /src/truck.py | bfe44c6bdd034755d3c21a886b876f5e6a3354a0 | [] | no_license | gokceozden/capraz_sevkiyat | f7fdfa5e344c5db1f094de50878c3e3099de2fd0 | 78c374b55c4abf087f4a89e051a361f1182b8db0 | refs/heads/master | 2021-01-21T05:02:46.887208 | 2016-06-20T14:16:12 | 2016-06-20T14:16:12 | 34,739,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from PyQt5.QtCore import *
class Truck(QObject):
"""
General truck class with common types and functions
"""
def __init__(self):
QObject.__init__(self)
self.truck_name = None
self.current_time = 0
self.function_list = []
self.times = {'arrival_time': 0}
... | [
"mparlaktuna@gmail.com"
] | mparlaktuna@gmail.com |
d2b852072eab9b442cdc09671d692a18ba683652 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/web_tests/external/wpt/fetch/api/resources/preflight.py | f983ef952272a75a6706d3cdfabb08aced7efc7b | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 3,394 | py | def main(request, response):
headers = [(b"Content-Type", b"text/plain")]
stashed_data = {b'control_request_headers': b"", b'preflight': b"0", b'preflight_referrer': b""}
token = None
if b"token" in request.GET:
token = request.GET.first(b"token")
if b"origin" in request.GET:
for o... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
bd1c69067fdc1bd4cbb833f1cd197b1c735de133 | 62858ffe3288aeff9765a38bee2e0d2f2b710f37 | /rsenv/dataanalysis/nanodrop/nanodrop_cli.py | c4db0e6371c709a8334bececbcdc52c815ecefa2 | [] | no_license | scholer/rsenv | f275a9c8fa0398bad32de89e6abac1efeb3869c1 | 04f50a1717baaab74e199d2e961d37d07aac69e7 | refs/heads/master | 2021-07-17T08:22:33.135827 | 2021-04-07T10:16:12 | 2021-04-07T10:16:12 | 69,067,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,217 | py |
import os
import itertools
from collections import Counter, OrderedDict, defaultdict
import yaml
import click
import pandas as pd
from rsenv.dataanalysis.nanodrop import denovix
from rsenv.utils.query_parsing import translate_all_requests_to_idxs
"""
Alternative name:
plot
plot_nanodrop_data
... | [
"rasmusscholer@gmail.com"
] | rasmusscholer@gmail.com |
03fa881168a8380f10195c4be84ed3e7522fd640 | 13d222bc3332378d433835914da26ed16b583c8b | /src/pemjh/challenge36/__init__.py | c80a9f9687728a17735aeb896b6a57ecf07edff7 | [] | no_license | mattjhussey/pemjh | c27a09bab09cd2ade31dc23fffac07374bea9366 | 2ebb0a525d2d1c0ee28e83fdc2638c2bec97ac99 | refs/heads/master | 2023-04-16T03:08:59.390698 | 2023-04-08T10:54:00 | 2023-04-08T10:54:00 | 204,912,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | """ challenge36 """
from .main import main
__all__ = ['main']
| [
"matthew.hussey@googlemail.com"
] | matthew.hussey@googlemail.com |
29b46029d177011615a88307afbb80e6f4f05d35 | bd3a58fac4d2547f87ca00d1faf73f6bcf781cef | /tests/test_matrix.py | 89c31d7c8a777517b674b6fe1b9cbc9b86d14af2 | [
"MIT"
] | permissive | Nachtfeuer/pipeline | 0a41f5fef2672678dbbbe33c7ee9cbd5e21bc9d5 | ee15d98f4d8f343d57dd5b84339ea41b4e2dc673 | refs/heads/master | 2023-01-23T10:18:47.171697 | 2021-07-11T09:08:38 | 2021-07-11T09:08:38 | 106,919,631 | 30 | 6 | MIT | 2022-12-26T20:28:07 | 2017-10-14T10:41:32 | Python | UTF-8 | Python | false | false | 7,090 | py | """Testing of class Stage."""
# pylint: disable=no-self-use, invalid-name
import unittest
from hamcrest import assert_that, equal_to
from spline.components.config import ApplicationOptions
from spline.matrix import Matrix, MatrixProcessData, matrix_worker
class TestMatrix(unittest.TestCase):
"""Testing of class ... | [
"thomas.lehmann.private@gmail.com"
] | thomas.lehmann.private@gmail.com |
c03fe4e820efd8100e1a25426d3e4f808af557d2 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /cEzT2e8tLpwYnrstP_16.py | 968877026dfd242524f4110a45bf84a10221c0d0 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | """
Create a function that takes:
1. A list of keys.
2. A list of values (same size).
3. `True`, if key and value should be swapped, else `False`.
The function returns the constructed dict. Empty lists return an empty dict.
### Examples
swap_d([1, 2, 3], ["one", "two", "three"], False)
➞ { 1: "one"... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
42e1f9b04e2ca7c82ba069ee31d79bfc45840003 | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/joy/catkin_generated/pkg.develspace.context.pc.py | 049bfc6580751b52bcf56b4d0bc9f765466f9dcc | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;diagnostic_updater;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.