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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c258b35a94733feceb797ff62582f7f2124933d7 | 632d7759536ed0726499c2d52c8eb13b5ab213ab | /Data/Packages/pygments/all/pygments/lexers/scripting.py | bffd8c0036ee4125ba80cc336285a932ba6d69e4 | [] | no_license | Void2403/sublime_text_3_costomize | e660ad803eb12b20e9fa7f8eb7c6aad0f2b4d9bc | c19977e498bd948fd6d8f55bd48c8d82cbc317c3 | refs/heads/master | 2023-08-31T21:32:32.791574 | 2019-05-31T11:46:19 | 2019-05-31T11:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56,509 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.scripting
~~~~~~~~~~~~~~~~~~~~~~~~~
Lexer for scripting and embedded languages.
:copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer,... | [
"guan2296107714@126.com"
] | guan2296107714@126.com |
495e3c3956b6601de7ec38f5589268de8a90e8f0 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/InstallArea/x86_64-slc6-gcc49-opt/python/StrippingArchive/Stripping15/StrippingDiMuonNew.py | b2c1acc2a142435c53e815e58b509aa5621c7df9 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,139 | py | '''
Inclusive DiMuon lines based on the lines by Gaia Lanfranchi, Alessio Sarti,
with inputs from Joel Bressieux, Giulia Manca, Matthew Needham and Patrick Robbe.
Including the following lines:
1. DiMuonLine
FullDST (keep 10%) and MicroDST
2. DiMuonSameSignLine
FullDST (keep 1%) and MicroDST (keep 10%)
3. DiMu... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
6a5307ad7db7ca33697b63b6436b59f2d9a19557 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/solve_20180621175952.py | 3582f849f7b735ae37b11bf925233f5c6574c087 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py |
def findNextCellToFill(grid, i, j):
for x in range(i,9):
for y in range(j,9):
if grid[x][y] == 0:
return x,y
for x in range(0,9):
for y in range(0,9):
if grid[x][y] == 0:
... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
a7397e10786125cdc8ee81286b7a97fdbc6f1f78 | 38b8bceafb4d80afc7c77196eb9ee99694191bcf | /wxpython/grid2.py | e9749835196d535abce07a36ed5223c8b385ea9f | [] | no_license | tangc1986/PythonStudy | f6c5b384874e82fbf0b5f51cfb7a7a89a48ec0ff | 1ed1956758e971647426e7096ac2e8cbcca585b4 | refs/heads/master | 2021-01-23T20:39:23.930754 | 2017-10-08T07:40:32 | 2017-10-08T07:42:38 | 42,122,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: UTF-8 -*-
__author__ = 'tangchao'
import wx
import wx.grid
class TestFrame(wx.Frame):
rowLabels = ["uno", "dos", "tres", "quatro", "cinco"]
colLabels = ["homer", "marge", "bart", "lisa", "mnaggie"]
def __init__(self):
wx.Frame.__init__(self, None, title="Grid Headers",
... | [
"tangc1986@gmail.com"
] | tangc1986@gmail.com |
ed979ab630c289963e03474eb637faa48e40ab30 | ccdd61e4813c8a0a9f28d23c2ee5b02790cc7456 | /find_kallsyms.py | 6abcbcbc6093bfc8366c561666dd2fec2826f1f2 | [] | no_license | freemanZYQ/ida-kallsyms | 65084ffa65c3d8456fc227b7391ed0c87fbdbd50 | 4f0beb659a3b65e4b1c5056ad9ebba6ac4572b21 | refs/heads/master | 2020-08-15T07:51:23.810578 | 2019-10-10T18:01:48 | 2019-10-10T18:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,930 | py | #!/usr/bin/env python3
import logging
import struct
import sys
def try_parse_token_index(rodata, endianness, offset):
index_fmt = endianness + 'H'
index, = struct.unpack(index_fmt, rodata[offset:offset + 2])
assert index == 0, 'The first token index must be 0'
indices = [index]
for _ in range(255)... | [
"mephi42@gmail.com"
] | mephi42@gmail.com |
4322e050d3909e3df8ab3c4a1ef098fa511d9eb0 | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/contrib/signal/python/ops/mfcc_ops.py | 65b5335b3ae79e1ab35ee59ea3fb837590a4b44e | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | /home/co/Documents/ImageClassifier/tensorflow/tensorflow/contrib/signal/python/ops/mfcc_ops.py | [
"harshitjain1371999@gmail.com"
] | harshitjain1371999@gmail.com |
ba3716f0dc54c992ee423cea11f9fbcde6fadde9 | 9cc3135d5fcd781c0542a905c61dc19b0ceeffef | /alien_colors_ver1-1.py | cad614ac833cdc33de423b5b07873c40dfe1f32c | [] | no_license | bkalcho/python-crash-course | 411d8af223fb6974d4f890c0f82c9e56b062359c | 8425649a2ecd5abeeb438e816400f270d937758e | refs/heads/master | 2022-09-11T13:47:56.837256 | 2022-08-23T10:04:35 | 2022-08-23T10:04:35 | 69,810,386 | 14 | 8 | null | 2022-08-23T10:04:36 | 2016-10-02T17:14:41 | Python | UTF-8 | Python | false | false | 185 | py | # Author: Bojan G. Kalicanin
# Date: 29-Sep-2016
# If alien color is not green nothing will be printed
alien_color = 'red'
if alien_color == 'green':
print('You earned 5 points.') | [
"bojan.g.kalicanin@gmail.com"
] | bojan.g.kalicanin@gmail.com |
ccab0aa42ec4c0223f0a0dc999e0a97fcb427b0c | 56cf6ed165c4fe90782dc03c60f5a976d33064a8 | /batch/rootplots/finalplots.py | 2118fdf2fdc0e850d7fae41f9e33d60ee63c8444 | [] | no_license | aminnj/scouting | 36b5a08927e8fa6061cbd1b70ce23b674c56bcc1 | ed7bd442aaa1f53b21378d2a7fbf10ca7869ecc7 | refs/heads/master | 2021-06-24T05:09:20.248605 | 2021-04-11T05:11:27 | 2021-04-11T05:11:27 | 208,143,579 | 1 | 2 | null | 2019-11-25T22:49:29 | 2019-09-12T20:47:01 | Jupyter Notebook | UTF-8 | Python | false | false | 14,830 | py | import os
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import glob
from matplotlib.colors import LogNorm
from tqdm.auto import tqdm
import time
import re
import subprocess
import json
import requests
import uproot4
from yahist import Hist1D, Hist2D
def set_plotting_style():
from matplotl... | [
"amin.nj@gmail.com"
] | amin.nj@gmail.com |
42a51fbfbf765fe3650c8ab9c41927a8259c62ff | 9a0ada115978e9600ad7f1eab65fcc8825f637cf | /work_in_progress/_old/stage_aligment_convert/remove_stage_point.py | 45542356653d90923ad1ca5276940178c3a9f832 | [] | no_license | ver228/work-in-progress | c1971f8d72b9685f688a10e4c5a1b150fa0812da | ef5baecc324da4550f81edb0513d38f039ee3429 | refs/heads/master | 2018-12-16T22:18:55.457290 | 2018-09-14T09:27:49 | 2018-09-14T09:27:49 | 56,165,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 7 19:45:26 2017
@author: ajaver
"""
import tables
import numpy as np
import os
import pymysql
from tierpsy.analysis.contour_orient.correctVentralDorsal import switchCntSingleWorm
if __name__ == '__main__':
conn = pymysql.connect(host='localho... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
fc4489fe4def15e7a8ccd94df2f27d10fc6dad76 | 537259790008b727c03c56ec55a6aaaeeeaf65a3 | /scrapers/tvrelease_scraper.py | 533a9a8e18bb3485693ce0a1c03222774e2bd2a3 | [] | no_license | djbijo/salts | a5781ac9958b77c2acfacf4f73a5286e0b91d8e2 | 9eaa736701833eedf6796403da33d648aaf348f8 | refs/heads/master | 2020-12-11T03:26:15.843807 | 2015-04-09T18:35:45 | 2015-04-09T18:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,354 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | [
"tknorris@gmail.com"
] | tknorris@gmail.com |
5b9a0e8151fc4c44ee36a6bf9630696e3772d3bf | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/proofpoint_tap/unit_test/test_get_blocked_clicks.py | 20515642f86f5bf197f87ee9b53be6017f8d31ab | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 3,159 | py | import sys
import os
from unittest.mock import patch
from komand_proofpoint_tap.actions.get_blocked_clicks import GetBlockedClicks
from insightconnect_plugin_runtime.exceptions import PluginException
from komand_proofpoint_tap.util.exceptions import ApiException
from test_util import Util
from unittest import TestCase... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
9751b47661d97074ea93280984aa3a93a3a7246f | 6b81296eff6aac2b81326a3f97a7240321d085d1 | /pycampaign06[for loop].py | 6fa1c9058afbcf87d31d21acee1273479a816d0b | [
"Unlicense"
] | permissive | EssamSami5155/PyCampaign20 | 0d267c586e6060824c147a54a1cbc8d01c672e87 | 7c8dba63de1a499742c748a1b85d00eeebbb38d6 | refs/heads/master | 2022-12-17T06:32:49.112717 | 2020-09-20T09:49:51 | 2020-09-20T09:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | # Repeating events
# Using for loop
import turtle # turtle is a library that helps us to draw.
turtle.color("blue")
turtle.forward(100)
turtle.right(45)
turtle.color("green")
turtle.forward(50)
turtle.right(45)
turtle.color("grey")
turtle.forward(100)
# turtle commands
# right(x) - rotate right x degrees.
# l... | [
"ahammadshawki8@gmail.com"
] | ahammadshawki8@gmail.com |
8e342fda3a94a05c58c38e8e184d902cc8d9cd7a | c247a1979a843d03cda72229514f124a6d30f3b6 | /testproject_26580/settings.py | f3d0557da66a902ae2670ed1f3b61d54dbd0466f | [] | no_license | crowdbotics-apps/testproject-26580 | da91f9b5c5bde6ddebba9f11da0f141bbc4eb1b7 | ebc95b90a2b0621069ba4549fbc962456d9163ad | refs/heads/master | 2023-04-28T23:36:20.340815 | 2021-05-11T23:43:26 | 2021-05-11T23:43:26 | 366,539,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,784 | py | """
Django settings for testproject_26580 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
41dc105eb07adb417e1c322ec9271ad8365af2c2 | 9a06c8ab42e0fbce88f06a1bd7237c4d5cae592a | /code/python_lesson/runoob/09摄氏度转华氏度.py | 783060706ad78ee49e750443b5c09375203fe90d | [
"MIT"
] | permissive | lxl0928/learning_python | 19040ca3ae92e5c07a1e813c707d625aa0ba8cb2 | ff0c6457186e7aa5b6ed9cafaea1dba616ce493a | refs/heads/master | 2023-05-13T13:59:28.815564 | 2021-03-22T02:08:53 | 2021-03-22T02:08:53 | 162,232,496 | 4 | 1 | MIT | 2023-05-01T20:15:55 | 2018-12-18T04:59:15 | Python | UTF-8 | Python | false | false | 342 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
# Date: 2016.08.02
# Filename: 09.py
# Author: Timilong
# 用户输入摄氏温度
celsius = float(input("请输入摄氏温度: "))
# 计算华氏温度
fahrenheit = (celsius * 1.8) + 32
# 打印华氏温度
print("%0.1f摄氏温度转化为华氏温度为%0.1f" % (celsius, fahrenheit))
| [
"lixiaolong@sensoro.com"
] | lixiaolong@sensoro.com |
1337f2878c504d9d15a39baca3d7e460d62f6bc4 | c422cfdcd0303395b62a383611dca19236ea0e15 | /core/migrations/0009_diaperchange_amount.py | 991260de5bff332950e762549154f4f031abc2fc | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | Alan01252/babybuddy | c18d26769458fbfd60d7e5493c1fab911d624ddd | 5382527dc84530fe56a65c7452620bba41bfd668 | refs/heads/master | 2022-12-18T17:09:21.064011 | 2020-09-16T11:33:07 | 2020-09-16T11:33:07 | 291,678,434 | 1 | 0 | BSD-2-Clause | 2020-08-31T09:57:07 | 2020-08-31T09:57:06 | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 3.0.2 on 2020-01-26 21:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20190607_1422'),
]
operations = [
migrations.AddField(
model_name='diaperchange',
name='amount',
... | [
"chris@chrxs.net"
] | chris@chrxs.net |
d289d25acaf78e7bb51c689c1de4b4495a3bbd9a | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/scaleform/daapi/view/lobby/fortifications/fortdisabledefenceperiodwindow.py | d81f15c0ee94a51d408d7c2853b5cbd29a9df04e | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,109 | py | # 2015.11.18 11:54:00 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/fortifications/FortDisableDefencePeriodWindow.py
import BigWorld
from adisp import process
from gui import SystemMessages
from gui.Scaleform.daapi.view.lobby.fortifications.fort_utils.FortSoundController... | [
"info@webium.sk"
] | info@webium.sk |
1d6d89dd402a1014ea003cc594770dd2a2538c49 | 6203b9132af8f78c6cb12242bd223fa17d14f31e | /leetcode/problems/556.py | 82b5c6ed99fea3e9b4e3d051b24c25cb28c78248 | [] | no_license | joshuap233/algorithms | 82c608d7493b0d21989b287a2e246ef739e60443 | dc68b883362f3ddcfb433d3d83d1bbf925bbcf02 | refs/heads/master | 2023-08-23T12:44:42.675137 | 2021-09-28T02:37:01 | 2021-09-28T02:37:01 | 230,285,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # https://leetcode-cn.com/problems/next-greater-element-iii/
# 556. 下一个更大元素 III
class Solution:
"""与下一个字典序的写法一样"""
MAXI = 2 ** 31 - 1
def nextGreaterElement(self, n: int) -> int:
if n <= 9:
return -1
s = list(str(n))
for i in range(len(s) - 2, -1, -1):
if... | [
"shushugo233@gmail.com"
] | shushugo233@gmail.com |
99ccf909e1b7071804da551122f2a3d7c85bb020 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/192/usersdata/273/70732/submittedfiles/al6.py | 62617a79d4eba687c0a500c294d12922ab0a48f2 | [] | 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 | 185 | py | # -*- coding: utf-8 -*-
i= 2
c= 0
n= int(input('digite o valor de n: '))
while(i<n):
if (n%i)==0:
c=c+1
print(i)
i=i+1
if i==0
print(' primo')
if i>0
print('NAO PRIMO')) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6ec95f89ce993de65e468f212786248298f66665 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d79b6c84068e6f5fe995a74e39cd3f63d86bb294-<parse_lldp_intf>-bug.py | ddbc6fc1aa3322f069ebbc9cb05db83582c1618e | [] | 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 | 134 | py | def parse_lldp_intf(self, data):
match = re.search('Interface:\\s*(\\S+)', data, re.M)
if match:
return match.group(1) | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
7a63e1a4a6717671c7176bf91eda13961f655536 | 99094cc79bdbb69bb24516e473f17b385847cb3a | /72.Edit Distance/Solution.py | 11b4f12f5ee723dcde3137a39b89d6242e6e0462 | [] | no_license | simonxu14/LeetCode_Simon | 7d389bbfafd3906876a3f796195bb14db3a1aeb3 | 13f4595374f30b482c4da76e466037516ca3a420 | refs/heads/master | 2020-04-06T03:33:25.846686 | 2016-09-10T00:23:11 | 2016-09-10T00:23:11 | 40,810,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | __author__ = 'Simon'
class Solution(object):
def minDistance(self, word1, word2):
"""
:type word1: str
:type word2: str
:rtype: int
"""
dp = [[0 for j in range(len(word2)+1)] for i in range(len(word1)+1)]
for j in range(len(word2)+1):
dp[0][j] = j
... | [
"simonxu14@gmail.com"
] | simonxu14@gmail.com |
b9c5ac147c500ee983edcc9fe10950a1a98fd9ce | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/JavaScript/juejin_2514.py | eb9dae4e3fea3f75cbab068f9fcccaaa3a6b1488 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,994 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6996311879895547912", "article_info": {"article_id": "6996311879895547912", "user_id": "1565333361004279", "category_id": "6809637767543259144", "tag_ids": [6809640407484334093, 6809640398105870343], "visible_level": 0, "link_url": "", "cover_image": "", "is_... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
f41bb0f627ed6d8f5fd7b2f6953ef836320c19d9 | 9b68695d6d7d05bdfdcb087db532d66188cfbcdb | /bsmsm/spiders/spider.py | 67165b7f5f3a4693d22e7d719589e6d28ffc76e2 | [] | no_license | hristo-grudev/bsmsm | 1f100180535b564cd8ca59fd62b35de4cf25b460 | e7035250b07e21e25299967eee065ea588369857 | refs/heads/main | 2023-03-13T13:13:48.075506 | 2021-03-05T08:32:08 | 2021-03-05T08:32:08 | 344,745,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | import scrapy
from scrapy.loader import ItemLoader
from ..items import BsmsmItem
from itemloaders.processors import TakeFirst
class BsmsmSpider(scrapy.Spider):
name = 'bsmsm'
start_urls = ['https://www.bsm.sm/it/news-bsm.php']
def parse(self, response):
post_links = response.xpath('//div[@class="titolo-news bo... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
dfcc76777b82ff4e0e00f8715bf8f234f7907333 | 7a527060afabd2e0867d5dcf4b75592b43ef5005 | /Leetcode/简单+剑指offer题/面试题49. 丑数.py | d4544c4e9bfbe5eb88767af5250c4fe4854899b0 | [] | no_license | Stevenzzz1996/MLLCV | ff01a276cf40142c1b28612cb5b43e563ad3a24a | 314953b759212db5ad07dcb18854bf6d120ba172 | refs/heads/master | 2023-02-10T18:11:30.399042 | 2021-01-05T12:05:21 | 2021-01-05T12:05:21 | 267,804,954 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | #!usr/bin/env python
# -*- coding:utf-8 -*-
# author: sfhong2020 time:2020/4/1 20:38
# 堆/动态规划
| [
"2499143041@qq.com"
] | 2499143041@qq.com |
1e8ef4de1607e1cc8d39eb411fda21d27e17dbb7 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/SwitchTempInstanceRequest.py | fc14d771d9b5d1b07ba06e98344c8a776066f9dd | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
5c77958a70db3fdb38303d8bf678113803c62984 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614055443.py | e65771e72edd5ad03a64cf83c5b0bcf4ef404048 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
abe78bc49b85c74a1b2f4932b3ed2e0bab37eb16 | ffa21e4415ead5106f7f846bc24b0d308ace90b5 | /swagger_client/models/forecast_transaction.py | be10b2bc4700700721d9092cecf9dddd1c89aefa | [] | no_license | steini58/swagger-client | fa7b6f077e5a1b01e42c4420b214b19e1d364e4e | e5fd7bf28f8529746e18bdd799c86ad78310ffd5 | refs/heads/master | 2020-03-29T09:14:26.644065 | 2018-09-20T13:29:14 | 2018-09-20T13:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,665 | py | # coding: utf-8
"""
[AHOI cookbook](/ahoi/docs/cookbook/index.html) [Data Privacy](/sandboxmanager/#/privacy) [Terms of Service](/sandboxmanager/#/terms) [Imprint](https://sparkassen-hub.com/impressum/) © 2016‐2017 Starfinanz - Ein Unternehmen der Finanz Informatik # noqa: E501
OpenAPI sp... | [
"peter.steinberg@natur-und-genuss.de"
] | peter.steinberg@natur-und-genuss.de |
55d5457523106be301584f485d2044be5c180be7 | ed32eb1eb0a328a4ffe89e178fc4987470f333cd | /exercise/day1-4/compute.py | 7e64771516f775b9bee62dbd5f5d8fe460b8b9c5 | [] | no_license | xiaoyaojjian/py_learn | c6f5bdf31bcebf29dd914e81e6be9305a61265cc | 95e494ea823d2074a05c1c2a49595002a1576093 | refs/heads/master | 2020-12-05T23:22:11.017066 | 2016-09-08T01:13:08 | 2016-09-08T01:13:08 | 67,654,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | """
计算器, 用了eval() 没有任何意义了, 四则运算应该单独写一个函数处理
"""
import re
a = '1 - 2 * ( (60-30 +(-40/5) * (9-2*5/3 + 7 /3*99/4*2998 +10 * 568/14 )) - (-4*3)/ (16-3*2) )'
print(eval(a))
def get_brackets_data(formula):
return re.findall('\(([^()]+)\)', formula)
while re.search('[()]', a):
for i in get_brackets_data(a):
... | [
"q2868765@qq.com"
] | q2868765@qq.com |
4577eaed8369402971817fc693acae6518a09f80 | bd81142f05e57b637cc0ddd63edbc3c6b5b4a0a2 | /knowledge-driven-dialogue/generative_pt/tools/conversation_client.py | 598d22bca00ebba8dd12eac1105b2e8df08d391f | [
"MIT"
] | permissive | Chriszhangmw/ChatBots | 876d751f30d1d8ea759440fe1e7d4beb6ef94087 | 0735918e326bd6ff20b70388ae199ec11d9cbc11 | refs/heads/master | 2021-12-14T04:10:53.452552 | 2021-11-28T12:23:10 | 2021-11-28T12:23:10 | 210,681,028 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# Copyright (c) 2019 Baidu.com, Inc. All Rights Reserved
#
################################################################################
"""
File: conversation_client.py
"""
import sys
i... | [
"zhangmw_play@163.com"
] | zhangmw_play@163.com |
cd7536fbdfbd4277136ae6edaee967cd1d86ab18 | 60618d48e09a140926d97b01cb9b6f76fcc65703 | /data analysis/itheima/plot.py | 6a18b4bded99c6dbf7247578045daa0392a6d27a | [] | no_license | Incipe-win/Python | ca8f36cc8785eb13512f71a3cf10149d4e1b855e | 5bab36b90591c74dedb6ead3484a279b90a1bcbd | refs/heads/master | 2021-01-07T08:11:42.293541 | 2020-12-06T09:17:02 | 2020-12-06T09:17:02 | 241,629,236 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | from matplotlib import pyplot as plt
import random
from matplotlib import font_manager
my_font = font_manager.FontProperties(
fname="/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc")
# import matplotlib
#
# font = {"family": "Noto Sans Mono",
# "weight": "bold",
# "size": "larger"
# }
... | [
"whc_9_13@163.com"
] | whc_9_13@163.com |
40d6ad7c3c49e310f10e435aee22d2aa9b19a03c | 68eb441faf3f9415fbcbc8330f9b01ad6933bede | /ebook/machinelearningdemo/MachineLearningLessonPro/ML_1/3.0loadfile_fromdata.py | 1711ef93a3ae8eea6d78e080a3ca39a2781775f4 | [] | no_license | OrriO/jupyter_myworkspace | fb8e97865f15abe2fb3aa01985fdb4f34317f15f | a592ab92f38a1cd466c454bb36fd0002c75202a9 | refs/heads/master | 2023-06-01T02:00:36.986439 | 2021-07-08T13:44:26 | 2021-07-08T13:44:26 | 381,997,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | #-*- coding: utf-8 -*-
# @Time : 2018/12/6 10:08
# @Author : Z
# @Email : S
# @File : 3.0loadfile_fromdata.py
from surprise import BaselineOnly
from surprise import Dataset
from surprise import Reader
from surprise.model_selection import cross_validate
import os
# path to dataset file
file_path = os.path.expa... | [
"guojj1@guahao.com"
] | guojj1@guahao.com |
ed6019a55cbe49b15e4cbe71343c9ea879f3e984 | bd14c979335112b7718b0feda18ebf0e3b40fe5c | /arihon_biginners/review_of_binsearch.py | 3ae4f4958eb3c9ebc42c27e83fb5e6cc36c26f9e | [] | no_license | ababa831/atcoder_beginners | 22c57b15333d110126d1b1afadc0ff5e8784fc4f | 1a30882ce7f20f312045d5dc7bfaa5688cc8a88e | refs/heads/master | 2023-03-07T15:47:19.750682 | 2020-03-04T19:53:45 | 2020-03-04T19:53:45 | 143,360,607 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Review of a simple bit search algorithm
D = 3
print('Number of digit', D)
combinations = []
for i in range(1 << D):
flaged = []
for j in range(D):
if (i >> j) & 1:
flaged.append(j + 1)
print('Binary {} has flags at digit {}'.format(bin(i), flaged))
combinations.append(flaged)
pri... | [
"flvonlineconverter@gmail.com"
] | flvonlineconverter@gmail.com |
195b5b5bf3d61d63758c2c4cdb7d1942a70e832d | 3f5d531abcf69bc9f7de317ce46d45786272013d | /src/config/test/test_default.py | 7711ddcd42e45b5fc7232a940a9bceb55d370e5a | [
"MIT"
] | permissive | thak123/i-tagger | 61a8880e250069fc40c0a616e718a739bd27cb58 | dd8502947011e95b72b243fad9aad094b9a7d15c | refs/heads/master | 2021-05-14T16:51:20.799677 | 2018-01-02T12:09:36 | 2018-01-02T12:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import unittest
from helpers.config_helper import *
from config.default import create_default_config
class TestDefault(unittest.TestCase):
def test_creation(self):
config_helper = ConfigManager("/tmp/config.ini")
if not os.path.exists("/tmp/config.ini"):
create_default_config(config_h... | [
"mageswaran1989@gmail.com"
] | mageswaran1989@gmail.com |
17af632bafeab7fe05ec6df418b301f86f74b0cb | 582df95fc9b1d00e6c75321ad6a7894e0722245e | /tests/test_download_model.py | 34baadec66352e161086017e45cd3ea66aadfa94 | [
"Apache-2.0"
] | permissive | viniarck/podcaststore-django | 2c4db217126e3dbdf1244bb22ae1aea0cd502874 | 90316ffb18793b089291a0e28ac3ee2bb5e458cb | refs/heads/master | 2020-06-29T13:16:18.449358 | 2019-12-05T11:44:34 | 2019-12-05T11:44:34 | 200,547,759 | 0 | 0 | Apache-2.0 | 2020-06-05T22:33:18 | 2019-08-04T22:29:38 | Python | UTF-8 | Python | false | false | 828 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from podcaststore_api.models.download import Download, DownloadSerializer
class TestDownloadModel:
"""TestDownloadModel."""
@pytest.mark.django_db
def test_repr(self, create_download: Download) -> None:
"""Test __repr__ method."""
... | [
"viniarck@gmail.com"
] | viniarck@gmail.com |
14738cb6e89be7fa2dc18c2e0d95c3d9f63fcf63 | af4c325a5a20cb054f22723af9a693cdf8cda3e5 | /mysite/env/lib/python3.7/encodings/euc_kr.py | eadb6c4e18a9f3978efd0efea1024e9adac530cb | [] | no_license | myracheng/treehacks19 | aff1d6356f480dfdc4ca75f286fbcbd29c110a35 | 9e2d9195f749415eddcfabaceed0f9d911b12c7e | refs/heads/master | 2020-07-04T11:07:02.833157 | 2019-02-17T19:24:08 | 2019-02-17T19:24:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /Users/gracelu/anaconda3/lib/python3.7/encodings/euc_kr.py | [
"2018glu@tjhsst.edu"
] | 2018glu@tjhsst.edu |
a161c21ea948b07a05375c924672731065a639c1 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/detection/YOLOX_ID2833_for_PyTorch/tests/test_models/test_dense_heads/test_yolact_head.py | 11b74a3b9a7c7d2bae8547cf62e2ad4fdb73cec3 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 5,894 | py |
# Copyright 2022 Huawei Technologies Co., Ltd
#
# 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 agre... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
78a9d21635b3b2f9d4282deb74507c8b86a89628 | ea2015881c18583a4295122f2e2c1d2dbd3e32f9 | /_pipeline_scripts/script_6.4.3_ps_prot_pairDave.py | 6b12ef0ebf30ba4e369c2c941843af7dcdf42b21 | [] | no_license | panchyni/PseudogenePipeline | ad0b210d943bfdc83da1eeb63c0d7dec2a8719ae | 44a5bfd034dfd9b21808b6e6c5b789f141912c33 | refs/heads/master | 2021-01-11T15:54:57.514872 | 2017-04-17T21:13:16 | 2017-04-17T21:13:16 | 79,955,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 651 | py |
import sys
print "Read protein sequence file..."
inp = open(sys.argv[1])
inl = inp.readlines()
p = {}
for i in inl:
if i[0] == ">":
g = i[1:-1].split(".")
if g[0] not in p:
p[g[0]] = [g[1]]
else:
p[g[0]].append(g[1])
print "Read pair file..."
inp = open(sys.argv[2]) # osv5_ps_gene.pairs
oup = ope... | [
"panchyni.msu.edu"
] | panchyni.msu.edu |
a07caa95edb7398b9588e8dbf134ba5d00978be0 | 977073b97242b8bf48b49e145395d8d948890924 | /experiments/run_submission.py | 0aaa1722561252ba0e1393e56e7ad046f830a6f5 | [] | no_license | upura/booking-challenge-2021 | c80e88f8545ae1b5b8e3d9da3bac49f3ea982ee5 | 7b6daa2fabd28773cc452cd6605861372ea64d78 | refs/heads/master | 2023-03-03T16:22:45.258906 | 2021-02-17T20:36:06 | 2021-02-17T20:36:06 | 325,207,679 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | import gc
import numpy as np
import pandas as pd
from sklearn import preprocessing
import torch
from torch.utils.data import DataLoader
from tqdm import tqdm
from src.datasets import load_train_test, BookingDataset
from src.models import BookingNN
from src.utils import seed_everything
from src.runner import CustomRun... | [
"upura0@gmail.com"
] | upura0@gmail.com |
263f9d74b0c56b54ae61b705fc78e35537aa37aa | 1bdf38834c22b0100595cb22f2862fd1ba0bc1e7 | /code394DecodeString.py | 6498e6f8c2f6d46d2cadc4e51089b069f52ef7bd | [] | no_license | cybelewang/leetcode-python | 48d91c728856ff577f1ccba5a5340485414d6c6e | 635af6e22aa8eef8e7920a585d43a45a891a8157 | refs/heads/master | 2023-01-04T11:28:19.757123 | 2020-10-29T05:55:35 | 2020-10-29T05:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | """
394 Decode String
Given an encoded string, return it's decoded string.
The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is guaranteed to be a positive integer.
You may assume that the input string is always valid; N... | [
"guoligit@gmail.com"
] | guoligit@gmail.com |
8202094a23d76e36f8d0a8c3817a8c188a349efa | 318013ccb8738ace0ec72965dac0a3e3fe2fecad | /venv/lib/python3.7/site-packages/thumbor/engines/pil.py | 74b45e391dd24609f25b3067ab5ceab52c495cf8 | [] | no_license | nahyunkwon/Processing-3DImages | 792deafbd1a607af8cae439b5d7ab81f772f6653 | bde217aad08dd911ae8125edeae42f7b674614f2 | refs/heads/master | 2023-01-02T10:29:41.325974 | 2020-11-01T19:02:19 | 2020-11-01T19:02:19 | 299,133,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,327 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
from __future__ import absolute_import
import os
from tempfile impo... | [
"skgus2624@gmail.com"
] | skgus2624@gmail.com |
2542635ffe3127c2fbac935e327705fd7fcb674b | cc7bbdbb22cb6f7e7916388a5ee8218bc8ffa158 | /Python3/Tornado/apps/pg/PG_Client/clientadmin/utils.py | 971af7cb5a0d2998e2e927d20769b4a5cd027213 | [
"MIT"
] | permissive | youngqqcn/QBlockChainNotes | a816e067642f48a6da38b624663254b4016ec496 | c9c143eaba6c06e3cee866669ec286e4d3cdbba8 | refs/heads/master | 2023-04-03T23:31:05.585545 | 2023-03-30T09:29:07 | 2023-03-30T09:29:07 | 155,657,459 | 37 | 15 | MIT | 2023-03-06T23:09:32 | 2018-11-01T03:33:11 | JavaScript | UTF-8 | Python | false | false | 1,574 | py |
def jwt_response_payload_handler(token, user=None, request=None):
"""
自定义jwt认证成功返回数据
:token 返回的jwt
:user 当前登录的用户信息[对象]
:request 当前本次客户端提交过来的数据
"""
if user.username != None:
return {
'code': "fail",
"status": 200,
"data": {
... | [
"youngqqcn@163.com"
] | youngqqcn@163.com |
964d0631249c05ccd8a57becf125da4429dca45e | 3dfbd430ef10352acd4a4cfbeb51c01e78ad0dd1 | /updatesearch/pipeline_xml.py | 20b05fae0c8e62b7e8d8a4d81c2730aedf8e3432 | [
"BSD-2-Clause"
] | permissive | DalavanCloud/search-journals-proc | f09c7e29ede35e6756ccee5f20fabec9c1676224 | a246688ffd213c6ff814c290ea2190f7de358def | refs/heads/master | 2020-04-29T06:44:04.593174 | 2017-11-09T19:30:37 | 2017-11-09T19:30:37 | 175,927,206 | 1 | 0 | null | 2019-03-16T04:44:47 | 2019-03-16T04:44:47 | null | UTF-8 | Python | false | false | 19,924 | py | # coding: utf-8
from lxml import etree as ET
import plumber
from citedby import client
CITEDBY = client.ThriftClient(domain='citedby.scielo.org:11610')
"""
Full example output of this pipeline:
<doc>
<field name="id">art-S0102-695X2015000100053-scl</field>
<field name="journal_title">Revista Am... | [
"fabiobatalha@gmail.com"
] | fabiobatalha@gmail.com |
616481b2e75063bd42b700b4baac1bdbbd6f92b1 | 1804187f39dd6004250933b35ba9ce24297f32a5 | /car_importclass.py | 860b39b3d9c08872ea8be65c07d26f6029ef9c66 | [] | no_license | xiaomengxiangjia/Python | ecd2e3e8576364f15482669cb75b52b8790543f5 | 7f52a33d7956068d26347cf34d35c953b945a635 | refs/heads/master | 2020-03-20T23:01:09.981928 | 2018-08-23T09:04:53 | 2018-08-27T05:46:38 | 137,825,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | """一个可用于表示汽车的类"""
class Car():
"""一次模拟汽车的简单尝试"""
def __init__(self, make, model, year):
"""初始化描述汽车的属性"""
self.make = make
self.model = model
self.year = year
self.odometer_reading = 0
def get_descriptive_name(self):
"""返回整洁的描述性名称"""
long_name ... | [
"645334483@qq.com"
] | 645334483@qq.com |
276bccd4f16fb7b435ac61d0da296658d2a152fd | 97ae427ff84c9b0450ed709dc55e1cc0e1edc096 | /til/future_til/class_level_operators.py | 02723ea43b703bfd62523ad8737ad110b21d2a4e | [] | no_license | OaklandPeters/til | 9081ac8b968223f4c92b38cf20cda90c92966628 | 12a1f7623916709211686d7817b93c7ef4d532d2 | refs/heads/master | 2021-01-17T14:16:48.285244 | 2016-06-20T14:23:40 | 2016-06-20T14:23:40 | 51,449,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | """
This has not been made into a TIL in til/python yet, because...
it does not work correctly atm.
However, I'm reasonably sure I can get it to work (since I've got type-level operatores to work in the past)
"""
#
# Class-level operators
#--------------------------
# Requires metaclasses
# To make this work with i... | [
"oakland.peters@gmail.com"
] | oakland.peters@gmail.com |
96164464f24ee51181a36ffef0bb4a7a56bde3c5 | 7f227c62d25d09496dc5aabd9d58fc971c7c820d | /main.py | 4601d7ce2812480fd23ff394cffb3d3cee64b020 | [] | no_license | 0x15F9/ColabDemo | 6cd821ad6295cb30a656d506372882f14428adab | 093b374b4493146c787b48f46a6633bb1351fe20 | refs/heads/master | 2023-03-24T01:59:34.293793 | 2021-03-22T07:37:24 | 2021-03-22T07:37:24 | 350,248,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | for i in range(10):
print("Hello") | [
"isfaaqg@gmail.com"
] | isfaaqg@gmail.com |
b0e3a882a9cb2bf2f6a1e29d61545ed83bc64a05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02882/s441562654.py | 2251e4e406faa3b13c7d32923f7711a41c800a0e | [] | 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 | 171 | py | a, b, x = map(int, input().split())
if x > (a**2)*b/2:
t = 2*((a**2)*b-x)/(a**3)
else:
t = a*(b**2)/(2*x)
import math
ans = math.degrees(math.atan(t))
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7eae7b743e1fdb51757eab7546ee206614610ba1 | 43b4cabe8b711d9eb6988a17d0914cf95ac1c5a1 | /Lesson-2/7_BookmarkServer/BookmarkServer.py | b42fd8ceecfd9c42216f26e2953ac331e00dca63 | [] | no_license | fatih-iver/course-ud303 | c9aae321336c8e0b3ed1e671338cc993d04dc34b | 64d2107891cc24d303dffb98216a72505eeeb217 | refs/heads/master | 2020-03-24T21:57:30.923020 | 2018-08-04T11:50:20 | 2018-08-04T11:50:20 | 143,059,407 | 0 | 0 | null | 2018-07-31T19:40:50 | 2018-07-31T19:40:49 | null | UTF-8 | Python | false | false | 5,827 | py | #!/usr/bin/env python3
#
# A *bookmark server* or URI shortener that maintains a mapping (dictionary)
# between short names and long URIs, checking that each new URI added to the
# mapping actually works (i.e. returns a 200 OK).
#
# This server is intended to serve three kinds of requests:
#
# * A GET request... | [
"noreply@github.com"
] | fatih-iver.noreply@github.com |
759f2892a4b03efd81ece2f4d33a6eba2ba16139 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GLX/MESA/query_renderer.py | 072891b41d9ef525470951c92ec96a668f34048f | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 2,034 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLX import _types as _cs
# End users want this...
from OpenGL.raw.GLX._types import *
from OpenGL.raw.GLX import _errors
from OpenGL.constant import Constant as _C
import ctype... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
a585065a3adc8bc699bf8ba1c78b67358d1ea23c | c99c272181eb43df688cc6af10bfb17659014ab9 | /03_ОOP-Python/01-Defining Classes/02_Exercise/07_GuildSystem/project/venv/Scripts/easy_install-script.py | 479119ad1bbdbfaf2e56c4f7f55eb619444da6c2 | [] | no_license | LachezarKostov/SoftUni | ce89d11a4796c10c8975dc5c090edecac993cb03 | 47559e9f01f7aabd73d84aa175be37140e2d5621 | refs/heads/master | 2023-01-29T20:49:57.196136 | 2020-12-10T12:34:09 | 2020-12-10T12:34:09 | 283,491,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!"C:\Users\dream\Desktop\Python\OP-Python\01-Defining Classes\02_Exercise\07_GuildSystem\project\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ =... | [
"68952160+LachezarKostov@users.noreply.github.com"
] | 68952160+LachezarKostov@users.noreply.github.com |
a23776a69c1c30f0a065d46cab1f8ca2e0904e26 | 741191d21d1248b0501ca4fcba7c548998e82b3c | /spidermanage/spidertool/sniffertool.py | 3267591c39100a33d9c29eef25f06e2c5b462eba | [] | no_license | CryptoConsultants/toolforspider | 27fd2df948846c2a40908f3f3deea1422bea4410 | eb1c3a362c360852be734d8f296512e02bf3b045 | refs/heads/master | 2021-01-17T07:28:11.671526 | 2016-02-19T09:06:15 | 2016-02-19T09:06:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,427 | py | #!/usr/bin/python
#coding:utf-8
'''
Created on 2015年10月29日
@author: sherwel
'''
import sys
import nmap
import os
import time
import SQLTool
import Sqldatatask
import config
import Sqldata
from numpy.numarray.numerictypes import IsType
import connectpool
import portscantask
import getLocationTool
reload(sys) # Pyt... | [
"nanshihui@qq.com"
] | nanshihui@qq.com |
d518f64f0bbd5273253b9da996adb85350151238 | 730a0291d90bf220d162791287e422bc4225d164 | /samples/StackResult/fsmpy/StackSynchronized.py | ce716b3963340b6d02b4f30ab46f82112d7579f6 | [
"BSD-3-Clause"
] | permissive | jon-jacky/PyModel | 27442d062e615bd0bf1bd16d86ae56cc4d3dc443 | 457ea284ea20703885f8e57fa5c1891051be9b03 | refs/heads/master | 2022-11-02T14:08:47.012661 | 2022-10-16T09:47:53 | 2022-10-16T09:47:53 | 2,034,133 | 75 | 36 | NOASSERTION | 2021-07-11T21:15:08 | 2011-07-12T04:23:02 | Python | UTF-8 | Python | false | false | 1,026 | py |
# pma.py Stack StackOneScenario -m 6 -o StackSynchronized
# 4 states, 6 transitions, 4 accepting states, 0 unsafe states, 0 finished and 0 deadend states
# actions here are just labels, but must be symbols with __name__ attribute
def Push(): pass
def Pop(): pass
# states, key of each state here is its number in gra... | [
"jon@u.washington.edu"
] | jon@u.washington.edu |
a914ff8c2d0018797ec75f0eb379efac9c21abef | c0a5ff5f77943a9529512e6b27148f3318ab5264 | /vowels2.py | 9fe9e3f321664f0f5ebedae52821be5fdb7ac104 | [] | no_license | smatthewenglish/head_first_python | b15cc7260fa6607759778ac37d86006f803462a9 | 6e783ce541d5462fb2f84cc901c713fcf5895240 | refs/heads/master | 2023-03-28T14:50:16.857613 | 2021-03-31T16:41:14 | 2021-03-31T16:41:14 | 350,149,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | vowels = ['a', 'e', 'i', 'o', 'u']
#word = "Milliways"
word = input("Provide a word to search for vowels: ")
found = []
for letter in word:
if letter in vowels:
#print(letter)
if letter not in found:
found.append(letter)
for vowel in found:
print(vowel)
| [
"s.matthew.english@gmail.com"
] | s.matthew.english@gmail.com |
bf7cccfc45cdf2461987920d5a0b5fcb107fe227 | 5488617b1b05c436b1f8c8642ea75ca754719f8d | /TW_study/LimitCode/tW_measurment/mlfitNormsToText.py | 7cbfc9933869090ddc8caf40ffac104930662672 | [] | no_license | wenxingfang/TW_Top | fdb1ba136be6ace8fdacaade58cb4ca4fcdc3c9e | 389e76c904d08a59d9141b9b66ec15d2583f8e9a | refs/heads/master | 2021-02-05T06:54:27.908688 | 2020-02-28T13:24:00 | 2020-02-28T13:24:00 | 243,754,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | import re
from sys import argv, stdout, stderr, exit
# import ROOT with a fix to get batch mode (http://root.cern.ch/phpBB3/viewtopic.php?t=3198)
argv.append( '-b-' )
import ROOT
ROOT.gROOT.SetBatch(True)
argv.remove( '-b-' )
if len(argv) == 0: raise RuntimeError, "Usage: mlfitNormsToText.py [ -u ] mlfit.root";
erro... | [
"wenxing.fang@cern.ch"
] | wenxing.fang@cern.ch |
234f9d0be069bd885e1b1e25db82bd2eb4e0e97e | d765d19f80a6bfed71685838306f2d91f6a5a7dd | /rdt/rdt21.py | 0c2bba984d0b3daf478d990edda454a24d739487 | [] | no_license | EliasFarhan/CompNet | 1f1f83e6babdb688e1d626117cdb50a642a9d2a9 | c95b36c12a7a0a0d0ac5ecdb41e1b227c3973de0 | refs/heads/master | 2021-07-16T20:33:56.803384 | 2020-09-15T18:54:18 | 2020-09-15T18:54:18 | 210,541,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | from rdt.base import *
from rdt.rdt20 import ChannelRdt20
class SenderRdt21(Sender):
last_packet = ""
sequence_nmb = 1
msg_lock = threading.Lock()
def send_data(self, data, resend=False):
if not resend:
self.msg_lock.acquire()
self.last_packet = data
text_data = da... | [
"elias.farhan@gmail.com"
] | elias.farhan@gmail.com |
901c2725f19e802f0cfd00ad38118bb3d1511a0c | 6490638f15a2dfbe0cec9725186f9784d57c92f0 | /SPACEUI/SPACEgui.py | 18a2f4d304f7717a4741a891fc0f833466a08ac4 | [
"MIT"
] | permissive | khawatkom/SpacePyLibrary | af9c490ef796b9d37a13298c41df1fb5bf6b3cee | c94415e9d85519f345fc56938198ac2537c0c6d0 | refs/heads/master | 2020-05-14T21:52:39.388979 | 2019-04-17T17:06:04 | 2019-04-17T17:06:04 | 181,970,668 | 1 | 0 | null | 2019-04-17T21:26:44 | 2019-04-17T21:26:44 | null | UTF-8 | Python | false | false | 33,911 | py | #******************************************************************************
# (C) 2018, Stefan Korner, Austria *
# *
# The Space Python Library is free software; you can redistribute it and/or ... | [
"korner-hajek@gmx.at"
] | korner-hajek@gmx.at |
63a3e633e544e4a017474a3cba78a6c0a93f189b | 17070ea982156a8553c24e2ea3b687fb1dc5544e | /shop/views.py | 02cd002f7c32aecc9a6deff58f0d5b489658af0a | [] | no_license | akiyoko/django-concurrency-sample | 75353fe55e0376e08f2c888b5feb323f9728fc1a | 8b9fd1e04a034cb0d8e6d1915d864b13b1726608 | refs/heads/main | 2023-01-22T10:49:39.375878 | 2020-12-01T05:17:53 | 2020-12-01T05:17:53 | 317,429,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | import logging
from django.contrib import messages
from django.contrib.auth import get_user_model
from django.db import transaction
# from django.http.response import HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.template.response import TemplateResponse
from django.utils.decorators i... | [
"akiyoko@users.noreply.github.com"
] | akiyoko@users.noreply.github.com |
c7e0e8f56c9b540a6d37dce314d31c36ea920326 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/network/onyx/test_onyx_ospf.py | 665633222c74febcc7f196f3e51d0f6b0b91d4fb | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,664 | py | #
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible_collections.notstdlib.moveitallout.tests.unit.compat.mock impo... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
317288bb41c5c374236f56788577a76f1c080b9c | 42fe2827d14a82043ade9393beaedf53e22a69f5 | /bebop_ws/devel/.private/bebop_msgs/lib/python2.7/dist-packages/bebop_msgs/msg/_CommonCommonStateCurrentDateChanged.py | 55096047d13f8e60d5b3ab4a3aa26cae99d7e236 | [] | no_license | cjbanks/bebop-software-framework | a3714646545e9d7d71299a365814bc87437f5e14 | 7da1bbdef4e84aa0ed793cfaad9fe133959ebe21 | refs/heads/master | 2023-04-30T17:52:23.255302 | 2020-11-18T18:32:41 | 2020-11-18T18:32:41 | 368,626,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,233 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from bebop_msgs/CommonCommonStateCurrentDateChanged.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class CommonCommonStateCurrentDateChanged(genpy.Me... | [
"Chewie_Alex@nder1"
] | Chewie_Alex@nder1 |
73c728462aaa1aeb1ff14b80acd3d67f327d7557 | 106983cf0b8df622f514ecff2bb2fa4c794c9dac | /Misc/OpenCV/camshiftTest.py | 5677142b105f693d0656e9845a8b7bfcaa575dc3 | [] | no_license | michael5486/Senior-Design | 2d9ae521c637abf7c0825f85b32752ad61c62744 | 6b6c78bed5f20582a9753a9c10020c709d6b6e53 | refs/heads/master | 2021-01-19T09:58:35.378164 | 2017-05-26T17:17:13 | 2017-05-26T17:17:13 | 67,556,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,367 | py | #!/usr/bin/env python
import cv2.cv as cv
import serial
#ser = serial.Serial("/dev/ttyACM0",9600)
def is_rect_nonzero(r):
(_,_,w,h) = r
return (w > 0) and (h > 0)
class CamShiftDemo:
def __init__(self):
self.capture = cv.CaptureFromCAM(0)
cv.NamedWindow( "CamShiftDemo", 1 )
cv.N... | [
"michael5486@gmail.com"
] | michael5486@gmail.com |
47befcf66e46b26472ad8cb956c2fc14284c7c9e | 3794bc772676d34a6794d19eedb41c2d8a7d39c0 | /ge_dqn/monitor.py | 53024700f3b5ca11545565d3ad057f2807cd0141 | [] | no_license | geyang/reinforcement_learning_learning_notes | 3a79af021b6b126e37b09bf1871cfe9852690abe | f862dbf496f7f5d6cb091604dfb808511de5aa9c | refs/heads/master | 2021-08-23T11:32:14.127137 | 2017-12-04T18:28:35 | 2017-12-04T18:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from copy import deepcopy
import numpy
def contextify(env):
type(env).__enter__ = lambda s: s
type(env).__exit__ = lambda s, *args: s.close()
return env
def monitor(env):
episode_rewards = []
_step = env.step
def step(action):
s, rew, done, info = _step(action)
episode_rewa... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
815fb3177d93f4c5b3da4d57786399655d7a5e2b | 493a36f1f8606c7ddce8fc7fe49ce4409faf80be | /.history/B073040023/client_20210614185342.py | 411412020365d07802e69305599262f66838a62f | [] | no_license | ZhangRRz/computer_network | f7c3b82e62920bc0881dff923895da8ae60fa653 | 077848a2191fdfe2516798829644c32eaeded11e | refs/heads/main | 2023-05-28T02:18:09.902165 | 2021-06-15T06:28:59 | 2021-06-15T06:28:59 | 376,568,344 | 0 | 0 | null | 2021-06-13T14:48:36 | 2021-06-13T14:48:36 | null | UTF-8 | Python | false | false | 5,078 | py | import socket
import threading
import tcppacket
import struct
from time import sleep
# socket.socket() will create a TCP socket (default)
# socket.socket(socket.AF_INET, socket.SOCK_STREAM) to explicitly define a TCP socket
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # explicitly define a UDP socket
udp_h... | [
"tom95011@gmail.com"
] | tom95011@gmail.com |
ac61d410d9419c6949dc2e7bb0e4fd3b37e85afe | 2b7efe276d1dfdc70a4b5cd59ae863b7b7a1bd58 | /euler35.py | 24b79c529bb65377213bed68a3834c21df6f4544 | [] | no_license | mckkcm001/euler | 550bbd126e8d9bb5bc7cb854147399060f865cfc | 8cf1db345b05867d47921b01e8c7e4c2df4ee98d | refs/heads/master | 2021-01-01T17:43:28.799946 | 2017-11-07T02:17:34 | 2017-11-07T02:17:34 | 18,375,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import math
n = [2]
def is_prime(n):
if n % 2 == 0 and n > 2:
return False
for i in range(3, int(math.sqrt(n)) + 1, 2):
if n % i == 0:
return False
return True
def is_circ(n):
a = n
for i in range(len(str(n))):
a = 10**(len(str(a))-1)*(a%10)+ a/... | [
"noreply@github.com"
] | mckkcm001.noreply@github.com |
320aa009bc8015194f321089be13615ebf99be42 | 8b83d79425985e9c87ff4b641c2dcb6a151f3aa1 | /recipes/templatetags/markdown.py | 75cbd8e9f44234b8d253b147c3548fd001844065 | [] | no_license | akx/pyttipannu | e1366d982bae62a70da24b7da1a93c40efb51217 | 7b02f7d18d594beddb64beb99283c738ca06b8f0 | refs/heads/master | 2021-01-13T09:15:59.086825 | 2016-09-29T13:52:17 | 2016-09-29T13:52:17 | 69,023,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.template import Library
from django.utils.encoding import force_text
from django.utils.safestring import mark_safe
from markdown import markdown as render_markdown
register = Library()
@register.filter
def markdown(s):
return mark_safe(render_markdown(force_text(s)))
| [
"akx@iki.fi"
] | akx@iki.fi |
dfa802d2eab75f6143932b9db16d2742cd829829 | 84ee74894d1e6d76281dd1d3b76ee1dcde0d36b5 | /plotting/visualisePhi.py | 1c7e4c4f7e5da898e37f21b143394c229a9fa1a5 | [] | no_license | pyccel/pygyro | e3f13e5679b37a2dfebbd4b10337e6adefea1105 | a8562e3f0dd8fd56159785e655f017bbcae92e51 | refs/heads/master | 2023-03-10T07:43:17.663359 | 2022-08-17T12:06:25 | 2022-08-17T12:06:25 | 170,837,738 | 4 | 3 | null | 2023-01-02T10:09:08 | 2019-02-15T09:27:22 | Python | UTF-8 | Python | false | false | 2,652 | py | import argparse
from mpi4py import MPI
import numpy as np
from pygyro.model.grid import Grid
from pygyro.model.layout import LayoutSwapper, getLayoutHandler
from pygyro.poisson.poisson_solver import DensityFinder, QuasiNeutralitySolver
from pygyro.utilities.grid_plotter import SlicePlotterNd
from pygyro.initialisation... | [
"noreply@github.com"
] | pyccel.noreply@github.com |
0f59ddf53e19bb9c1f3b0b8ef1a3e04546cc89e4 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/brackets_20200810105706.py | e35d818bc5c2a83d99fa7e410edda4e403b93436 | [] | 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 | 205 | py | def brackets(S):
# "{[()()]}"
stack = []
for i in S:
stack.append(i)
for i in S:
if i == "(" and stack.pop()
print(brackets("{[()()]}"))
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
5328be94b6b7b5d34270b3276badb49bfb04b4f1 | d886f41ac037343b6b9652977f753808117e6246 | /Behaviors/FK_Relative_Reverse_01.py | 0a1594dbcc59fe2ead208d9d03c6eabe281422a2 | [] | no_license | TPayneExperience/TrevorPaynes_RigAndAnimSuite | 5e918be2de896fdacf2da039815e85b91cf0d7ed | 18e0482ca6d70277b6455d9a14e6b10406f1553f | refs/heads/master | 2023-09-03T04:14:48.862905 | 2021-11-10T02:50:54 | 2021-11-10T02:50:54 | 275,663,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,254 | py |
import pymel.core as pm
import Abstracts.Abstract_Behavior as absBhv
import Utilities.Rig_Utilities as rigUtil
import Utilities.Logger as log
class FK_Relative_01(absBhv.Abstract_Behavior):
bhvType = 'FK Relative Reverse'
validLimbTypes = (4,) # rigData.LIMB_TYPES
groupType = 'FKR' # LookAt, IKPV...... | [
"crashandexplode@hotmail.com"
] | crashandexplode@hotmail.com |
10bf94250ae78f7e23d7e6bd2890662625883c6b | 555002c30895a1e2267d05d67d5167275ade3845 | /server/server.py | d2f825a62b33cfc1b7403d77eceaecff86615fcd | [] | no_license | odbite/jkpghack2016 | 159b2938fd8ab7a2a815c664a38c791f2fb440ec | 8b4f5b3ec555f3436f764c2b49927c200ff335a4 | refs/heads/master | 2021-01-10T05:52:52.600618 | 2016-02-27T17:41:07 | 2016-02-27T17:41:07 | 52,673,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from animals import AnimalApi
from flask import Flask, render_template
from flask_restful import Api
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
static_folder = os.path.join(BASE_DIR, 'client', 'app', 'dist')
print(static_folder)
app = Flask(__name__, template_folder='../client/app... | [
"draso.odin@gmail.com"
] | draso.odin@gmail.com |
13bdc405645b0b39b6eddec012b2abcc8c01a3de | 78dc15505e17cef3e49410bbadc1bb4812cdbbad | /foiamachine/local/apps/users/utils.py | 824afac2280c58b95134ab546eea5bc2cd47db3c | [
"MIT"
] | permissive | jgillum/foiamachine | 4a7e4ef9fec681341c014dbe7c98bbce79debb4e | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | refs/heads/master | 2020-06-29T11:19:46.232758 | 2019-08-19T02:27:45 | 2019-08-19T02:27:45 | 200,519,075 | 3 | 1 | null | 2019-08-04T16:57:27 | 2019-08-04T16:57:27 | null | UTF-8 | Python | false | false | 54 | py | /home/foiamachine/repo/foiamachine/apps/users/utils.py | [
"jgillum@gmail.com"
] | jgillum@gmail.com |
9f4802a0adb12e9e53c888ddc1d995e8c04f2963 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/get_static_site_user_provided_function_app_for_static_site.py | f4136b23143201325f3c527173a8c7c478e1d846 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,754 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
51f1291b2afb40a6c8d8781e7bc461ba3d058225 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03838/s497427946.py | 53bb3ecb9f9567bfcac1e11d066677c406a3138b | [] | 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 | 302 | py | x, y = map(int, input().split())
cnt = 0
diff = abs(x) - abs(y)
if diff == 0:
if x * y < 0:
cnt += 1
elif diff > 0:
cnt += diff
if x > 0:
cnt += 1
if y > 0:
cnt += 1
else:
cnt += -diff
if x < 0:
cnt += 1
if y < 0:
cnt += 1
print(cnt)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eae409f0cfe112314878b3129c19172958517b96 | d3210868266ce3f0c17d0777c157da82402d3ed7 | /horizon/openstack_dashboard/dashboards/project/instances/tables.py | 8e610ce626c3c1a3077c52d4315550ca1a3ece88 | [
"Apache-2.0"
] | permissive | cauberong099/openstack | 4f0bb1671bf3f2421a756c8b3bfcd7b344e07096 | 4fc261d37d84126d364de50fbc6ca98b8dc8dd39 | refs/heads/master | 2021-01-10T19:44:22.108399 | 2015-03-28T02:46:21 | 2015-03-28T02:46:21 | 33,003,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,216 | py | # Copyright 2012 Nebula, Inc.
#
# 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 agree... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6234237d22d1e2a20cc1766714f825df98311bc5 | b0b21bd961031083ef2ff04e2c71648192e181bc | /snippets/popular_libraries/click-lib/intermediate-features/click_prompting.py | 821cd2007448e2464760e7ef0930ebb6d7949af7 | [
"Apache-2.0"
] | permissive | melvio/python3-examples | 3406b732b071fb8a23e296b9a2e5aab9e7a04deb | 5340fe17e0a5001a81cf195e63f825b77dc16fca | refs/heads/main | 2023-08-25T06:33:34.743019 | 2021-10-11T11:29:20 | 2021-10-11T11:29:20 | 396,391,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | import click
user_input = click.prompt(text="Folder name", default="Download")
print(f"{user_input=}")
| [
"31448155+melvio@users.noreply.github.com"
] | 31448155+melvio@users.noreply.github.com |
83fa096992b60ee9f25862dd01b9c52b2c6c1ea5 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_JawBone_main.py | 9103e18ea816c4880314a942a1d0134a68bf0711 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,228 | py | def cpaf(rn):
for divisor in xrange(2, 100):
if not rn % divisor:
return (False, divisor)
return (True, 1)
def baseconverter(rn, basefrom):
digits = "0123456789"
result = ""
while True:
remains = rn % basefrom
result = digits[remains] + result
rn = rn / b... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
2ddd55605050c3b2aa54d92f04a82d1be4921a8f | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/layers/layers.py | 5b4a0b637a1140402fc92bb72547a407526c443b | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 175 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/layers/layers.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
e1d28343bba645d8be668da7b073af3541987896 | 383d711b269aa42ec051a8300f9bad8cd3384de8 | /docker/models.py | 718aa7f04973c627897a573e40c8adb538b13cc7 | [] | no_license | Lupino/docker-server | 7af8dab451528704f470a19ae07fbd99afb47435 | 4a199e7e75dcf5ba5161a5373214bb03e8e2cf25 | refs/heads/master | 2021-01-10T19:30:42.888559 | 2014-04-01T07:23:22 | 2014-04-01T07:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,867 | py | from docker.conf import prefix
from lee import Model, query, Table, conf as lee_conf
from docker.logging import logger
class _Container(Model):
table_name = '{}container'.format(prefix)
columns = [
{'name': 'container_id', 'type': 'str', 'primary': True, 'length': 32},
{'name': 'image_id', ... | [
"lmjubuntu@gmail.com"
] | lmjubuntu@gmail.com |
454d744eedb4d7ef6400ff1daf55405c7d179bc0 | feb2ad26f596045ddccf8a36b514fb0460a37e01 | /expression_data/data/models.py | dcdcdcd4988deac32f133e4a6f8e228f877dc7bc | [
"BSD-2-Clause"
] | permissive | lamarck2008/expression-data-server | 9a06de7bd3f69cfe92dcf9d7400715e8096d2c1c | 7f70fd5d5a9569a315716c389f828b17a487fdbc | refs/heads/master | 2021-01-16T20:24:14.289633 | 2012-11-19T02:52:06 | 2012-11-19T02:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,797 | py | '''These models control the data saved into the database for a given experiment.
There is a generic base class named Data, which is then further subclassed into specific data models.
'''
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import gen... | [
"dave.bridges@gmail.com"
] | dave.bridges@gmail.com |
f4b7ae8e9946c91cded7fe2092eda6da7b6a3cdf | 4090d8b4e8e9e28d620d222651c73a12a753be36 | /contextadv/migrations/0006_alter_contextadvertisementdescription_description.py | d762b37198cad99a6353794de8fe7074771fc939 | [] | no_license | isaev4lex/220studio | 91aa08f9d10ff55e98effe2542e26799efb6e2f2 | 6188403eeed7ee590b21da15c67af9e6f06ab06b | refs/heads/main | 2023-08-20T07:14:18.203593 | 2021-10-31T07:24:19 | 2021-10-31T07:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # Generated by Django 3.2.4 on 2021-08-05 12:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contextadv', '0005_metatags'),
]
operations = [
migrations.AlterField(
model_name='contextadvertisementdescription',
... | [
"FWorld21@protonmail.com"
] | FWorld21@protonmail.com |
358be1517a6567c187fc0c758e6e8ce6b61d5ae6 | 0a1356b97465cc1d5c3f661f61b3b8c51fb05d46 | /android_binding/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/Tools/msi/make_zip.py | 58f3b15ef8524e3b3487ec688380a8d5b9de0e2c | [
"GPL-1.0-or-later",
"Python-2.0",
"MIT"
] | permissive | Rohan-cod/cross_platform_calc | 00360f971e4da68dd36d6836c9ddbb157f6b77d5 | 5785a5e8150d174019b330c812e7eb012cc4dd79 | refs/heads/master | 2022-12-22T10:29:05.317051 | 2021-06-05T10:52:44 | 2021-06-05T10:52:44 | 237,465,912 | 2 | 1 | MIT | 2022-12-09T05:18:55 | 2020-01-31T16:07:31 | C | UTF-8 | Python | false | false | 7,729 | py | import argparse
import py_compile
import re
import sys
import shutil
import stat
import os
import tempfile
from itertools import chain
from pathlib import Path
from zipfile import ZipFile, ZIP_DEFLATED
TKTCL_RE = re.compile(r'^(_?tk|tcl).+\.(pyd|dll)', re.IGNORECASE)
DEBUG_RE = re.compile(r'_d\.(pyd|dll|exe|pdb|lib)... | [
"rohaninjmu@gmail.com"
] | rohaninjmu@gmail.com |
253b6652ddac0a3ffbcf6e0fd96dfc8abecaf9b8 | a3bb97955ad28e8c83a23e4466bb5352ee86847d | /revision/apps/public/forms.py | 9b3b57cd9930137d58592f723e09c96bb6e411bb | [] | no_license | rosscdh/revision | 23ac75385cca5b44032ff2637eb635fa954bb2ec | 090fb2a82072c5570d89878c6f506dd22d5c5ed5 | refs/heads/master | 2016-09-05T10:53:33.652493 | 2014-11-29T10:57:41 | 2014-11-29T10:57:41 | 23,582,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,484 | py | # -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from django.core.urlresolvers import reverse_lazy
from parsley.decorators import parsleyfy
from crispy_forms.helper import FormHelper, Layout
from crispy_forms.layout import ButtonH... | [
"ross@lawpal.com"
] | ross@lawpal.com |
4e009c93c039eb04670636eb123f6a973e479fd8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dbss/huaweicloudsdkdbss/v1/model/batch_delete_resource_tag_request.py | 951851e88d7c6383d31b3e128954862b7a8c1840 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,953 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchDeleteResourceTagRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
90ce17400257d8e886aa3c49973efb6bbe7e3d0f | 8830831a87f35ff2628f379d8230928ec6b5641a | /BNPParibas/code/gbc_deviance.py | f947f44609ebf50d5d1c3aa5f5f6442aa072e2f5 | [] | no_license | nickmcadden/Kaggle | e5882c9d68a81700d8d969328d91c059a0643868 | cbc5347dec90e4bf64d4dbaf28b8ffb362efc64f | refs/heads/master | 2019-07-18T08:09:40.683168 | 2018-01-26T14:35:38 | 2018-01-26T14:35:38 | 40,735,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | import sys
import pandas as pd
import numpy as np
import scipy as sp
import xgboost as xgb
import data
import argparse
import pickle as pkl
from scipy import stats
from collections import OrderedDict
from sklearn.utils import shuffle
from sklearn.cross_validation import StratifiedShuffleSplit, KFold
from sklearn.ensemb... | [
"nmcadden@globalpersonals.co.uk"
] | nmcadden@globalpersonals.co.uk |
1d92b49f32e9e43e80212f55a3859782d21b2ef1 | b777fc0715c1d20faf0c849f6894cf41cfe90cbe | /tests/test_decompressor_fuzzing.py | a7f81adab4e4d6d70076e5aa4efea84caea7078d | [
"BSD-3-Clause"
] | permissive | pombredanne/python-zstandard | 31a417d3a7d5a05594346235fd88e89e9a01d698 | 70dcc805d7761b1d7e35fd219a4d5d4512acd96a | refs/heads/master | 2020-09-16T08:18:39.956344 | 2019-11-16T04:40:30 | 2019-11-16T04:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,091 | py | import io
import os
import unittest
try:
import hypothesis
import hypothesis.strategies as strategies
except ImportError:
raise unittest.SkipTest("hypothesis not available")
import zstandard as zstd
from .common import (
make_cffi,
NonClosingBytesIO,
random_input_data,
)
@unittest.skipUnles... | [
"gregory.szorc@gmail.com"
] | gregory.szorc@gmail.com |
50b0d0d43f43bcda2ef5a05062a45b32b719010f | 4bd5cdb67fdd6a6f0ceb3af025ceaf977b661273 | /gconv_experiments/groupy/garray/D4h_array.py | 1c0b4b98530c21dfa94b6937ccf955673ddf5fa0 | [] | no_license | andreiqv/gconv | 93d7d313cdc78e2bfefd53820918293526fc4680 | 23f9ec62b119c64cc87f8727cc1e409a469db0f1 | refs/heads/master | 2020-05-07T21:05:28.840973 | 2019-04-11T23:25:31 | 2019-04-11T23:25:31 | 180,890,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,376 | py | import numpy as np
from groupy.garray.finitegroup import FiniteGroup
from groupy.garray.matrix_garray import MatrixGArray
from groupy.garray.D4ht_array import D4htArray
from groupy.garray.Z3_array import Z3Array
"""
Implementation of dihedral finite group D4h, consisting of 16 elements in total.
These are the element... | [
"phxv@mail.ru"
] | phxv@mail.ru |
ef955cf11a1cd96660828ba53df533af7add7417 | a9b5bc48a89329aa44cb4dd63ce47a3c0dfc90ba | /tests/test_withings_object.py | 8fa9c36a34257583ebac5c15851c1621aa312ca8 | [
"MIT"
] | permissive | randi120/python-withings | d050a263f5c500ad258072dbb3661a43dd225de3 | 016bb3cc2d62a4e2813df422829eba21530570bc | refs/heads/master | 2021-01-22T13:47:49.355343 | 2014-12-26T00:47:12 | 2014-12-26T00:47:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | import time
import unittest
from datetime import datetime
from withings import WithingsObject
class TestWithingsObject(unittest.TestCase):
def test_attributes(self):
data = {
"date": "2013-04-10",
"string": "FAKE_STRING",
"integer": 55555,
"float": 5.67
... | [
"bradpitcher@gmail.com"
] | bradpitcher@gmail.com |
cc1454d122573184c132666c2fe8f7e97e045849 | d8416cd4c8f532809c4c9d368d43fa773b3b198c | /torchsupport/flex/examples/cifar_tdre.py | 546881ac3c571f5f93a027d84caa06030768d4c4 | [
"MIT"
] | permissive | DavidMetzIMT/torchsupport | a53a0d532b7542d81dc158d3d67f195cbce86bf9 | a0ca719c820a4895e98091c52e43c5300e1a71a3 | refs/heads/master | 2023-05-28T21:45:09.302210 | 2021-06-14T17:30:58 | 2021-06-14T17:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,151 | py | from functools import partial
from torchsupport.data.namedtuple import namespace
import torch
import torch.nn as nn
import torch.nn.functional as func
from torch.distributions import Normal
from torch.utils.data import Dataset
from torchvision.datasets import CIFAR10
from torchvision.transforms import ToTensor
from ... | [
"jendrusch@stud.uni-heidelberg.de"
] | jendrusch@stud.uni-heidelberg.de |
fa79356736541e36a07ddcd18a65b5cb23c60ad7 | b2c24abff86b28ca8a495b3a3c3227f070737aa2 | /parlai/tasks/opensubtitles/build_2018.py | 271858012beab88fe3ac123c42db3a991c6a3074 | [
"MIT"
] | permissive | hengyicai/AdaND | d5dda1b2fcd2abd17be6603de632f0515382b37b | 5e3fefb1cf40c42215a37246efc64958ae6db005 | refs/heads/master | 2023-09-01T07:38:49.076947 | 2020-10-19T04:58:00 | 2020-10-19T04:58:00 | 204,633,631 | 10 | 2 | MIT | 2023-08-11T19:52:23 | 2019-08-27T06:20:39 | Python | UTF-8 | Python | false | false | 11,239 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
import parlai.core.build_data as build_data
import glob
import gzip
... | [
"caihengyi@ict.ac.cn"
] | caihengyi@ict.ac.cn |
efdfe5a0a9fd4511946056b84590b1ff8569b14c | 4e7669f4234dbbcc6ef8206ac43bba33c53b8d1e | /Predictions/DataProcessing.py | 73ecbdb3270823e4d440ea305f64b9d0f26fce93 | [] | no_license | chouhansolo/edbn | 46cadbcb8d4e079cee746868663379b5b825286b | 63cfcd7e5e5e17242aed3b1968119e85b2796015 | refs/heads/master | 2023-04-05T06:54:26.380161 | 2021-04-21T08:50:30 | 2021-04-21T08:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,175 | py | """
Author: Stephen Pauwels
"""
import os
import pickle
import pandas as pd
from RelatedMethods.Camargo.support_modules.role_discovery import role_discovery
from Utils.LogFile import LogFile
BPIC15 = "BPIC15"
BPIC15_1 = "BPIC15_1"
BPIC15_2 = "BPIC15_2"
BPIC15_3 = "BPIC15_3"
BPIC15_4 = "BPIC15_4"
BPIC15_5 = "BPI... | [
"stephen.pauwels@uantwerpen.be"
] | stephen.pauwels@uantwerpen.be |
240b97aea52be8a26c3a5cf1be0c510ebeff50e0 | bff37773d1e6c3f4bf8ae4eaa64d7a2d563ecf68 | /backend/users/migrations/0002_auto_20201217_0711.py | 46bfcb7d1b2be14df2fe21ac2b64e683539ccceb | [] | no_license | crowdbotics-apps/mobile-17-dec-dev-16856 | d405478f85248047e00ed97cd4b61fa5ca2a8fd6 | b5c60c39b4e6715b17fa1e7dff6c72527f6ae967 | refs/heads/master | 2023-02-03T00:16:51.489994 | 2020-12-17T14:12:46 | 2020-12-17T14:12:46 | 322,203,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.17 on 2020-12-17 07:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="user",
name="name",
field=... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2c705f84317dd7fb1c449692c21c19157c862a5f | e87d793b3a5facc6e54e0263fbd67703e1fbb382 | /duckietown-world-venv/bin/jupyter-trust | b408b0d21630fc79d1e9443daa6b2a05bc45d37c | [] | no_license | llingg/behaviour-benchmarking | a860bbe709309e13f3e1133d916944882199a40f | 85bbf1a9c2c628ba74480fe7abac3804d6afdac4 | refs/heads/v1 | 2022-10-06T08:21:29.068329 | 2020-06-11T07:02:46 | 2020-06-11T07:02:46 | 259,622,704 | 0 | 0 | null | 2020-06-02T17:52:46 | 2020-04-28T11:52:08 | C++ | UTF-8 | Python | false | false | 302 | #!/home/linuslingg/duckietown-world/duckietown-world-venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from nbformat.sign import TrustNotebookApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(TrustNotebookApp.launch_instance())
| [
"linggl@student.ethz.ch"
] | linggl@student.ethz.ch | |
693351d13cbca26f5dc2f674b07e879c28cc09eb | b3a55844de9ff46972448b56ccadc1e3088adae1 | /poptimizer/data/views/go.py | 8e124ea774a85d74b096f602bcad3c5d32f544ed | [
"Unlicense"
] | permissive | tjlee/poptimizer | 480a155e2f4ffd5d6eda27323c5baa682d7f9f00 | 3a67544fd4c1bce39d67523799b76c9adfd03969 | refs/heads/master | 2023-08-15T10:16:11.161702 | 2021-10-15T15:35:38 | 2021-10-15T15:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | """Предварительная версия интеграции с Go."""
import aiohttp
from bson import json_util
from poptimizer.shared import connections
async def rest_reader(session: aiohttp.ClientSession = connections.HTTP_SESSION):
async with session.get("http://localhost:3000/trading_dates/trading_dates") as respond:
respo... | [
"wlmike@gmail.com"
] | wlmike@gmail.com |
f611a878a16540a8544d96b179da3dbe91d2edf7 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/INTERVIEW-PREP-COMPLETE/notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/_Another-One/Project Euler/Problem 04/sol1.py | ba8a39290c9cd8d45a5050c08b2e276e81e6c6f9 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 872 | py | """
Problem:
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99.
Find the largest palindrome made from the product of two 3-digit numbers which is less than N.
"""
from __future__ import print_function
limit = int(input("limit? "))
# fe... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
665db8b66745cfd5b563df3b665ec192d4fb6d31 | 3513dda3d40c26998288c49daca62f185d70ff84 | /mutations.py | 02525937d356e434f9c3c7d7dd00331bbc3a4232 | [] | no_license | Nan-Do/dag_generator | a6b992d538a94a8ca805aab40dc3053e52d3cd7e | 522ba85c67b2b433063f17169694f21203fc530c | refs/heads/master | 2021-05-02T02:13:22.632888 | 2018-03-01T01:25:06 | 2018-03-01T01:25:06 | 120,881,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,986 | py | from itertools import chain
from random import shuffle, choice, randint
from string import ascii_lowercase, ascii_uppercase, digits
from graph import Position, GraphLink
from utils import DEBUG
class MutateGraph:
"""
This class performs mutations to a graph
"""
def __generate_file_name(self):
... | [
"icemanf@gmail.com"
] | icemanf@gmail.com |
f1504401ecfae9c68665a07df227490f7bdde2e6 | 4f3a4c194451eae32f1ff7cf3b0db947e3892365 | /39/main.py | 380f721980637a5dbb3d095e6966d349ecfd7c39 | [] | no_license | szhongren/leetcode | 84dd848edbfd728b344927f4f3c376b89b6a81f4 | 8cda0518440488992d7e2c70cb8555ec7b34083f | refs/heads/master | 2021-12-01T01:34:54.639508 | 2021-11-30T05:54:45 | 2021-11-30T05:54:45 | 83,624,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | """
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
The same repeated number may be chosen from C unlimited number of times.
Note:
All numbers (including target) will be positive integers.
The solution set must not contain duplicat... | [
"shao.zhongren@gmail.com"
] | shao.zhongren@gmail.com |
482d241112ea052ce15aca3724fab31234ee9eaf | 18ab6f3ac3458db61f506bee8885c70d6de6c06e | /class_12/userhandling/accounts/models.py | 69c6252de80e13838a61f0d57c38f6c4fdd2727d | [] | no_license | coding-blocks-archives/Django2017Spring | 8ca7a14e2d867cb07a60d2dca1c9138cada6c06a | 008c32bc725918e93a0020b39e226c634b6f2e0f | refs/heads/master | 2021-06-14T15:19:40.830677 | 2017-04-16T11:22:04 | 2017-04-16T11:22:04 | 79,050,330 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django import forms
# Create your models here.
class MyUser(models.Model):
user = models.ForeignKey(User)
name = models.CharField(max_length=50, default='')
address = models.CharField(max_length=3... | [
"skd.1810@gmail.com"
] | skd.1810@gmail.com |
d3cdf6d0c1f087462067307c535a1697419582a0 | 6f50200dd3b99ba36e5e2902c477f80535e85c95 | /Lecture/Lecture17-Heaps/std/exceptions.py | 47f1908dabe31c08ae6582898dcafb23c66f4bd8 | [
"MIT"
] | permissive | tonysulfaro/CSE-331 | 8d767f0e381d613593016d06e0222cb6dca00ab6 | b4f743b1127ebe531ba8417420d043e9c149135a | refs/heads/master | 2021-06-25T18:36:45.122524 | 2020-10-19T05:06:22 | 2020-10-19T05:06:22 | 144,987,165 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | class Empty(Exception):
"""Error attempting to access an element from an empty container."""
pass
| [
"tony116523@gmail.com"
] | tony116523@gmail.com |
4255b09ee52495dfc8984febfc0cf9cfe0f5ca64 | d86a7fcc543ab6066ca772f67551943ec4cad31a | /perf/metrics/aggregator.py | 4d53cd7d3a0a44abc20d2129109d660a3f90cf05 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fossabot/lake | 184b4db5a14725da919093ef0cb392c329166b89 | 75f2bf10ef50bb4979e52a7ce539ea5de00d3647 | refs/heads/master | 2022-12-11T10:00:46.239848 | 2020-09-16T05:04:37 | 2020-09-16T05:04:37 | 295,928,404 | 0 | 0 | Apache-2.0 | 2020-09-16T05:04:36 | 2020-09-16T05:04:35 | null | UTF-8 | Python | false | false | 1,189 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import time
import os
import threading
class MetricsAggregator(threading.Thread):
def __init__(self, path):
super(MetricsAggregator, self).__init__()
self._stop_event = threading.Event()
self.__store = dict()
self.__path = path
self.__... | [
"noreply@github.com"
] | fossabot.noreply@github.com |
4e9776b12ce251408a9c5871641abe9f9225f6b2 | d79f3a31d173f18ec112c521acdcee8e8e73724d | /getid.py | 8a6fcb90734975a7c0dfc8ede803ef708a2c3468 | [] | no_license | k156/hello | 3de815de569b38f8260e774e57b138f4da43f480 | f5a7f386d3f78d15d7f166a95ad25724e168f472 | refs/heads/master | 2020-04-04T23:15:38.252126 | 2019-05-03T05:57:00 | 2019-05-03T05:57:00 | 156,352,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | from time import sleep
from selenium import webdriver
from bs4 import BeautifulSoup
import requests
USER = ""
PASS = ""
browser = webdriver.Chrome()
browser.implicitly_wait(3)
# 로그인 페이지에 접근하기.
url_login = "https://www.yes24.com/Templates/FTLogin.aspx?ReturnURL=http://ticket.yes24.com/Pages/Perf/Detail/Detail.aspx&... | [
"jm_91@live.co.kr"
] | jm_91@live.co.kr |
c83d71dab57d4a80dd8b19afa5d84df75f156ca3 | 09e60fdb635f331c139d191a5c53244afb2302e7 | /_footer.py | 3dc47ab91d78dfc77868319be2897e3a7fc17ca7 | [
"LicenseRef-scancode-generic-exception",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | GrahamDumpleton-abandoned/ose | 5e88dce5883f2e648eac992f1034a7a78bb81189 | 7b1d1a5de4812cdd5daab40d3604a76474389d47 | refs/heads/master | 2021-01-05T11:17:53.152854 | 2012-12-23T10:03:53 | 2012-12-23T10:03:53 | 241,006,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | def footer(req):
return "Copyright © Dumpleton Software Consulting Pty Limited"
| [
"devnull@localhost"
] | devnull@localhost |
b84527ea599f8959403e6dcbf05235b153ccf8a0 | 888eaf95c0ec15d5649697a29cfa6973cde91fda | /namebox/venv/bin/easy_install-3.6 | a8c62fbeed84e6cdb3a64e1ca58bf9fc55302953 | [] | no_license | mnojha/namegenerator | e153b169f42c418a0ef73b1efedf68755305a912 | b13a9ad50d49c0efdf5cdcd17af0462c716589f9 | refs/heads/master | 2020-04-02T13:55:13.050458 | 2018-10-29T13:08:12 | 2018-10-29T13:08:12 | 154,502,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | 6 | #!/home/lap01/workspace/namebox/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mansi@webllisto.com"
] | mansi@webllisto.com |
dbb2d02825e29858e89048ca1518fffac13e6b25 | ba160f9c149a0898213426f5472896b5c65c85cd | /linearizeWtrack.py | 1a2061064465a8610e3a955f2b59e195c40b522a | [] | no_license | afcarl/MoG_tools | 652f9b69ec4ad8b6929c3e151a15ec3d752ae658 | f26efde88eff46a756bc534486ac96f0a1c68413 | refs/heads/master | 2020-03-18T07:20:15.235751 | 2017-09-22T14:32:33 | 2017-09-22T14:32:33 | 134,445,693 | 1 | 0 | null | 2018-05-22T16:44:05 | 2018-05-22T16:44:04 | null | UTF-8 | Python | false | false | 10,616 | py | import scipy.io as _sio
import pickle
#import ExperimentalMarkContainer as EMC
import filter as _flt
from os import listdir
from os.path import isdir, join
import EnDedirs as _edd
from filter import gauKer
import utilities as _U
# The animal tends to spend much of its time in arms 1, 3, 5
# At least for well-trained... | [
"kensuke.y.arai@gmail.com"
] | kensuke.y.arai@gmail.com |
5fb093f8c41cb92f675cd2da841b33b45f64efcf | b50b37c18bd5b34e30766ce2f5813d02a700604b | /page_locators/orderbook_page_locator.py | c5ad42d691b786404a8302b9a1c3454b60d47889 | [] | no_license | Hanlen520/app_automation_sh | d1d7ea6250e7e8b1fdb3a6f01340010e3a3a1d40 | 3fa2f30b644de5ea46cb21e4e6c10e90aab73779 | refs/heads/master | 2023-03-15T18:15:14.279001 | 2020-02-10T02:36:00 | 2020-02-10T02:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,786 | py | # -*- coding: utf-8 -*-
"""
=================================
Author: keen
Created on: 2019/11/5
E-mail:keen2020@outlook.com
=================================
"""
from appium.webdriver.common.mobileby import MobileBy
class OrderBookPageLocator(object):
# 账单按钮
order_nav_loc = MobileBy.ANDROID_UIAUTOMATOR, 'n... | [
"keen2020@outlook.com"
] | keen2020@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.