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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d20c1fc3db5834209033c5214663ac187b5fea3 | bf769a3a3935a8e08f11fdf606f2e2e2bc6a5307 | /PyQt/chapter08_graphics_and_special_effects/qt08_paint01.py | bbbcda91aa014fb6b721c3aa9a4bb2bc799e6ce7 | [] | no_license | metanoia1989/QTStudy | b71f2c8cf6fd001a14db3f1b5ece82c1cc7f7a93 | 29465c6bb9fc0ef2e50a9bf2f66d996ecbd086c0 | refs/heads/master | 2021-12-25T16:50:26.915441 | 2021-10-10T01:26:14 | 2021-10-10T01:26:14 | 193,919,811 | 3 | 2 | null | 2021-01-25T09:23:30 | 2019-06-26T14:22:41 | HTML | UTF-8 | Python | false | false | 731 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QPainter, QPixmap, QBitmap
from PyQt5.QtCore import Qt
class Winform(QWidget):
def __init__(self, parent=None):
super(Winform, self).__init__(parent)
self.setWindowTi... | [
"sogaxili@gmail.com"
] | sogaxili@gmail.com |
feff2a8fb448647324986cb729e2f27fa38bb662 | 57ce77797e073f16779b9a5a712ca576ee776c2a | /examples/adspygoogle/dfp/v201302/update_user_team_associations.py | bc06a1a4134f10390f9cf8e42cb463c1e8da5587 | [
"Apache-2.0"
] | permissive | chahroud/googleads-python-legacy-lib | 3fc8c043ec0b1e92b7afb76d018eb4016347b472 | f22956e782b9119d3c1a90b1e3b42830478a89d2 | refs/heads/master | 2021-01-21T01:33:29.512298 | 2014-04-01T14:43:03 | 2014-04-01T14:43:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,031 | py | #!/usr/bin/python
#
# Copyright 2013 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... | [
"emeralddragon88@gmail.com"
] | emeralddragon88@gmail.com |
34a4fbe9268d7e44920fa50efdc705629ac29798 | ca8dbab1ca54c73c792d02096a13b12b6516ccc1 | /docs/conf.py | 76b74bc52d4f16292f4a438a9c95ce94af015169 | [] | no_license | delfick/timepiece | 695f7234441dbe8c0155f6f5718bb4e9c377345c | 41194038725ffc5a6e5016b410b0e9294ebc2bef | refs/heads/master | 2023-07-09T00:44:42.922689 | 2023-06-23T06:47:48 | 2023-06-23T06:50:02 | 67,906,744 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | """
Configuration specific to project
"""
copyright = u'2016, delfick'
project = u'Timepiece'
version = '0.1'
release = '0.1'
| [
"stephen@delfick.com"
] | stephen@delfick.com |
29efae0e744ea563bee924690a3f9d3d53403f93 | c4e202cd7ef71ec0ab6ef7bcc15a0079c7bd9281 | /Admin/ScrapeWiki | 2e8584cf72b3e4cb180c336f1c953abd881f8119 | [] | no_license | LiZhenzhuBlog/LearnVTKByExamples | 7daf76c957c9ace82f708485768d7c42a6d90669 | bbb08bfddbf9fcd75760a3f74d130a1f1fcbd8ee | refs/heads/master | 2021-09-15T21:55:29.139611 | 2018-06-11T16:58:17 | 2018-06-11T16:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,674 | #!/usr/bin/python
#imports
import mwclient
import re
import os, sys, shutil
import tarfile
import hashlib
import tempfile
# Get the title of the section ==FileName.xyz==
# and everything between the <source*> </source> tag
def GetCode(S):
reg = re.compile(r"==([\w ]*?\.[\w ]*?)==.*?<source.*?>(.*?)</source>.*?", r... | [
"bill.lorensen@gmail.com"
] | bill.lorensen@gmail.com | |
fa855db5afb47ec7b293899b2b38a9ff07993f5e | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_virtual_network_gateways_operations.py | 50bf1db4cd7c9502f838974217d71c52a8c48e7e | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 131,134 | 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"
] | scbedd.noreply@github.com |
ece0c01052a61464b8420b648906780e5643a005 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03145/s059797974.py | dfbd4067ddae2ecebea25fd1d1fce8dade881d21 | [] | 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 | 118 | py | def main():
a, b, c = (int(i) for i in input().split())
print(a*b//2)
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ef4f7da8e71ac1c712be2f64af476f2ab82d5c98 | cedd479d853d87e04b6b8c005a63e5e9120d9b98 | /tickets/admin.py | d20be07faf3f0cd513f531a898c9f092bd8914b6 | [] | no_license | CSCI-441-Fall-2020-Group-Project/QUICKBYTES | 53807a777217fb25e60eda6d3fe955a2a1e9cf83 | ace40c39338bfea412f3538fc08235b06889a414 | refs/heads/master | 2023-01-12T13:30:28.216943 | 2020-11-04T14:58:30 | 2020-11-04T14:58:30 | 309,734,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib import admin
from . models import Orderstable, Itemtable
# Register your models here.
admin.site.register(Orderstable)
admin.site.register(Itemtable)
| [
"klronholt@mail.fhsu.edu"
] | klronholt@mail.fhsu.edu |
c07539e392815557452916feb0163f67c510c19d | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /Validation/EcalDigis/test/PedestalRun_all_cfg.py | 73cd93f9ffa89842373868bafbf888c6fc22a6fb | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | Python | false | false | 3,270 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("EcalHitsValid")
# initialize MessageLogger
process.load("FWCore.MessageLogger.MessageLogger_cfi")
# initialize magnetic field
process.load("Configuration.StandardSequences.MagneticField_cff")
# geometry (Only Ecal)
process.load("Geometry.EcalCommonData... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
901f3c2a38f58f19f92c88a4de13806ac87815d0 | 943307c1a855839ac266ed862e15fd46a5ca7721 | /models/account_analytic.py | 799bd57d7ec7d064dc5b6e10ab8f691c06e1263c | [] | no_license | falconsoft3d/l10n_cl_functional_area_analytical_accounts | 6e4668f3ef54fb5d6c43de48f45995f94228cd45 | ae72fd0ba4291ab2a51ca43833f74c9dc8d23c22 | refs/heads/master | 2021-01-18T19:52:14.030828 | 2017-04-01T14:20:04 | 2017-04-01T14:20:04 | 86,918,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
from datetime import datetime
class Account_analytic_Area(models.Model):
_inherit = "account.analytic.account"
functional_area_id = fields.Many2one('functional.area', 'Area F... | [
"falconsoft.3d@gmail.com"
] | falconsoft.3d@gmail.com |
0793a4e3591f43fc12f6031a55203c396663583c | 57ea759b2f400f1dc155b7637533732c78a3f1b7 | /sales/urls.py | 27d20250c4e087b3b41aa3de6478e0c0fb7ce692 | [] | no_license | hanifmisbah/Marketplace | 219dce7b8cfe2a9509a6549729fea3febbe9cd3b | ee40a9a624021d10ff57befac88f306b1730bac7 | refs/heads/master | 2023-01-01T06:56:07.605659 | 2020-10-29T09:49:26 | 2020-10-29T09:49:26 | 308,255,051 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('transaksi/', views.transaksi),
path('input/', views.input),
path('print/', views.cetak),
path('create/', views.sale_detail),
path('<id>/', views.show_detail),
path('<id>/delete', views.delete),
# path('<id>/update', v... | [
"hanifmisbah97@gmail.com"
] | hanifmisbah97@gmail.com |
9b011f9ce2df250195b1c6b9bb3fff3249df534a | 3e36e0a9948c843f721f630be691ac1212f7a26d | /Seminar 7/StatisticsExample.py | ee7c820aab87fd39f2ac932e9a7096ae0e9b9ef6 | [] | no_license | teodoraalexandra/Fundamental-Of-Programming | 28d998636798a820c18a66a5cb34eff931ff6366 | 7ca3abf40d520ac5fc0e497472913b803ef764ab | refs/heads/master | 2021-05-20T02:34:24.158638 | 2020-04-01T11:39:22 | 2020-04-01T11:39:22 | 252,149,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,801 | py | from datetime import date
from controller.CarController import CarController
from controller.ClientController import ClientController
from controller.RentalController import RentalController
from domain.CarValidator import CarValidator
from repository.Repository import Repository
from domain.ClientValidator imp... | [
"33027937+teodoraalexanra@users.noreply.github.com"
] | 33027937+teodoraalexanra@users.noreply.github.com |
331c08d23a459bf4a7a20af486d6841e8429218d | 928c53ea78be51eaf05e63f149fb291ec48be73e | /Youngest_Common_Ancestor.py | bf86a4a39e6498d7bcca57e5865cddb4da7a6606 | [] | no_license | saurabhchris1/Algorithm-Pratice-Questions-LeetCode | 35021d8fc082ecac65d7970d9f83f9be904fb333 | ea4a7d6a78d86c8619f91a75594de8eea264bcca | refs/heads/master | 2022-12-10T16:50:50.678365 | 2022-12-04T10:12:18 | 2022-12-04T10:12:18 | 219,918,074 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | # Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
#
# According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between
# two nodes p and q as the lowest node in T that has both p and q as descendants (where we allow a
# node to be a descendant of... | [
"saurabhchris1@gmail.com"
] | saurabhchris1@gmail.com |
a3856af93e15e294a704dbae3ac3e9ceb830a287 | 32dda10669e459cf37c31f426fa709001d2c75b0 | /leetcode_cn/contest/biweekly81_c.py | fafec1346fb9bc1588d3ef7ce0aa6938b71b5964 | [] | no_license | fastso/learning-python | 3300f50d06871245d0bfcbe9d201224580f70852 | d21dbd1b9f31017cdb1ed9b9ffd1e53ffe326572 | refs/heads/master | 2023-02-10T14:43:53.726247 | 2023-01-26T10:14:59 | 2023-01-26T10:14:59 | 193,454,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from typing import List
class Solution:
def maximumXOR(self, nums: List[int]) -> int:
if len(nums) == 1:
return nums[0]
ans = 0
for i in range(32)[::-1]:
ans <<= 1
prefixes = set([num >> i for num in nums])
ans += any(ans ^ 1 ^ p in prefixes ... | [
"fastso.biko@gmail.com"
] | fastso.biko@gmail.com |
72e132b204c467ffd2e0c4752fe59282cb6f148b | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/comparison/test_chart_data_labels50.py | fd896f7be2a8a8ea36284cec2f32943e5be1480b | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 1,536 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
8fd6fe9826e923460e64e3405cec1023d5790116 | 54a2d0d1341abf2c2f8d291e6e9fd0658cef5e3d | /orchard/inspect.py | 9cf0630b9674976ab595bfeb89c6fb38503b4ae9 | [
"MIT"
] | permissive | Tominous/plumeria | b16bdcac5f845bdcb12241cd7d21aa03419a5dbd | 601adffedc745ae7ecc32824e119789a51eaf237 | refs/heads/master | 2020-05-29T22:43:01.472516 | 2017-08-20T19:12:57 | 2017-08-20T19:12:57 | 189,417,577 | 1 | 0 | null | 2019-05-30T13:19:56 | 2019-05-30T13:19:56 | null | UTF-8 | Python | false | false | 3,516 | py | """Get details about users and servers, like avatar, and so on."""
from colour import Color
from plumeria.command import commands, channel_only, CommandError
from plumeria.config.common import short_date_time_format
from plumeria.core.scoped_config import scoped_config
from plumeria.message.mappings import build_mapp... | [
"the.sk89q@gmail.com"
] | the.sk89q@gmail.com |
36701261467cf57de66f15a3922914faa007d00d | b99bbc50ab1d039948ccf853963ae044a97498fb | /src/api/chart/urls/line.py | 86ab1f4132914dfe37c9b629ae44bd334115e5b3 | [] | no_license | fan1018wen/Alpha | 26899cc0eb6761bf6bd8089e7d12716c9e7ae01e | c50def8cde58fd4663032b860eb058302cbac6da | refs/heads/master | 2021-05-12T12:54:15.747220 | 2017-10-11T10:58:51 | 2017-10-11T10:58:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # coding: utf-8
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from chart.views import ChartLineView
urlpatterns = [
url(r'^$', ChartLineView.as_view()),
]
urlpatterns = format_suffix_patterns(urlpatterns)
| [
"mengqiang@1b2b.cn"
] | mengqiang@1b2b.cn |
6d01d96f39a97323abbeb0c457781c2fa32300f5 | a11cf8d048c1b59a01329e62a2d2873f7bfc46e7 | /docs/conf.py | a8f6b86a5dded05d2c3e22c2bc3d412b14d35e88 | [
"MIT"
] | permissive | GrandPubba/Specter | 221b534c3c676729595c549e04bbe4d95a4883ff | e29e8ae00ed24b9a1b40b1e3dd91e88421edfecc | refs/heads/master | 2020-04-15T11:51:38.094446 | 2016-05-27T19:36:46 | 2016-05-27T19:36:46 | 61,308,892 | 0 | 0 | null | 2016-06-16T16:23:30 | 2016-06-16T16:23:30 | null | UTF-8 | Python | false | false | 8,561 | py | # -*- coding: utf-8 -*-
#
# Specter documentation build configuration file, created by
# sphinx-quickstart on Sun Oct 6 00:09:22 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | [
"john.vrbanac@linux.com"
] | john.vrbanac@linux.com |
120afc268bfa95e260aa20bcf971010761469d36 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/senteceReverse_20200821133014.py | 54c81dc455d5951dd85c40633582356217255718 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | def reverse(s):
# loop through the str
# have an empty str
word = ""
newStr = s.split(" ")
for i in range(len(newStr))
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f88b60760497877143bc9a9296cb2150b62caf33 | 07b37ca45d38edea112895049acf76d96ff07eff | /accesing_reuters_corpus.py | 79c3527eff521c832ee38868d535fb44f7d9d0cf | [] | 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 | 711 | py | #load the reurters corpus
from nltk.corpus import reuters
#Reuters corpus having 10,788 reuters news documents from around 90 different categories
#print the total categories
print('Total categories :',len(reuters.categories()))
#print categoires
print(reuters.categories())
#get sentences in housing and income c... | [
"krbhavanisankar@gmail.com"
] | krbhavanisankar@gmail.com |
6bbf5eb88d35d567d488e0f77c016a6fe9d063d7 | 17a7cfb42da57298dcaa9da78bdd0fbd2ae2bf53 | /backend/manage.py | 50c23a329e97059e86357a2c39e7577d6c5f730e | [] | no_license | crowdbotics-apps/polished-feather-29132 | cae012040a87ca72b744f37b36754593fdeed2ff | 458fef86a8fba1e332b50fbade62bbb0dd0a5547 | refs/heads/master | 2023-07-11T21:53:10.526486 | 2021-07-25T00:30:51 | 2021-07-25T00:30:51 | 389,226,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'polished_feather_29132.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cb28023da5bf23f8f2f4d152a2872226b3747bc5 | b8ca7b39498b371405b1036dc58d18ab260a3bdc | /app/api/migrations/0015_auto_20191016_0912.py | ef3e986e016adc1f7f0a9a84687ae5a016f2a2ef | [] | no_license | Sirius-social/Indy-Agent | 73cbb9126648a8e7d97e60fd7add3f7f72c25b1f | 8e26d824c74d7e41739ac16acacf4b12181cfea1 | refs/heads/master | 2022-12-10T18:33:15.324450 | 2021-09-19T22:39:21 | 2021-09-19T22:39:21 | 197,164,640 | 0 | 1 | null | 2022-12-08T05:53:33 | 2019-07-16T09:36:58 | Rust | UTF-8 | Python | false | false | 870 | py | # Generated by Django 2.1.2 on 2019-10-16 09:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0014_credentialdefinition'),
]
operations = [
migrations.AddField(
model_name='credentia... | [
"minikspb@gmail.com"
] | minikspb@gmail.com |
3174431d83d899d311c8022367c0cbd7608a221e | 1d71712bd61d7a27ddb760484f66aae4e69aaea7 | /blaze/data/__init__.py | 85e190ceca413fa4c9eecfefff6af20d48452e98 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | holdenk/blaze | e96a70adc7e19ae54888462df476aeb64ecbf9fb | b9974d54191fb497865abfb1b0b9c53e2732756f | refs/heads/master | 2021-01-21T00:01:10.819745 | 2014-08-13T20:08:12 | 2014-08-13T20:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from __future__ import absolute_import, division, print_function
from .core import *
from .csv import *
from .sql import *
from .json import *
from .hdf5 import *
from .meta import *
from .usability import *
__all__ = ['CSV', 'Concat', 'DataDescriptor', 'HDF5', 'JSON', 'JSON_Streaming',
'SQL', 'Stack', 'coerc... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
745a2041bf4edccae7753248ccec8de2ca680dea | 2e2b73886b4f41f61bea2c9142b5a0e5080b98d8 | /tests/unit/services.py | 653eb207cdef703357f68aa660b63f1e4e834d7a | [
"BSD-2-Clause"
] | permissive | Proxuser1/via | d15ad4e3f701ad848664112eaf065c87e49d9e90 | 0b637e0c15e28ecfe6e6c47234b9857bfc967bf2 | refs/heads/master | 2023-08-07T16:07:08.910913 | 2021-09-01T10:07:42 | 2021-09-02T07:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from unittest import mock
import pytest
from via.services import SecureLinkService, ViaClientService
@pytest.fixture
def mock_service(pyramid_config):
def mock_service(service_class):
mock_service = mock.create_autospec(service_class, spec_set=True, instance=True)
pyramid_config.register_service... | [
"jon.betts@hypothes.is"
] | jon.betts@hypothes.is |
0f104683fa2f3f424dccf7a72e8a542886dbfc1c | 2ec14fd1724fc8959e1d3a1b4d3f61d5c0cf6f48 | /test/functional/wallet_import_with_label.py | 4ebcc74a22e148ba8d1105d166855ee1909d0a03 | [
"MIT"
] | permissive | vitae-labs/Vitae | 7ddf8142d1e663f406399ec17de1c7bbba5e32fd | fa301e714cb26e742cfe29164a25961f1ff6d52c | refs/heads/main | 2022-07-28T15:48:24.765770 | 2022-01-29T06:13:19 | 2022-01-29T06:13:19 | 451,559,855 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,777 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Bitcoin Core developers
# Copyright (c) 2020-2021 The Vitae Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the behavior of RPC importprivkey on set and ... | [
"hemant.singh.leu@gmail.com"
] | hemant.singh.leu@gmail.com |
47cbfea128e427d5f24f2e9cd683a67fac117a65 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_295/ch19_2019_03_30_16_35_43_150533.py | 8980b822142ec07d108828f552f56344943834fb | [] | 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 | 190 | py | import math
def calcula_distancia_do_projetil (v,a,y):
d=((v**2)/(2*9.8))*(1+ math.sqrt (1+((2*9.8*y)/(v**2))*((math.sin (a))**2)))*math.sin (2*a)
return d | [
"you@example.com"
] | you@example.com |
b9512135de71a74be4f119d4b76b28b50eb1fecc | bd519e440aa20b9e170662075fea44f1c86a7808 | /bag/tests/test_html.py | 74a7b9840112f6286b643207c4f502ccd63300b0 | [
"MIT"
] | permissive | leofigs/bag | 556e424833a260b6ca4a71f37f1f7ccf8d9ebe8a | 82f181b50bf7292bb5a62b05284d96608d8feecc | refs/heads/master | 2021-01-15T08:26:22.500312 | 2015-07-05T22:54:43 | 2015-07-05T22:54:43 | 38,444,335 | 0 | 0 | null | 2015-07-02T16:37:10 | 2015-07-02T16:37:10 | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
'''Tests the *html* module.'''
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from unittest import TestCase
from ..html import decode_entities, encode_xml_char_refs
class TestHtml(TestCase):
def test_entities(self):
s ... | [
"nandoflorestan@gmail.com"
] | nandoflorestan@gmail.com |
8083af01727633d3afb418856b3e57cee83d77c8 | bc94d4b446402b5928d5047fdb122059f00f9eca | /backend/wallet/migrations/0001_initial.py | a9a7b5043db679871f18566293f6de444a45593c | [] | no_license | crowdbotics-apps/my-safe-place-24122 | 621b4a2aab49a0d551b7cb5488564e7ed0290fad | ab9bd08b87af1d7c253e574f2803de3557ac6f6f | refs/heads/master | 2023-02-27T08:34:18.975316 | 2021-02-08T21:42:43 | 2021-02-08T21:42:43 | 333,809,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,258 | py | # Generated by Django 2.2.17 on 2021-01-28 16:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("task_profile", "0001_initial"),
("task", "0001_initial"),
]
operations = [
mig... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
56106fb327038692cf30c7df278af892439911a8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/481/usersdata/334/110807/submittedfiles/Av2_Parte4.py | 9e541a529ef8439430d8c6933c0559611dd42cd3 | [] | 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 | 356 | py | # -*- coding: utf-8 -*-
n = int(input())
ma = []
for i in range(n):
for j in range(n):
lista = []
lista.append(int(input()))
ma.append(lista)
cont = 0
for i in range(n):
for j in range(n):
if i == j:
if sum(ma[i]) < ma[i][j]:
cont += 1
if cont == n:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0447b782818b06d49d43d253df0f0c5a83c89072 | 00d1258135eb293b343485bdb90015c4efa76f4f | /Problems/Quotation marks/tests.py | 2b577fab0945bdb515395d2e393a3a9f45cc20d9 | [] | no_license | TonyNewbie/RockPaperScissors | f270b6d6608756e932d89869015645455bbc4473 | 83fe10082a9da7dc8f91d841668ef7d9727f9c5e | refs/heads/master | 2022-05-29T08:35:22.995189 | 2020-05-04T09:26:47 | 2020-05-04T09:26:47 | 261,102,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["\"python\"","python"]]) | [
"prostomaster90@gmail.com"
] | prostomaster90@gmail.com |
80ad21ebfe1228dc501b130cd7f50c95081165f0 | 6da45f39fb45f57c6d0ffa70c118de137aeed07a | /env/bin/pip3.8 | ec4fc4aa89349d7559e01d0dcd45def04d20ffec | [] | no_license | KevinB-a/ACP | b32f07aca3cfe9aa73835b8540f4478d72985545 | 049511c748b474d7672275ba6e6ab634d3df8239 | refs/heads/master | 2023-04-15T04:05:31.485314 | 2021-04-23T12:31:27 | 2021-04-23T12:31:27 | 360,876,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | 8 | #!/home/apprenant/simplon_project/ACP/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kevin.billet.pro@gmail.com"
] | kevin.billet.pro@gmail.com |
9b1338edc35e86241cda4cb123899a8db88bdbce | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/edx-codejail/allPythonContent.py | a83272ff6e038e7f216ce556030c7dc20b914e36 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,367 | py | __FILENAME__ = django_integration
"""Django integration for codejail.
Code to glue codejail into a Django environment.
"""
from django.core.exceptions import MiddlewareNotUsed
from django.conf import settings
import codejail.jail_code
class ConfigureCodeJailMiddleware(object):
"""
Middlewar... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
51a0fbe6ae2555c8e9e47edaaeb44cf21a558324 | b6c09a1b87074d6e58884211ce24df8ec354da5c | /121. 买卖股票的最佳时机.py | 8eb60d0dbe7fe4368476fafaa41b2094a072234d | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """
给定一个数组 prices ,它的第 i 个元素 prices[i] 表示一支给定股票第 i 天的价格。
你只能选择 某一天 买入这只股票,并选择在 未来的某一个不同的日子 卖出该股票。设计一个算法来计算你所能获取的最大利润。
返回你可以从这笔交易中获取的最大利润。如果你不能获取任何利润,返回 0 。
"""
def maxProfit(prices):
dp = [[0, 0] for _ in prices]
print(dp)
for i in range(len(prices)):
dp[i] = max(0, max(prices[i:]) - prices[i])
... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
219925b366b91c480defd3a5f8841abca6622137 | bd2c2f1c0c2c90992b2edf12c09fe82f9bd98c8f | /kardex_it/models/product.py | 75ab5f1fd9b7a51d99921714f7c10ce258c2b984 | [] | no_license | Makelator/ccia-itgrupo | 4e966f3232081b37fa1e4621026a4e21817fa5c8 | dee0f408ef964e216766652830fd4d6af9c533e1 | refs/heads/master | 2020-06-28T16:17:08.438192 | 2019-08-14T18:36:59 | 2019-08-14T18:36:59 | 200,279,452 | 1 | 1 | null | 2019-08-06T03:57:09 | 2019-08-02T18:18:53 | JavaScript | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
from collections import namedtuple
import json
import time
from odoo import api, fields, models, _
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
from odoo.tools.float_utils import float_compare
from odoo.addons.procurement.models import procurement
from odoo.exceptions import UserError... | [
"angel_afla@hotmail.com"
] | angel_afla@hotmail.com |
07bca95bc9bdcbccd0f6c30d8870884d429c17af | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/multiapi/Expected/AcceptanceTests/MultiapiSecurity/multiapisecurity/v1/aio/_multiapi_service_client.py | db5cfec4b73731636d0e87b10150fe7682a85f9d | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 4,121 | 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 |
3c0ae3d562dca2b99fd3ea46b00ff52a363ee8c9 | 1f5715f3256872842bb98325447a86b8b13022ae | /day2/dict/4.py | 66f732384008cf30fcb3e24a22fe582a3201dc1b | [] | no_license | shobhit-nigam/strivers | c8164806e9eaf74817712c2697f21d5560c9a85e | bfd49e793b8519a73a655d4209e9e2661f7c9224 | refs/heads/main | 2023-07-30T16:54:12.318339 | 2021-10-07T13:00:15 | 2021-10-07T13:00:15 | 413,392,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | avengers = {'thor':'hammer', 'captain':['shield', 'hammer'],
'iron man':'suit', 'black widow':'elegance'}
xmen = ['wolverine', 'magneto', 'blue']
marvel = {'xmen':xmen, 'ave':avengers}
print("marvel =", marvel)
print("----")
print("marvel['ave'] =", marvel['ave'])
print("----")
print("marvel['ave']['captain'] ="... | [
"noreply@github.com"
] | shobhit-nigam.noreply@github.com |
8d620566a84af4ed43b04759bbc36e6658f3d536 | 01b745e6f45960d0aca3e4612ce810a7f40227a8 | /unittests/test_odata2_sqlds.py | a900ccabc68da3d52bc1b77ba51853fdcb10f9b8 | [
"BSD-3-Clause"
] | permissive | stevehof/pyslet | fbad07998642e2297420e4ac211c5f1ca4d7307d | f27d55bc6ecd3b9ee0037f11aa1104fe0ad0dbfd | refs/heads/master | 2021-01-15T18:26:31.667495 | 2016-01-22T10:34:11 | 2016-01-22T10:56:59 | 50,014,377 | 0 | 0 | null | 2016-01-20T08:00:02 | 2016-01-20T08:00:00 | Python | UTF-8 | Python | false | false | 36,187 | py | #! /usr/bin/env python
import logging
import random
import sqlite3
import string
import threading
import uuid
import unittest
import pyslet.odata2.csdl as edm
import pyslet.odata2.core as core
import pyslet.odata2.metadata as edmx
import pyslet.http.params as params
from pyslet.vfs import OSFilePath as FilePath
from... | [
"steve.w.lay@gmail.com"
] | steve.w.lay@gmail.com |
5273be71070d43ea0605cabc9c19aae4c146c58a | 9a8f49df431717c5db28a704fd50909de3928985 | /test/test_quantization.py | 4c796b76f3c9d880998669fe56ecf8f99a941c03 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yadhukartha/pytorch | 770954c976af362b2959ae5db8224193b984319b | d1a5612a3ea501b83a80b9ecfd6b4dd5eb125181 | refs/heads/master | 2023-08-24T09:32:01.065274 | 2021-10-22T08:32:59 | 2021-10-22T08:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,245 | py | # -*- coding: utf-8 -*-
# Owner(s): ["oncall: quantization"]
from torch.testing._internal.common_utils import run_tests
# Quantization core tests. These include tests for
# - quantized kernels
# - quantized functional operators
# - quantized workflow modules
# - quantized workflow operators
# - quantized tensor
# 1.... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
9979bdd16275f321b34b243974817727e11ab5c6 | 8ff12c53e31f134b9f39f59b9a6f7d4f9142cea7 | /src/if4.py | 6a3b597681cf4c75d6231a645890cf4cb23bf004 | [] | no_license | quhuohuo/python | 5b0a80dbec7d22a0b274e4a32d269e85d254718c | 5732c5974519da8e8919dab42b36ab0ab2c99b37 | refs/heads/master | 2021-06-13T11:41:12.356329 | 2017-04-07T08:58:05 | 2017-04-07T08:58:05 | 75,054,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | #! /usr/bin/python
# if的嵌套
a = int(input())
if a > 0:
if a > 10:
print ('a > 10')
else:
print('0 < a <=10')
elif a == 0:
print('a = 0')
else:
print('a < 0')
| [
"813559081@qq.com"
] | 813559081@qq.com |
f55b7119ec63bca5b0c64ea854f53d2125e9040e | 1a5a48ad39178b4c2046a23b7df5c1304198632f | /dlogr_web/urls.py | 38be6cea2e2a4f419866e967afec65562a128ae9 | [] | no_license | filwaitman/dlogr-web | d43aa16d145c1d20a22e25d1db9d9fc833c59901 | 4b45a5bd077ffc00a2758c5520d72b6715a002d8 | refs/heads/master | 2020-06-10T22:36:52.145082 | 2017-02-14T00:03:26 | 2017-02-14T00:03:26 | 75,855,575 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | from django.conf.urls import url
from main.views import (
IndexView, AboutView, TermsView, SupportUsView, HeroesView, WelcomeView,
SigninView, SignoutView, SignupView, DashboardView, DashboardDetailView, ResetPasswordView,
ChangeForgottenPasswordView, VerifyAccountView, SettingsView, ChangePasswordView
)
... | [
"filwaitman@gmail.com"
] | filwaitman@gmail.com |
414e20894fb534ccf99aa0fed8b3475ae90066ff | 89a87ce2f4155187b5cd2d06fd8075ac384f4d4a | /account_manager/ftp_account/ftp.py | f80e3f5b3dfeba0abca2ce6cdd28bf042618cffe | [] | no_license | dh-1020/vsftpd_account_manager | d7b61aacd22200013988319c03f674de8374a6ee | 2633b3191e78b54ea871b60a72104a2abc72acb7 | refs/heads/master | 2022-04-19T13:05:45.958328 | 2020-04-20T10:40:12 | 2020-04-20T10:40:12 | 255,568,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,556 | py | from django.conf import settings
from json import dumps, loads
from os import system, makedirs, rename, path, mknod
from shutil import copy, move
class Ftp:
def __init__(self):
self.config_path = settings.FTP_USER_FILE
self.config_db_path = settings.FTP_USER_DB_FILE
self.user_config = sett... | [
"you@example.com"
] | you@example.com |
70a05a7460c2c561f9efbfc5e4dc568a497c115f | 828bd40f2b500416fd679949bc06648fdf40a7e0 | /prev_ob_models/exclude/GilraBhalla2015/simulations/plot_odor_whitenoise.py | 589db97f936bd3cb8d5f94f2f435e0455d954161 | [
"MIT"
] | permissive | fameshpatel/olfactorybulb | f513c480a1010c1a30911f12a3e4cf8ab5059dee | 8d7a644b4560309ef177c0590ff73ed4c2432604 | refs/heads/master | 2023-07-24T16:35:15.855708 | 2019-09-24T19:22:26 | 2019-09-24T19:22:26 | 212,605,801 | 0 | 0 | MIT | 2023-07-06T21:23:06 | 2019-10-03T14:51:17 | Jupyter Notebook | UTF-8 | Python | false | false | 1,467 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import pickle
sys.path.extend(["..","../networks","../generators","../simulations"])
from OBNetwork import *
from stimuliConstants import *
from simset_odor import * # has ONLY_TWO_MITS
from sim_utils import *
from pylab import * # part of matplotlib that depe... | [
"jbirgio@gmail.com"
] | jbirgio@gmail.com |
4dc581a330b77c2985be063579d36b9efdfe0940 | c6ed9aa97166d4778b89321b580af80c543bacc9 | /codeforces/630/twentyfive.py | e832e383b9ddb63735be718ddce0fa8999953c21 | [] | no_license | bradyz/sandbox | 381bcaf2f3719dee142a00858f7062aeff98d1ab | ff90335b918886d5b5956c6c6546dbfde5e7f5b3 | refs/heads/master | 2021-01-23T09:03:54.697325 | 2018-02-27T20:47:48 | 2018-02-27T20:47:48 | 21,292,856 | 10 | 0 | null | 2015-09-03T16:53:15 | 2014-06-28T00:29:18 | Python | UTF-8 | Python | false | false | 10 | py | print(25)
| [
"brady.zhou@utexas.edu"
] | brady.zhou@utexas.edu |
c25d436b9d5707ed5bcd6dbea3424fc65ee6121e | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/mphkam003/question1.py | abcac1c3a39ea205aaad8a6361da31f912280687 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | def rectangle(s):
height=eval(input("Enter the height of the rectangle: \n"))
width=eval(input("Enter the width of the rectangle: \n"))
for i in range(height):
print(s*width)
rectangle("*") | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
47cf3468751bdf629aa1b3ee5c141a4f43ba6267 | a4daf0bfff6cfdb9ae9d9fd99fbb2df1a9aea845 | /easy_images/engine/base.py | 77ca5a723c90d6fb52b18fc8eee62ece13b138a6 | [] | no_license | Gointer/easy-images | ca29dcf4f88b88e5014c8792c882af871f84f799 | 132d43c507ce0e5355757923a28f81889bdb7e82 | refs/heads/master | 2021-01-23T23:25:17.012989 | 2015-07-07T01:04:39 | 2015-07-07T01:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | """
An engine's job is to process actions sent to it.
It may do this in a queue, or in-process depending on the requirements.
An action looks like this::
{
"source": source_url_or_path,
"ledger": current_ledger,
"opts": [
{
'KEY': 'hash',
'FILEN... | [
"smileychris@gmail.com"
] | smileychris@gmail.com |
4699962e9fc22f6f9dfdc5b420794e735ea59f49 | 7e92ae2c49023106b478a1264f0087500c8ebbc8 | /elan/migrations/0009_subscribe.py | ce60682f909bf2afc20168cd7fcf9563f07bd856 | [] | no_license | thepylot/E-Commerce-and-Blog-App | ca7cc1dcf4b58d4f1aeec331fff467bf3e300d5e | 88018191a722f9edf7e99bba10306e3ddac188d8 | refs/heads/master | 2022-01-27T03:55:11.536157 | 2018-11-05T17:08:54 | 2018-11-05T17:08:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('elan', '0008_auto_20181104_1415'),
]
operations = [
migrations.CreateModel(
name='Subscribe',
fields... | [
"charliescene512@gmail.com"
] | charliescene512@gmail.com |
77c2b365fcbcd388386c30a3a9610e85205140cf | 3b5d0c88a747baccf62f6c189ab001cf192181cb | /3/power_of_four.py | e03548050484b0b93582b65c64b39569ded5418c | [
"Apache-2.0"
] | permissive | OZ-T/leetcode | 273f652ae39017026f517a9c4a81b60cfaa5bc4c | c70489f82876107f51f43cee9cdcbf25bb43145b | refs/heads/master | 2023-07-23T19:59:57.092165 | 2021-08-28T09:23:51 | 2021-08-28T09:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | class Solution(object):
def isPowerOfFour(self, num):
"""
:type num: int
:rtype: bool
"""
return (num - 1) & num == 0 and (num - 1) % 3 == 0
| [
"guotiexin@gmail.com"
] | guotiexin@gmail.com |
b50bb5d6045bd7e28683e45adcbe40d3ccfca489 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s433926777.py | 2b9e18eff8ada8bce2c52e319d934ec01e354fd8 | [] | 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 | 645 | py | import math
import sys
n = int(input())
a = list(map(int, input().split()))
ga = a[0]
for i in range(n):
ga = math.gcd(ga, a[i])
if ga != 1:
print("not coprime")
sys.exit()
m = 1000000
b = [0]*(m+1)
#高速素因数分解
for i in range(2, m):
if b[i] != 0:
continue
j = 1
while True:
t = i * j
if t > m:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0d12730e89ee0aaa1dbac917fab7c633dbd7b810 | 7c99ea5b1ffe089c97615336daf4b6ceed9a5b00 | /Configurations/HighMass/v7_Full2017/plot_log_ee_mm.py | 1b8d2573159f1a9075c8e1929153186f444b42fa | [] | no_license | flaviacetorelli/PlotsConfigurations | 948faadba356e1d5e6f546dc11dd8dacfe1c1910 | aa5cf802c86902378617f566186bc638e69f9936 | refs/heads/master | 2022-05-02T00:37:56.070453 | 2022-03-18T10:14:23 | 2022-03-18T10:14:23 | 235,580,894 | 0 | 1 | null | 2020-01-22T13:37:30 | 2020-01-22T13:37:29 | null | UTF-8 | Python | false | false | 12,036 | py | # plot configuration
# groupPlot = {}
#
# Groups of samples to improve the plots.
# If not defined, normal plots is used
#
groupPlot['SMHiggs'] = {
'nameHR' : 'SM Higgs',
'isSignal' : 0,
'color': 632, # kRed
#'samples' : ['ZH_hww', 'ggZH_hww', 'WH_hww'... | [
"dennis.roy@cern.ch"
] | dennis.roy@cern.ch |
3a09eded3d24df68518af4571e304d0d4922c004 | bf0c13d412a7021b299c5e0622e63e72172cf725 | /midterm/book_store/users/serializers.py | bc2544d2efe97081dee0fb9ce753ecc932224e3d | [] | no_license | Alibek120699/BFDjango | 765e734e925041947f607a1d15228309dfa3e647 | eac06c317551c561ffccb44750862972ae11dea3 | refs/heads/master | 2022-12-01T15:49:39.402815 | 2020-04-19T21:09:39 | 2020-04-19T21:09:39 | 233,657,360 | 0 | 0 | null | 2022-11-22T05:49:56 | 2020-01-13T17:50:13 | Python | UTF-8 | Python | false | false | 432 | py | from rest_framework import serializers
from .models import MyUser
class MyUserSerializer(serializers.ModelSerializer):
password = serializers.CharField(write_only=True)
class Meta:
model = MyUser
fields = ('id', 'username', 'email', 'first_name', 'last_name', 'password')
def create(self... | [
"sayakalibek1@gmail.com"
] | sayakalibek1@gmail.com |
3bd9aa0098619abf534c3c84af805f0a6c76a504 | f65be574caf751a50cca2dc61a035dad9829d27c | /algorithm/empty/Analysis.py | 0530e5badf0dedc9cc99cd0433b6e383501bf0f1 | [] | no_license | Chen-Gu/slp | 295810b597810f386c0d96038a5bae0d178c5ae0 | db242fdc01f42a916a9c1c295548a03c94e56948 | refs/heads/master | 2021-08-28T11:37:52.906728 | 2021-08-11T15:00:25 | 2021-08-11T15:00:25 | 237,653,729 | 0 | 0 | null | 2020-02-01T17:49:44 | 2020-02-01T17:49:44 | null | UTF-8 | Python | false | false | 564 | py |
from data.analysis import AnalyzerCommon
algorithm_module = __import__(__package__, globals(), locals(), ['object'])
class Analyzer(AnalyzerCommon):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def results_header(self):
d = self.common_results_header(algorithm_modul... | [
"MBradbury@users.noreply.github.com"
] | MBradbury@users.noreply.github.com |
b96751d7cfa9a01d4e4db2db75f64edac80cbb97 | a8e3ddb269a8b959b3bce38e7b21aaa1a7e69dd4 | /tensorpack/dataflow/imgaug/_test.py | 963662d49ae03942951604b6e8c6034f67a77932 | [
"Apache-2.0"
] | permissive | myelintek/tensorpack | 55945c7ea9d661b31f28c83e5477870d2f3dac86 | fcbf5869d78cf7f3b59c46318b6c883a7ea12056 | refs/heads/master | 2018-10-25T05:50:15.302077 | 2018-04-09T03:24:27 | 2018-04-09T03:24:27 | 114,971,878 | 0 | 2 | Apache-2.0 | 2022-09-29T03:16:20 | 2017-12-21T06:39:29 | Python | UTF-8 | Python | false | false | 779 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: _test.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
import sys
import cv2
from . import AugmentorList
from .crop import *
from .imgproc import *
from .noname import *
from .deform import *
from .noise import SaltPepperNoise
anchors = [(0.2, 0.2), (0.7, 0.2), (0.8, 0... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
75415ff63fbd51739eef0199b8be88ac70ae6508 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0200-Number-of-Islands/soln-2.py | 5ce07dd732aff69262e223cf55ccbd0b9322f291 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 625 | py | class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
cnt = 0
for i, row in enumerate(grid):
for j, val in enumerate(row):
if val == '1':
self.dfs(grid, i, j)
cnt += 1
return cnt
def dfs(s... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
916f6215d65a1e1aa15acd22b62202296bef46f9 | 62f756687af4f522b78e4963a6d2262136a9b65d | /tests/net_hosted/ssl_getpeercert.py | e265c830d0d92867c6335da3abdd0224444aff45 | [
"MIT"
] | permissive | micropython/micropython-esp32 | 48ce07832c8d44fcdc530962bd9ae087949b957b | 2f4dac5f121a59fc187c1d9c1f9eade365b3aba1 | refs/heads/esp32 | 2023-08-28T12:00:44.867727 | 2018-02-27T04:06:10 | 2018-02-27T04:06:10 | 76,828,539 | 737 | 238 | MIT | 2023-09-06T02:31:38 | 2016-12-19T04:38:26 | C | UTF-8 | Python | false | false | 403 | py | # test ssl.getpeercert() method
try:
import usocket as socket
import ussl as ssl
except:
import socket
import ssl
def test(peer_addr):
s = socket.socket()
s.connect(peer_addr)
s = ssl.wrap_socket(s)
cert = s.getpeercert(True)
print(type(cert), len(cert) > 100)
s.close()
if _... | [
"damien.p.george@gmail.com"
] | damien.p.george@gmail.com |
d9958ebaa64339046eb4354deb184360f5d27a2e | 403cdd9f1cf932f7a15f9d0dc4c87b2b3b05f76c | /LanguageModeling/RoBERTa/classifier.py | 11a95d1ec30fd878999a5076ffdf4c7048648e9f | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow_nlp_model | 96b2b00e7f485f3968b00c06e89e9888879146cf | 7fa2d9ca39187096be0ac535bef81fa0dd9ce679 | refs/heads/main | 2023-09-01T00:31:52.939370 | 2021-09-30T03:12:59 | 2021-09-30T03:12:59 | 316,427,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
7b9b340e5b57fe49595fb6f94f371136b078f379 | 9b76ce1860fe1a3becd25ac45cbe69bc9430da1d | /emptimelogmgmt/emptimeclklogmgmt/apps.py | 127555927bb4b615961df3923bc324f6805c1384 | [] | no_license | vivekVells/EmployeeWorkTimeLogManagement | 931616d8a0b4282cba7dbabcf2fb5654a69e13cf | 2e80b186270e9e25259af6653e5af23a5bed25c1 | refs/heads/master | 2022-10-16T16:45:14.851854 | 2018-10-29T20:48:59 | 2018-10-29T20:48:59 | 124,727,028 | 4 | 3 | null | 2022-09-25T22:03:14 | 2018-03-11T05:42:51 | Python | UTF-8 | Python | false | false | 114 | py | from django.apps import AppConfig
class EmptimeclklogmgmtConfig(AppConfig):
name = 'emptimeclklogmgmt'
| [
"techengineervivek@gmail.com"
] | techengineervivek@gmail.com |
f97284bf1135e9aad3488bcc1bbfe24583ead781 | ac467453836b7ad0df3ff3a92cf9f981d45a555d | /python 2.7/main_funkcija.py | 277ef288731806e86c90205a82a62c5f208992ca | [] | no_license | laky55555/umjetna_inteligencija | e677b6a42b70011d0275963ff82dae6e21d2abe5 | bcbfbbe8b0c37a78d7ee402b027796d09550b016 | refs/heads/master | 2020-05-30T07:18:58.227613 | 2016-10-07T00:18:24 | 2016-10-07T00:18:24 | 70,202,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py |
import igre_internet
def main():
play_game(TicTacToe(), random_player, random_player)
if __name__=="__main__":
main()
| [
"laky55555@gmail.com"
] | laky55555@gmail.com |
3ed50cf93a9941d65a7a77455402d054330aaf42 | 6606fd073e4c7f393497d536ee29cf41d81d07c0 | /TrackEval/trackeval/datasets/_base_dataset.py | 7399e97e1524ae01a3c8cb41732ccdad749a25d1 | [
"CC-BY-4.0",
"MIT"
] | permissive | computorg/published-202301-chagneux-macrolitter | ad1f5597d34380b414dced15332c40f89fd31098 | 7188e778e6f3b9cda0edee87f35b6b2027a39da8 | refs/heads/master | 2023-08-08T19:14:08.084597 | 2023-02-16T17:07:16 | 2023-02-16T17:07:16 | 584,798,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,854 | py | import csv
import io
import zipfile
import os
import traceback
import numpy as np
from copy import deepcopy
from abc import ABC, abstractmethod
from .. import _timing
from ..utils import TrackEvalException
class _BaseDataset(ABC):
@abstractmethod
def __init__(self):
self.tracker_list = None
se... | [
"nelle.varoquaux@gmail.com"
] | nelle.varoquaux@gmail.com |
6f0f3559c34f47a61f2edbd921da22f13d0eec2f | b1ba5707a5cbe918d33bc2082b3eb4ff1378c060 | /SDPython/sd/api/sdvaluematrix.py | a6b853e3eda11b7197c91f06ce839ebc5f0896f5 | [] | no_license | qq781217732/SubstanceDev | 2eb1d9ed48d477cf70c7bfdac2103bb884e9204c | b9ffab0a1b8f3c01783259074940b2712a8142b8 | refs/heads/master | 2023-03-26T00:43:35.047305 | 2021-03-01T04:12:28 | 2021-03-01T04:12:28 | 342,539,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,342 | py | # ADOBE CONFIDENTIAL
#
# Copyright 2020 Adobe
# All Rights Reserved.
#
# NOTICE: Adobe permits you to use, modify, and distribute this file in
# accordance with the terms of the Adobe license agreement accompanying it.
# If you have received this file from a source other than Adobe,
# then your use, modification, or d... | [
"gaoyuyang@senseinn.com"
] | gaoyuyang@senseinn.com |
ddcdd146c94673bb7cdb7140bcfa6095ab132d4c | 554a64c207b023455c0ad72439eb8610777057ab | /movie_site/urls.py | 9d9cb167bd761ed5bcfc536dddd241042626f06e | [] | no_license | shotaro0726/videos | f8dfb1148372a0432c1b36e8ffcf8e76b8b40051 | 4f00c2c68f182755d46ff2e9a261173d6cb865c4 | refs/heads/master | 2022-12-12T01:10:48.383209 | 2020-04-09T03:28:14 | 2020-04-09T03:28:14 | 252,409,054 | 0 | 0 | null | 2022-11-22T05:27:25 | 2020-04-02T09:18:25 | JavaScript | UTF-8 | Python | false | false | 851 | py | from django.urls import path
from .views import MovieTopListView, MovieDetailView, MovieFormView, MovieUpdateView, MovieDeleteView, MovieCommentView, \
MovieSearchView, MovieUserPageView
from django.conf import settings
app_name = 'movie_site'
urlpatterns = [
path('', MovieTopListView.as_view(), name='movie_t... | [
"shoutaro0726@gmail.com"
] | shoutaro0726@gmail.com |
39cc2fe18d1e841a37e69e91280f107733b4d0a2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_whelps.py | 6f9f2f924b4b3217a513938c29e7b4268dbbb6cc | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.nouns._whelp import _WHELP
#calss header
class _WHELPS(_WHELP, ):
def __init__(self,):
_WHELP.__init__(self)
self.name = "WHELPS"
self.specie = 'nouns'
self.basic = "whelp"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fe3bc26b6b55c5388436a443bdd8acfad925feb4 | ed5723fccbb2ed57e7323d4227b388cb00283834 | /my_rl_teacher/labeler.py | 315427cac2fa92886c6da50391316fdad29d28c1 | [
"BSD-2-Clause"
] | permissive | YuMurata/my_rl_teacher | c225edb81e986349fec1c060e997b9a81c30a247 | ad55360ac5387a86e8acbf5a192f41c9872c33f9 | refs/heads/master | 2020-04-10T16:24:26.278647 | 2018-12-13T12:37:32 | 2018-12-13T12:37:32 | 161,144,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | def left_more_reward(left_info:dict, right_info:dict):
left_more_reward = left_info['reward'] >= right_info['reward']
return 0 if left_more_reward else 1
def left_more_action(left_info:dict, right_info:dict):
left_more_action = left_info['action'][0][0] >= right_info['action'][0][0]
return 0 if left_mo... | [
"purin7635@gmail.com"
] | purin7635@gmail.com |
1aab467ca1635044e273adc4c345a15aa5a07b11 | 5ba3115523fb052d32db827e09443248ec5f6629 | /algorithm/PycharmProjects/0212/그래프 경로.py | 5637fb17455077a06bf41fcf57e591cb66edb2b1 | [] | no_license | oliviaspark0825/TIL | 841095003ae794e14bd8c7e8c883826667c25f37 | 8bc66836f9a1eea5f42e9e1172f81f005abc042d | refs/heads/master | 2023-01-10T22:14:15.341489 | 2019-08-22T09:09:52 | 2019-08-22T09:09:52 | 162,099,057 | 0 | 0 | null | 2023-01-04T07:52:28 | 2018-12-17T08:32:43 | Jupyter Notebook | UTF-8 | Python | false | false | 868 | py | # 그래프경로
def dfs(v):
global G, visited, adj, V, flag # G = 도착 노드, V = 노드갯수 // 매번 쓰기위해
visited[v] = 1 # 방문한 곳은 1로 표시하여 재방문하지 않도록
if v == G:
flag = 1
return
for w in range(1, V+1):
if adj[v][w] == 1 and visited[w] == 0:
dfs(w)
return
import sys
sys.stdin = o... | [
"suhyunpark0825@gmail.com"
] | suhyunpark0825@gmail.com |
a805fef30298d1adae87c4c46952d2205a0fc41f | bc2ffad94d9d5aeea5941111663f73defc7383dd | /day6/loginTest.py | e241cd985e658fe5b687da7f1469a6b4dc89b471 | [] | no_license | xingxing201314/Weekend11181 | 791453285532815056c282157ccea6c9458cd82a | 8291e0241ba782cbb17270d8a05765d19c23eb07 | refs/heads/master | 2021-08-23T04:13:13.880286 | 2017-12-03T07:01:05 | 2017-12-03T07:01:05 | 112,907,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from day5.myTestCase import MyTestCase
class LoginTestCase(MyTestCase):
def test_login(self):
#self.driver.get("http://localhost/index.php?m=user&c=public&a=login")
lp = LoginPage()
lp.open()
#s... | [
"51Testing"
] | 51Testing |
bc6e47ad5db11c84b9029185df9f021b4eed47c9 | ed7e6b0be2b94b9af11cd82d7794426f5015b749 | /data/__init__.py | 41a6e3195d66f7b9a57d3b1bbd969885c2007f4f | [] | no_license | phymhan/pc-gan | e1d9fca9ce79ef75f73564f5f892814f8a04c968 | 983ba0f9a3b57d736ae3f823dafd042129aa14e0 | refs/heads/master | 2020-09-14T05:13:58.855811 | 2019-11-23T04:06:47 | 2019-11-23T04:06:47 | 223,029,479 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | import importlib
import torch.utils.data
from data.base_data_loader import BaseDataLoader
from data.base_dataset import BaseDataset
def find_dataset_using_name(dataset_name):
# Given the option --dataset [datasetname],
# the file "datasets/datasetname_dataset.py"
# will be imported.
dataset_filename =... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
32869b90ba435e892a4bf88739cc00f9787d0cbc | f131222013fd1c23bf23a9af44dbaf2cd2dfbe72 | /kafka/kafka_send.py | c45ec1f55c915a31c1cbd41003e8956beca3523e | [] | no_license | shortdistance/workdir | e0bdadcb9d6b5e61e62434d574afad36afa60ba9 | 7c4a23fdbb8ae14b67aeda47ce53be1bd24ae2d1 | refs/heads/master | 2021-01-19T23:21:40.885964 | 2017-04-21T12:55:45 | 2017-04-21T12:55:45 | 88,968,923 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | from kazoo.client import KazooClient
from samsa.cluster import Cluster
zookeeper = KazooClient(hosts='20.26.19.36:10080')
zookeeper.start()
cluster = Cluster(zookeeper)
topic = cluster.topics['mk_simple_1']
topic.publish('topic=mk_simple_0&message=13454008077|13454008078|3|2015-02-26 11:36:32|2015-02-26 11:57:39|12|f1... | [
"zhanglei520vip@163.com"
] | zhanglei520vip@163.com |
4f469d8e1774282140a95f5398038af123cd1662 | e780e90151f26fd94f04c8a6a8ec6f642d7bcfc3 | /ivi/agilent/agilentDSO7104B.py | f37feaa6c3d4c43d306dda897426e211b1da3c87 | [
"MIT"
] | permissive | dboonz/python-ivi | a235d811363ef55e415d0a2edd29c95c170e8883 | 1e1b5e765876f09610b6041423f6732a273d4c3e | refs/heads/master | 2020-12-25T01:44:58.430340 | 2013-02-20T20:28:21 | 2013-02-20T20:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012 Alex Forencich
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 righ... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
8db7e268908503e8a45c1e17d6373ce5e3309bcd | f7866fd1fcb6fd135f4fbb86ecd1f99ed3a4e1e4 | /midigen/manage.py | 6bbe4ae3270189de29a97e309774907abf7824d4 | [] | no_license | Lumy-og/midi-generator | fc320a37363996c74e866d8fd49005b38b44bcbb | d9a0cba7fae2026c70c386403e696d1fa54efcff | refs/heads/main | 2023-03-29T01:16:46.491402 | 2021-03-28T17:16:29 | 2021-03-28T17:16:29 | 350,746,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'midigen.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"you@example.com"
] | you@example.com |
8c65861a72cb610c17265cc35029990dd93cfb9e | 59bd9c968a3a31a73d17f252fe716a3eacdf7f4f | /portfolio/2011_krakDK/krak/settings.py | 47021f03ae39c83926870a20687dcc169d31c063 | [
"Apache-2.0"
] | permissive | 0--key/lib | 113ff1e9cf75e446fa50eb065bc3bc36c090d636 | a619938ea523e96ab9e676ace51f5a129e6612e6 | refs/heads/master | 2023-06-23T22:17:54.244257 | 2023-06-21T17:42:57 | 2023-06-21T17:42:57 | 23,730,551 | 3 | 5 | null | 2016-03-22T08:19:30 | 2014-09-06T08:46:41 | Python | UTF-8 | Python | false | false | 417 | py | # Scrapy settings for krak project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/topics/settings.html
#
BOT_NAME = 'krak'
BOT_VERSION = '1.0'
SPIDER_MODULES = ['krak.spiders']
NEWSPIDER_MODULE = 'krak.spi... | [
"a.s.kosinov@gmail.com"
] | a.s.kosinov@gmail.com |
1302641d1994dc1333ff8da3cf734620c6658727 | 60991ee51ce6fc987e61748318ce71ec535de16d | /porder/__init__.py | c62dd6f7fee83655315fd110ef9ef6465afed5ca | [
"Apache-2.0"
] | permissive | ShashankBice/porder | d6b041b90b3cbce7a195f31b309703560e74e903 | 1a387f4b90617b5c1c4ed2f09e6579427ecb691c | refs/heads/master | 2020-05-04T23:47:19.927475 | 2019-04-04T21:57:31 | 2019-04-04T21:57:31 | 179,555,312 | 0 | 0 | null | 2019-04-04T18:37:37 | 2019-04-04T18:37:36 | null | UTF-8 | Python | false | false | 114 | py | # -*- coding: utf-8 -*-
__author__ = 'Samapriya Roy'
__email__ = 'samapriya.roy@gmail.com'
__version__ = '0.2.3'
| [
"samapriya.roy@gmail.com"
] | samapriya.roy@gmail.com |
3b7833e090eb694c4aff5b59d247ee5cd566c821 | 20c80f722c451b64d05cc027b66a81e1976c3253 | /commons/scripts/barbarian/reloader.py | 4cdd952be3622a8081de380008b77f9a30f1969e | [] | no_license | flypotatojun/Barbarian | 2d3fcb6fcb1b4495b6d62fc5e32634abf4638312 | efe14dd24c65b4852997dad1290e503211bcc419 | refs/heads/master | 2021-07-18T01:43:14.443911 | 2017-10-24T03:37:43 | 2017-10-24T03:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | #!/usr/local/bin/python2.7
# encoding: utf-8
'''
Created on 2017.7.10
@author: Sam
'''
from maya import cmds
def doIt(rl=False):
import sys
reload(sys)
setdefaultencoding = getattr(sys, 'setdefaultencoding')
setdefaultencoding('utf-8')
if rl:
cmds.optionVar(rm="P... | [
"lonegather@users.noreply.github.com"
] | lonegather@users.noreply.github.com |
16d6fc1e349109b7ba8d21d85fd2c0fc2516d976 | 73c14228c716c21a7b9ee6be0835676b7f765c81 | /tox.ini | 3a03396321c0a2320a69a7d591ffac7904ec599d | [
"MIT"
] | permissive | fish-bundles/fb | 9104c2b67c5b6b28a8e6a7d8bb1c048b3c7d446e | 556e143ef9dd0782ed70a43a6c10ae1a6840b59f | refs/heads/master | 2021-03-12T23:34:10.868858 | 2014-09-06T03:29:07 | 2014-09-06T03:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | ini | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This file is part of fish-bundles.
# https://github.com/fish-bundles/fb
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2014 Bernardo Heynemann heynemann@gmail.com
[tox]
envlist = py27, py34, pypy
[testenv]
commands =
... | [
"heynemann@gmail.com"
] | heynemann@gmail.com |
a05c0fca1bbd47c7d1c8cf6b0a6f11717ac3e428 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/wiColorJ/pyr_Tcrop255_p20_j15/Sob_k05_s001/pyr_1s/L7/step12_L2345678.py | 71103585c24c2015571e73771a62017730a18633 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | '''
目前只有 step12 一定需要切換資料夾到 該komg_model所在的資料夾 才能執行喔!
'''
if(__name__ == "__main__"):
#############################################################################################################################################################################################################
### 把 kong_model2 加入 s... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
742a64f0e6f319670b47ccd0d25f53e5a65271cf | d25eebb25595c25b73fdc64447f7cf5998204b0d | /misc/PDF.py | c4897575d26c8554a7cc61f744ddb79084fb42c1 | [] | no_license | BackupTheBerlios/baseui | a3867c0cc4aa30cf2a7b0dcaf9dbeec68dc5ef0b | a8296aa42f0de42c18f7dfb5d20966bad695709b | refs/heads/master | 2021-01-15T22:28:52.114731 | 2012-12-05T16:31:03 | 2012-12-05T16:31:03 | 39,894,612 | 1 | 1 | null | null | null | null | ISO-8859-1 | Python | false | false | 6,937 | py | # -*- coding: iso-8859-1 -*-
#===============================================================================
# Commons PDF module, creates simple Reports using ReportLab
# by Mark Muzenhardt, published under LGPL-License.
#===============================================================================
import ... | [
"devnull@localhost"
] | devnull@localhost |
c45fbe1a74483e39aff09c74c2f964b8d0492d6d | 99e44f844d78de330391f2b17bbf2e293bf24b1b | /pytorch/test/bottleneck/test.py | 30e2307a8a1076024a4744b724ea22e49a336384 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | raghavnauhria/whatmt | be10d57bcd6134dd5714d0c4058abd56a1b35a13 | c20483a437c82936cb0fb8080925e37b9c4bba87 | refs/heads/master | 2022-12-04T05:39:24.601698 | 2019-07-22T09:43:30 | 2019-07-22T09:43:30 | 193,026,689 | 0 | 1 | MIT | 2022-11-28T17:50:19 | 2019-06-21T03:48:20 | C++ | UTF-8 | Python | false | false | 82 | py | import torch
x = torch.ones((3, 3), requires_grad=True)
(3 * x).sum().backward()
| [
"rnauhria@gmail.com"
] | rnauhria@gmail.com |
a5eb25969ec8b59f128b64790059552b6ae087ed | 4ec6ed4ebcb9346042669e6aa03be0e502ed48b3 | /leetcode/merge-sorted-array.py | bb15227246cabfea79c7da64790fd90bf598a42b | [] | no_license | shonihei/road-to-mastery | 79ed41cb1ad0dc2d0b454db2ccc7dd9567b03801 | 312bdf5101c3c1fc9a4d0b6762b5749ca57efe08 | refs/heads/master | 2021-01-22T19:59:17.038641 | 2017-11-16T15:21:55 | 2017-11-16T15:21:55 | 85,266,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | """
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional elements from nums2. The number of elements initialized in nums1 and nums2 are m and n respectively.
"""
def mer... | [
"shonihei@gmail.com"
] | shonihei@gmail.com |
9a87710a6e07860e54925ba3cdc4b157b7311bc1 | b16daad342ce9b6ca5234739914be856c1d7171b | /abc143/d.py | 6be9683fc36e9631c242206ae7d39e9577bfbd16 | [] | no_license | Shumpei-Kikuta/competitive_programming | 69e68a2ae8b899bc13b4e38e4144c48f507834e2 | 443dfd168bf674d7578c86eece2ebe33d898acaf | refs/heads/master | 2020-05-17T22:01:19.454075 | 2020-05-10T23:42:01 | 2020-05-10T23:42:01 | 183,987,925 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import bisect
def main():
N = int(input())
L = [int(i) for i in input().split()]
L.sort()
count = 0
for i in range(N-2):
for j in range(i+1, N-1):
k = bisect.bisect_left(L, L[i] + L[j])
k -= 1
count += k - j
print(count)
if __name__ == "__main__":
... | [
"shunpei-kikuta775@g.ecc.u-tokyo.ac.jp"
] | shunpei-kikuta775@g.ecc.u-tokyo.ac.jp |
1a47f2d9dae5f7046adf3f71b29c87e5bc69b0ae | f8d7bf751f5596f46111f52f127a412c50b7c6a4 | /mhc2flurry/class2_neural_network.py | 99c81aa39768fccacdb7e9d9be7e7abe6e43d38a | [
"Apache-2.0"
] | permissive | luoyuan3316/mhc2flurry | 7e9ef790fbceebc34e8f432dc594fc3a12bddab7 | 914dddfd708801a83615d0cc3d41dd3b19e45919 | refs/heads/master | 2023-04-16T14:27:36.602561 | 2021-04-26T14:09:56 | 2021-04-26T14:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,890 | py | import time
import collections
import json
import weakref
import itertools
import os
import logging
import random
import math
import numpy
import pandas
from .regression_target import to_ic50, from_ic50
from .common import configure_tensorflow
from .custom_loss import get_loss
from .data_dependent_weights_initializat... | [
"timodonnell@gmail.com"
] | timodonnell@gmail.com |
1d08c20130f4e032be49db1035deea3038207961 | 00f0d7e80422f2dd7528c3e9189ced60e067489b | /venv/Lib/site-packages/flask_migrate/__init__.py | 86c1f154fe778ffa035e9939dbcef6a082e76e72 | [] | no_license | mohapsat/flask-crud | 5258a0fb1f26f766e6d15348bc7fe2396110bf02 | 2a5d28f5d0ccc2b30291164842a44104621cd41a | refs/heads/master | 2021-06-30T16:30:25.352036 | 2017-09-19T20:55:05 | 2017-09-19T20:56:33 | 103,460,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,433 | py | import argparse
import os
from flask import current_app
try:
from flask_script import Manager
except ImportError:
Manager = None
from alembic import __version__ as __alembic_version__
from alembic.config import Config as AlembicConfig
from alembic import command
alembic_version = tuple([int(v) for v in __ale... | [
"smohapatra@shutterfly.com"
] | smohapatra@shutterfly.com |
2b0d4b3baf497dc29d51b3c3541669950870e07b | aad736b05aee516103e11771b8b05d6de83ffe78 | /001_Python/20211123_2140_HackerrankCaesarCipherBasic/caesarCypher_v00.py | 2a5c0acc4cf735456f049fc09ff796b3a5ff453d | [] | no_license | remichartier/002_CodingPractice | 06481a10387fbe044c18e7001f8127f6dfcc6fa7 | 085e4da096c689290c7cf882f63076564008374e | refs/heads/master | 2022-01-25T10:10:31.056098 | 2022-01-17T19:34:30 | 2022-01-17T19:34:30 | 236,435,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'caesarCipher' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
# 1. STRING s
# 2. INTEGER k
#
def caesarCipher(s, k):
# Write your code here
if ... | [
"remipr.chartier@gmail.com"
] | remipr.chartier@gmail.com |
ea141b83dba6b4ab8e33471239612f62f28ac363 | 318a2283e9fd8386e1e9b8b33393ec21892ff053 | /plaso/formatters/firefox_cache.py | 33e52d21ac492a962164121cb510b7052cd91a2c | [
"Apache-2.0"
] | permissive | ddm1004/plaso | 3a4590f9c7fb5d624938dd1caea703dc92118646 | 88d44561754c5f981d4ab96d53186d1fc5f97f98 | refs/heads/master | 2021-05-19T10:16:24.111136 | 2020-02-27T04:40:48 | 2020-02-27T04:40:48 | 251,647,179 | 0 | 0 | Apache-2.0 | 2020-03-31T15:31:29 | 2020-03-31T15:31:29 | null | UTF-8 | Python | false | false | 716 | py | # -*- coding: utf-8 -*-
"""The Firefox cache record event formatter."""
from __future__ import unicode_literals
from plaso.formatters import interface
from plaso.formatters import manager
class FirefoxCacheFormatter(interface.ConditionalEventFormatter):
"""The Firefox cache record event formatter."""
DATA_TYPE... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
c6f2d024f23513f81df3282bd9075fb68d8bf610 | 83b5efa0d25c805971acf309146ca817f37692f2 | /src/utils/utils_files.py | 3c256b36df226d955c7bd639e672240c0c646c1a | [
"MIT"
] | permissive | VictorOnink/Wind-Mixing-Diffusion | 3d104014de9e5d169c26320cca039aaaa1f490e2 | 16ac459f010ea3fd845335737a9a1e3f913b6103 | refs/heads/main | 2023-04-11T09:24:54.988598 | 2022-03-02T15:39:25 | 2022-03-02T15:39:25 | 314,201,646 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import os
import pickle
import numpy as np
def save_obj(filename, item):
"""
Saving a item using pickle
:param filename:
:param item:
:return:
"""
with open(filename + '.pkl', 'wb') as f:
pickle.dump(item, f, pickle.HIGHEST_PROTOCOL)
def load_obj(filename):
"""
Loading th... | [
"31734765+VictorOnink@users.noreply.github.com"
] | 31734765+VictorOnink@users.noreply.github.com |
8587356891d526e0bb07ca8989cdccb6e77de577 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /8BtPaRSGwbhF57yie_19.py | 8ca5de52465656fdb5de87d78e1a5021a51f64b4 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py |
def match_houses(step):
return 6+((step-1)*5) if step>0 else 0
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1189f03abc58e1e6c2d11fefb488baa16808eba1 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/shared/industry/browserFacilities.py | 91b02ebe6e118fe68fb1144e866532f2c1ef15af | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 6,452 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\shared\industry\browserFacilities.py
from carbonui.primitives.container import Container
from carbonui.util.bunch import Bunch
from eve.client.script.ui.control.eveCombo import Combo
from eve.client.script.ui.co... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
1fadefb41104d98316ac45748609217a65dfcdff | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class643.py | d7de8dfe6e318d9af8a680c58562532975bdaf8a | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | # qubit number=3
# total number=14
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
cbdccf673e42a1bb11d2f53b1efe33abdbc7ffe8 | 76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a | /tags/release-0.7.1/pyformex/examples/TrussFrame.py | 033b0b9691a670eaccb2b5853f1230e7a63ea11c | [] | no_license | BackupTheBerlios/pyformex-svn | ec2361b1b9967918be65e892217a691a6f8b145d | f5404809095711334bbb938d9d119a69ad8fc260 | refs/heads/master | 2020-12-24T13:20:47.422165 | 2011-11-15T11:52:23 | 2011-11-15T11:52:23 | 40,749,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | #!/usr/bin/env pyformex --gui
# $Id: TrussFrame.py 151 2006-11-02 18:18:49Z bverheg $
##
## This file is part of pyFormex 0.7.1 Release Sat May 24 13:26:21 2008
## pyFormex is a Python implementation of Formex algebra
## Website: http://pyformex.berlios.de/
## Copyright (C) Benedict Verhegghe (benedict.verhegghe@ugent.... | [
"bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35"
] | bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35 |
f32b088a86d0d36412d7c45f4e31e13077640426 | 41162ab0cd36eea67296ca806938f6f3d6956f25 | /astropy_changelog/rst_parser.py | c343173668e5d59c3b5a62236de2b7039705c943 | [
"MIT"
] | permissive | astropy/astropy-changelog | ba96a756423b9831b2eb20f494c802d3ac64abd3 | 36a6517962092c04a9334ca7b82393adaec950ec | refs/heads/master | 2023-08-25T23:05:43.948574 | 2023-07-26T23:05:19 | 2023-07-26T23:05:19 | 141,705,952 | 0 | 2 | MIT | 2023-07-26T23:02:30 | 2018-07-20T11:49:51 | Python | UTF-8 | Python | false | false | 4,645 | py | # A validator for the Astropy reStructuredText changelog format
import re
import docutils.nodes
import docutils.parsers.rst
import docutils.utils
__all__ = ['AstropyRstChangelog']
VERSION_PATTERN = re.compile(r'^v?[0-9\.]+ \([\w\-]+\)')
BLOCK_PATTERN = re.compile(r'\[#.+\]', flags=re.DOTALL)
ISSUE_PATTERN = re.compi... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
0af8da543fb2e8fea6ee51ba0344923b6c6f0378 | 88e71fbd73b39f6b51fb17ac14e4454058faf914 | /src/part1/chapter2/s28_raw_queries.py | 328a288b006e18510f020e09135bd5bc505c6486 | [] | no_license | NgoTrungKien/essential_sqlalchemy | e34ada16f29f407ce0ec5ca9721f35dd8b6fc8e2 | 3708380637a2bc05c731305a400ad27eade333b6 | refs/heads/master | 2022-01-09T02:17:14.949991 | 2019-04-29T13:29:58 | 2019-04-29T13:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from sqlalchemy import select, text
from src.part1.chapter2.s27_chaining import connection, users
# noinspection SqlNoDataSourceInspection
result = connection.execute('SELECT * FROM orders').fetchall()
assert result == [(1, 1, 0), (2, 2, 0)]
stmt = select([users]).where(text("username='cookiemon'"))
# print(connecti... | [
"karateev.pavel@ya.ru"
] | karateev.pavel@ya.ru |
5a66e5446b5f07465654ee2c0078679eb01c27b6 | 0494849dcf85950e29dc6cdd01ebf30444e1bb11 | /src/linux/mouse.py | 1d8e36b5f51204382adc7ea87f1d6261cb19fbc1 | [
"MIT"
] | permissive | MarcinMoskalaAlter/connectordb-laptoplogger | 717a6df0d4fdc25a926bb47c9fd7647c50d5ef7b | c722a3406e77606145789ced1eb0fc823a359cb0 | refs/heads/master | 2020-06-14T01:23:19.892026 | 2016-08-20T09:43:02 | 2016-08-20T09:43:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py |
from multiprocessing import Process, Value
from Xlib import X,display
from Xlib.ext import record
from Xlib.protocol import rq
disp = display.Display()
if not disp.has_extension("RECORD"):
raise Exception("RECORD extension not found")
#This function is run in its own process to allow it to gather keypresses
def... | [
"daniel@dkumor.com"
] | daniel@dkumor.com |
53815b2eb9ff03697117172c8aa8e5e67d99e7aa | 1bdd19163e676f79c8e4696ac5777d807c2f3974 | /tools/rosunit/test/test_xmlrunner.py | 8181e6f0ec57167c08ffc7d8cac30fee395f9668 | [] | no_license | cyysu/ros | 0b2eb20d05bee508dd13c9bce0e310fedb9e222f | c11ee6476d23209af2d5b6e09d5d132e5518da95 | refs/heads/kinetic-devel | 2021-01-12T05:46:29.820910 | 2016-11-29T02:58:17 | 2016-11-29T02:58:17 | 77,196,525 | 4 | 0 | null | 2016-12-23T04:03:00 | 2016-12-23T04:02:58 | null | UTF-8 | Python | false | false | 6,655 | py | #!/usr/bin/env python
# This file should be run using a non-ros unit test framework such as nose using
# nosetests test_dotname.py. Alternatively, just run with python test_dotname.py.
# You will get the output from rostest as well.
# Original code for xmlrunner written by Sebastian Rittau
# <srittau@jroger.in-berli... | [
"dthomas@osrfoundation.org"
] | dthomas@osrfoundation.org |
d27050462d3fa4eba5f6f744232192bf3fe56720 | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /concurrency/threading/threading_lock_with.py | 83e74674faef7c9cfd6a98ee7333a904282f9be4 | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 733 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 18-4-4 下午3:43
# @Author : jincurry
# @Site : https://github.com/jincurry/standard_Library_Learn
# @File : threading_lock_with.py
# @Software: PyCharm
import logging
import threading
def worker_with(lock):
with lock:
logging.debug('Lock acquired ... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
bbe21cb221c21d3a65ca57840ba95aa51f18b434 | c2be395eac600d0d853de03cd67070bd8391038f | /tr_monthly_sequence/__manifest__.py | c8cb355dde3bd05d6f0b7932ce0cfac428d6ca72 | [] | no_license | amendoncabh/salary_emp | 960cfdb4df48df70ab361886039c790840a5e8d2 | 2ac2dd9461271153cb2ee406bf70a29f614c25f1 | refs/heads/master | 2022-03-30T22:35:10.704092 | 2020-01-05T16:23:20 | 2020-01-05T16:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # -*- coding: utf-8 -*-
{
'name': "Trinity Roots - Monthly Sequence",
'summary': "Monthly reset sequence",
'description': """
This module will reset the sequences when the new month comes.
Have to pass the context['date'] to get sequence method
for each getting sequence.
""",
... | [
"loveprakon@gmail.com"
] | loveprakon@gmail.com |
1ba7a74e730127b3259e76d1068f1e750ecee8d5 | b82057c77dd4d00ff9bca9a979a1a3075f0528c4 | /Exicom_gateway/checks/lion_battery_installed_module_invent | 749cc6b525541cd2690131b77bda2135d9190443 | [] | no_license | subhash-007/photography-blog | 7ee0c4f930fee29d76106c45b09e6b76cb19cf56 | b1ae66794b48bfe3862cb6e727a3a15a6ef79024 | refs/heads/master | 2020-03-31T04:33:00.276628 | 2019-07-12T06:00:39 | 2019-07-12T06:00:39 | 151,910,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | #!/usr/bin/python
import binascii
"""
vlan Poller script.
This is part of device application.
Poller script determines the vlan.
poller script takes the snmp value of OID .1.3.6.1.4.1.161.19.3.2.1.55.0 from snmp agent of device at specific interval.
all ports status are sent to device application
"""
# #############... | [
"sbmoond@gmail.com"
] | sbmoond@gmail.com | |
7eb1ed73e42488a35ee5405fa99ec0332ef3fe23 | 2136701f48ad131084b331039d864f85988cf451 | /spider/work/media_huanan/somenew/spiders/nanfangwang.py | 6bfa18a3833aca79f9d1389c3ffb7b28ca602e4b | [] | no_license | cuiyulin77/other | 9d374a47d482f1c3f9ef0f3ac4429487643b04b9 | c00cafaf7607452966fa523c4d0b04edb7f153e6 | refs/heads/master | 2020-05-18T04:24:26.095929 | 2019-04-30T06:37:53 | 2019-04-30T06:37:53 | 184,169,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | import scrapy
from somenew.items import SomenewItem
import hashlib
import datetime
class DezhouxinwenSpider(scrapy.Spider):
# 南方网
name = 'nanfangwang'
allowed_domains = ['southcn.com']
custom_settings = {'DOWNLOAD_DELAY': 0.8}
start_urls = ['http://it.southcn.com/9/node_152391.htm','http://tech.sou... | [
"494658565@qq.com"
] | 494658565@qq.com |
41cd76e30587e76849148eef796f95ca5684d9ac | adb77c03c4281d4af3899eb3fc8ccf8c657b8dca | /model-exp-GP/lsqfitgp2/_linalg.py | f2c98d9dbe873ae5a7bac1fff5a15ca79ca2155f | [] | no_license | albortros/COVID-19 | 3e6a3961bce8e98f02d347c8245ad0ebebeec878 | 6c482e24efd1b8c70fe0de8e01657f5751025c0a | refs/heads/master | 2022-05-17T06:08:07.364468 | 2020-04-22T11:18:13 | 2020-04-22T11:18:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,302 | py | from autograd import numpy as np
from autograd.scipy import linalg
from autograd import extend
from scipy.sparse import linalg as slinalg
__doc__ = """
Decompositions of positive definite matrices. A decomposition object is
initialized with a matrix and then can solve linear systems for that matrix.
These classes nev... | [
"info@giacomopetrillo.com"
] | info@giacomopetrillo.com |
467b345ff76432a9c742739c9a264ab4585f5f62 | 51d0377511a5da902033fb9d80184db0e096fe2c | /26-manipulating-time-series-data-in-python/3-window-functions-rolling-and-expanding-metrics/03-rolling-quantiles-for-daily-air-quality-in-nyc.py | 7fa3b2a2831ba011dd1658396c4112797bee73ab | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | '''
Rolling quantiles for daily air quality in nyc
You learned in the last video how to calculate rolling quantiles to describe changes in the dispersion of a time series over time in a way that is less sensitive to outliers than using the mean and standard deviation.
Let's calculate rolling quantiles - at 10%, 50% (... | [
"a@skrasnov.com"
] | a@skrasnov.com |
66bf2df2c9077e5f8a24499cfdcb5a2f67f56981 | b282579bd888516bb7c57b051fe3de8a61957a31 | /manage.py | cfe9974c67c7cf812623b4da1a4772fc4d2e84f8 | [] | no_license | sekil9529/django-demo | 1810ca9c50231d81a026678af62efe1b6814c654 | 53d5ad66adf9391d1abb417b4d1960af6ade3c3a | refs/heads/master | 2023-08-27T07:14:43.642313 | 2021-10-26T09:36:22 | 2021-10-26T09:36:22 | 390,558,471 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cms.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cms.settings.' + os.environ.get('ENV', 'development').lower())
tr... | [
"ld@meng2333.com"
] | ld@meng2333.com |
0abe17844b303d2240fbafdea61868298613825d | c4544c22c0618451746795090e07c80bc85a0877 | /base_orm_operation/base_orm_operation/settings.py | 2f0c768a55ae16446738f167864c50df40c40b42 | [] | no_license | RelaxedDong/Django_course | 35f7027dc552ad148d2dc8679a19a1ffb12b8d14 | 2965089d15e4c80cd6402d362ee37f8cc675c08b | refs/heads/master | 2022-01-09T14:28:40.503099 | 2019-05-24T07:07:03 | 2019-05-24T07:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,320 | py | """
Django settings for base_orm_operation project.
Generated by 'django-admin startproject' using Django 2.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
i... | [
"1417766861@qq.com"
] | 1417766861@qq.com |
24657db3fcb593c8dc6d1d9799712a38c2ea8a39 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_gift.py | 12c4e81a6d4e9dbc7ab85b8235353a966c758a12 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
#calss header
class _GIFT():
def __init__(self,):
self.name = "GIFT"
self.definitions = [u'a present or something that is given: ', u'something that is surprisingly easy or cheap: ', u'a special ability to do something: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
835e868b6d7dc4beb1f7ae25e24829e648dada44 | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/venusian/tests/fixtures/import_and_scan/__init__.py | fe14753fa93a7f77a8186587016c2a9e981e1e7b | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | /home/alex/myenv/zodiac/eggs/venusian-1.0a8-py2.7.egg/venusian/tests/fixtures/import_and_scan/__init__.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
363c79b5321086de9d0afa4647c686dafd406d12 | 36cac20dedf30c2c6209f3ec044abe2d345912d4 | /setup.py | 980078bfaf7d25a381b69133c49106bb52d1f630 | [
"MIT"
] | permissive | tgbugs/hyputils | 63236ca00e86296a58026e67315595a520ad0ffe | a72ec6054545d2ac0ec4b302bf3de090ec49b5ff | refs/heads/master | 2022-12-23T13:40:46.176288 | 2022-12-12T09:26:32 | 2022-12-12T09:26:32 | 59,350,428 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | import re
from setuptools import setup
def find_version(filename):
_version_re = re.compile(r"__version__ = '(.*)'")
for line in open(filename):
version_match = _version_re.match(line)
if version_match:
return version_match.group(1)
__version__ = find_version('hyputils/__init__.p... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.