blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b7de0ea8602fa084e5d1f3b179b3d606f36e9bfc | d476c93aa2aecd253508da0cc35071e456199318 | /test_autoarray/dataset/interferometer/test_simulator.py | e45908cba62cf42672a3221bfcbff7f89c645c7d | [
"MIT"
] | permissive | Jammy2211/PyAutoArray | 82916f3f5530f938786f61f870df353b26732e37 | 6639dd86d21ea28e942155753ec556752735b4e4 | refs/heads/main | 2023-08-19T10:51:05.520942 | 2023-08-14T09:12:15 | 2023-08-14T09:12:15 | 210,980,464 | 6 | 5 | MIT | 2023-09-13T14:07:39 | 2019-09-26T02:18:10 | Python | UTF-8 | Python | false | false | 1,631 | py | import numpy as np
import pytest
import autoarray as aa
def test__from_image__setup_with_all_features_off(
uv_wavelengths_7x2, transformer_7x7_7, mask_2d_7x7
):
image = aa.Array2D.no_mask(
values=[[2.0, 0.0, 0.0], [0.0, 1.0, 0.0], [3.0, 0.0, 0.0]],
pixel_scales=transformer_7x7_7.gr... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
88a8f8443f2a99865d2e8e4093c67a7729a9d162 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch24_2020_09_11_20_55_32_606285.py | dc59202b688a75224c031ddbda0896810659423c | [] | 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 | 191 | py | salário = float(input("Digite seu salário: "))
pc_aumento = 0.15
if salário > 1250:
pc_aumento = 0.10
aumento = salário * pc_aumento
print(f"Seu aumento será de: R$ {aumento:7.2f}")
| [
"you@example.com"
] | you@example.com |
049e6e9fd609b29ceeddaa476c2dca3205c3f01a | 1afa6c852dfc922d1a26a384d965976f31a87692 | /Rendering/Core/Testing/Python/cowHair2.py | 019fc057ddd462abf36d47c9b9afbe68224338ce | [
"BSD-3-Clause"
] | permissive | dgobbi/VTK | 631d037aacc7258861e70f77c586b01cd4ebff3f | 17f232ee440025c26bc78a897edef78e9fc78510 | refs/heads/master | 2021-01-04T22:27:46.611907 | 2013-03-01T19:44:02 | 2013-03-01T19:44:02 | 938,377 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# This differs from cowHair because it checks the "MergingOff" feature
# of vtkCleanPolyData....it should give the same result.
# Create the RenderWindow, Renderer and both Actors
#
r... | [
"nikhil.shetty@kitware.com"
] | nikhil.shetty@kitware.com |
dfcc4fa546fccf0b210d57a9c2b2718f5bb909a3 | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python_OOP/06_Polymorphism_and_Magic_Methods/Exercise/05_animals/project/dog.py | ad2f594fbac1762e03455e415cb3540b4748cb24 | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from project.animal import Animal
class Dog(Animal):
def __init__(self, name, age, gender):
super().__init__(name, age, gender)
def __repr__(self):
return f"This is {self.name}. {self.name} is a {self.age} year old {self.gender} {__class__.__name__}"
def make_sound(self):
... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
7a0e9feb20501a8811bfa1b009a80318d24f30b7 | cca08c312d01ded932ad45a84b9fded5ef415039 | /thyaura_app/config/desktop.py | 4710c50e700f4bc0dc6b4caf1ec00d1ea18664d2 | [
"MIT"
] | permissive | maisonarmani/Thyaura-App | fe3634cc14d969efebfc5cbe39a3d69c23a1676c | 72f6a8c04c63937228a5a258da4460b77000fbaa | refs/heads/master | 2021-01-20T02:57:38.157027 | 2019-12-03T01:51:31 | 2019-12-03T01:51:31 | 89,476,354 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "Thyaura",
"color": "#934bec",
"doctype": "File",
"icon": "octicon octicon-file-directory",
"label": _("Thyaura"),
"link": "modules/Thyaura",
"type": "module",
"hidd... | [
"masonarmani38@gmail.com"
] | masonarmani38@gmail.com |
b8c1384c5ffc9492da2d8d80a851a0134fe69b6a | cc72013ede1b3bb02c32a3d0d199be4f7986c173 | /ch7/babysitting.py | 5dfae8767e1d587631148621561d245ecae58e36 | [] | no_license | alextickle/zelle-exercises | b87d2a1476189954565f5cc97ee1448200eb00d4 | b784ff9ed9b2cb1c56e31c1c63f3e2b52fa37875 | refs/heads/master | 2021-01-19T00:33:19.132238 | 2017-09-14T23:35:35 | 2017-09-14T23:35:35 | 87,182,609 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | import string
def main():
startStr = raw_input("Please enter the start time, in HH:MM format: ")
endStr = raw_input("Please enter the end time, in HH:MM format: ")
startStrHr, startStrMin = string.split(startStr, ":")
startHr = eval(startStrHr)
startMin = eval(startStrMin)
endStrHr, endStrMin = string.split(endS... | [
"alexander.tickle@gmail.com"
] | alexander.tickle@gmail.com |
897e829232fc5329eb5c18348648caedd7ec259a | b5aeb0f8b8efc77d77842237a80cce90e529ac5f | /plates/migrations/0002_plate_owner.py | 322dd7e13f0ae92b8eabe4f44d539a54ad3e9205 | [] | no_license | Pillin/POC-Django-Cooker | b078502d403a90cc57c4691265235ce855c8d75e | e6ad88564d3045af4a418234a927970f928e3c58 | refs/heads/master | 2022-12-12T15:02:41.410674 | 2019-09-30T03:41:28 | 2019-09-30T03:41:28 | 210,078,139 | 1 | 0 | null | 2022-12-08T05:22:06 | 2019-09-22T02:13:33 | Python | UTF-8 | Python | false | false | 635 | py | # Generated by Django 2.2.1 on 2019-06-10 00:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('plates', '0001_initial')... | [
"ignacia.pp@gmail.com"
] | ignacia.pp@gmail.com |
7f010cba3d54770694aad2707fff34e98558ec44 | ec685eeff5ba518dc06dc68abb827b6f723eda3f | /zinnia/models/category.py | 95c7907fb9ad7b1709dfd86324032da06764c35b | [
"BSD-3-Clause"
] | permissive | jplehmann/django-blog-zinnia | 243ac05fc6d8cd8dcb5bece02ea3776fb8944cb4 | 0f625237c6712156daa1f6d38055ea98b8bc7a1d | refs/heads/develop | 2023-06-03T03:35:15.866673 | 2023-05-18T11:56:40 | 2023-05-18T11:56:40 | 171,291,501 | 1 | 1 | BSD-3-Clause | 2023-05-18T11:56:42 | 2019-02-18T13:42:08 | Python | UTF-8 | Python | false | false | 2,053 | py | """Category model for Zinnia"""
from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from mptt.managers import TreeManager
from mptt.models import MPTTModel
from mptt.models import TreeForeignKey
from zinnia.managers import EntryRelatedPublishedManager
fr... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
1653e5ab85ec2595227c855630d0317b9e55f9ef | 936a8929956eb82b08c8f48c9bf2e7fb621412df | /dlaicourse/course3_week4_lesson2.py | a9b258a9ed1e3ec58bf7446cb99afea72e4636c0 | [] | no_license | chenxu0602/TensorFlow2.0 | 3871b9b0cd391ca65938da7d3409e4667acb929c | c13742750ad09d8ec26fabe32578d27c927701a8 | refs/heads/master | 2021-07-12T11:10:08.665940 | 2021-02-27T09:21:29 | 2021-02-27T09:21:29 | 237,641,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py |
import numpy as np
import tensorflow as tf
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
tokenizer = Tokenizer()
data = open("irish-lyrics-eof.txt").read()
corpus = data.lower().split('\n')
tokenizer.fit_on_texts(corpus)
total_words = l... | [
"chenxu@Chens-iMac.local"
] | chenxu@Chens-iMac.local |
788c4a94a8914778adb45677469a1b3ee832002f | dc3c88f1fe5c80147e4c52ee6ec3136307ec9702 | /workflow/test/testFolder_test.py | 91f3e76c6eb4ff64538683d64847386b2291c6c5 | [] | no_license | ypapax/all_sublime_plugins | 062f9b9992a093a02e6b905c1329c681c8532034 | 8b10e471233bd6c2e77907cf5569b0ddccfc88f9 | refs/heads/master | 2021-01-15T21:10:08.029750 | 2015-08-16T06:32:51 | 2015-08-16T06:32:51 | 40,391,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | import unittest
import sys
import os
currentFolder = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(currentFolder, '../../util'))
sys.path.insert(0, os.path.join(currentFolder, '..'))
import color
import iterationsClass as ic
class Test(unittest.TestCase):
def test_testName(self):
i ... | [
"maxYefr@gmail.com"
] | maxYefr@gmail.com |
d00de81f7b9b9927eff02c7b393c1922401fb4da | abb614790bdf41c7db9d09dfdea4385f78c2be52 | /rtk-RQA/tests/unit/TestPhase.py | f16b1df467ea3da00f7f0051da51ea81d96943d6 | [
"BSD-3-Clause"
] | permissive | codacy-badger/rtk | f981bb75aadef6aaeb5a6fa427d0a3a158626a2a | bdb9392164b0b32b0da53f8632cbe6e3be808b12 | refs/heads/master | 2020-03-19T02:46:10.320241 | 2017-10-26T20:08:12 | 2017-10-26T20:08:12 | 135,659,105 | 0 | 0 | null | 2018-06-01T02:43:23 | 2018-06-01T02:43:23 | null | UTF-8 | Python | false | false | 2,211 | py | #!/usr/bin/env python -O
"""
This is the test class for testing the Phase class.
"""
# -*- coding: utf-8 -*-
#
# TestPhase.py is part of The RTK Project
#
# All rights reserved.
import unittest
from nose.plugins.attrib import attr
# We add this to ensure the imports within the rtk packages will w... | [
"arowland@localhost.localdomain"
] | arowland@localhost.localdomain |
d993b4e5499b5403146f63789923d073d77e933d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03253/s495722798.py | b3e03a5ec7b8697ba823e608bd90f4704f6bf522 | [] | 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 | 1,102 | py | N_MAX = 10**6
MOD = 10**9 + 7
fac, finv, inv = [0]*N_MAX ,[0]*N_MAX, [0]*N_MAX
def com_init():
fac[0], fac[1] = 1, 1
finv[0], finv[1] = 1, 1
inv[1] = 1
for i in range(2, N_MAX):
fac[i] = fac[i - 1] * i % MOD
inv[i] = MOD - inv[MOD%i] * (MOD // i) % MOD
finv[i] = finv[i - 1] * inv... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
80d41f6f47985c9fdbd7359ac6c80136af72e53b | e60856bd79ca667b57dd7e87541e4426a61d469a | /dockitcms/middleware.py | e892a993eb55f754e3a14a9347dded96475ebb7e | [] | no_license | kmooney/django-dockitcms | b043b31e51829368074e2802e75d7329b4a6cfe0 | a1cc179450e9c92f1a23967a6ca6619d15b13c6d | refs/heads/master | 2020-04-07T17:33:30.272866 | 2012-09-03T18:32:59 | 2012-09-03T18:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from scope import get_site_scope, Scope, ScopeList
class DefaultScopeMiddleware(object):
def process_template_response(self, request, response):
if hasattr(response, 'context_data') and response.context_data is not None: #TODO this shouldn't happen
context = response.context_data
if... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
da2b22f9316265a4cd8801a7919e93a0a6ff1c63 | 8afe62cfbb1abd7059ea906ce2f09b37d28cb253 | /prs2/indexer/apps.py | b8d780ab4bf548376ba9373aa57ba156a64f6fcf | [
"Apache-2.0"
] | permissive | ropable/prs | f958d38125e00398a8986de8659f37b37cb798ac | d6770762672159367df86be8d296be34f2b40b29 | refs/heads/master | 2023-09-04T06:42:58.151378 | 2023-08-28T04:56:08 | 2023-08-28T04:56:08 | 49,401,848 | 1 | 0 | NOASSERTION | 2023-07-06T06:00:58 | 2016-01-11T04:24:08 | Python | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class IndexerConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'indexer'
| [
"ashley@ropable.com"
] | ashley@ropable.com |
fe58e423bbd30ebff4c72561ee95bff7dbb1787d | 513021ba2ba48a30245c6c76406f034c69f4f366 | /5_Typy zaawansowane/5_66_Dictionary_LAB.py | 7f7c901e7cd7d279f40246340162bd12613742e2 | [] | no_license | rucpata/udemy-python_poczatkujacy | d789c3ff0fa9f8794c97e537aa58d8a273601023 | f65053e6efac7e30bae862f6555ab08fcf7385a4 | refs/heads/master | 2022-03-07T11:33:09.284281 | 2019-10-29T14:09:19 | 2019-10-29T14:09:19 | 218,301,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 17 15:24:32 2019
@author: wlasciciel
"""
#1
chanels={'Google':'1480','Email':'300','Natural Traffic':'440','TV Spot':'700'}
print(chanels)
#2
print(chanels['Email'])
#3
chanelsUpdate={'Natural Traffic':'520','News':'600'}
print(chanelsUpdate)
#4... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
fef025ac006b1d918c2cbb34e24d78ad65268c00 | 7a772be032a9ab4604e7f7c4315e5198f557efd8 | /trial.py | 4ebc8a26f2d4bdcb59cc0de6fcd2eb7ae84f3dbe | [] | no_license | MohammedGhafri/shawanTask | 5e14e327b4993c989abbc7ebb470aff941b62a1a | d3ae5e0d807c5e4434e6b4f9385f1b2748132f3a | refs/heads/main | 2023-01-30T04:32:37.955276 | 2020-12-08T22:58:58 | 2020-12-08T22:58:58 | 319,782,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | import wx
app = wx.App()
window = wx.Frame(None, title = "wxPython Frame", size = (300,200))
panel = wx.Panel(window)
label = wx.StaticText(panel, label = "Hello World", pos = (0,50))
window.Show(True)
app.MainLoop()
# import tkinter
# window =tkinter.TK()
# from PyQt5.QtWidgets import QApplication, QLa... | [
"eng.m.ghafri@gmail.com"
] | eng.m.ghafri@gmail.com |
9c87a21c58c505b569e21b249b6c64fca946059f | 1368678277782c10f3823f523ba5fb3d3c5bbc87 | /chatbot_api/venv/Lib/site-packages/win32comext/adsi/__init__.py | 32f41904d9926e867785b8060c1a8a5c20ca6e95 | [
"MIT"
] | permissive | arpitkumar1412/shellhacks-hospitalCheckin | d92177dc8abc028d722af568f7975d1f164feab3 | 39388561e92c94b22f5f25375d37c626b3609992 | refs/heads/main | 2023-08-22T01:14:32.623756 | 2021-09-26T15:24:49 | 2021-09-26T15:24:49 | 410,179,902 | 1 | 2 | MIT | 2021-09-25T16:27:44 | 2021-09-25T04:59:50 | Python | UTF-8 | Python | false | false | 3,323 | py | import win32com
import win32com.client
if type(__path__)==type(''):
# For freeze to work!
import sys
try:
import adsi
sys.modules['win32com.adsi.adsi'] = adsi
except ImportError:
pass
else:
# See if we have a special directory for the binaries (for developers)
win32com.__PackageSupportBuildPath__(__path__)... | [
"86039408+Farewell-SDSk17@users.noreply.github.com"
] | 86039408+Farewell-SDSk17@users.noreply.github.com |
4256caadfc3cbeb4cd8cfc687d70ca4ccc506b21 | 6d0961eb42567764d84d59f11c2ef5819668f007 | /data/analyzer/android/modules/auxiliary/screenshots.py | 7c1bae450c900790f1175bbfed8b13083297226c | [
"MIT"
] | permissive | iswenhao/Panda-Sandbox | c454177ae6b6cbaf1196db8230d6080bdac46e8a | a04069d404cb4326ff459e703f14625dc45759ed | refs/heads/master | 2020-09-07T20:43:01.849284 | 2019-06-20T15:10:51 | 2019-06-20T15:10:51 | 220,908,393 | 2 | 0 | MIT | 2019-11-11T05:33:51 | 2019-11-11T05:33:51 | null | UTF-8 | Python | false | false | 1,821 | py | # Copyright (C) 2014-2016 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
# Originally contributed by Check Point Software Technologies, Ltd.
import time
import logging
import StringIO
from threading import Thread
from lib.co... | [
"chenhao@geyecloud.com"
] | chenhao@geyecloud.com |
5fd51c5e4e4ae41ac0357a011c71d083de52d5c9 | bddc40a97f92fafb8cbbbfdbdfe6774996578bb0 | /exercicioLista_EstruturaDecisao/ex14.py | 5d20c7d073c85318ff0e6afe2090bb4d69746936 | [] | no_license | andrehmiguel/treinamento | 8f83041bd51387dd3e5cafed09c4bb0a08d0e375 | ed18e6a8cfba0baaa68757c12893c62a0938a67e | refs/heads/main | 2023-01-31T13:15:58.113392 | 2020-12-16T02:47:44 | 2020-12-16T02:47:44 | 317,631,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | # 14. Faça um programa que lê as duas notas parciais obtidas por um aluno numa
# disciplina ao longo de um semestre, e calcule a sua média. A atribuição de conceitos
# obedece à tabela abaixo:
# Média de Aproveitamento Conceito
# Entre 9.0 e 10.0 A
# Entre 7.5 e 9.0 B
# Entre 6.0 e 7.5 C
# Entre 4.0 e 6.0 D
# Entre 4.0... | [
"andrehmiguel@outlook.com"
] | andrehmiguel@outlook.com |
a58dec08dd303854f6e6590865fc76aa8d118bb6 | e2e34d01afc5b6bc6923a721ef92e8ffa8884f86 | /azure_functions_worker/utils/wrappers.py | 2a4afd64c40b996b504e824b3aac01b593d32c3a | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-functions-python-worker | 094340eeb0c4728e3202749027f01ab75e908bd8 | d4bdf7edc544b6c15e541930f890da790b180ebd | refs/heads/dev | 2023-08-22T22:48:01.645722 | 2023-08-14T14:52:42 | 2023-08-14T14:52:42 | 117,730,503 | 329 | 122 | MIT | 2023-09-01T16:54:58 | 2018-01-16T19:23:54 | Python | UTF-8 | Python | false | false | 1,626 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Callable, Any
from .common import is_envvar_true, is_envvar_false
from .tracing import extend_exception_message
from ..logging import logger
def enable_feature_by(flag: str,
default... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f23d506aa620b94b7de5923a0c5f5c24ad52ba6a | ecd4b06d5d5368b71fd72a1c2191510a03b728fd | /4 - manipulating dataframes with pandas/Case Study - Olympic Games/10 - Visualizing USA Medal Counts by Edition: Area Plot.py | 1146d63c5bc76e71c548a846e2beecb225047e13 | [
"MIT"
] | permissive | Baidaly/datacamp-samples | 86055db5e326b59bfdce732729c80d76bf44629e | 37b4f78a967a429e0abca4a568da0eb9d58e4dff | refs/heads/master | 2022-07-27T01:18:00.700386 | 2022-07-18T19:27:23 | 2022-07-18T19:27:23 | 123,827,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | '''
As in the previous exercise, your job in this exercise is to visualize the medal counts by 'Edition' for the USA. This time, you will use an area plot to see the breakdown better. The usa DataFrame has been created and all reshaping from the previous exercise has been done. You need to write the plotting command.
'... | [
"daulet.urazalinov@uptake.com"
] | daulet.urazalinov@uptake.com |
b856ed9f0b1cd2de70d2ccb85d3b45ecef900b1a | 81d635211686b1bc87af5892bd9e0fb95cc2ddb8 | /adwords api/googleads-python-lib-master/examples/dfp/v201505/network_service/get_all_networks.py | d9bcda9d40a7dcc2481c24f2d545664fb54df46c | [
"Apache-2.0"
] | permissive | analyticsbot/Python-Code---Part-2 | de2f0581258b6c8b8808b4ef2884fe7e323876f0 | 12bdcfdef4472bcedc77ae61707c25a4a09cba8a | refs/heads/master | 2021-06-04T05:10:33.185766 | 2016-08-31T13:45:45 | 2016-08-31T13:45:45 | 66,679,512 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | #!/usr/bin/python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"ravi.shankar1788@gmail.com"
] | ravi.shankar1788@gmail.com |
afc8874bca7e81c3f72a201e1db9b9a69bc986fc | b71681e4d83e6167b4a49acb8731f432539d1394 | /setup.py | 8e79e55183e04b0682e0910d401f946c54919301 | [
"MIT"
] | permissive | marcoslhc/colorclass | ca24e3670ad2393c2f4ed8608056fdb5f82fbd4d | 246294bd825a0359289e612552c0e0278f2e82e4 | refs/heads/master | 2021-01-22T20:39:36.141149 | 2015-06-04T05:02:54 | 2015-06-04T05:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | #!/usr/bin/env python
"""Setup script for the project."""
import codecs
import os
import re
import setuptools
_PACKAGES = lambda: [os.path.join(r, s) for r, d, _ in os.walk(NAME_FILE) for s in d if s != '__pycache__']
_VERSION_RE = re.compile(r"^__(version|author|license)__ = '([\w\.@]+)'$", re.MULTILINE)
CLASSIFIE... | [
"robpol86@gmail.com"
] | robpol86@gmail.com |
10f888ad8658277925efe6f42edbbf50aba99cb5 | 0ae2bb21d7ca71a691e33cb044a0964d380adda2 | /python/P238.py | 2cbc51678ac2d8735a421c817b216000aa7e0d97 | [] | no_license | xwang322/Coding-Interview | 5d27ec92d6fcbb7b929dd98bb07c968c1e1b2a04 | ee5beb79038675ce73c6d147ba9249d9a5ca346a | refs/heads/master | 2020-03-10T08:18:34.980557 | 2018-06-24T03:37:12 | 2018-06-24T03:37:12 | 129,282,263 | 2 | 6 | null | 2018-04-19T19:31:24 | 2018-04-12T16:41:28 | Python | UTF-8 | Python | false | false | 400 | py | class Solution(object):
def productExceptSelf(self, nums):
if not nums:
return []
answer = [1 for i in range(len(nums))]
for i in range(1, len(answer)):
answer[i] = answer[i-1]*nums[i-1]
temp = nums[-1]
for i in range(len(answer)-2, -1, -1):
... | [
"noreply@github.com"
] | xwang322.noreply@github.com |
db72890312d00fd1adaaa9dfa9bcae653b54047e | 6db6e51e45baef44132a788c7b9f6fb1f2045b2e | /07 - Stochastic Bandits/bandits/plot4.py | 4082222e8968c7ea173d187b2bbd66a63f80ccf9 | [] | no_license | castorfou/aniti | 2b41b6e9f228f9929b9e47eba1ccb8d43fc4e3d3 | dc1f149c16eaa1c2e54e21411e25887b81fa591d | refs/heads/main | 2023-04-16T19:40:47.595631 | 2021-04-27T06:54:08 | 2021-04-27T06:54:08 | 362,009,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | import numpy as np
import bandit
from matplotlib import pyplot as plt
from matplotlib.animation import FuncAnimation
ban = bandit.Bandit([0.7, 0.6, 0.5, 0.4, 0.3])
ucb = bandit.UCB(ban)
k = ban.arms()
for i in range(k):
ucb.act()
fig = plt.figure()
ax = plt.axes(xlim=(0, 0.48), ylim=(0, 20))
n = 1000
regrets =... | [
"guillaume.ramelet@gmail.com"
] | guillaume.ramelet@gmail.com |
d7573a68b69607f973d31affdb32e8f816c4f40c | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderGrandContest/048/A.py | 3486adf24ff228fa4ed4bd2a052fd3b5b33d84f3 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 796 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
inf = float('inf')
mod = 10 ** 9 + 7
mod2 = 998244353
# from decorator import stop_watch
#
#
# @stop_watch
def solve(T, S):
for s in S:
if 'atcoder' < s:
print(0)
continue
if s.coun... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
af533d938f126dc35a7337ec36c5db930fdefb81 | d7122bb863cc78111e685e6ab2d5ba7ed4dde996 | /main_tpu.py | b94d50001f8cce2e3d4afb31a2f30a67504056dd | [
"MIT"
] | permissive | Mistobaan/BigGAN-TPU-TensorFlow | e720591ba1275b4564550d8fd7da48c412de3d09 | 0abb339aef8d69ee8deddf0c0be4e9a165753c23 | refs/heads/master | 2020-04-27T20:02:05.888329 | 2019-03-09T03:30:03 | 2019-03-09T03:30:03 | 174,643,514 | 0 | 0 | MIT | 2019-03-09T03:28:58 | 2019-03-09T03:28:57 | null | UTF-8 | Python | false | false | 2,515 | py |
from comet_ml import Experiment
import tensorflow as tf
from BigGAN_128 import BigGAN_128
from inception_score import prefetch_inception_model
import argparse
import subprocess
import os.path
import logging
logger = logging.getLogger(__name__)
from utils import *
from input import *
from args import *
def main... | [
"david@sketchdeck.com"
] | david@sketchdeck.com |
bd7eac3dd7fdcc5ce166fd61fbbd1e0a8c0fdedc | 35b460a5e72e3cb40681861c38dc6d5df1ae9b92 | /CodeWars/6/buildPileCubes.py | 507f109aaded041b84e34d38d7f2420751669a2b | [] | no_license | robgoyal/CodingChallenges | 9c5f3457a213cf54193a78058f74fcf085ef25bc | 0aa99d1aa7b566a754471501945de26644558d7c | refs/heads/master | 2021-06-23T09:09:17.085873 | 2019-03-04T04:04:59 | 2019-03-04T04:04:59 | 94,391,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Name: buildPileCubes.py
# Author: Robin Goyal
# Last-Modified: June 27, 2018
# Purpose: Implement solution to Build a Pile of Cubes challenge
def find_nb(m):
"""find_nb
Find the number of cubes you'll have to build given the
total volume of the building, m.
"""
total, i = 0, 0
while (total... | [
"goyal.rob@gmail.com"
] | goyal.rob@gmail.com |
1432cde63468e77e5e58b05e7047d849c3fc7e79 | bf34e463c880950eeb7ce14d856ac1c423f6b905 | /pmdarima/datasets/lynx.py | 79deaef35a973d5e16383defaaeac87b4123bfba | [
"MIT"
] | permissive | kpsunkara/pmdarima | 7ce92b21b33407ea6a807e6ee647232968b6dfee | fd4106c0da4ba6edadc9549572777a5d6db27cdd | refs/heads/master | 2020-09-10T18:56:22.247536 | 2019-11-14T22:56:10 | 2019-11-14T22:56:10 | 196,088,244 | 1 | 0 | MIT | 2019-07-09T21:45:45 | 2019-07-09T21:45:45 | null | UTF-8 | Python | false | false | 3,575 | py | # -*- coding: utf-8 -*-
#
# Author: Taylor Smith <taylor.smith@alkaline-ml.com>
#
# This is the lynx dataset found in R.
import numpy as np
import pandas as pd
from ..compat import DTYPE
__all__ = [
'load_lynx'
]
def load_lynx(as_series=False, dtype=DTYPE):
"""Annual numbers of lynx trappings for 1821–1934... | [
"tgsmith61591@gmail.com"
] | tgsmith61591@gmail.com |
d38456b997024df0cfda13ae54a5017f25fe06e2 | 5882bb82f7442386aaec897b233c8cfb3cf5a8c3 | /data_utils.py | b9f96edc3874393d8b8844fce67c63c47870360e | [] | no_license | Enny1991/RealMuD | cc06eaaccecefecf48bb7a9f1c1dee8c1e4884e6 | 8538a526a7c83c55ed740f5497abfb2b88f3c463 | refs/heads/master | 2023-07-20T12:52:27.837021 | 2020-04-03T14:45:05 | 2020-04-03T14:45:05 | 175,799,963 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,340 | py | import os
import random
import time
import torch
from scipy.signal import resample_poly
from torch.utils.data import Dataset
import h5py
import numpy as np
import gc
import soundfile as sf
from scipy.signal import resample_poly as resample
from scipy.io import wavfile
gc.disable()
def norm_power(sig):
sig -= ... | [
"enea.ceolini@gmail.com"
] | enea.ceolini@gmail.com |
d31cce6166c71827185cb4f0555e1ad34e6ecc3a | 483a7c7ceacea9cff9c2712ea742270e9aa2acb9 | /aws-bigdata-dm/data_class/media_cms_playlist_vid.py | fdd3ce557bf6f797b7198fe37ba0a0063dee6a84 | [] | no_license | beckett1124/cleardata | 514dd07d787bd20b3a9dafab5205e9c5c8899aea | ad1a05eaaaa79c1f3e34b21ab0741634b72aae0e | refs/heads/master | 2021-01-20T01:35:55.501736 | 2017-07-24T02:08:09 | 2017-07-24T02:08:09 | 89,304,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | # encoding: utf-8
# @Author: gibbs
# @Date: 2016-05-17T18:46:24+08:00
# @Last modified by: gibbs
# @Last modified time: 2016-05-17T19:29:22+08:00
from media_base_table import MediaBaseTable
import sys
import string
class MediaCmsPlaylistVid(MediaBaseTable):
"""
:媒资信息类
"""
def __init__(self):
... | [
"qibin@mgtv.com"
] | qibin@mgtv.com |
55f844ee41ca79ee07b21c3b0adc10dfd96b1096 | d73ba4ee1206752fb442f277c146d10aa9afeb65 | /RMS/asset/models.py | 1f1d9ef54d50287068169244adf3b386357a1411 | [] | no_license | soulorman/RM-system | c9e085c474dc8136696b64600eaec756d1e7e74e | 5c6897e4a71d04796f3897f36261307a488a216e | refs/heads/master | 2022-10-21T19:48:20.802965 | 2020-06-17T08:31:23 | 2020-06-17T08:31:23 | 271,700,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | #encoding:utf-8
from django.db import models
from django.core.exceptions import ObjectDoesNotExist
from django.utils import timezone
class Host(models.Model):
ip = models.GenericIPAddressField(null=False, default='0.0.0.0')
name = models.CharField(max_length=32, null=False, default='')
os = models.CharFiel... | [
"2379797392@qq.com"
] | 2379797392@qq.com |
2e691d209b72232389d1bfb90b4421afd2da9542 | 7e40c8bb28c2cee8e023751557b90ef7ef518326 | /wustctf2020_babyfmt/wustctf2020_babyfmt.py | da491a122dad5d4793d10b5cebfeeb35bb9004b9 | [] | no_license | 1337536723/buuctf_pwn | b6e5d65372ed0638a722faef1775026a89321fa3 | cca3c4151a50c7d7c3237dab2c5a283dbcf6fccf | refs/heads/master | 2023-08-29T19:35:04.352530 | 2021-11-16T14:06:20 | 2021-11-16T14:06:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | from pwn import *
#context.log_level = 'debug'
#p = process('./wustctf2020_babyfmt')
p = remote('node4.buuoj.cn', 26285)
elf = ELF('wustctf2020_babyfmt')
libc = ELF('libc-2.23.buu.so')
def debug(s):
gdb.attach(p, '''
source ~/libc/loadsym.py
loadsym ~/libc/2.23/64/libc-2.23.debug.so
''' + s)
ru = lambda s : p... | [
"admin@srmxy.cn"
] | admin@srmxy.cn |
a055a07914bbf4f556ed58208037ba9d1562d9fe | 1c8f44f7629c37f953715d5b99e676d2848a9d22 | /Atcoder/arc104/B.py | f87b7dd358dba563191b954d085c77a621feec48 | [] | no_license | rajandasguptaml/Competitive-Programming | 6d02c9889c1ccaaeddb4bd205c516ce88789b901 | ee40336f664929a4ddc721816b3fcb67c4e522c5 | refs/heads/master | 2023-05-14T17:31:22.912441 | 2021-05-25T20:25:21 | 2021-05-25T20:25:21 | 370,818,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | from __future__ import division, print_function
# import threading
# threading.stack_size(2**27)
# import sys
# sys.setrecursionlimit(10**7)
# sys.stdin = open('inpy.txt', 'r')
# sys.stdout = open('outpy.txt', 'w')
from sys import stdin, stdout
import bisect #c++ upperbound
import math
import heapq
i_m=92233... | [
"rajon168075@gmail.com"
] | rajon168075@gmail.com |
1639b8a4bb8ce2c3fb0c232bd1b20634eceda1af | 7b5e7def8f4bf3335d8538b9e9e671b86be1eaac | /orderportal/__init__.py | a2b9dd6b74869cf65e57dcd878d59d631fe490a7 | [
"MIT"
] | permissive | nsc-norway/OrderPortal | 5cc01847e45ed8f06c9b102268d11870692115ad | 724eeae86070ae586dfbc5c75006f190203891e0 | refs/heads/master | 2020-12-30T22:55:55.699630 | 2018-06-22T11:38:25 | 2018-06-22T11:38:25 | 58,532,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | """OrderPortal: A portal for orders to a facility from its users.
An order can be a project application, a request, a report, etc.
"""
from __future__ import print_function, absolute_import
import os
__version__ = '3.5.5'
# Default settings, may be changed in a settings YAML file.
settings = dict(
ROOT_DIR=os.... | [
"per.kraulis@scilifelab.se"
] | per.kraulis@scilifelab.se |
43b8c2fb6c9c6a1bfa41fd1dd250b2fe5521367d | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/server_events/settings.py | 52f8c7d4bfbcda29c4a155dc4c9f731179daf18e | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,932 | py | # 2016.11.19 19:52:32 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/server_events/settings.py
import time
from gui.shared import utils, events, g_eventBus
_LAST_PQ_INTRO_VERSION = 'fallout'
class _PQSettings(utils.SettingRecord):
def __init__(self, introShown = False, tilesVisited = set(), h... | [
"info@webium.sk"
] | info@webium.sk |
1eb1479803d7abcc343ac2451120c2722b3364d2 | 4535a6240283de4e75c2018652175532bcc8965b | /broccoli/img/loader.py | 6127cc9aab413e0c38dffc1c311d0a73c5e5b986 | [
"MIT"
] | permissive | naritotakizawa/broccoli | c15894b3c2ade23011a858d041b6f154c60b2654 | 7feddc9353313cc2ba0d39228a4109acfdd71d4f | refs/heads/master | 2020-03-25T17:22:04.787488 | 2018-09-17T08:11:23 | 2018-09-17T08:11:23 | 143,974,900 | 5 | 0 | MIT | 2018-09-17T08:11:24 | 2018-08-08T07:11:15 | Python | UTF-8 | Python | false | false | 6,392 | py | """背景、オブジェクト、キャラクター画像の、読み込み機能に関するモジュール。"""
import random
from PIL import Image, ImageTk
from broccoli.conf import settings
class BaseLoader:
"""読み込み機能の基底クラス。"""
def __init__(self, path):
self.path = path
self.image = None
def load(self):
self.image = ImageTk.PhotoImage(file=self.... | [
"toritoritorina@gmail.com"
] | toritoritorina@gmail.com |
b971125048138ea4dc1ba84e1cb9269a03457b64 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/1124.py | be5ef686fc0b2a861c688d6cb1e88fc5294d092f | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | class Solution:
def longestWPI(self, hours: List[int]) -> int:
arr = []
for val in hours:
if val > 8:
arr.append(1)
else:
arr.append(-1)
prefixSum = [] # 前缀和数组
cur_sum = 0
for val in arr:
prefixSum.appe... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
3801b8835d033cf96d14cf0c1c998ccb5fe89957 | 592958889d8cd28d2ca46301caf01e0ade0c3f61 | /rain_water_trap.py | a11159e0f54b6cfe810f0542c4929fa9cc1ecc76 | [] | no_license | abhishekgupta5/data_structures | 510f2d3c72a4f1ae20e23ee06a532c78dea5861a | 84fc59e5cebba5884148f8c8edd69d03e5fd9cb6 | refs/heads/master | 2020-12-02T17:57:16.494525 | 2018-04-07T13:38:01 | 2018-04-07T13:38:01 | 96,452,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | #!/usr/bin/python3
#Interviewbit-Rain water trap problem
#Question link: https://www.interviewbit.com/problems/rain-water-trapped/
#Solution using just two extra variabes
def trap(A):
res = 0
left_max = 0
right_max = 0
lo = 0
hi = len(A)-1
while lo<=hi:
if A[lo]<A[hi]:
if ... | [
"abhishekmodi2011@gmail.com"
] | abhishekmodi2011@gmail.com |
bd7ff3912a717f9d4d574a72983e91164e32e986 | 08b269b3f3f94374f89386d2e2a79bf8e0821548 | /examples/get_distance/main.py | b0a8e72dc12fc1d8908a00896e1eddb9f8211b3e | [] | no_license | zerynth/lib-vishay-vcnl4200 | 1c9679e0b49b3f7591c1197846ba35e64f5ab5bc | 266228ddef9d30949a380c01425557374849fe46 | refs/heads/master | 2021-06-16T19:42:04.638083 | 2020-09-24T15:43:09 | 2020-09-24T15:43:09 | 206,515,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | ################################################################################
# Read distance and ambient light from VCNL4200
#
# Created: 2019-09-03 16:53
################################################################################
import streams
from vishay.vcnl4200 import vcnl4200
streams.serial()
... | [
"dev@zerynth.com"
] | dev@zerynth.com |
22ea37ee79492a00973da5f11e7e4b4bfe3ec3b1 | 5c023a6597cef23ab841b33179ee8a3f0750b0a3 | /tests/test_transducer.py | 7007dee216dc5f73bc226f8be565eb0889218ff6 | [
"Apache-2.0"
] | permissive | dathudeptrai/TensorFlowASR | 43a55850ad62f5a51b6587ef54df73a0e0109ca7 | 72cd5d2b932d66ddd61e79ab41bb0d64cb8c4919 | refs/heads/main | 2022-12-29T01:12:44.175317 | 2020-10-18T11:57:05 | 2020-10-18T11:57:05 | 305,675,364 | 1 | 0 | Apache-2.0 | 2020-10-20T10:42:47 | 2020-10-20T10:42:47 | null | UTF-8 | Python | false | false | 3,729 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# 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 t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
d2f3f20d3c8c93c843381be9752984cbcb77ceaf | 0201ac814d825cac1030dfe1ccdb7ef1657c205b | /version.py | dc9279d7aa3fa95bcc43e6c1792bc0a643e7640c | [
"BSD-3-Clause"
] | permissive | karttur/geoimagine03-timeseries | c99be449dccaab767d470cfaa2b71d9dae339fba | aa8e1642fd4a8bc196ad6fce9f90b80066d54dac | refs/heads/main | 2023-08-22T14:12:50.791746 | 2021-10-20T10:54:37 | 2021-10-20T10:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | '''
Created on 19 Oct 2018
Updated 16 Feb 2021
@author: thomasgumbricht
'''
__version__ = '0.9.0'
VERSION = tuple( int(x) for x in __version__.split('.') )
metadataD = { 'name':'timeseries', 'author':'Thomas Gumbricht', 'author_email':'thomas.gumbricht@gmail.com',
'title':'timeseries', 'label':'Timeseri... | [
"thomas.gumbricht@gmail.com"
] | thomas.gumbricht@gmail.com |
008733fd3912c82fe535cc8c80762a31239bfe67 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03162/s888208034.py | 2a29cba6b042e0b647a3049b963046baf2f98a4a | [] | 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 | 284 | py | N = int(input())
F = [tuple(map(int, input().split())) for _ in range(N)]
DP = [0] * 3
for f in F:
D = [0] * 3
S = {0, 1, 2}
for i in range(3):
S.remove(i)
for s in S:
D[i] = max(D[i], f[i] + DP[s])
S.add(i)
DP = D
print(max(DP)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e49e6ab844054f543e4fd302ff6eef3873d36af8 | 2903ac66369b6bd45889b12629d8c8e34e6089b3 | /frappe_training/frappe_training/doctype/training__history/test_training__history.py | 56ae2cb6a7aaee48f0e02f140bdce339fcf85447 | [
"MIT"
] | permissive | sivaranjanipalanivel/training | 6fa50b5f97fb00894404fba11122599fd796623c | b177c56a319c07dc3467ce3113e332ecee9b81fa | refs/heads/master | 2023-07-17T06:11:29.894363 | 2021-08-02T14:47:31 | 2021-08-02T14:47:31 | 391,987,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, valiantsystems and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestTrainingHistory(unittest.TestCase):
pass
| [
"you@example.com"
] | you@example.com |
009b6984ad4322cd604abb3c0be2dc6e1a660b92 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /quintagroup.blog.star/tags/0.1/quintagroup/blog/star/adapters.py | ec0d62e0aa2afec0b30616ef68f7e54cdef06e6c | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | import calendar
from zope import interface, component
from DateTime import DateTime
from quintagroup.blog.star.interfaces import IQGBlogEntryRetriever
from Products.CMFCore.utils import getToolByName
from OFS.interfaces import IFolder
from Products.ATContentTypes.interface import IATTopic
class FolderEntryGetter:
... | [
"chervol@users.noreply.github.com"
] | chervol@users.noreply.github.com |
461317b1448bbc616c68a80196cef90a86ee67b9 | 356740062993a5967717098a7a3ee78ac6c6cf3f | /chapter19/examples/pillow_basics.py | b265e96fa9ab348fad63b8198ff77c555d436c8a | [] | no_license | xerifeazeitona/autbor | 79588302f14c0c09b1f9f57fcb973e656ee1da5c | c37ccbfa87c1ac260e728a3a91a8f2be97978f04 | refs/heads/main | 2023-04-03T18:01:34.588984 | 2021-04-07T17:59:26 | 2021-04-07T17:59:26 | 348,749,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | from PIL import ImageColor
from PIL import Image
# Getting RGBA values with getcolor()
print(ImageColor.getcolor('red', 'RGBA'))
print(ImageColor.getcolor('RED', 'RGBA'))
print(ImageColor.getcolor('Black', 'RGBA'))
print(ImageColor.getcolor('chocolate', 'RGBA'))
print(ImageColor.getcolor('CornflowerBlue', 'RGBA'))
# ... | [
"juliano.amaral@gmail.com"
] | juliano.amaral@gmail.com |
3c4a46ceb3c10812e7705b70d6c14c67dedf9602 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano4250.py | d5161fb3de4a2f1503101c0437a1180304be6211 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
5579f2d218a1b365fbbc93e4295006120ac0e684 | 16e5766fc34fdbc290b42e931feb70a4601afe79 | /level2/level2_ex25.py | fc0b0a036bf7ca775f84ab907ffb8838924b9846 | [] | no_license | taesu-park/Programmers | 221e820569edffb583eb2badd35c46c570cf3640 | 3149aac86ed8b9ec00799e8b09ff243f8e0ded1a | refs/heads/master | 2022-12-22T01:49:47.842371 | 2020-09-15T06:37:27 | 2020-09-15T06:37:27 | 277,981,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | #(25) 가장 큰 정사각형 찾기
def solution(board):
width = len(board[0])
height = len(board)
for x in range(1,height):
for y in range(1,width):
if board[x][y] == 1:
board[x][y] = min(board[x-1][y-1], min(board[x-1][y], board[x][y-1])) + 1
return max([item for row in board for i... | [
"tsoo1014@gmail.com"
] | tsoo1014@gmail.com |
6425a1151a39d04eb05ea4d22cad0de7e2f0f97c | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/project/urls_20210223215431.py | 76d3aa012b623e2e16c3989aeb75c8e7559d381e | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
from django.contrib import admin
from django.urls import path,include
from .import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.home),
path('blog/', views.blog),
path('student/',include('student.urls')),
]
| [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
f35d991a4e614c47262007dab924900eb40ad385 | 4273f162abb12ef1939271c2aabee9547ac6afee | /katana_tutorials/pipe/resources/toolkits/sample.py | 6f254ae6a475dfa7bd3130c139e2bdee1c3e1a0f | [] | no_license | xiyuhao/subins_tutorials | 2717c47aac0adde099432e5dfd231606bf45a266 | acbe4fe16483397e9b0f8e240ca23bdca652b92d | refs/heads/master | 2023-07-28T13:42:41.445399 | 2021-09-12T11:02:37 | 2021-09-12T11:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | KEY = 'toolkit'
NAME = 'Sample'
ORDER = 0
ENABLE = True
ICON = 'sample.png'
LAST_MODIFIED = 'Jun 20, 2020'
OWNER = 'Subin Gopi'
DESCRIPTION = 'Sample toolkit'
def execute():
from PyQt4 import QtGui
message = '\n#welcome to katana python tutorials\n[https://www.subins-toolkits.com]'
QtGui.QMessageBox.i... | [
"sid@localhost.localdomain"
] | sid@localhost.localdomain |
7c0615fca6ed140d7bcee0d75149986513877962 | b33c4f710d07c06becb8024df0d10495acaae6c9 | /pandas_ta/statistics/kurtosis.py | 261e748928538b499cb4f332f90a621c5e364c6f | [
"MIT"
] | permissive | johnjdailey/pandas-ta | 159ce37bc477bab7fcc1ddc80810cb0e7e6749da | 8b2f258381390856938184bfeb16d1be04c8b7b8 | refs/heads/master | 2022-07-02T23:58:27.310243 | 2020-05-03T16:18:45 | 2020-05-03T16:18:45 | 262,966,546 | 1 | 0 | MIT | 2020-05-11T07:11:41 | 2020-05-11T07:11:41 | null | UTF-8 | Python | false | false | 1,199 | py | # -*- coding: utf-8 -*-
from ..utils import get_offset, verify_series
def kurtosis(close, length=None, offset=None, **kwargs):
"""Indicator: Kurtosis"""
# Validate Arguments
close = verify_series(close)
length = int(length) if length and length > 0 else 30
min_periods = int(kwargs['min_periods']) i... | [
"appliedmathkj@gmail.com"
] | appliedmathkj@gmail.com |
bca7b84bd1e52bbb4c7f118598325205ea645de0 | 6cc4bb84361773e00919ba72d33c4f87d3e5e46e | /backends/cache_backend.py | f57a7b49e4c29802714e7588de98fa429fb9bac4 | [
"MIT"
] | permissive | tzihiang/django-cassiopeia | 0980ed8cba7fddcb9e171cc5f1ca7fe7716074b3 | d14fe8fea1c94880c3262f46b9301e45a5f88e79 | refs/heads/master | 2022-11-19T06:59:31.204535 | 2020-07-11T18:38:34 | 2020-07-11T18:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | from functools import wraps
from typing import Callable, Any, TypeVar
from collections import defaultdict
from django.core.cache import caches
import datetime
from logging import getLogger
LOGGER = getLogger(__name__)
T = TypeVar("T")
class DjangoCacheBackend(object):
def __init__(self, alias: str = None, logs_e... | [
"paaksingtech@gmail.com"
] | paaksingtech@gmail.com |
1263e6215c0b9f35e8e36946570f5b162c8ca351 | 85c218021bd9eb123797f6f0d0ca470329923660 | /src/manage.py | db29b678d401429664e0cdce103406bf0476101a | [
"MIT"
] | permissive | KbaHaxor/abizeitung_django | 22a787234c171741c84a0233c410b6aaf40aee83 | 8c40efa878501cd1a551cb943e8d4abddbd4d14d | refs/heads/master | 2021-01-12T18:15:31.803860 | 2014-06-25T11:40:46 | 2014-06-25T11:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | #!/usr/bin/env python2
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "abizeitung_site.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"moritz.hilscher@gmail.com"
] | moritz.hilscher@gmail.com |
ba7cb6487331ffc039e21274cb78ba317959c085 | 093b9569be9d1c4e5daf92efbebc38f680917b2d | /.history/base/models_20210828171001.py | 1420db14f8f5887a20d038b66a98799f9f7914e5 | [] | no_license | Justin-Panagos/todoList | 95b1e97ff71af1b0be58e7f8937d726a687cea4d | 10539219b59fcea00f8b19a406db3d4c3f4d289e | refs/heads/master | 2023-08-04T13:27:13.309769 | 2021-08-29T14:06:43 | 2021-08-29T14:06:43 | 400,827,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null = True, balnk=True)
title = models.CharField(max_length=200)
description =
complete =
create = | [
"justpanagos@gmail.com"
] | justpanagos@gmail.com |
d1230d3d156438f12ef4cf8b44b209b8018a9038 | 10169476b29746df89d3bc7d4cddc7a9977d3053 | /Objects and Classes - Exericse/06. Inventory.py | f2b60fc0e4977ef24303c6ce6a3609b729fad456 | [] | no_license | SilviaKoynova/Softuni-Python-Fundamentals | 92027a8d1ece50ec7d8d5f00409541ef5ba64087 | fed18f863408827d8291959cd5951f8dfc0e2912 | refs/heads/main | 2023-07-14T19:53:10.284724 | 2021-08-27T12:06:48 | 2021-08-27T12:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | class Inventory:
def __init__(self, capacity):
self.__capacity = capacity
self.items = []
def add_item(self, item):
if self.__capacity > len(self.items):
self.items.append(item)
else:
return "not enough room in the inventory"
def get_capac... | [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
05e39aec4ce56558b68b93325ec594ce301e972d | dc69a93baa6c50f76d5d6417413ceda8d6da341c | /downloadbot/common/retry/policy.py | f63844461ee2b5af7a4dac484cbe471aafed76df | [
"MIT"
] | permissive | dnguyen0304/downloadbot | 930c0ca9fcf9df39d39a648bb9798ea4d348fedc | 8c045f438a7a06dfc0cea6d9fbbf113babab14e1 | refs/heads/master | 2021-09-03T06:40:58.433553 | 2017-11-12T15:13:25 | 2017-11-12T15:13:25 | 103,693,365 | 0 | 0 | null | 2017-11-12T15:13:26 | 2017-09-15T19:22:09 | Python | UTF-8 | Python | false | false | 8,009 | py | # -*- coding: utf-8 -*-
import abc
import collections
import json
import sys
import time
import six
from . import exceptions
from .attempt import Attempt
from downloadbot.common import io
from downloadbot.common import utility
class Topic(utility.AutomatedEnum):
ATTEMPT_STARTED = ()
ATTEMPT_COMPLETED = ()
... | [
"dnguyen0304@gmail.com"
] | dnguyen0304@gmail.com |
c1b71765d629750b9f7c08017f7bc347a6ec5e49 | 773a5afcd8e16f48502acc199b5f8f3c9ab75bf2 | /hwtLib/handshaked/cdc_test.py | b54b2c8afdf90fc2b4603e1200fb052e21f2ec5d | [
"MIT"
] | permissive | cp45009/hwtLib | 484e84986556d14de78b0d3a1cd757010901471f | 3a00657e6c9aa9d747b38cfec485f95b05e0bc1b | refs/heads/master | 2023-08-21T19:29:41.175881 | 2021-09-14T08:47:36 | 2021-09-14T08:47:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from hwt.interfaces.std import Handshaked
from hwt.simulator.simTestCase import SimTestCase
from hwtLib.handshaked.cdc import HandshakedCdc
from hwtSimApi.constants import CLK_PERIOD, Time
def T_to_f(time):
"""
Period to frequency
"""
re... | [
"nic30@seznam.cz"
] | nic30@seznam.cz |
3700addca5673af49a9f8959594b46b91b0f3046 | 292cec77b5003a2f80360d0aee77556d12d990f7 | /src/bentoml/catboost.py | 9d860360772c51c221cff38d3821b2006f357e7d | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 372 | py | from ._internal.frameworks.catboost import get
from ._internal.frameworks.catboost import load_model
from ._internal.frameworks.catboost import save_model
from ._internal.frameworks.catboost import get_runnable
from ._internal.frameworks.catboost import CatBoostOptions as ModelOptions # type: ignore # noqa
__all__ = ... | [
"noreply@github.com"
] | yubozhao.noreply@github.com |
19ce9aeb0bffdc7f183813d570a8e100b0cf26ac | 1fa16c1df35fd8247f9274b26a70523a514210f0 | /dependencies/amitools-0.1.0/amitools/binfmt/Dumper.py | 636aca9d3d00afaa0e5d63d7b38afadfcd9c9592 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | limi/AGSImager | 25a816b1c5b9ce8553cd6e3a47babce574f15119 | d3771800308e61a7a07df4a9b361e5bd5ba9e409 | refs/heads/master | 2023-01-10T11:19:52.248376 | 2020-04-14T19:59:23 | 2020-04-14T19:59:23 | 255,813,813 | 0 | 0 | MIT | 2020-04-15T05:26:57 | 2020-04-15T05:26:56 | null | UTF-8 | Python | false | false | 1,941 | py | from __future__ import print_function
from BinImage import *
import amitools.util.HexDump as HexDump
class Dumper:
def __init__(self, bin_img):
self.bin_img = bin_img
def dump(self, hex_dump=False, show_reloc=False, show_symbols=False, show_debug_line=False):
for seg in self.bin_img.get_segments():
... | [
"optiroc@gmail.com"
] | optiroc@gmail.com |
fa270788fa9e996f96c5c201efab5264851d58d6 | ab574f7511fa15e5ea50a26f26e3e38f7e33505a | /win_2014/numpy/core/multiarray.py | 677abc146c4060d96100f1e07cc481adbc1ea450 | [] | no_license | zclongpop123/maya_python_packages | 49d6b340512a2580bc8c14ae6281ca3f57017acd | 4dd4a48c41749443ac16053d20aec04e9d2db202 | refs/heads/master | 2021-11-30T01:49:41.846727 | 2021-11-17T01:47:08 | 2021-11-17T01:47:08 | 49,186,909 | 16 | 9 | null | 2017-03-07T00:13:41 | 2016-01-07T06:48:35 | Python | UTF-8 | Python | false | false | 281 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__,'multiarray.pyd')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"zclongpop123@163.com"
] | zclongpop123@163.com |
4dd2b1c66821467b50b45db9314ec187c68ca2e8 | 82ae1b36b4efc7de66b6ca3e268faa99562bc4ce | /sitch/tests/christmas_tree/device_samples.py | 364379813dea938282ba89a6bdf8505baa9c3ffb | [
"Apache-2.0"
] | permissive | fhm097/sensor | 3fddb01caa3f47a962ff021a8208ad56087fc69e | 8bade01acf45fa17fb89c12d50c619fbf23d06cf | refs/heads/master | 2020-12-02T17:58:04.901757 | 2017-06-27T02:40:26 | 2017-06-27T02:40:26 | 96,455,480 | 0 | 2 | null | 2017-07-06T17:30:00 | 2017-07-06T17:30:00 | null | UTF-8 | Python | false | false | 5,717 | py | class DeviceSamples(object):
gps_device_loc_a = {"scan_program": "gpsd",
"type": "Feature",
"sat_time": "2017-03-25T00:30:48.000Z",
"time_drift": 2,
"sys_time": "2017-03-25T00:32:48.416592",
"geom... | [
"ash.d.wilson@gmail.com"
] | ash.d.wilson@gmail.com |
c334759f542432bbe8ce48a71cbc0cdcf2636abb | d3d730cda1d4fd89dc2f52bcb5366c8e7dd8e1db | /ABC/ABC098/C.py | 3b24fdc75595553cfc5875c9fc537fbbb6795dec | [] | no_license | sasakishun/atcoder | 86e3c161f306d96e026172138aca06ac9a90f3ea | 687afaa05b5a98a04675ab24ac7a53943a295d8e | refs/heads/master | 2020-03-19T19:58:07.717059 | 2019-05-04T14:39:00 | 2019-05-04T14:39:00 | 136,882,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | n = int(input())
S = input()
s = [0 for i in range(n)]
for i in range(n):
if S[i] == "E":
s[i] = 1
min = n
count = 0
for j in range(n):
i = 0
if i < j and s[j] == 1:
count += 1
elif i > j and s[j] == 0:
count += 1
if count < min:
min = count
for i in range(1, n):
if s[... | [
"Pakka-xeno@keio.jp"
] | Pakka-xeno@keio.jp |
487ecbe6e1af951c1a7980042df1217b6a4348cc | 66e7fdfb8498c7573719dda5e3f7744a544bec80 | /model/extraction/bi_lstm.py | 33bb10c8be111f9a9ef41a4f47385947ff4e3890 | [] | no_license | simonsben/intent_detection | d172976ead7d9d7d33f2ad0803c92cdc1afe28e3 | 7ca7e4e1f0e7ec92c034f459a8a8b199d37dfb17 | refs/heads/master | 2023-07-14T18:47:48.077452 | 2020-09-18T16:21:58 | 2020-09-18T16:21:58 | 257,970,547 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from numpy import zeros
from utilities.data_management import load_dataset_params
def vectorize_content(content, model):
""" Translates document content to word vectors """
vector_dim = model.get_dimension()
max_tokens = load_dataset_params()['max_document_tokens']
prepared_content = content... | [
"simons.ben0@gmail.com"
] | simons.ben0@gmail.com |
895cd3ec066282c95f8bec8eac81adceb9eaf2ec | a8eef641e05e24fc44b159979503cd7d098943a9 | /contests/2012.02/Lucky1/table.py | 8aff0e3d006868fd2b8837452db4ca20514dcb32 | [] | no_license | Shmuma/cc | 7f60f7072c4213062abfb2855af2b9f02111e33f | b0b510a055be21132d6dd9e68575807fd5c2c4ea | refs/heads/master | 2020-07-20T11:23:16.840552 | 2012-09-03T08:31:49 | 2012-09-03T08:31:49 | 591,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import sys
def count_digit (digit, num):
res = 0
while num:
if num % 10 == digit:
res += 1
num = int (num / 10)
return res
def count_will_change (digit, num):
"""
Returns True if amount of digits will change on num+1
"""
return count_digit (digit, num) != coun... | [
"max.lapan@gmail.com"
] | max.lapan@gmail.com |
c023782508035f9676989ccc5751134bec2eea42 | b6f4ba21f5ef86ca78592819f67ebc22582825ea | /week-03/day-3/07.py | d70862cc628cc0924271fc85cd2163ac0aded243 | [] | no_license | greenfox-zerda-lasers/h-attila | e85ec2f94a97850d704a6f2eed96224c17250ad2 | bffa3ed68fe3d4c5770244b92ed1a9202c42c43f | refs/heads/master | 2021-01-11T05:44:29.458761 | 2017-05-14T07:48:30 | 2017-05-14T07:48:30 | 71,352,237 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # create a function that takes a list and returns a new list with all the elements doubled
data = [1, 2, 3, 4, 5, 6, 7, 8, 9]
def list_dubler(list):
for i in range(len(list)):
print(i)
list[i] *= 2
return list
print(list_dubler(data))
| [
"email.atinak@gmail.com"
] | email.atinak@gmail.com |
ef74bb14d15470b265d2ab015dafbf6079bdc486 | e5ed20535df82d450c0a1d963838d7eae13cc354 | /nlp_models/q2answer/syntactic_tree/tree_pos_vecs.py | 002e40f9cd22918634619bcd67af98b58c750792 | [] | no_license | arfu2016/nlp | c3f8a3fdc1da8ca81de809daca4c41c581150775 | 68dcbd40e1f4fcf2329c7f6561160de6c539d3b9 | refs/heads/master | 2020-03-15T10:01:37.532272 | 2018-09-05T03:50:51 | 2018-09-05T03:50:51 | 132,090,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | """
@Project : CubeGirl
@Module : tree_pos_vecs.py
@Author : Deco [deco@cubee.com]
@Created : 12/15/17 5:03 PM
@Desc :
"""
import json
import re
from collections import defaultdict
from pydtk.dtk import DT
from pydtk.operation import fast_shuffled_convolution
from pydtk.tree import Tree
from Daka.cha... | [
"deco@cubee.com"
] | deco@cubee.com |
595d7f7a0a2ef26659bc725c1ef7554867516549 | 2207901d6018c5af9a430ea0504d2312117d8071 | /14-python-threads.py | fb4aabb33643dd66c38501e27ba11c46b6b0cf89 | [] | no_license | tsanhan/learn_python | 07a6a3742e74668309a349a2d73b33ea6074eb8b | e5abb1c15479470603b01d4835003e2ff7caa94a | refs/heads/master | 2023-02-13T19:40:51.790206 | 2021-01-12T23:34:59 | 2021-01-12T23:34:59 | 319,448,623 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | # we will learn:
# using threads with Python
# When you use threads it is like you are running
# multiple programs at once.
# Threads actually take turns executing. While one
# executes the other sleeps until it is its turn
# to execute.
import threading
import time
import random
def executeThread(i):
# st... | [
"you@example.com"
] | you@example.com |
92fb17c6b66e0dd5641603819b336c70b0a41a9d | feccf7588777becba68921c0bfade3e21f5210ce | /airflow/providers/google/ads/_vendor/googleads/v12/resources/types/campaign_feed.py | fff057f80b3e989eeeddfd08f622e6d841f2e33e | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | francescomucio/airflow | f17ed9abd8b41d8a2227deca052508edf12f1cbf | c199b1a10563a11cf24436e38cb167ae82c01601 | refs/heads/master | 2023-04-14T17:44:53.438246 | 2023-04-06T06:44:23 | 2023-04-06T06:44:23 | 217,327,641 | 0 | 0 | Apache-2.0 | 2020-09-09T13:26:47 | 2019-10-24T15:06:52 | Python | UTF-8 | Python | false | false | 3,085 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | francescomucio.noreply@github.com |
1b575e9e273e44fac6132bf3638583e224cfdd52 | 7dc86226b44a3a00903926a7f7d4930c954c2973 | /python-advanced/04 - Comprehensions - Lab/03. Even Matrix.py | a65bb7bf54b2d393f8f23ae23eb5e73c1fb465c1 | [] | no_license | rescenic/Softuni-Python-v2 | db49ded54fd6eac2179b5a2795bb58b7bc6af1f8 | e5a0d6b13570239a32245e8126cd3cf6abd58d3f | refs/heads/main | 2023-08-10T18:31:01.225334 | 2021-10-05T06:50:37 | 2021-10-05T06:50:37 | 576,778,410 | 1 | 0 | null | 2022-12-11T00:07:25 | 2022-12-11T00:07:24 | null | UTF-8 | Python | false | false | 129 | py | n = int(input())
matrix = [[int(x) for x in input().split(', ') if int(x) % 2 == 0]
for _ in range(n)]
print(matrix)
| [
"n.kolew@gmail.com"
] | n.kolew@gmail.com |
110c42d751e9c69e550fbf38f277074977c47030 | 80052e0cbfe0214e4878d28eb52009ff3054fe58 | /e2yun_addons/odoo12/srm_base/__manifest__.py | d5d4fe8dd45f7a2d33a93e952e1bf707d47b5618 | [] | no_license | xAlphaOmega/filelib | b022c86f9035106c24ba806e6ece5ea6e14f0e3a | af4d4b079041f279a74e786c1540ea8df2d6b2ac | refs/heads/master | 2021-01-26T06:40:06.218774 | 2020-02-26T14:25:11 | 2020-02-26T14:25:11 | 243,349,887 | 0 | 2 | null | 2020-02-26T19:39:32 | 2020-02-26T19:39:31 | null | UTF-8 | Python | false | false | 782 | py | # Copyright 2017 - 2018 Modoolar <info@modoolar.com>
# License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).
{
"name": "SRM Base",
"summary": "SRM Base",
"category": "SRM Management",
"description": " SRM 基础模块,主数据增强,主菜单创建 ",
"version": "12.0",
"license": "LGPL-3",
"autho... | [
"qiang.li3@pactera.com"
] | qiang.li3@pactera.com |
99fe06e9119c1b744277460d6b91c2bd315a97e9 | 761e133170e1c34a2360d488ddca43fa40107b96 | /src/parsers/MaBullParser.py | e4d19259f2dde8d123eedee4651edfd1791a30cb | [] | no_license | bjzz/StockParser | c85b7180eea7ac5fa79b320fe1ad8934513c0482 | a2dc1d2de06b78055786b956de940548bca75054 | refs/heads/master | 2023-03-18T04:54:31.487171 | 2019-09-27T09:48:28 | 2019-09-27T09:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | #coding:utf-8
#!/usr/bin/env python
'''
woojean@2018-10-03
'''
import os
import re
import requests,time
import shutil
import sys
import threading
import time
import datetime
from BaseParser import BaseParser
reload(sys)
sys.setdefaultencoding('utf-8')
rootPath = sys.path[0][0:sys.path[0].index('StockParser')]+'/Sto... | [
"you@example.com"
] | you@example.com |
19f8bd48d801646f2e2919d79b41bbe0c9c995aa | e1436eb68e51dcd1becb7e0f8671b51eb4b23ec0 | /desktop/kde/frameworks/ksyndication/actions.py | 4c0756b039978fefe1550aa16b3c93f6349f6314 | [] | no_license | SulinOS/SulinKDE | bef0ebbecafa6082ad7599f377c95573468827fb | 9984e0f40a5a011e59d439a24856bde78deea1c2 | refs/heads/master | 2020-09-16T05:34:20.333558 | 2020-06-10T08:10:53 | 2020-06-10T08:10:53 | 223,669,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import inarytools
from inary.actionsapi import kde
def setup():
kde.configure()
def build():
kde.make()
def install():
kde... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
ec39faa78a386f6e62c42abe12725117826508f3 | 2ac4951d0a8c2dc8398a4718146bf57f7a336727 | /chapter5/sinesum1_movie.py | e5d8ed6eec78592123653a5c7d6fd1bc05abd378 | [] | no_license | OldJohn86/Langtangen | 5e37a469828415f7aa5ccfc17f9390af999e328a | aaa34a1779d3732c8fa84c0bb3c860f00468178c | refs/heads/master | 2020-08-25T06:21:54.335805 | 2014-10-04T20:38:10 | 2014-10-04T20:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from scitools.std import *
def S(t,n,T):
sum = 0
for i in range(1,n+1):
sum += 1./(2*i-1)*sin(2*(2*i-1)*pi*t/T)
return sum*4/pi
def f(t, T):
import operator
condition = operator.and_(0 < t, t <= T/2.0)
x = where(condition,1,t)
x = where(t == T/2.0, 0, x)
condition = operator.an... | [
"nruderman.s@gmail.com"
] | nruderman.s@gmail.com |
8c31a608a8156f12213cb55e629be8349303b3eb | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/final_eval/v100_only/job50.py | a8911339d276d8db9e76e6d71630163916a664c2 | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,661 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
a9273781ff23850c4c59d66fe5204fab1916daad | be875a0cc4aa53a115cbbf79fc77fedbd4ed6b7d | /nnet/train.py | 53e02f55361c4ced1dc9b7bbbb4a5360608020fc | [] | no_license | elsa66666/voice-filter | 0599073dc01d12430b393898eac32f46a7f56d6a | 9daa53b74c4aa821ce3e4376b298b119b168f263 | refs/heads/master | 2023-01-10T23:32:16.639280 | 2020-11-20T10:44:54 | 2020-11-20T10:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | #!/usr/bin/env python
# wujian@2018
import os
import json
import pprint
import argparse
import random
from libs.trainer import SiSnrTrainer, get_logger
from libs.dataset import make_dataloader
from nnet import VoiceFilter
from conf import trainer_conf, nnet_conf, train_data, dev_data
def run(args):
gpuids = tu... | [
"funcwj@foxmail.com"
] | funcwj@foxmail.com |
7280a1841b4fcf17a5d847f8140918acf857778e | 472d15b01c9ff966e9c84f6ef796a65824793d4f | /test_naucse_render/test_integration.py | 52eb3c5fea779a236352d6b22ef512e9e4de32b0 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hroncok/naucse_render | 9d3da83bc37177e4b067c14386ef8f8eee0d3457 | c28a6b254d0cec0a2e09d2d89bb78bfa35b54b76 | refs/heads/master | 2020-12-05T14:17:37.404565 | 2019-02-27T12:36:44 | 2019-02-27T13:23:04 | 232,135,736 | 0 | 0 | NOASSERTION | 2020-01-06T16:01:53 | 2020-01-06T16:01:52 | null | UTF-8 | Python | false | false | 1,157 | py | import pytest
import naucse_render
from test_naucse_render.conftest import assert_yaml_dump, fixture_path
@pytest.mark.parametrize(
'slug',
[
'courses/normal-course',
'courses/serial-test',
'2000/run-without-times',
'2000/run-with-times',
'lessons',
],
)
def test_... | [
"encukou@gmail.com"
] | encukou@gmail.com |
f5c8521f676094746c8c307d4e6505dda3bdacd8 | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/form/file_h5/merge.py | b7c5adff6b830cef22fbfe6dbecf889a45c954b4 | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 242 | py | from molsysmt._private.exceptions import NotImplementedMethodError
from molsysmt._private.digestion import digest
@digest(form='file:h5')
def merge(items, atom_indices='all', structure_indices='all'):
raise NotImplementedMethodError()
| [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
bfe0ca926e7a9e4fb3de8e5efab933c6241968d9 | d460abf57186711b70e57103fb24ff6fb89e3264 | /osmnx/__init__.py | 1c9b94e72c08d99db5a5762f1316229a2aa73b8b | [
"MIT"
] | permissive | jerryAndLD/osmnx | 86c37da33e27556c407f015aa275d918536ee508 | 9f6b0769f812be78f792aa2e8d3006e0f74d8c74 | refs/heads/master | 2021-01-20T16:35:27.281744 | 2017-05-05T05:18:01 | 2017-05-05T05:18:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | ###################################################################################################
# Module: __init__.py
# Description: OSMnx: Retrieve, construct, analyze, and visualize street networks from OSM
# License: MIT, see full license in LICENSE.txt
# Web: https://github.com/gboeing/osmnx
###################... | [
"gboeing@berkeley.edu"
] | gboeing@berkeley.edu |
2a028ea8bd4a7d8d9f1be58a02b5bddef399518d | 46a5df524f1d96baf94f6eb0f6222f2b856235f3 | /spec/data/graph/_op_mixin_spec.py | 222898ad556c3a6f43745b2421a9a897850409c1 | [
"MIT"
] | permissive | PhilHarnish/forge | 5dfbb0aa2afdb91e55d85187bd86fbeb9b6b2888 | c544fb8b499e1e13793c94159f4c35bce187311e | refs/heads/master | 2023-03-11T17:23:46.569359 | 2023-02-25T15:09:01 | 2023-02-25T15:09:01 | 1,818,598 | 2 | 0 | MIT | 2023-02-25T15:09:02 | 2011-05-29T19:36:53 | Jupyter Notebook | UTF-8 | Python | false | false | 1,490 | py | from data.graph import _op_mixin
from spec.mamba import *
class Stub(_op_mixin.OpMixin):
def _alloc(self, *args, **kwargs) -> 'Stub':
return Stub(*args, **kwargs)
with description('construction'):
with it('constructs without error'):
expect(calling(_op_mixin.OpMixin)).not_to(raise_error)
with it('con... | [
"philharnish@gmail.com"
] | philharnish@gmail.com |
1b097f8e5eb4fd31b7677651589d9ada26c6aaf9 | 6ecd96cb7408f4e26fe34c66eb1c5f343c775d53 | /pages/activityCreate1029Page.py | 66f59e67c001049eef0b9120f539a0cabeff1f1f | [] | no_license | xzdylyh/beta_manage | 597601a8a60c80bd4aafb44f3510abe9e818fef5 | 19cb31a8d291e45f867af5f930f6a288ef659340 | refs/heads/master | 2023-01-08T22:05:49.235236 | 2019-02-26T04:43:33 | 2019-02-26T04:43:33 | 154,800,993 | 0 | 1 | null | 2022-12-27T15:35:15 | 2018-10-26T08:19:09 | Python | UTF-8 | Python | false | false | 4,361 | py | from selenium.webdriver.common.by import By
from pages.activityCreate64Page import ActivityCreate64
class ActivityCreate1029(ActivityCreate64):
"""消费评价"""
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<定位>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#奖励券
ac_reward_coupon_loc = (By.XPATH, "//input[@name='checkcoupon']/..")
#勾选状态
... | [
"lengyaohui.bj@acewill.cn"
] | lengyaohui.bj@acewill.cn |
ffc9502243563578c52c4c20de14c869a634d6f1 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/组合/斯特林数/第一类斯特林数轮换/第一类斯特林数表.py | dbbbaa9db3827b4cdb9fddebc391ffbe171f8e46 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # 将 n 个不同的元素划分为 k 个圆排列的方案数
from typing import List
MOD = int(1e9 + 7)
def getStirling1Table(n: int, k: int) -> List[List[int]]:
dp = [[0] * (k + 1) for _ in range(n + 1)]
dp[0][0] = 1
for i in range(1, n + 1):
for j in range(1, k + 1):
dp[i][j] = (dp[i - 1][j - 1] + (i ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
91d390ded846af0a8fbce1ccefce8e0ad55db51a | 77657db54bd90d8f5d8c9016c360eeaa90754d08 | /unittests/declaration_files_tester.py | c4fea6c267cfb09d5fb89b28dbdd84e69b6496f6 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | rockkoca/pygccxml | 486497c553c77f7a1bc57b90ebb5e63a5948efeb | 69e78cf7292852457a57d19eb0531a745dbac941 | refs/heads/master | 2021-01-13T16:18:22.278587 | 2017-01-14T10:21:27 | 2017-01-14T10:21:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | # Copyright 2014-2016 Insight Software Consortium.
# Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt
import os
import unittest
import parser_test_case
from pygccxml import parser
from pygccxml import declarations
class Test(... | [
"michkapopoff@gmail.com"
] | michkapopoff@gmail.com |
4fdacef64a08cebe7cb1c3c4a27a25681cb694fb | 8a505f3bcd23f9b65b4c08b2f3bd65a64f44612b | /src/samovar/commands/scm/revert.py | 60defa4c1a3eda2d18d4afc68634b217bf7fbd90 | [] | no_license | ninoslavmilenovic/samovar | fde7394bb8b86b7334d7ac0496ae4d3825533f5f | 4344bf3f2e7d740e38dd01b4143e9268a042b4aa | refs/heads/master | 2021-05-27T09:45:42.936824 | 2013-09-15T21:43:40 | 2013-09-15T21:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | __author__ = 'Viktor Kerkez <alefnula@gmail.com>'
__date__ = '02 January 2013'
__copyright__ = 'Copyright (c) 2013 Viktor Kerkez'
# tea imports
from tea.commander import BaseCommand
from ._parsing import HgStyle, HgLexer
class Command(BaseCommand):
'''Perform hg revert on all requested repositories'''
... | [
"alefnula@gmail.com"
] | alefnula@gmail.com |
add6e1402c4da0fea6c4a77d534e4b12476caa20 | c838c53ec5de94af57696f11db08f332ff2a65d8 | /mission/migrations/0015_mission_delivery_address.py | e8c65baaf600094501604dd77419e99a16889976 | [] | no_license | memobijou/erpghost | 4a9af80b3c948a4d7bb20d26e5afb01b40efbab5 | c0ee90718778bc2b771b8078d9c08e038ae59284 | refs/heads/master | 2022-12-11T14:47:59.048889 | 2019-01-28T02:30:40 | 2019-01-28T02:30:40 | 113,774,918 | 1 | 1 | null | 2022-11-22T02:02:41 | 2017-12-10T18:53:41 | Python | UTF-8 | Python | false | false | 638 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-04-26 11:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('adress', '0004_adress_place'),
('mission', '0014_au... | [
"mbijou@live.de"
] | mbijou@live.de |
69071952bcbff4db2e4531526dc192df0824bf05 | 0c86b24033e486c97a93f9523b64c9d555c88bd1 | /app/processing/Constants.py | 3514909a5c087183f5e6805735eba9fbdc422de0 | [] | no_license | generaldave/recursion_challenge | 8ade0469bc95f9bb296990cc598b38fc912255ea | 5b6c66b836aae496eb4d96ea589d7b3c3a28111b | refs/heads/master | 2021-05-16T04:29:15.361400 | 2017-10-22T12:21:40 | 2017-10-22T12:21:40 | 106,060,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | '''
David Fuller
Constants file - File contains processing package constants.
10-18-2017
'''
from collections import namedtuple
color = namedtuple('color', ['r', 'g', 'b'])
black = color(r = 0, g = 0, b = 0)
fill = 0
| [
"icepicktoeye@gmail.com"
] | icepicktoeye@gmail.com |
e5df2cac5af1e7675c2834552eb84e30557ef284 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /elasticache_write_f/migration_start.py | 57199a5b11bdc29cefbb78c2d99566301c09f993 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
88ac5475218c83d8f3cdb7a5707979f243d89c73 | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /homeassistant/components/flume/entity.py | ef63eeff1d7e012ff7b58bcaa77453070d2d0b88 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 1,966 | py | """Platform for shared base classes for sensors."""
from __future__ import annotations
from typing import TypeVar
from homeassistant.helpers.entity import DeviceInfo, EntityDescription
from homeassistant.helpers.update_coordinator import CoordinatorEntity
from .const import DOMAIN
from .coordinator import (
Flum... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
9a70646f2495e0391bb3a4eff9d772867a98b1e3 | 5a319a47587653dab9472eab4055144bcfd25967 | /src/opendr/perception/object_tracking_2d/fair_mot/algorithm/lib/tracker/matching.py | 850fbeae8cb2296c8cbaceffbf104e03de1f162c | [
"Apache-2.0"
] | permissive | passalis/demos | 612a7e07ba125d9815e110ff483132e162759dd7 | d8aeb045ee1832418fa232bc1c73783d72d10cf7 | refs/heads/main | 2023-07-19T03:25:05.269333 | 2021-09-21T19:59:42 | 2021-09-21T19:59:42 | 397,585,032 | 1 | 0 | Apache-2.0 | 2021-09-21T19:58:51 | 2021-08-18T12:02:00 | Python | UTF-8 | Python | false | false | 4,740 | py | import cv2
import numpy as np
import scipy
import lap
from scipy.spatial.distance import cdist
from cython_bbox import bbox_overlaps as bbox_ious
from opendr.perception.object_tracking_2d.fair_mot.algorithm.lib.tracking_utils import kalman_filter
import time
def merge_matches(m1, m2, shape):
O, P, Q = shape
... | [
"passalis@csd.auth.gr"
] | passalis@csd.auth.gr |
f954041fba7b8510d2b5f4cb547b771e5c3dfb79 | eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e | /atcoder/abc/abc201-300/abc266/f.py | b03a34ca709778b20ecaa0399ffdedf93dca60c1 | [] | no_license | reo11/AtCoder | 4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9 | 69c6d67f05cb9190d8fb07204488cd7ce4d0bed2 | refs/heads/master | 2023-08-28T10:54:50.859288 | 2023-08-22T18:52:47 | 2023-08-22T18:52:47 | 162,085,118 | 4 | 0 | null | 2023-07-01T14:17:28 | 2018-12-17T06:31:10 | Python | UTF-8 | Python | false | false | 2,517 | py | import sys
from collections import defaultdict, deque
input = sys.stdin.readline
n = int(input())
edges = defaultdict(lambda: [])
uv = []
for _ in range(n):
u, v = map(int, input().split())
uv.append([u, v])
edges[u].append(v)
edges[v].append(u)
q = int(input())
xy = []
for _ in range(q):
x, y = m... | [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
e87f671468d4cb412ce0ae1816a39fa2d20d24ce | 868ac4e558cf5fe945e8b557564f34f79b3ad01e | /purity_fb/purity_fb_1dot9/models/smtp.py | 73de2c03398c7a6e3ef26e742ed48d8a6ee43f43 | [
"Apache-2.0"
] | permissive | mabdelhafez/purity_fb_python_client | f4253ce8497fb3cff648e0a0cd1e567f48129fa7 | a9856875b3df43b4302a2e4addd1a6b71f51f5ce | refs/heads/master | 2022-04-20T09:24:22.031408 | 2020-04-20T22:11:32 | 2020-04-20T22:15:44 | 257,372,596 | 0 | 0 | NOASSERTION | 2020-04-20T18:40:24 | 2020-04-20T18:40:23 | null | UTF-8 | Python | false | false | 4,729 | py | # coding: utf-8
"""
Pure Storage FlashBlade REST 1.9 Python SDK
Pure Storage FlashBlade REST 1.9 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.9
Contact: i... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
eaf85de5d93fe435e036d48de6973e7d745e8ac1 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/loss/test_nn_cross_entropy_loss_1.py | e11e2989f99c926f8b6e8a776af775db46b71c2d | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 1,406 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
paddle.nn.CrossEntropyLoss
"""
import paddle
import pytest
from runner import Runner
from conv2d_dygraph_model import Conv2DNet
import numpy as np
@pytest.mark.loss_nn_CrossEntropyLoss_parameters
def test_nn_cross_entropy_... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
feef4eee08e45decb009e434f76d5356af6b78ba | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /func_return.py | 1f6f46649a7f1fc0a1f1c095cda972238fb70987 | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/python
#FileName:func_return.py
def maximum(x, y):
if x > y:
return x
else:
return y
print(maximum(2, 3))
| [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
603fc965c36dfb69ea7acf6e8c3f3913be0065f8 | 756b79e61594b0833fdc9d3f04d6107e95ee4889 | /Wave Segment/waveSegmentMusic/segmentWav.py | d7e86a6b03d8d8e71f8608d313f1a3308df6b814 | [] | no_license | jiemojiemo/MusicEmotionRecognitionBaseOnAdaboost | c5552c3c62568560ece4e73da6eaff8b0990e760 | 12b669e521e756f7d5e1e92275b69a9b7101a3fb | refs/heads/master | 2021-01-10T09:10:41.403495 | 2015-12-14T05:42:11 | 2015-12-14T05:42:11 | 47,905,944 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | #usr/bin/env python
#-*- coding: utf-8 -*-
import win32api
import win32event
import win32process
import os
def main():
rootdir = os.getcwd();
exePath = rootdir + "/Wave Segment.exe"
print(exePath)
for parent, dirname, filenames in os.walk(rootdir):
for filename in filenames:
fullPa... | [
"460706836@qq.com"
] | 460706836@qq.com |
dd5f3f796d2ecf89a87d1316637cf3c8f86eed1d | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /projects/computer-apps/py-qt/practice/lineEdit.py | 55c366c81d06e56eec698e7a3cbe3bd619076e37 | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 1,255 | py | from PyQt5.QtWidgets import QApplication, QPushButton, QDialog,\
QGroupBox, QGridLayout, QVBoxLayout, QLabel, QMainWindow,\
QHBoxLayout, QRadioButton, QLineEdit, QWidget
import sys
from PyQt5 import QtGui, QtCore
from PyQt5.QtCore import QRect
from PyQt5.QtGui import QPixmap
class Window(QWidget):
def __i... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
19f12b5fc947a4c0fa471b3048cb162b276cf947 | 69d8f3cf7c10640a692fa9175f5a63a5a7b54fcd | /naver_spellchecker.py | 76de17ee5185f3fe4709539f055c23cdd9395c31 | [] | no_license | baidoosik/crawling | bd89fd9f59ecb8921e765b03faadf1c55bd59c74 | 62669badf6ce84e0ac9e575b736e41051642ea9c | refs/heads/master | 2021-06-21T19:25:30.175798 | 2017-07-30T15:02:55 | 2017-07-30T15:02:55 | 84,198,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import requests as req
import re
import json
def naver_spellchecker(q):
url = 'https://m.search.naver.com/p/csearch/dcontent/spellchecker.nhn?'
params = {
'_callback': 'window.__jindo2_callback._spellingCheck_0',
'q': q
}
request_headers = {
'User-Agent': ('Mozilla/5.0 (Macintos... | [
"qoentlr37@naver.com"
] | qoentlr37@naver.com |
6a69fff2b1da3b0edc111afb0b6fd0c8a121272c | 941c912f44beff33a072e086c1f561f6cdd64626 | /LeetCode/codes/568.py | f7fb81e31251c847a413315df48a13004996231b | [] | no_license | adreena/MyStudyCorner | 3a13a743769ed144965b767f547c16df4d0fa0dd | 355c0dbd32ad201800901f1bcc110550696bc96d | refs/heads/master | 2023-02-20T07:39:32.391421 | 2021-01-25T01:46:21 | 2021-01-25T01:46:21 | 255,104,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # time O(n2k)
# space (nk)
class Solution:
def maxVacationDays(self, flights: List[List[int]], days: List[List[int]]) -> int:
self.max_vac = float('-inf')
self.memo = defaultdict(lambda: float('-inf'))
self.cities = len(flights)
self.final_week = len(days[0])
def ba... | [
"kim.hszd@gmail.com"
] | kim.hszd@gmail.com |
9e5f3da408e6e30d3482347e10921a29e528cc56 | c77625eca982bac81ce97630e1e1273e022490ad | /week2-zebraPuzzle/alphaMetricalPuzzle/profiling.py | 2849aedbcd8127debb8a0255685f7552fb0c5c25 | [] | no_license | benzitohhh/cs212-style | 7b66a5b948f828b0ccece6c22ad49c3eed2d202b | 0cefe0fd374e2a3c84ecf15d1ac657392aacfcf1 | refs/heads/master | 2021-01-23T19:45:43.506797 | 2012-06-03T23:53:16 | 2012-06-03T23:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """
To profile in python....
python -m cProfile <filename.py>
LAW OF DIMINISHING RETURNS
in all productive processes, adding more of one
factor of production, while holding all others
constant, will at some point yield lower
per-unit returns
In our programme, 63% of time is spent in
eval(), so we should focus ... | [
"immanuel_ben@yahoo.co.uk"
] | immanuel_ben@yahoo.co.uk |
4c09b44e3736253213273ced7d360485f1c87431 | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/vicclientglobals/vicoptionset/vicoptiontlv/vicoptiontlv.py | c3d8f829d05f280d4afe199c5198d90f84de9cc2 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 6,741 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
9b8b8903a02b1d8d679121b8d00342707eab6385 | 5249381720c1feaa6bb91966d1919da77fc4eb76 | /python_web_demo/l7_05_元素操作.py | e556b593ff1d3a003dd04c93d2486927c099af81 | [] | no_license | liqi629/py_study | 7ab34d816e622fe57c2a3373a7f5d82472802dc8 | c3d192be9f755c9ea912006e545fd6f5ea43370d | refs/heads/master | 2022-12-24T10:02:38.707313 | 2020-09-29T07:27:27 | 2020-09-29T07:27:27 | 299,537,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # -*- coding: utf-8 -*-
# @Time : 2019/5/21 22:52
# @Author : l7
# @Email :liqi_629@163.com
# @File : l7_05_元素操作.py
# @Software : PyCharm
from selenium import webdriver
import time
#打开浏览器Chrome
driver = webdriver.Chrome()
#打开网址
driver.get("http://www.baidu.com")
#3、获取属性值
value = driver.find_element_by_id(... | [
"liqi_629@163.com"
] | liqi_629@163.com |
0db720bca678bb4b6aec58ca3f248ba45ffaea0b | b0dd7779c225971e71ae12c1093dc75ed9889921 | /tools/build/v2/test/example_make.py | 4ade4c204d542c9e6e7fe65c9f7be22c69a02ee5 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | blackberry/Boost | 6e653cd91a7806855a162347a5aeebd2a8c055a2 | fc90c3fde129c62565c023f091eddc4a7ed9902b | refs/heads/1_48_0-gnu | 2021-01-15T14:31:33.706351 | 2013-06-25T16:02:41 | 2013-06-25T16:02:41 | 2,599,411 | 244 | 154 | BSL-1.0 | 2018-10-13T18:35:09 | 2011-10-18T14:25:18 | C++ | UTF-8 | Python | false | false | 418 | py | #!/usr/bin/python
# Copyright (C) Vladimir Prus 2006.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Test the 'make' example.
import BoostBuild
t = BoostBuild.Tester()
t.set_tree("../example/mak... | [
"tvaneerd@rim.com"
] | tvaneerd@rim.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.