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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70f10976fd22144bee563066bcb53add2ed0a916 | 55d6de252e61c4b60688ebd8b1f637807acc1e7c | /usl_office_food/report/current_month_meal_report.py | fc31a42c4b3bd1f87eb3f53e4028ec0207990f1f | [] | no_license | mosadiqit/eerna_erp_uslbd | b707a1d49a4fce7c1543b63e0120e8f9b77b26ce | 73e3994a9e32df7809d244eb6592513162ab7853 | refs/heads/main | 2023-06-30T14:53:04.837197 | 2021-08-04T11:30:46 | 2021-08-04T11:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | from datetime import datetime, timedelta
from odoo import models
class ReportDailySalesDetailsReportView(models.AbstractModel):
_name = 'report.usl_office_food.current_month_meal_report_view'
def _get_current_employee(self, user_id):
hr_employee = self.env['hr.employee']
employee = hr_employ... | [
"ibrahimalazhar264@gmail.com"
] | ibrahimalazhar264@gmail.com |
1ba20da027ac196f9889df59d677414ef8b45095 | dac3a695b895c0170c350054fcc52d95f0daef5d | /data/level/level85.py | 15e94fb024d46b6106caf4347ebc0cd3ac5c3f8d | [
"Apache-2.0"
] | permissive | xingchen1106/match3-level-similarity | aad87de6e54c5bdc89cf4dac168559d11997d496 | cc9b28b8741b41bea1273c8bc9b4d265d79a1dca | refs/heads/master | 2021-05-22T02:48:09.444957 | 2019-07-19T09:19:09 | 2019-07-19T09:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,795 | py | data = {
'level_index': 85,
'move_count': 24,
'board_info': {
(0, 0): {
'base': (51, 1),
'fall_point': (0, -1),
'next': (0, 1),
'prev': (0, -1)
},
(0, 1): {
'base': (6, 1),
'next': (0, 1),
'prev': (0,... | [
"salild1011@gmail.com"
] | salild1011@gmail.com |
b0ee4ab88480a91c99fdfad24bfc3314c74284a8 | cc8e736757a0a561e86388073263538caae5488e | /myproject/news/migrations/0007_auto_20200401_1819.py | bf1d0f6aace31c721adbfcb6fdbbec8b60357808 | [] | no_license | Jafoor/News-Website | 5b2e565047130dfc8d69b22fc0eba391887aa502 | 3fb849a70f6937a4d236da95448a75f5df2c3eb6 | refs/heads/master | 2021-05-19T00:07:49.235143 | 2020-04-09T11:22:55 | 2020-04-09T11:22:55 | 251,485,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 3.0.4 on 2020-04-01 18:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0006_news_ocatid'),
]
operations = [
migrations.AlterField(
model_name='news',
name='name',
fiel... | [
"abujafor.cse11@gmai.com"
] | abujafor.cse11@gmai.com |
ed50dea5b8fe1aaf52fbd232801abf043f1ee3bc | 5861a31358b1249e5d63b5803fbba3ff33d5f6fe | /py/legacypipe/create_kdtrees.py | 5378bae6eef0458a1700f8912012867e578588ee | [
"BSD-3-Clause"
] | permissive | rongpu/legacypipe | 778a7130a1a9ad3dfb29fa4f926c98fbf5d3c574 | 955a244d30d1f00847257dcac7a7a62760108e68 | refs/heads/master | 2020-09-10T02:55:42.451296 | 2019-10-30T14:02:31 | 2019-10-30T14:02:31 | 221,630,940 | 0 | 0 | BSD-3-Clause | 2019-11-14T06:49:10 | 2019-11-14T06:49:09 | null | UTF-8 | Python | false | false | 2,147 | py | import os
from astrometry.libkd.spherematch import *
from astrometry.util.fits import fits_table
import numpy as np
import tempfile
# This script creates the survey-ccd-*.kd.fits kd-trees from
# survey-ccds-*.fits.gz (zeropoints) files
#
def create_kdtree(infn, outfn, ccd_cuts):
tempdir_obj = tempfile.Temporary... | [
"dstndstn@gmail.com"
] | dstndstn@gmail.com |
f182ad32a06799500c559ec7e771fb475fe7e804 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/131d417c7a0d8fb87a13f8c9eb23d91dfeb94ed0-<load_callbacks>-bug.py | 630159c96220aec0660f5e60957436f533c32b5d | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | def load_callbacks(self):
"\n Loads all available callbacks, with the exception of those which\n utilize the CALLBACK_TYPE option. When CALLBACK_TYPE is set to 'stdout',\n only one such callback plugin will be loaded.\n "
if self._callbacks_loaded:
return
stdout_callback_... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
906b4ea20d1c062c09756a5f143c0165eab9bf5e | 6323bd983f6304d95e62909bfc4883d2f9ef1a14 | /Hackerrank/Problem_Solving/Raise an exception.py | 14bc370e1106da3eac37a7bcd3c011caee622ae7 | [] | no_license | akshay-sahu-dev/PySolutions | 4c2d67d5f66fe83a6e302e1742a5bf17dafe2b99 | 83552962805768914034a284bf39197f52ca5017 | refs/heads/master | 2023-06-17T06:36:50.252943 | 2021-07-09T17:28:53 | 2021-07-09T17:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #Write your code here
##https://www.hackerrank.com/challenges/30-more-exception
class Calculator:
def power(self,n,p):
if n < 0 or p < 0:
raise Exception('n and p should be non-negative')
else:
return n**p
myCalculator=Calculator()
T=int(input())
for i in range(T):... | [
"akki5233@gmail.com"
] | akki5233@gmail.com |
c32ad64b6ef5a15e64c6500ce01f5cb2c815115b | 5d61acc1f9595047861f76b916cd28a167496f9e | /Configuration/GenProduction/python/ThirteenTeV/GMSB_noSLHA/GMSB_L450TeV_Ctau200cm_Pythia8_13TeV_cff.py | 8c16be98ee91c6e9f866935c71be4e76f28692cb | [
"Apache-2.0"
] | permissive | zhangzc11/cms-gmsb-sps8-configs | 1bbd3cf2a45ee187f3e41ff51c409976fd59f586 | 838e6aac1d13251e050c0ee8c4ed26ca0c6cef7e | refs/heads/master | 2020-06-24T05:28:46.872990 | 2019-09-24T20:05:33 | 2019-09-24T20:05:33 | 198,862,590 | 0 | 0 | Apache-2.0 | 2019-07-25T16:03:09 | 2019-07-25T16:03:08 | null | UTF-8 | Python | false | false | 1,459 | py | with open("/cvmfs/cms.cern.ch/phys_generator/gridpacks/slc6_amd64_gcc481/13TeV/madgraph/GMSB_SHLA/GMSB_Lambda450TeV_CTau200cm.slha") as f:
SLHA_TABLE = f.read()
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5... | [
"zzhang2@caltech.edu"
] | zzhang2@caltech.edu |
e0291b9b064dd1626868926250b579f964cf3769 | 0ea486c1e9c7acf1c191ce2e5ef1278ed431e602 | /pygeodesy/epsg.py | 49f43c0f695c80171f94b91e1b94ffe82e8fc0ec | [
"MIT"
] | permissive | rbpdqdat/PyGeodesy | af52a638b58c66a4a81ce577a31107a352f60795 | 565be1deeaabf6ccd13244d01d015ede01897a83 | refs/heads/master | 2023-02-01T23:05:28.195561 | 2020-12-13T16:16:38 | 2020-12-13T16:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,139 | py |
# -*- coding: utf-8 -*-
u'''Classes L{Epsg} and L{EPSGError} and functions to L{encode} and L{decode2}
I{European Petroleum Survey Group} (U{EPSG<https://www.EPSG-Registry.org>}) codes
from and to U{UTM
<https://WikiPedia.org/wiki/Universal_Transverse_Mercator_coordinate_system>} and
U{UPS<https://WikiPedia.org/wiki/... | [
"mrJean1@Gmail.com"
] | mrJean1@Gmail.com |
b94357c39aaa24665520fc4b81d5bbc281c25aaa | fc8b631d29d44d070247cf36ce796942dbabdfa5 | /server/dvaui/views.py | 435c946271470ee3add505a391ad05147d18c841 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | sunshinezhihuo/DeepVideoAnalytics | 01d1d6a450fa89d87552a684ca3e9c4fadbfdc95 | 3e77146daf3fbecf6d29ff4e354ae1fa171d929d | refs/heads/master | 2020-03-19T01:10:53.793750 | 2018-05-30T09:15:58 | 2018-05-30T09:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,173 | py | from django.shortcuts import render, redirect
from django.conf import settings
from django.http import JsonResponse
import glob
import json
from django.views.generic import ListView, DetailView
from .forms import UploadFileForm, YTVideoForm, AnnotationForm
from dvaapp.models import Video, Frame, DVAPQL, TaskRestart, TE... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
978ee227b8174cc13fd61778eac113f1e32c8efd | 91a9c239a8a138885a152ad853f6d1814948822d | /Libraries/Unittests/AddGroupPageUT/AddGroupPageUT.py | c83a0eba24a990aacc988daab6ee8d70e9095a42 | [] | no_license | TeddyTeddy/robot-fw-seleniumlibrary-tests | f80aabebe01513c4aefe296531398131c957cece | 5b0d90b4c687e2026f3ef116e0489a2648226994 | refs/heads/master | 2021-07-03T05:52:27.358172 | 2021-02-01T13:07:07 | 2021-02-01T13:07:07 | 240,202,766 | 1 | 0 | null | 2021-06-02T03:57:51 | 2020-02-13T07:36:08 | Python | UTF-8 | Python | false | false | 15,374 | py | import unittest
from mockito import unstub, verify, verifyNoUnwantedInteractions, expect, mock
from LibraryLoader import LibraryLoader
import LibraryLoaderStub
from Locators import locator, number_of_add_buttons, number_of_change_buttons
from AddGroupPage import AddGroupPage # class under test (CUT)
from ExpectedLi... | [
"hakan.cuzdan@yandex.com"
] | hakan.cuzdan@yandex.com |
75384c0ae05bb591fc25b59da98327399ac0781f | b3f8a351f5d92469c987302661a3dcb0328de609 | /fit_1D_NestedSampling/examples/multinest/tutorials/example1/1d_multimodal.py | 794fd9bc34add1c4836399941ba668ab552b7b44 | [
"MIT"
] | permissive | Chloe20-cyber/PythonFitting | 87412e5fd7c956f4bf0da77b0c235ad5f5059bff | 54315e336593f7f105f516766fb323662eadd5e3 | refs/heads/master | 2022-04-24T02:46:38.224828 | 2020-03-31T05:04:50 | 2020-03-31T05:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import json
import numpy
from numpy import log, exp, pi
import scipy.stats, scipy
import pymultinest
import matplotlib.pyplot as plt
# we define the problem: we need a prior function which maps from [0:1] to the parameter space
# we only have one parameter, the position of the gaussian (ndim == 1)
# map it from the u... | [
"cormac.r.purcell@gmail.com"
] | cormac.r.purcell@gmail.com |
501ad89d0452960a5c0f02a3435551ffde917856 | c92f8b2870add6860ef6b98a9e702788af5fd967 | /Chapter03/stringconcat1.py | 2687883bbd5bce1a349a6bd558e17f699f8bdb4c | [] | no_license | Rabidza/INF1511 | c6e1244679b2eff3f782957c056a72d49a552176 | 4bc10130a3693f3223bd12f4e9212a037bd1fc2a | refs/heads/master | 2021-09-08T05:42:58.897999 | 2018-03-07T20:08:31 | 2018-03-07T20:08:31 | 116,714,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | s = "Hello World!"
t = "Nice Day"
print(s + t)
print(s + " " + t)
print(s * 3)
u = "#"
print("The string after joining character # to the string", t, ":", u.join(t))
u = "hello"
print("The string after joining word, hello to the string", t, ":", u.join(t))
| [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
b27d3da462cc50e934736ce990253bd6dd784f5c | b848e8b8cf772f9498d4447b3b19ab14dac0e534 | /math/0x04-convolutions_and_pooling/2-convolve_grayscale_padding.py | 9fd03d250b9f8495f0ebf1f69664ba24360d9035 | [] | no_license | jaycer95/holbertonschool-machine_learning | efc93da7cb5c62ca0b578ce59bbc583f1ce55e03 | 16dc37d1c6dc00a271053b60724c51763914029a | refs/heads/main | 2023-06-09T02:51:26.268088 | 2021-06-30T23:30:59 | 2021-06-30T23:30:59 | 310,918,525 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/env python3
""" Convolution and pooling"""
import numpy as np
def convolve_grayscale_padding(images, kernel, padding):
""" perform a same convolution on grayscale images"""
m, h, w = images.shape
kh, kw = kernel.shape
pad_h = padding[0]
pad_w = padding[1]
final_h = h + 2 * pad_h - ... | [
"jacer.dabbabi95@gmail.com"
] | jacer.dabbabi95@gmail.com |
b0091be7a914dd9f3d924331985e0935be0aa565 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/psi/IfInList.py | ddf663c4144f746201f33cf89fa5b0d1b8e68868 | [
"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 | 44 | py | if "string" in "string", "string2":
pass | [
"yole@jetbrains.com"
] | yole@jetbrains.com |
8adbdad6c7ee8f07fe0c8e51a6d73b3e8a8bc379 | 1b36425f798f484eda964b10a5ad72b37b4da916 | /posthog/demo/products/hedgebox/taxonomy.py | 8f1b8d36e9073de99dfa4fbc5a1132bdf2b61571 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 1,990 | py | # URLs
SITE_URL = "https://hedgebox.net"
URL_HOME = f"{SITE_URL}/"
URL_MARIUS_TECH_TIPS = f"{SITE_URL}/mariustechtips/"
URL_PRICING = f"{SITE_URL}/pricing/"
URL_SIGNUP = f"{SITE_URL}/signup/"
URL_LOGIN = f"{SITE_URL}/login/"
dyn_url_invite = lambda invite_id: f"{SITE_URL}/invite/{invite_id}/"
URL_FILES = f"{SITE_UR... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
247647a98bd3fb5be53468dfaef6989f5bf0c9db | 38bc9974114dd5162cff5926ff841c2fcc705162 | /active_linters_view.py | 9d51924af29394666b6dfdee808a49a81a6ea817 | [
"MIT"
] | permissive | nickbrowne/SublimeLinter | c7a10ee96264fe43177cdceaca424fe569ee13cb | 67cc151e012102ecde9bc1a65bc27e9f06273b83 | refs/heads/master | 2020-03-12T19:15:59.958379 | 2018-04-24T01:59:11 | 2018-04-24T01:59:11 | 130,781,399 | 0 | 0 | MIT | 2018-04-24T01:58:13 | 2018-04-24T01:58:13 | null | UTF-8 | Python | false | false | 2,562 | py | from collections import defaultdict
import sublime
import sublime_plugin
from .lint import events, persist
from .lint.const import WARNING, ERROR
STATUS_ACTIVE_KEY = 'sublime_linter_status_active'
State = {
'assigned_linters_per_bid': defaultdict(set),
'failed_linters_per_bid': defaultdict(set),
'probl... | [
"herr.kaste@gmail.com"
] | herr.kaste@gmail.com |
2a3328efba6ca749dc181e844b07e268f0c32936 | 46a62c499faaa64fe3cce2356c8b229e9c4c9c49 | /taobao-sdk-python-q/top/api/rest/ItemSkuGetRequest.py | 43d7245e14bbea70890b0d317852137bc3cb93f7 | [] | no_license | xjwangliang/learning-python | 4ed40ff741051b28774585ef476ed59963eee579 | da74bd7e466cd67565416b28429ed4c42e6a298f | refs/heads/master | 2021-01-01T15:41:22.572679 | 2015-04-27T14:09:50 | 2015-04-27T14:09:50 | 5,881,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | '''
Created by auto_sdk on 2012-09-23 16:40:21
'''
from top.api.base import RestApi
class ItemSkuGetRequest(RestApi):
def __init__(self,domain,port):
RestApi.__init__(self,domain, port)
self.fields = None
self.nick = None
self.num_iid = None
self.sku_id = None
def getapiname(self):
return 't... | [
"shigushuyuan@gmail.com"
] | shigushuyuan@gmail.com |
7fd1a5af5423d07a769ef26c5e9ec574968e01b6 | 259453140d6b563fc0c280f0922601a54a2cb2c2 | /CMGTools/External/python/JetIdParams_cfi.py | 99318c4726bcfd50a1458b335866c065b62397ee | [] | no_license | wangmengmeng/WHAnalysisPackage | f56b4a128f50801409828ca38d0f26e199201dd8 | 7eb1bf3b4e77579c4362396ca5e594bc93a41f2b | refs/heads/master | 2021-01-17T14:31:11.701436 | 2014-06-05T16:07:38 | 2014-06-05T16:07:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,209 | py | import FWCore.ParameterSet.Config as cms
###########################################################
## Working points for the 53X training/New Met Dec 21, 2012
###########################################################
full_53x_wp = cms.PSet(
#4 Eta Categories 0-2.5 2.5-2.75 2.75-3.0 3.0-5.0
... | [
"mengmeng.wang@cern.ch"
] | mengmeng.wang@cern.ch |
b355f95f98f24d6344283b49d8650852f94e5539 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_06_01_preview/aio/_configuration.py | 272f7acb4e7f5dcdb1d52dba8188ad9fe5b16818 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 3,672 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
2ca6ba4e0ddcc4b0c051bc0b9e443c40182b188e | 076015ddf31aed8893a7256c03759ea16bac2769 | /Assignment/ConfidenceInterval.py | 1f440a710609bdd888f96bc57b8547e6dfc187fc | [] | no_license | MCNP-Devel/MCNP-1 | 0922102b9ab1608cd916e4ec05b84ddb4e9c236c | 6ac466c7e805fb68d7ef95c5d8beaf00933332fc | refs/heads/master | 2021-10-28T03:32:13.069373 | 2019-04-21T10:48:30 | 2019-04-21T10:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | #!/home/ocean/anaconda3/bin/python3
from numpy import cos, arccos, sin, arctan, tan, pi, sqrt; from numpy import array as ary; import numpy as np; tau = 2*pi
from matplotlib import pyplot as plt
#read the .txt file
fname="KeffvsB.txt"
f=open(fname,"r")
data=f.readlines()
f.close()
B,keff,sl1,su1,sl2,su2,sl3,su3=[],[],... | [
"annoyingamygdala@gmail.com"
] | annoyingamygdala@gmail.com |
9815a42e81e35195bbc3e41e6a5a93096a219691 | 8f2b0e182040d413462c3f65eff7e255f161c3d4 | /SWEA/삼성기출/SWEA_1949_등산로조성.py | 5220352b6e265240c44c1a438c96377e7b4d8cac | [] | no_license | irissooa/Algorithm-with-Python | e68404bcc6e639b0a7b305f6b02a23c5217b9b3c | 941fbf6b05e4f89f46e5a7c90c04f0f7ca98d548 | refs/heads/master | 2023-08-04T06:33:41.073378 | 2023-08-01T15:04:18 | 2023-08-01T15:04:18 | 342,212,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | '''
2020-12-02 19:10
NxN 최대한 긴 등산로를 만들 계획
각 숫자는 지형의 높이
등산로를 만드는 규칙
1. 가장 높은 봉우리에서 시작
2. 산으로 올라갈 수 있도록 반드시 높은 지형에서 낮은 지형으로 가로또는 세로 방향으로 연결
즉, 높이가 같은곳 혹은 낮은 지형이나, 대각선 방향의 연결은 불가
3. 긴 등산로를 만들기 위해 딱 한 곳을 정해서 최대 K깊이만큼 지형을 깎는 공사를 할 수 있다
가장 긴 등산로를 찾아 그 길이를 출력
dfs 돌려서 제일 높은 봉우리에서 시작하고, 자기 수보다 낮은 칸으로만 dist센다
K를 같이 들고가면서 하나씩 다 ... | [
"xlalfskdl@naver.com"
] | xlalfskdl@naver.com |
6ea7cca267e461c59103cd81223df4dcecea825f | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/ak3CaloJetSequence_PbPb_data_cff.py | e37e4713dcc474c3f57d0f98731b6199d8a0af7e | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,470 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
ak3Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("ak3CaloJets"),
matched = cms.InputTag("ak3HiGenJetsCleaned")
)
ak3Calopar... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
07519c882a4603918f8968a0e8318fd7e53fc873 | f0681b8c129e8afce21e340697502230f45ce930 | /venv/Lib/site-packages/com/vmware/nsx_policy/infra/tier_1s/dns_forwarder_client.py | 373c8766e5fa55d4c952d656a6fc54abbcb7c24f | [] | no_license | dungla2011/python_pyvmomi_working_sample_vmware_easy | 8852b6fdcd0f7d0f648f6f7b6c6e4f70c7213746 | a3b6d86a802f28c7ee249fc03523d5e5f0a2e3bd | refs/heads/main | 2023-07-05T14:56:46.551091 | 2021-08-20T12:19:39 | 2021-08-20T12:19:39 | 395,496,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,120 | py | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2021 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.nsx_policy.infra.tier_1s.dns_forwarder.
#-------------------------------------------... | [
"dungla2011@gmail.com"
] | dungla2011@gmail.com |
deb0c727e90fdb368b69732e37a48318d4e06b27 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_blocks/__init__.py | 891764f2d8289d1b451ca8cfa0781747bbc42464 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 1,274 | py | """
The Course Blocks app, built upon the Block Cache framework in
openedx.core.djangoapps.content.block_structure, is a higher layer django app in LMS that
provides additional context of Courses and Users (via usage_info.py) with
implementations for Block Structure Transformers that are related to
block structure cour... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
b463bc2d02b57afd9261a280ea0f58f2e2058531 | cb6461bfae8b0935b7885697dad0df60670da457 | /pychron/messaging/handlers/udp_handler.py | f0bbc4a9646a23fd967743be2c5c73a342d101c0 | [
"Apache-2.0"
] | permissive | USGSMenloPychron/pychron | 00e11910511ca053e8b18a13314da334c362695a | 172993793f25a82ad986e20e53e979324936876d | refs/heads/develop | 2021-01-12T14:09:18.983658 | 2018-02-06T14:25:05 | 2018-02-06T14:25:05 | 69,751,244 | 0 | 0 | null | 2016-10-01T16:59:46 | 2016-10-01T16:59:46 | null | UTF-8 | Python | false | false | 1,387 | py | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
5d743fcc9295856f635f417153550efad1523b43 | 2d8645d7ad6330a7aa156474fb454747422907dd | /Classes and Objects/04.pizza_delivery.py | f7a18181c83a59d0db396073945849c24dc97982 | [
"MIT"
] | permissive | milenpenev/SoftUni-OOP | 17008bd70930c58f4801974bfaffc170514783d1 | 90f730cb37713f7ca93b1c0ecd0d12aa351247d2 | refs/heads/main | 2023-08-17T04:16:29.229292 | 2021-09-24T21:17:39 | 2021-09-24T21:17:39 | 384,722,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | class PizzaDelivery:
def __init__(self, name, price, ingredients):
self.name = name
self.price = price
self.ingredients = ingredients
self.ordered = False
def add_extra(self, ingredient, quantity, price_per_ingredient):
if not self.ordered:
if ingredient in s... | [
"milennpenev@gmail.com"
] | milennpenev@gmail.com |
fd21ea7f6db617d60bdbb87acc6790b510b69389 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Selenium_PhantomJS/source/setuptools/py26compat.py | 5778cdf1bae173bdb56f9554860efaaff2ddf049 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 679 | py | """
Compatibility Support for Python 2.6 and earlier
"""
import sys
try:
from urllib.parse import splittag
except ImportError:
from urllib import splittag
def strip_fragment(url):
"""
In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
later was patched to disregard the fragment... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
ac62c8df77bd91fbc6b1c0bd7abe483975ff87d8 | 32e01bc8b5883896a58bdb3c2443028cf61484cf | /RaptAutomation/Test_CLI/Rvirtus_SingleUserTestScripts/test_18_s3_image_classification_manual.py | 8c05340d5121dcca47717a0e557e6ce2b46dfd23 | [] | no_license | Idur69/RaptAutmationWin | df8a55a6c60467ea7d048b7a6856263d5624643c | 1f4faffa75a9cc5bf72c20baec3893d611b9d565 | refs/heads/master | 2022-12-03T21:01:38.841645 | 2020-08-30T08:39:43 | 2020-08-30T08:39:43 | 291,431,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | import datetime
import unittest
import os
import time
import multiprocessing
import sys
sys.path.append("..")
from cliEnvSetup.cmdconfig import userTwo,Paths
class Rvirtus_Cli_S3_Image_Manual(unittest.TestCase):
def setUp(self):
print("RunStarted at :" + str(datetime.datetime.now()))
print("Enviro... | [
"shaikidurbasha469@gmail.com"
] | shaikidurbasha469@gmail.com |
1251b48d1e624f9b757acecbac65425cde91eee3 | e6d1bbac91b97ee7a9d028c3aafa5d85a0ee593c | /Python03Month/python0312/logistic02/002.py | fca82d44373e00a574067b58f4e46159b53e9cc5 | [] | no_license | LiuJingGitLJ/PythonSuanFa_2 | 82159043523d6fe69beef7f86421cd4be2242919 | 0afba93c4c29231bc6c2aaf6e4663beee2b5cbbb | refs/heads/master | 2021-09-20T13:49:08.521080 | 2018-08-10T06:13:22 | 2018-08-10T06:13:22 | 124,337,675 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | import numpy as np
a = np.array([1, 2, 3], dtype=int) # 创建1*3维数组 array([1,2,3])
print(type(a)) # numpy.ndarray类型
print(a.shape) # 维数信息(3L,)
print(a.dtype.name) # 'int32'
print(a.size) # 元素个数:3
print(a.itemsize) # 每个元素所占用的字节数目:4
b = np.array([[1, 2, 3], [4, 5, 6]], dtype=int) # 创建2*3维数组 array([[1,2,3],[4,5,6... | [
"15201078137@163.com"
] | 15201078137@163.com |
5a0a0acf3fc79a779112623efa4bdca68a75bb13 | f8826a479f2b9d2f28993ceea7a7d0e3847aaf3d | /apps/reports/custom/all/default.py | 62e271414619df2d034a99789a952a062ab70017 | [] | no_license | icomms/wqmanager | bec6792ada11af0ff55dc54fd9b9ba49242313b7 | f683b363443e1c0be150656fd165e07a75693f55 | refs/heads/master | 2021-01-20T11:59:42.299351 | 2012-02-20T15:28:40 | 2012-02-20T15:28:40 | 2,154,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from blacklist import blacklist as inner_blacklist
from metadata import metadata as inner_metadata
from domain_summary import domain_summary as inner_domain_summary
from chw_summary import chw_summary as inner_chw_summary
"""Where to put default global reports. These behave just like custom reports
except they ar... | [
"michael.champanis@gmail.com"
] | michael.champanis@gmail.com |
255a50b0bd0bef11f9c25fac08663a37f242eb01 | b8b3bf2ca859c8e38709b398c628fba9a79b0112 | /manage.py | 5a5faa9324665d79ec9b8d7f44b984f4b7e63fef | [] | no_license | filipeximenes/pocketgroups | 9ddac6ead4a1c9177ee16042d0587799b2d4ed6a | 038e05918919ea56addcc8ee8a03fdb58a1aefcb | refs/heads/master | 2023-01-31T10:34:44.773305 | 2014-03-11T20:42:32 | 2014-03-11T20:42:32 | 321,978,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pocket_groups.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"filipeximenes@gmail.com"
] | filipeximenes@gmail.com |
c4d7d75c46ec25a212b1cfbeee50b20600a08d69 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/04aba1caec28dcc7517c85b40addb5a7741683fa-<forward>-bug.py | d3e747f240a2a87fdd136b3ee07c3a22d60075f4 | [] | 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 | 4,193 | py | def forward(fn, input, hx, weight, output, hy):
with torch.cuda.device_of(input):
lib = cudnn.lib
handle = cudnn.get_handle()
fn.datatype = cudnn._typemap[input.type()]
if (fn.mode == cudnn.CUDNN_LSTM):
(hx, cx) = hx
(hy, cy) = hy
else:
(cx... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
841eb95ee6b9c11ffdde9012072e6b231551180c | 413f7768f98f72cef8423c473424d67642f1228f | /examples/19_concurrent_connections/logging_basics.py | 29403ba8c79aec0ee36a0941e54cf9899ba9145a | [] | no_license | easypythoncode/PyNEng | a7bbf09c5424dcd81796f8836509be90c3b1a752 | daaed1777cf5449d5494e5a8471396bbcb027de6 | refs/heads/master | 2023-03-22T01:21:47.250346 | 2022-08-29T18:25:13 | 2022-08-29T18:25:13 | 228,477,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | from datetime import datetime
import logging
import netmiko
import yaml
# эта строка указывает ,что лог-сообщения paramiko юудут выводиться
# только если они уровня WARNING и выше
logging.getLogger("paramiko").setLevel(logging.WARNING)
logging.basicConfig(
format="%(threadName)s %(name)s %(levelname)s: %(message)... | [
"58902135+easypythoncode@users.noreply.github.com"
] | 58902135+easypythoncode@users.noreply.github.com |
22524dddf93a1542d74a2733213b86e31a00e0b1 | 07b37ca45d38edea112895049acf76d96ff07eff | /accessing_wordnet_corpus.py | c3aa0e65995f44694845119c6c752a0d00a29556 | [] | no_license | KRBhavaniSankar/NLTK | e335944de346be72a01c92221b0bf58d85475fb9 | 4b228338566996fbccee72cb6afaa199a6496787 | refs/heads/master | 2020-03-12T23:03:59.981112 | 2018-05-11T01:15:28 | 2018-05-11T01:15:28 | 130,858,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #load the wordnet corpus
from nltk.corpus import wordnet as wn
word = 'generic' #Taking hike as our word of interest
#get word synsets
word_synsets = wn.synsets(word)
print(word_synsets)
#get details of each synonim in synset
for synset in word_synsets:
print("Synset Name :",synset.name())
print("POS T... | [
"krbhavanisankar@gmail.com"
] | krbhavanisankar@gmail.com |
ea88579c27b7f8a8ef89e82ebcade32178c74eb1 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Chilled_Water.py | 8216f065fd8ec9929686f174599665dcfb228faa | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.UndefinedMeasurement import UndefinedMeasurement
from brick.brickschema.org.schema._1_0_2.Brick.Water import Water... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
0a895d601c0924509bfe1191815c3313619ba43d | b9f1a7d1aba94b23e665389042cd05e3c7ce46f7 | /hw/ip/otbn/dv/otbnsim/sim/ext_regs.py | 42e0020c382ea730c01ffeeb1332e68485a3a71e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alistair23/opentitan | 8b4afd2ee4b1d89bcbb1d9500925b143dabbd0b9 | e7c4b90ed18dea81bc746d4204bf303a404ebe42 | refs/heads/master | 2023-05-06T19:04:27.482175 | 2021-05-21T10:05:23 | 2021-05-23T10:25:56 | 219,881,566 | 0 | 0 | Apache-2.0 | 2019-11-06T01:01:48 | 2019-11-06T01:01:48 | null | UTF-8 | Python | false | false | 7,144 | py | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
from typing import Callable, Dict, List, Sequence
from shared.otbn_reggen import Field, Register, RegBlock, load_registers
from .trace import Trace
class TraceExtRegCha... | [
"rswarbrick@gmail.com"
] | rswarbrick@gmail.com |
7520663142c09e7b6ac6fd8798284023f35b7969 | 92218098622a45ca42d4da67f54f941f717bd7c5 | /frankenflow/flow_graph.py | 3da8dc4777b3e347ec0a6780015c78932ed9c83f | [
"BSD-3-Clause"
] | permissive | krischer/frankenflow | 09b56f508696c07af7d2076f10e55c8f19cd4a65 | b2d6e29330ca2e0e9871c54fd71d6486ca245da7 | refs/heads/master | 2021-05-01T19:28:29.968935 | 2016-09-28T19:33:01 | 2016-09-28T19:33:01 | 45,400,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | import datetime
import json
import os
import uuid
import networkx as nx
import networkx.readwrite.json_graph
from . import NoJobsLeft
class FlowGraph():
def __init__(self, filename):
self.filename = filename
if os.path.exists(self.filename):
self.deserialize()
else:
... | [
"krischer@geophysik.uni-muenchen.de"
] | krischer@geophysik.uni-muenchen.de |
cf8c4eebd71c5838c6def0bc9779ca1806c823f2 | 6d7507b0695c5f704f1367604370f52a1cd60fe6 | /testfarm/test_program/app/honor/student/games/sentence_link.py | b7c9e57cb30002aa153e25e084df79ecf4f7afe1 | [] | no_license | sj542484/test | f88b1f0524e853b24759de1bc8019a643bf11dcc | 908bef52867e3944b76898cfcc018fa403202815 | refs/heads/master | 2022-04-09T17:18:40.847936 | 2020-03-25T07:30:55 | 2020-03-25T07:30:55 | 194,576,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,142 | py | # @Author : Vector
# @Email : vectorztt@163.com
# @Time : 2019/8/1 11:47
# -----------------------------------------
from selenium.webdriver.common.by import By
from app.honor.student.games.all_game_common_element import GameCommonEle
from app.honor.student.games.word_restore import RestoreWordGame
from conf.dec... | [
"18330245071@163.com"
] | 18330245071@163.com |
af53fb2532b75c026cd9f5be89848418ca9ea728 | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/vnic/VnicIPv4PooledIscsiAddr.py | d33e868096a4d16d60a1988bfafcf7772db150ed | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | """This module contains the general information for VnicIPv4PooledIscsiAddr ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class VnicIPv4PooledIscsiAddrConsts():
pass
class VnicIPv4PooledIscsiA... | [
"test@cisco.com"
] | test@cisco.com |
c007398fe337ef1bb8bb70b423bfc2d63d0b6a8a | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Medium/209.minimum-size-subarray-sum.py | 813741f56476bf9d351622d353662599a69cf574 | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | #
# @lc app=leetcode id=209 lang=python3
#
# [209] Minimum Size Subarray Sum
#
# https://leetcode.com/problems/minimum-size-subarray-sum/description/
#
# algorithms
# Medium (38.33%)
# Total Accepted: 285.7K
# Total Submissions: 745.4K
# Testcase Example: '7\n[2,3,1,2,4,3]'
#
# Given an array of n positive integers... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
64edf0fd202d2e38717c0bd45a61b2561157d9ff | 0a6b950b3022dc1afbc1243be572e3dbe5b8b619 | /src/dirbs/api/v2/schemas/msisdn.py | 5b69c62c5705b5761bd614aa4481a3545409ebc4 | [] | no_license | yasirz/DIRBS-Core | dee56bb350b9d511bbdca87afa41bc1f022e534a | ac26dc97c57216dc3c1fed1e1b17aac27d3a1a2d | refs/heads/master | 2023-03-19T01:27:14.390299 | 2021-02-24T11:41:34 | 2021-02-24T11:41:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | """
DIRBS REST-ful MSISDN API schema module.
Copyright (c) 2018-2019 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the
limitations in the disclaimer below) provided that the following conditions are met:
- ... | [
"awkhan978@gmail.com"
] | awkhan978@gmail.com |
605d2770c781be8febafa6beed2d20b18bfb224c | 3cce418222153054b0395be6757925f5eca26fe2 | /2_code_scripts/utilities_part1.py | 62b39a0797abaa7f01a0a466dc86cac48fd64e51 | [] | no_license | GParolini/learn_IT_girls_python | 7a086d505a086993c6a04e16131c19fc3e120d43 | 2953020fb06cbd3c32f4a46611403a6989518b32 | refs/heads/master | 2020-04-26T23:30:55.138211 | 2019-11-10T21:06:39 | 2019-11-10T21:06:39 | 173,904,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 25 23:37:36 2019
@author: giudittaparolini
"""
"""
These are utilities methods called by main_part1. The utilities include methods to store prints and plots in the correct subfolder, save data to a dictionary
"""
import os
import matplotlib.py... | [
"giudittaparolini@gmail.com"
] | giudittaparolini@gmail.com |
43f0d8a3b3baed05f17baa0ce5bebddd5c528d0e | 1d601297ee17cb0a81d3996fe739502823e3d439 | /SpiderExample/spiders/cd_14selenium_scrapy.py | b795a8d09708568bad6c50768fe5ad7689fcd161 | [] | no_license | cdzm5211314/SpiderExample | 7470c492291f5d0c2fed86e9045a5aa9d6f4db21 | f9f13356462c961f63cefffb94dbf0b775513879 | refs/heads/master | 2020-09-11T12:07:05.963972 | 2019-12-17T10:09:52 | 2019-12-17T10:09:52 | 222,058,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import signals
from selenium import webdriver
class Cd14seleniumScrapySpider(scrapy.Spider):
name = 'cd_14selenium_scrapy'
allowed_domains = ['guazi.com']
start_urls = ['https://www.guazi.com/bj/buy/']
@classmethod
def from_crawler(cls, crawler, *... | [
"123309778@qq.com"
] | 123309778@qq.com |
2ca27b99a197ecfb4ae6ec1df02091060cccefed | d02f9b972dc29160955456d15082e24bf7ec231b | /lumin/nn/__init__.py | 569ee2b6504008af4d4dbe7d73b383186fd2d878 | [
"Apache-2.0"
] | permissive | GilesStrong/lumin | fc644747f77ccfc064cab813b8bf1f5bea965062 | bcaf35731ef48bc6184d090a5180fbc33a3dfe6e | refs/heads/master | 2023-05-26T15:17:47.564892 | 2023-04-28T00:13:10 | 2023-04-28T00:13:10 | 163,840,693 | 48 | 16 | Apache-2.0 | 2023-04-14T01:14:57 | 2019-01-02T12:52:32 | Python | UTF-8 | Python | false | false | 575 | py | # from .callbacks import * # noqa F304
# from .data import * # noqa F304
# from .ensemble import * # noqa F304
# from .interpretation import * # noqa F304
# from .losses import * # noqa F304
# from .metrics import * # noqa F304
# from .models import * # noqa F304
# from .optimisers import * # noqa F304
# from .... | [
"giles.strong@outlook.com"
] | giles.strong@outlook.com |
bfa4b657e3a77b2bc61a2304f1e5386fe7e5db73 | 1328263c26e5344b149a19f4c4ff429d30318981 | /Seção 4/aula_doctest.py | 6cbc04b2b4270a7ba332041c15e7d060d73e9ef2 | [] | no_license | bmsrangel/POO_Python_Udemy | c6cd0c22c71a61ce68377ac637b474a4be89a0b7 | 40c3757c06a6ead7b3dae6e625de22674d080a0c | refs/heads/master | 2020-03-30T22:10:24.141517 | 2019-02-21T04:17:09 | 2019-02-21T04:17:09 | 151,657,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import doctest
class Fib:
def calculo_fib(self, n):
"""
Método para calcular o Fibonacci
>>> f.calculo_fib(10)
55
>>> f.calculo_fib(1)
1
>>> f.calculo_fib(-1)
Traceback (most recent call last):
...
ValueError: O número informado deve ... | [
"bmsrangel@hotmail.com"
] | bmsrangel@hotmail.com |
de6d060829a7c37d12ddc8e931cbc3a3d2fc56f6 | 511a03c30260a06b4b12b04bde31f8c2710e9964 | /nested_reference_otus/nested_reference_workflow.py | 7bfe71201d5721a734c48a73c3516f3188422569 | [] | no_license | wasade/nested_reference_otus | 0c64e80ef44a7da2bdd17848defc2d9af65cbd08 | efa1ef8bf0ba7b71bee7d19c126ffb3bfa888872 | refs/heads/master | 2021-01-15T20:17:55.526486 | 2012-06-28T04:03:02 | 2012-06-28T04:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,017 | py | #!/usr/bin/env python
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.5.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporaso@gmail.com"
__status__ = "Development"
"""Cont... | [
"jai.rideout@gmail.com"
] | jai.rideout@gmail.com |
2cc206bfe7d4ae5d97ccacc807ed74d56bbacad0 | 8f6c9203b260d832860aa6e434ab668e170cfb1d | /test/test_010_store_migrate.py | f50f8043cf20d3ce5d1fba03d9ae45db90494d6d | [
"Apache-2.0",
"FSFAP",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | igalic/mod_md | 66ad0938d4ca71f995f61a7d487ce5ade0d8c5cc | 105fca1a8a87c46c105cb9b38d13f998318c1db2 | refs/heads/master | 2023-08-15T11:01:24.290650 | 2021-10-19T12:27:17 | 2021-10-19T12:27:17 | 419,234,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # test mod_md acme terms-of-service handling
import os
import pytest
from md_conf import HttpdConf
class TestStoreMigrate:
@pytest.fixture(autouse=True, scope='class')
def _class_scope(self, env):
HttpdConf(env).install()
assert env.apache_restart() == 0
# install old store, start a2md... | [
"stefan.eissing@greenbytes.de"
] | stefan.eissing@greenbytes.de |
0b1b850a0c827160275801b1274b2c3eebf92d48 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/al3tunnelifp.py | a535e037e380698cba88e1ff9670897d39270864 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
fbc6b13158f1958220100d09a8e59ecce5b4ece8 | 59f8e783abe9949cf9e9aef5936d2349f7df7414 | /methyl/ma_analysis/epigenotyping-old/xprobpathsimple.py | ecc9a6d11850fa495e11a6306dba905c98d1c7e0 | [] | no_license | bhofmei/analysis-scripts | c4d8eafde2834b542c71c305e66c4e6f8a6e2c57 | 189bf355f0f878c5603b09a06b3b50b61a11ad93 | refs/heads/master | 2021-01-17T17:26:30.799097 | 2019-10-27T12:49:10 | 2019-10-27T12:49:10 | 56,076,808 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | import pandas as pd
import numpy as np
import math
class ProbPathSimple:
### This implements the Viterbi algorithm that finds the sequnce with
### maximum likehood
def __init__(self, df, transitions ):
self.transMat = transitions #.tolist()
self.data = df
#print(df.iloc[0:4,0:4])
self.size = self.data.sha... | [
"bhofmei@gmail.com"
] | bhofmei@gmail.com |
e096e7be0ed42d190154d61fa437a445cd505f96 | fd62b9e15e0c09e15fae874fb63f24eb2f684292 | /python_deep_learning_icp3/venv/lib/python3.6/site-packages/gluon/api/hooks/__init__.py | e5f397356aee748525f3b46eff090d9aaec56cf8 | [] | no_license | sivabuddi/Python_Assign | 524bc9f324c6dcd084e70b1e944dcbba4d42c113 | fe2bb18606e9c258f0c578530c71ddce5e7ae992 | refs/heads/master | 2022-10-27T11:26:32.944982 | 2019-10-11T20:26:30 | 2019-10-11T20:26:30 | 210,632,025 | 1 | 1 | null | 2022-10-15T23:40:43 | 2019-09-24T15:07:41 | Python | UTF-8 | Python | false | false | 787 | py | # Copyright (c) 2016 Nokia
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"sivakumar.umkc.fall2019@gmail.com"
] | sivakumar.umkc.fall2019@gmail.com |
d8ae7603968ac2b8e4eebf2102a8d49b30467e19 | 1aa5a3adfca0000ad608fbe459d9729d9a40b7e1 | /core-tetris-clone/tcustomization/game_settings.py | 268d51920ed3f49e24aeb3195f6cff4e7b563518 | [] | no_license | doug3230/Tetris-Clone | bb936b539344260084b8d18f6fca461f3a723a03 | bf0e98935f01d44741877a60df35ee7b94bfef43 | refs/heads/master | 2021-01-10T12:17:27.145567 | 2016-03-15T05:12:18 | 2016-03-15T05:12:18 | 53,769,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | '''
Created on Mar 10, 2016
@author: Richard
'''
GAME_FALL_SECONDS = 0.25 | [
"doug3230@mylaurier.ca"
] | doug3230@mylaurier.ca |
1a1b2a98023d457f7e9996618421b70baa7efcf9 | ca384188345d5302c450e8a8c8475e691c1e7e66 | /manage.py | 6e33f6e5fee8455b472de55e20dbc0d412955231 | [] | no_license | EdwardOkech/eDarasa | 8b44154596960ebc9cff8eca481f02eadfff3a9d | 1bd94a4337ebc5519a23e55badb022e65a924601 | refs/heads/master | 2020-03-16T23:32:50.299182 | 2018-05-23T22:51:19 | 2018-05-23T22:51:19 | 133,081,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'jm_lms.settings.dev_sample')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"okechjobs@gmail.com"
] | okechjobs@gmail.com |
9c464d23bf09a24bf83e4fe582246bc345f25463 | 8c1953056a1a606285d41f46f4cc97f77012cdf8 | /xpcom/glue/moz.build | e314b826cf8f251b5536ca5006e3b3a6064ee6c4 | [] | no_license | Patclash/palemoon27 | 26b29ac9b2d7fab01ccfdba8a2ecd7dda240bf6e | 0a2ee1ef299e324292d79dbeebb924c815ca81b1 | refs/heads/master | 2020-06-16T07:49:55.941630 | 2019-07-05T15:17:35 | 2019-07-05T15:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | build | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
with Files('... | [
"roytam@gmail.com"
] | roytam@gmail.com |
d2192b181f31b452a15e37c061ac6e6114b8ea23 | 14948d7efd615b4b25ecdad10ab01eeafc8b82ac | /setup.py | 8352e8c8727496ec5b60650c3b0bb5f7bc712eef | [
"Apache-2.0"
] | permissive | Zed-Wu/ManiSkill | 84619f075a7eb1c6297a68365fd3420c5d4c9850 | 46126731cd9bf4ca0a9f777a2c6d3b7273c2d35e | refs/heads/main | 2023-08-31T16:21:17.000449 | 2021-10-21T13:19:00 | 2021-10-21T13:19:00 | 418,172,498 | 0 | 0 | Apache-2.0 | 2021-10-17T15:23:40 | 2021-10-17T15:23:40 | null | UTF-8 | Python | false | false | 137 | py | from setuptools import setup
setup(
name="mani_skill",
version="1.0",
author="SU Lab at UC San Diego",
zip_safe=False,
) | [
"tongzhou.mu@gmail.com"
] | tongzhou.mu@gmail.com |
7495be7df891972c923c9ee7fda945f6ac26420a | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartB/Py华为2020.4.15.py | 8f713148e7ff7eaed2144c7812ffe1eaa9e28e02 | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py |
# 字典的多条件的排序
# list2 = input().strip().split(",")
def fun(str2):
list3 = list(str2)
if ord(list3[0])<65 or ord(list3[0])>90:
return False
for i in (1,len(list3)-1):
if ord(list3[i])<97 or ord(list3[i])>122:
return False
return True
def test(list3):
list2 = list3.strip().split(",")
for i in list2:
i... | [
"2901429479@qq.com"
] | 2901429479@qq.com |
9fc64b7f34a7c1cacf4493a3a816f7acc732db10 | 0adeb7b0af4001d87975a1d6c0147ad7222ecdfd | /creditagricole_particuliers/logout.py | 423511348a4e6b6688cdc8bbecd635661de03518 | [
"MIT"
] | permissive | arkamor/creditagricole-particuliers | eee8f4d092cb4104151f70d75379b0af4c37f7f1 | 6d2ee4a9dd93b8426c309c688494a079d8add85b | refs/heads/master | 2023-09-04T06:45:01.249966 | 2021-10-22T06:06:57 | 2021-10-22T06:06:57 | 424,376,288 | 0 | 0 | MIT | 2021-11-03T20:49:45 | 2021-11-03T20:49:44 | null | UTF-8 | Python | false | false | 651 | py | import requests
class Logout:
def __init__(self, session):
"""logout class"""
self.session = session
self.logout()
def logout(self):
"""logout from remote"""
url += "%s" % self.session.url
url += "/ca-%s/particulier.npc.logout.html?resource=" % self.sess... | [
"d.machard@gmail.com"
] | d.machard@gmail.com |
0a7a7869a1d880b8b7cd9afbbf3e5de36f0bc35b | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /8_heap/MinMaxHeap.py | 1fe82b099f2750731139b1147fb0b729aa1059c6 | [] | 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 | 2,806 | py | # https://judge.yosupo.jp/submission/109819
# 懒删除的堆 维护最大最小值
from heapq import heapify, heappop, heappush
from typing import List, Optional
class MinMaxHeap:
__slots__ = ("_max_heap", "_min_heap", "_max_deleted", "_min_deleted", "_size")
def __init__(self, nums: Optional[List[int]] = None):
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
47217a8c2b6aa6e895fa962397279ce02a51a1fc | 0e51815b524229c7562572f10d178eb446cb7715 | /DB_Relations3/DB_Relations3/settings.py | b9da742f8da7f626f9a3e5b14877aa30d6703e19 | [] | no_license | Eswar0407/Django-10Am | 4d38cc795d7233bf5b6d1792755b018584a7c627 | c668b96dd69c72daba09bc944134302073827fae | refs/heads/master | 2023-07-16T23:52:52.820204 | 2021-09-05T17:57:14 | 2021-09-05T17:57:14 | 374,605,139 | 0 | 0 | null | 2021-06-13T16:20:40 | 2021-06-07T09:16:52 | Python | UTF-8 | Python | false | false | 3,331 | py | """
Django settings for DB_Relations3 project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import ... | [
"eswarbablu@gmail.com"
] | eswarbablu@gmail.com |
e3555b29c5853906cc326bd704d7bc171c893f4a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/313/88939/submittedfiles/testes.py | 32f809d41a3e5b126af2f14cbe8fee86a6e90f8e | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | nome = input( 'digite seu nome') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
25fc8dda1c561201024ff3a9109cb7a64ceb2e14 | 7c40571924f80f029ba5f62abc4716cd1bff9179 | /bindings/python/examples/tunable.py | 2fc5d57e36c80b71de6cbb8dda6baabe1fc2d302 | [
"Apache-2.0"
] | permissive | marcinz/legion | da1bc5b6a29114e5dc75353e22293c87931c50f4 | c7452d6dcbf9a85ae8102b48672ed60d1efcf703 | refs/heads/master | 2021-03-16T02:52:52.166762 | 2020-10-20T01:34:20 | 2020-10-20T01:34:20 | 246,897,706 | 0 | 0 | Apache-2.0 | 2020-03-12T17:51:47 | 2020-03-12T17:51:46 | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/env python
# Copyright 2020 Stanford University
#
# 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 applicabl... | [
"slaughter@cs.stanford.edu"
] | slaughter@cs.stanford.edu |
e0168e49c2083765debc145720d595eb8e6c944b | 709b1549033c9a547c67ee507fdc10b7e5d234ad | /test/test_scheduled_task_status_resource.py | 425d94e2d2ce8cb34fbbd855dea0070542e41d51 | [
"Apache-2.0"
] | permissive | cvent/octopus-deploy-api-client | d622417286b348c0be29678a86005a809c77c005 | 0e03e842e1beb29b132776aee077df570b88366a | refs/heads/master | 2020-12-05T14:17:46.229979 | 2020-01-07T05:06:58 | 2020-01-07T05:06:58 | 232,135,963 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | # coding: utf-8
"""
Octopus Server API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
Generated by: https://github.com/swagger-api... | [
"d.jain@cvent.com"
] | d.jain@cvent.com |
a48901547b111c91c4df5bc0c616fa96c6e7aeb9 | 99697559d046cdd04dd9068bd518e4da4177aaa2 | /Empty/E013_Roman_to_Integer.py | d1cc8346d8acb002763cea94abb0d80036816199 | [] | no_license | Azurisky/Leetcode | 3e3621ef15f2774cfdfac8c3018e2e4701760c3b | 8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04 | refs/heads/master | 2020-03-18T22:46:35.780864 | 2018-10-07T05:45:30 | 2018-10-07T05:45:30 | 135,364,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | class Solution:
def romanToInt(self, s):
"""
:type s: str
:rtype: int
""" | [
"andrew0704us@gmail.com"
] | andrew0704us@gmail.com |
762a223c95fd74a675c57a3a1bb857c887aaf2ac | e79d0a9a8143e03705979d2f8ce78e278d2078c0 | /sdk/core/azure-core/tests/test_rest_stream_responses.py | 841927430b8341876f0bf46a2862b23535fa5a1e | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | dannysijia/azure-sdk-for-python | f2c276600d1ba48620e8d1c73b57eb8e3c73e35a | 71bd202f5261e7ce8b2db38bb9b6802f1a55a5dc | refs/heads/main | 2023-08-22T04:15:24.519733 | 2021-11-01T08:25:59 | 2021-11-01T08:25:59 | 423,389,780 | 0 | 0 | MIT | 2021-11-01T08:25:28 | 2021-11-01T08:25:28 | null | UTF-8 | Python | false | false | 9,156 | py | # -*- coding: utf-8 -*-
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE.txt in the project root for
# license information.
# -------------------------------------------------------------... | [
"noreply@github.com"
] | dannysijia.noreply@github.com |
b9b7caf9187f1b2f3c954efa2a85844a68486693 | e423c84898f3fbb1e43c49475aedad0d6547c22f | /tensorflow/lite/python/metrics_nonportable.py | 046fef25a782bf0b9c613107f2f4aef12d314cfb | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | yash982000/tensorflow | 9a9cfd1433bae84a5f197c20f5d3526883f781a2 | 0d09ce8fc82d8eaf9734bd50ea5f0bf739be766c | refs/heads/master | 2023-05-09T07:35:24.800146 | 2021-05-31T16:15:35 | 2021-05-31T16:15:35 | 358,957,873 | 1 | 0 | Apache-2.0 | 2021-05-31T16:15:36 | 2021-04-17T18:50:16 | null | UTF-8 | Python | false | false | 4,168 | py | # Lint as: python2, python3
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0aed2ea561bf0c1b6227f6fe93262efcac3a14d9 | 1264671c77465c47ec4502a58b6918c1182c8a3d | /testsuite/tiff-depths/run.py | fb99a896bd9e0ae664fc6cb6de09bfbc41f73e2f | [
"BSD-3-Clause",
"CC-BY-3.0"
] | permissive | sol-ansano-kim/oiio | 4ecff6edd720b9957952d081afc4460b2fef7012 | 0772aa61f2210682a6a5e720ad74c7cfe62fee45 | refs/heads/master | 2021-01-23T01:18:19.334227 | 2017-03-17T12:56:01 | 2017-03-22T20:52:48 | 85,896,161 | 0 | 2 | null | 2017-03-23T02:07:11 | 2017-03-23T02:07:11 | null | UTF-8 | Python | false | false | 3,086 | py | #!/usr/bin/env python
# FIXME -- eventually, we want more (all?) of these to work
imagedir = parent + "/libtiffpic/depth"
files = [
"flower-minisblack-02.tif", # 73x43 2-bit minisblack gray image
"flower-minisblack-04.tif", # 73x43 4-bit minisblack gray image
"flower-minisblack-06.tif", # 73x43 6... | [
"lg@larrygritz.com"
] | lg@larrygritz.com |
0a4984dbb9a8c7cf837be9f79c2254da38a5437c | 1699300e1225f0994fbfd5e13a7eb4436a5df14d | /13_PFW_Mini_Scans/02_NoSC_Tomo_Lattice_H_21/simulation_parameters.py | eebabd01e5f127c3e8375724c35b43d4c76f9775 | [
"MIT"
] | permissive | HaroonRafique/PyORBIT_MD4224 | 26307a60ed79f3e170fbd655eb8cbe8cc9a0dfa9 | 6f68a80b2f8bf1cbeb9e2fc840925efe8a8b5672 | refs/heads/master | 2023-04-25T13:27:49.756836 | 2020-08-25T10:26:07 | 2020-08-25T10:26:07 | 215,249,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | import numpy as np
parameters = {}
parameters['tunex'] = '621'
parameters['tuney'] = '624'
parameters['lattice_start'] = 'BWSH65'
parameters['DistType'] = 'Tomo'
parameters['n_macroparticles'] = int(5E4)
parameters['lattice_version'] = 'Optimised'
parameters['TwissType'] = 'Lattice'
paramet... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
5ce97c4c78cd2e7b1a45f8d34932eabcce63aaa1 | eef6292c0ec65dff001c48246212a276274d3b2c | /Src/settings/dev.py | 6606d7b142a3251d1ca1944f49cfaa4f162f25a0 | [
"Apache-2.0"
] | permissive | DennisMi1024/TinyBlog | 664938cef46307cce807709ee3a1958dadb92635 | 696fe6d3428ac153d5f25ef3f0550cd8be8cddd8 | refs/heads/master | 2021-01-20T17:57:58.287800 | 2016-07-14T10:07:41 | 2016-07-14T10:07:41 | 63,322,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'MyBlog',
'USER':'root',
'PASSWORD':'dennis',
'HOST':'192.168.10.105',
'PORT':'3306',
}
}
ALLOWED_HOSTS = ['localhost', ]
MIDDLEWARE_CLASSES += (
... | [
"you@example.com"
] | you@example.com |
fc376aab811a299b5a024a7b49d155347740f070 | 30f540cde58a44b1facbb0c9d6c646ce241d12c1 | /sudofire/asgi.py | ede5cfc9e041ef35586532266d08a3606c37c53f | [] | no_license | Ratnambar/sudofire | fea4c4a67cefb25d63079a2031242ef1f627d233 | 49b72061f62fb324f2a221f2cbf55ac644df5f75 | refs/heads/main | 2023-01-07T22:33:19.353581 | 2020-11-04T11:36:45 | 2020-11-04T11:36:45 | 309,981,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for sudofire project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"ratnambar123gupta@gmail.com"
] | ratnambar123gupta@gmail.com |
9723550d9338fac828cacdd4ae5354daadb25a82 | a3f4dd94c89450df3514f282ee0750cb3ddc30c6 | /scripts/undocumentedTemp/fitCCData.py | ad483a0f436079a50abdb559beee7d606346007f | [
"CC-BY-4.0",
"LicenseRef-scancode-public-domain"
] | permissive | wachtlerlab/GJEphys | fda30b6362dbef02f84b40add545606c5548b96c | 93e8099b8192ad8c6940ee8374d40cb50b4d66e6 | refs/heads/master | 2020-03-21T15:24:24.344085 | 2019-05-20T09:36:27 | 2019-05-20T09:36:27 | 138,710,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from GJEphys.simParamExtract import *
from easygui import fileopenbox
import matplotlib.pyplot as plt
import numpy as np
hdf5 = fileopenbox('Indicate the HDF5 file containing Current Clamp Data', filetypes=['*.hdf5'])
spe = SimulationParameterExtracter()
spe.loadCCData(hdf5)
spe.getTimeConstants() | [
"ajkumaraswamy@tutamail.com"
] | ajkumaraswamy@tutamail.com |
86a1fc45bbf6f01eba7c41861ffbbb5d52c84cd2 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/update_deployment_host_request.py | fee927f2ffd2748bb4ac92e5834f1f018812e318 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateDeploymentHostRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict)... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
cd886f2ef18a6408ff4fe0dd230bc72b8da317d2 | 8b7334be253552c4a2982e3022d211ad8970abf6 | /data/migrations/0026_auto_20170817_1716.py | 6a3bf9f31f8d42400c92cf7032e1c40faf376700 | [
"MIT"
] | permissive | Duke-GCB/bespin-api | e5442bf66471bd9469f8094575a1efc00eafc700 | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | refs/heads/master | 2021-08-16T05:36:25.323416 | 2019-10-18T15:30:16 | 2019-10-18T15:30:16 | 69,596,994 | 0 | 3 | MIT | 2021-06-10T18:55:46 | 2016-09-29T18:41:56 | Python | UTF-8 | Python | false | false | 754 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-08-17 17:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0025_job_cleanup_vm'),
]
operations = [
migrations.AddField(
... | [
"johnbradley2008@gmail.com"
] | johnbradley2008@gmail.com |
4d0f4328a3ef6df871959e28f53ad5198296bb07 | e26cfc715513ae3b4393ea918e78ed5f27664dff | /src/textgrid_tools_cli/grids/grid_paths_exporting.py | ed688bdaa8bfb25e4d1dceac92bf1c275d40246f | [
"MIT"
] | permissive | stefantaubert/textgrid-ipa | f4cd52b2c9d53570587b030dec758176229ee5e0 | ada294513315d76db7e91cbbfb7c386a75f84966 | refs/heads/main | 2023-06-09T01:30:18.159171 | 2023-05-30T15:23:18 | 2023-05-30T15:23:18 | 301,960,070 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | from argparse import ArgumentParser, Namespace
from pathlib import Path
from typing import List
from tqdm import tqdm
from textgrid_tools_cli.globals import ExecutionResult
from textgrid_tools_cli.helper import (add_directory_argument, add_encoding_argument,
get_grid_files, pars... | [
"23339395+stefantaubert@users.noreply.github.com"
] | 23339395+stefantaubert@users.noreply.github.com |
3408782c4915a37d2a699d151e4f6bfe56dc2f0c | 54c08823016949aa23ff1d372cf70778e6f88758 | /examples/SVG(1)/navigation_defaults.py | d645f4652e5b71a4eb4fc2ffb86b96a92a2301df | [
"MIT"
] | permissive | jCrompton/raylab | b4d41c446bc4d8d9ea42ebfdfad59c61956bfe98 | 9773d6fb942c06c65fe5297a8275f86649966abd | refs/heads/master | 2022-11-05T21:59:06.704075 | 2020-06-08T15:36:20 | 2020-06-08T15:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | from ray import tune
def get_config():
return {
# === Environment ===
"env": "Navigation",
"env_config": tune.grid_search(
[
{"deceleration_zones": None},
{"deceleration_zones": {"center": [[0.0, 0.0]], "decay": [2.0]}},
]
),
... | [
"angelolovatto@gmail.com"
] | angelolovatto@gmail.com |
5e1a788dfed56f207da5655d714754f40fc75f45 | c46f8c72f3141bb5e366c2a37a56be3daaae905e | /tfx/orchestration/kubeflow/test_utils.py | 10773fa75c4f44d40655d58a56087b3060b56e94 | [
"Apache-2.0"
] | permissive | GabeOchieng/tfx | 4eed539b4070d86d8ddcf6d7d0446de51e5f4ff4 | 258a5377baf5e63ffc3f5cd378a3d05760ed5251 | refs/heads/master | 2021-05-22T16:52:12.278184 | 2020-04-03T23:27:12 | 2020-04-03T23:27:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,111 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
339a763309fc15e04ee86586f97ef68c7dac623f | f5a2b612cef1f977f6bc52993f56f5b5196edfa2 | /setup.py | 814e1f871a11ce110faae667587e0bc97a69c873 | [] | no_license | pierre-haessig/mpl-probscale | 04383419c1c7ce7216440abcc39dbcaeb9329b46 | a79713df98154f0bcdedcf7dfcfa892d34c053dd | refs/heads/master | 2021-01-17T06:30:01.267038 | 2016-01-04T02:26:57 | 2016-01-04T02:26:57 | 48,982,899 | 0 | 0 | null | 2016-01-04T08:03:11 | 2016-01-04T08:03:10 | null | UTF-8 | Python | false | false | 1,525 | py | # Setup script for the probscale package
#
# Usage: python setup.py install
import os
from setuptools import setup, find_packages
DESCRIPTION = "mpl-probscale: Probabily scales for matplotlib"
LONG_DESCRIPTION = DESCRIPTION
NAME = "probscale"
VERSION = "0.1.0"
AUTHOR = "Paul Hobson (Geosyntec Consultants)"
AUTHOR_E... | [
"pmhobson@gmail.com"
] | pmhobson@gmail.com |
238d06e96059a2a0aaa1bd2749ad4e765e86d4f8 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/datamgr/datamanager/auth/exceptions.py | cdfef3454adac2195833116706b108c3f990e06a | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 1,721 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
4a53a14c1598f035e7408cfe28b84240005d16c5 | 1515be3015ad988278d5a095416c0a0066a02757 | /src/users/models/microsoftgraphpage_links.py | d2b6aa1063b11422ac98a8f9677107c02c85bb83 | [
"MIT"
] | permissive | peombwa/Sample-Graph-Python-Client | 2ad494cc5b5fe026edd6ed7fee8cac2dd96aaa60 | 3396f531fbe6bb40a740767c4e31aee95a3b932e | refs/heads/master | 2020-12-29T09:50:38.941350 | 2020-02-05T22:45:28 | 2020-02-05T22:45:28 | 238,561,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"peombwa@microsoft.com"
] | peombwa@microsoft.com |
afaba3927afa94096a102e6a5a3c224507486ce8 | b1eac26c0b18bd8ce0a9e51e947bbfb3a90533dc | /lightbulb/changelog.py | 64356142390f09880b58a78f8dcfe12d17ab2e0b | [
"BSD-3-Clause"
] | permissive | mylittlepython/lightbulb | 14b61f4ba83a5888f31a186c36ad0dcbd26f9287 | 1bf13f69e04b23c5a514631ad0fa71015762fd43 | refs/heads/master | 2020-12-25T10:49:46.816483 | 2012-03-29T23:30:38 | 2012-03-29T23:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | import re
import os
import time
from config import Path
from utils import execute
from pickledb import PickleDB
# not using JSON because we want to maintain order in the dict
class ChangeLog(PickleDB):
db_name = "changelog"
def initialize(self, config):
self.config = config
self.path = Path(... | [
"james.thornton@gmail.com"
] | james.thornton@gmail.com |
85a4b7c767fbfcf17b14001b5b6e75eac4142368 | b5d968f0436f29a92be7fbaf9b8ee19f698f3b20 | /linked_list/rev_ll_2.py | 40a0bcf88e3a9fb80112eb261f7da3fa82acac17 | [] | no_license | asperaa/programming_problems | 35a2504c6f114812c1cb938f7df1486e84a66636 | d055d93dfb9f7945a4250663a58d0dd0231f2353 | refs/heads/master | 2020-06-02T02:20:09.793839 | 2019-12-05T10:14:42 | 2019-12-05T10:14:42 | 191,003,597 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | """Reverse a linked list (practice 2) """
# class for a node
class Node:
# initialise the node with data and next pointer
def __init__(self, data):
self.data = data
self.next = None
# class for a linked list
class LinkedList:
# initialise the head of the linkedlist
def __init__(self):
... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
70b7aa2bdc2401cc729902a7ff22e5e021d5d00e | bab7c1537a235a5334223f3beb17c904c05c1a36 | /commons/parse.py | ffbc86df09d77c3e482a5b990e68f7d88c8e7411 | [] | no_license | sesmond/labelme | 8c6250c005e2e8d9d8005630ee63257073ba8661 | 476005a64e09257053378511020cf9093dc4f989 | refs/heads/master | 2021-04-01T00:25:37.997196 | 2019-12-25T04:36:02 | 2019-12-25T04:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | #coding=utf-8
'''
用于解析ali的调用结果
1. 遍历文件夹读取文件夹中的json文件和image图片
2. 拿出json将坐标信息整理成新的文件
3. 将新的坐标文件和对应的图片文件存入到新的位置
find . -name "*.json"|xargs -I {} cp {} ~/Downloads/ocr_labels
find . -name "*.JPG" |xargs -I {} cp {} ~/Downloads/ocr_images
'''
import os
import json
import shutil
import time
import sys
import logging
from ... | [
"piginzoo@gmail.com"
] | piginzoo@gmail.com |
5dac2d0fea5cca2b67023cf57e22313d070d5831 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/datastore_mount_path_datastore_pair.py | 1cff6a490fbd9e28a10aae75183affc20d3dae57 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def DatastoreMountPathDatastorePair(vim, *args, **kwargs):
'''Contains a mapping of an ol... | [
"jmb@pexip.com"
] | jmb@pexip.com |
6101f66bcefaca2f109ca76493792fec67bce9f3 | 0bc777a57e39c466a9482af9a6eda698ab3c1437 | /HeavyIonsAnalysis/JetAnalysis/python/jets/akCsSoftDrop3PFJetSequence_PbPb_mb_cff.py | e07760d57e15af29f8666f1f76a259cf9827be1c | [] | no_license | stahlleiton/cmssw | 3c78d80b9372fdf2a37f424372504b23c9dc4f78 | fcfda663dc8c315b505eb6bcc7e936401c01c4d1 | refs/heads/EWQAnalysis2017_8030 | 2023-08-23T13:50:40.837198 | 2017-11-09T17:45:31 | 2017-11-09T17:45:31 | 45,795,305 | 0 | 3 | null | 2021-04-30T07:36:28 | 2015-11-08T19:28:54 | C++ | UTF-8 | Python | false | false | 16,387 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"marta.verweij@cern.ch"
] | marta.verweij@cern.ch |
22338eeab97e9255c632bf94bb56d48fc7831127 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/277/84640/submittedfiles/testes.py | 2130d8bf1d4572fae553dcd7aff27e156e681e2f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | # -*- coding: utf-8 -*-
n1 = int(input('Digite o n min: '))
n2 = int(input('Digite o n max: '))
for x in range(n1,n2+1,1):
for y in range(n1,n2+1,1):
if (x == 0 and y == 0) :
break
print('(%d,%d) ' % (x,y))
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d55d2c3d49d8132ec0a363b7274313590d3ae23e | ca0c976dea6867242cc79f7b787e7d558fb6873b | /styleguide_example/api/common/errors.py | a798769c7e02979d11265df291a04c7dc6ce5a8e | [
"MIT"
] | permissive | boconlonton/drf-styleguide-sb | 876deb2c36982e590c8de9205af230ddd2d65547 | a67e4edc8bc1ea0edccb5d9c0fef714111ee29dd | refs/heads/master | 2023-08-22T09:11:20.454149 | 2021-10-01T03:44:40 | 2021-10-01T03:44:40 | 410,801,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | from rest_framework.views import exception_handler
from rest_framework.settings import api_settings
from rest_framework import exceptions
from styleguide_example.api.common.utils import get_first_matching_attr
def get_error_message(exc):
if hasattr(exc, 'message_dict'):
return exc.message_dict
error... | [
"tan.truong@go2joy.vn"
] | tan.truong@go2joy.vn |
7bceecb66b6c2db293cf6ba6a3e24cf9eef8ec82 | 02f5b2ccdfaca4c0640bd9b4b24861293fdfc52a | /templet/utils/user/userinfo_save.py | 6f325b541c5e6380472fb7da514a4e33fdecaa28 | [] | no_license | django-xxx/django-project-templet-cn | c316b7edf49e477494f545c0e0fc4ec70a12de9b | 67211e4e4dea60dd63c3090fc430c65077086512 | refs/heads/4.x | 2023-04-06T12:13:45.267423 | 2023-02-07T04:08:11 | 2023-02-07T04:08:11 | 97,332,663 | 1 | 0 | null | 2023-03-31T15:33:13 | 2017-07-15T17:48:42 | Python | UTF-8 | Python | false | false | 648 | py | # -*- coding: utf-8 -*-
def userinfo_save(userinfo):
""" Save profile or something else """
# from account.models import UserInfo
# from django.conf import settings
#
# unique_identifier = userinfo.get(settings.WECHAT_UNIQUE_IDENTIFICATION, '')
#
# user, created = UserInfo.objects.select_f... | [
"brightcells@gmail.com"
] | brightcells@gmail.com |
6b42e079d0f23607813ae478170e0fc4097f17e6 | b77c9c5e633c9ac2881c67ba860f0814dabcda69 | /01 - Basics/15-flowcontrol-switch-statements_.py | 1521d7c011b082938a58793c382dbb9c9a325851 | [] | no_license | AdamsGeeky/basics | 943758c3b6fec354f38cd0999218bf04f8df25b3 | 2a151bbff4b528cefd52978829c632fd087c8f20 | refs/heads/master | 2023-02-05T08:22:44.585947 | 2020-12-30T07:14:04 | 2020-12-30T07:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | # HEAD
# Python Basics - Implementing Switch statements in Python
# DESCRIPTION
# Describes how to Implement Switch statements in Python
# Python doesnt support switch statement officially
# Only Alternate methods are available
#
# RESOURCES
#
# Alternative methods involve creating a dictionary
# ... | [
"ganeshsurfs@gmail.com"
] | ganeshsurfs@gmail.com |
5080211f30ce723322721b8571bac04a8ac90c64 | 03f1519986ee2b553a7e07ce3193e9d5eae6abde | /saklient/cloud/errors/mustbeofsamezoneexception.py | c5ec7632cfd86eb8f37655431b682f7c539c22c8 | [
"MIT"
] | permissive | sakura-internet/saklient.python | 4343cdedd24532704d7d4b7dfa0745c50fd6f3be | 96174e0adbd5006c9b9519ca4d5924cc492f4262 | refs/heads/master | 2021-01-01T05:06:06.130497 | 2020-12-16T08:10:03 | 2020-12-16T08:10:03 | 23,689,552 | 8 | 3 | null | 2015-08-20T04:10:24 | 2014-09-05T03:53:44 | Python | UTF-8 | Python | false | false | 826 | py | # -*- coding:utf-8 -*-
# This code is automatically transpiled by Saklient Translator
import six
from ...errors.httpbadrequestexception import HttpBadRequestException
import saklient
str = six.text_type
# module saklient.cloud.errors.mustbeofsamezoneexception
class MustBeOfSameZoneException(HttpBadRequestException)... | [
"townewgokgok@gmail.com"
] | townewgokgok@gmail.com |
71fd13d664ad95c744215ecf7429f089b8df7840 | b57d337ddbe946c113b2228a0c167db787fd69a1 | /scr/py00244tutorial_room_4.py | fb3a490a6f8ab9fcff55a5bcb82cfd86d7ba23da | [] | no_license | aademchenko/ToEE | ebf6432a75538ae95803b61c6624e65b5cdc53a1 | dcfd5d2de48b9d9031021d9e04819b309d71c59e | refs/heads/master | 2020-04-06T13:56:27.443772 | 2018-11-14T09:35:57 | 2018-11-14T09:35:57 | 157,520,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from toee import *
from combat_standard_routines import *
def san_heartbeat( attachee, triggerer ):
for obj in game.obj_list_vicinity(attachee.location,OLC_PC):
if ( (critter_is_unconscious(obj) == 0) and (obj.distance_to( attachee ) < 15) ):
#attachee.turn_towards(obj)
if not game.tutorial_is_active():
... | [
"demchenko.recruitment@gmail.com"
] | demchenko.recruitment@gmail.com |
b0a4de9c28ae06b7406e2e484b63b1fd8b31463a | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/special_binary_string.py | 496e03f66a5e6e9ae03d67acb734b9a9196d3ebb | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Special binary strings are binary strings with the following two properties:
The number of 0's is equal to the number of 1's.
Every prefix of the binary string has at least as many 1's as 0's.
Given a special string S, a move consists of choosing two consecutive, no... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
29b98c8e0458f35b24982e30befe845ac48bae30 | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/scipy/spatial/tests/test_distance.py | c6008c194b12dab496a0221d948d9af693f7a637 | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 72,581 | py | #! /usr/bin/env python
#
# Author: Damian Eads
# Date: April 17, 2008
#
# Copyright (C) 2008 Damian Eads
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copy... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
32463aa5b36db9b63161f5c933f49c4c2bfa18d6 | a485be36d674613021c6d6712eb8c0d71fc08c1d | /tweet2vec/csv_to_txt.py | 9b6a1c4d17d9d1ec6894a8f0709b5c76dcb44369 | [
"BSD-2-Clause"
] | permissive | manueltonneau/tweet2vec | 60c9587434b4fd5067364f0faa2a314ff99940bb | 303eda7b8202e08b2853155e4c9a9c344d009692 | refs/heads/master | 2022-07-17T03:13:08.771021 | 2020-05-19T07:15:47 | 2020-05-19T07:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | import csv
import argparse
import os
from pathlib import Path
def get_args_from_command_line():
"""Parse the command line arguments."""
parser = argparse.ArgumentParser()
parser.add_argument("--input_csv_path", type=str)
parser.add_argument("--text_column_order", type=int)
args = parser.parse_args(... | [
"manuel.tonneau@mailbox.org"
] | manuel.tonneau@mailbox.org |
bf93df67f830e2980558a9d9134269245a1e2c05 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/common/types/criterion_category_availability.py | 5dd326119e67b55917a80a570c9a90c2f401ec74 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 5,860 | 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"
] | GerhardusM.noreply@github.com |
7a9187301235cca58d38e6b7f9c967c111e69a7a | 5a9b2bf5b2e1f429fe8ec99d832b17db545ac199 | /19년 8월/day_10/wo/wo.py | 1b8977acb77d477d875fb5a6b9d80d86b488c73a | [] | no_license | pp2pppp2/py_L | 290b548e3bea438b16c1d39f43786a18fb178f74 | d72872be3ede5f789103b83a040f2963f7c91d0b | refs/heads/master | 2020-07-13T08:27:25.045600 | 2019-11-15T08:04:45 | 2019-11-15T08:04:45 | 205,044,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | import sys
sys.stdin = open("input.txt")
T = int(input())
for tc in range(1, T+1):
N, M, K = map(int,input().split())
data = [[0 for _ in range(M)] for _ in range(N)]
t = [list(map(int,input().split())) for _ in range(K)]
d = [0 for _ in range(11)]
d[0] = N * M
for a in range(K):
cnt = ... | [
"pjh9736@gmail.com"
] | pjh9736@gmail.com |
79a26f5aa44461ee3bb871a1fa1963214bb2716c | 5527d3854ad0840fb4a0a9893447535cd5e6ad0f | /python/ThirteenTeV/QstarToQZ_M_4000_TuneCUETP8M1_13TeV_pythia8_cfi.py | e5dcf2c1c2e29c1dba16cbe527c3388f2965ff7d | [] | no_license | danbarto/genproductionsSummer16 | ecf2309c1627b4db3e4a1b8785ca612d9a59426f | 655ef31aa5f05d0117aeef82d107f07a1fd5d822 | refs/heads/master | 2020-03-26T23:12:37.115369 | 2018-08-21T14:23:30 | 2018-08-21T14:23:30 | 145,520,233 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(0.1526),
filterEfficiency... | [
"daniel.spitzbart@cern.ch"
] | daniel.spitzbart@cern.ch |
37feb4703d26106f1e44f45658f1683ff8db582c | acb458e670b217d15e837d314c19a49df397a16d | /1780.py | 578e0617dcf6b280bf71658bbe795e2ea53a1aac | [] | no_license | mickymicmouse/Algorithm | 677c5d449b493dfcc077639ef49dda4b144446bb | 12a30c5c34318a57d4bfacead3b58d613104c1ca | refs/heads/main | 2023-06-24T15:36:04.314216 | 2021-07-27T02:12:53 | 2021-07-27T02:12:53 | 324,720,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(40000)
n = int(input())
square= [list(map(int,input().split(' '))) for _ in range(n)]
m_count=0
z_count=0
p_count=0
def cut(x,y,w):
global m_count, z_count, p_count
m_num=0
z_num=0
p_num=0
num = w**2
for i in range(x,x+w):
fo... | [
"mickymicmouse@gmail.com"
] | mickymicmouse@gmail.com |
fe1285cdd99304e521b044ad82e5741f9f6e30c8 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /notifications/common/formatters/structureDestructRequested.py | b0be00f73a8fdc9bdc7214e56b388744aecf529d | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\notifications\common\formatters\structureDestructRequested.py
import gametime
from localization import GetByLabel
from notifications.common.formatters.baseFormatter import BaseNotificationFormatter
STRUCTURE_TYPE_ID = 'structur... | [
"le02005@163.com"
] | le02005@163.com |
7c21f340939f3cd006cb8ce92f573eee844cac12 | 5dec96a4833bea52d5105a77f45022f2c3c3157a | /DEEPLEARNING/DL_SQUEEZESEG/src/kitti_velodyne_to_ros/script/squeezeseg/nets/squeezeSeg.py | b403fb1917176b437dbe924a0d22246278ff8e76 | [
"BSD-3-Clause"
] | permissive | jtpils/DINK | ebb3259d0fb8da0db46f670659bbb98c5b34c317 | 5f6b3eaba279126f79ae6607f965311002d7451c | refs/heads/master | 2020-04-28T23:47:42.726499 | 2019-03-14T15:10:32 | 2019-03-14T15:10:32 | 175,669,731 | 1 | 0 | BSD-3-Clause | 2019-03-14T17:32:06 | 2019-03-14T17:32:06 | null | UTF-8 | Python | false | false | 8,032 | py | #-*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2019, FPAI
# Copyright (c) 2019, SeriouslyHAO
# Copyright (c) 2019, xcj2019
# Copyright (c) 2019, Leonfirst
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the fol... | [
"2281504330@qq.com"
] | 2281504330@qq.com |
5d774dc5b61c345b314509522f53ecf7ba22ff9b | b40d1a26ea04a19ec0da7bf55db84b7ee36cc898 | /algoexpert.io/python/Single_Cycle_Check.py | dbb5372f72bcea562fbbd0fc153a0c53cd97a558 | [
"MIT"
] | permissive | partho-maple/coding-interview-gym | 5e8af7d404c28d4b9b52e5cffc540fd51d8025cf | 20ae1a048eddbc9a32c819cf61258e2b57572f05 | refs/heads/master | 2022-09-11T16:36:01.702626 | 2022-03-14T08:39:47 | 2022-03-14T08:39:47 | 69,802,909 | 862 | 438 | MIT | 2022-08-18T06:42:46 | 2016-10-02T14:51:31 | Python | UTF-8 | Python | false | false | 781 | py | # https://www.algoexpert.io/questions/Single%20Cycle%20Check
# O(n) time | O(1) space - where n is the length of the input array
def has_single_cycle(array):
number_of_elements_visited = 0
current_index = 0
while number_of_elements_visited < len(array):
if number_of_elements_visited > 0 and curren... | [
"partho.biswas@aurea.com"
] | partho.biswas@aurea.com |
705048bfbbb9108a074a3324b87ffc7fc6cdeb9b | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2717/60712/321209.py | c9a667f59a983b59b917c64d598067c452a03ed7 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | l=[]
for i in range(1):
l.append(input())
if l==['["c==c","b==d","x!=z"]']:
print('true')
elif l==['["a==b","b!=c","c==a"]']:
print('false')
elif l==['[[0,0],[2,0],[1,1],[2,1],[2,2]]']:
print('A')
elif l==['AABAAABBABAAB', '4']:
print(12)
else:
print(l) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7d54918a2b0fa436c9cb133774ca60700e8bba84 | afd2087e80478010d9df66e78280f75e1ff17d45 | /tools/lldb/pytorch_lldb.py | 4907bc1e6854a2b2e76d383a7f85695fa4436bfb | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 3,443 | py | from typing import Any
import lldb # type: ignore[import]
def get_target() -> Any:
target = lldb.debugger.GetSelectedTarget()
if not target:
print("[-] error: no target available. please add a target to lldb.")
return None
return target
class DisableBreakpoints:
"""
Context-man... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.