blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7168ef1d67ba0aec51dcd92359bfc7c437414145 | b00a2c1e97bb52cdab1fa217797ae1bb42fea759 | /Endpoint.py | 025ce7e9d95801700620322ff1ce0df35ed7e65d | [] | no_license | nunu2021/DijkstraPathFinding | 365ccfa5d3dc10db9758f6c8b6d559dadded8cdb | fc116bc6e7f8e2ee2f839635dfe548f9d7223433 | refs/heads/master | 2023-06-06T03:42:55.686814 | 2021-07-03T17:19:57 | 2021-07-03T17:19:57 | 382,671,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Endpoint:
def __init__(self, which_endpoint, color, x,y, complete_bool):
self.whichendpoint = which_endpoint
self.color = color
self.position = tuple(x,y)
self.complete = complete_bool
def movePosition(self, x, y):
L1 = list(self.position)
L1[0] = L1[0] + x... | [
"labdhijain753@gmail.com"
] | labdhijain753@gmail.com |
cc33fe1f9e4951a96748c625f6e5551b73f5a8c7 | ac7419a4d5d25ee9c6ce821081c9d9134702f3c7 | /bin/classes_ex.py | 34c145cb7e2383e2be8a12244603909f9f0cc817 | [] | no_license | rajatgoel789/Python_basics | a82215feb2b333d14e42883439bd097250a98ab4 | 22650ecb785c1debcb614cf60f1f18e3e30133c3 | refs/heads/master | 2020-07-31T07:30:53.358059 | 2019-09-27T08:23:00 | 2019-09-27T08:23:00 | 210,530,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | # multiple Objects
# Inheritance
# Operator Overloading
x = 10
y = 20
# print(x + y)
# print(x.__add__(y))
class Account1:
bankname = "ICICI" # class variable
def adduser(self, n):
# print(self)
self.name = n
def viewuser(self):
return self.name
@clas... | [
"noreply@github.com"
] | rajatgoel789.noreply@github.com |
3057eac6538051f09b7e1a9b13902ca179d67bc2 | 6fe54e2c73fab48becf7d3d0f974c801a15429c1 | /ControleFinanceiro/sistema/models.py | 5c77148fd52e05aa076778c6126be5d36ed4d763 | [] | no_license | fczanardo/django | be134bd7ca9b98af2dc7b0a20d5c134b8fd2b2de | 9bddaa45e010cc589cc9fa011083e137182dc9c9 | refs/heads/master | 2021-01-10T12:12:39.284682 | 2015-10-17T13:25:15 | 2015-10-17T13:25:15 | 44,437,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
from datetime import datetime
class TipoDespesa(models.Model):
nome = models.CharField(max_length=100)
def __str__(self):
return self.nome.decode("utf-8")
class Despesa(models.Model):
tipoDespesa = models.Fore... | [
"fczanardo@gmail.com"
] | fczanardo@gmail.com |
d374e8946c982e03abe6e0ae97d1ad02333e3bc6 | af082ba017c5963a966242235b6da037bf65b036 | /Chapter08/chapter8_tutorials/fetch_ros/fetch_calibration/scripts/calibrate_robot | c13fb7bbf481a74f45de2639afbd206ad786d36e | [
"MIT"
] | permissive | PacktPublishing/Robot-Operating-System-Cookbook | 226f885b17cb92b169c09aed3b8c54974269b0a4 | c5ee97aa8c2c3a3ee7c0feb8e3020e94dddefe0f | refs/heads/master | 2023-01-29T19:37:29.163372 | 2023-01-18T10:21:21 | 2023-01-18T10:21:21 | 139,707,483 | 82 | 38 | null | null | null | null | UTF-8 | Python | false | false | 8,941 | #!/usr/bin/env python
# Copyright (C) 2015 Fetch Robotics Inc
# Copyright (C) 2014 Unbounded Robotics 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/licen... | [
"nileshs@packtpub.com"
] | nileshs@packtpub.com | |
0302d39e78724531b2f09e38788aa5f669609958 | 82ca891008793f570668a7f2c760ae0f22d40494 | /src/VAMPzero/Component/Wing/Aileron/Geometry/tipYLocation.py | 078b55d940fb68c2cb44be5e6bcef8800cd0f839 | [
"Apache-2.0"
] | permissive | p-chambers/VAMPzero | 22f20415e83140496b1c5702b6acbb76a5b7bf52 | 4b11d059b1c7a963ec7e7962fa12681825bc2f93 | refs/heads/master | 2021-01-19T10:49:06.393888 | 2015-06-24T10:33:41 | 2015-06-24T10:33:41 | 82,208,448 | 1 | 0 | null | 2017-02-16T17:42:55 | 2017-02-16T17:42:55 | null | UTF-8 | Python | false | false | 2,598 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | [
"daniel.boehnke@dlr.de"
] | daniel.boehnke@dlr.de |
b8e22c9f0854b5dda5191d086ca45baaa3e98d35 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/twelve-days/5d8ab06a7a6b4acdb6be11d098786e90.py | 8c8955c509d158350c07858c3b2a1c0d850b89cb | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 2,893 | py | #twelve-days
def verse(day):
day = day
if day == 1:
return "On the first day of Christmas my true love gave to me, a Partridge in a Pear Tree.\n"
elif day == 2:
return "On the second day of Christmas my true love gave to me, two Turtle Doves, and a Partridge in a Pear Tree.\n"
elif day ==3:
return "On the t... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
dc00c7b46443eedbd055a6a450758ba00349fc60 | fd00c22c5abbf2f213ef0840a33b68fab7ad3ad0 | /contact-tracing-demo/src/prox/place.py | 293db88cab5848d7bdb0ad018782462001f0eb6e | [
"MIT"
] | permissive | diffix/coronaVirus | c1591f916ae9bbe846d48d50727d3e030f5b768e | 2ec2a845b02e6354d82fc086c06a07b5ad7c99b9 | refs/heads/master | 2022-07-15T16:49:22.237979 | 2022-06-08T15:11:34 | 2022-06-08T15:11:34 | 250,565,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,284 | py | import datetime
import json
import random
from common import WarningCounter
class PlaceInfo:
"""
"""
placeTypes = {
'home': {
'work': {
'minCapacity': 1,
'maxCapacity': 6,
'minArrive': None,
'maxArrive': None,
... | [
"paul@francis.com"
] | paul@francis.com |
6b0c2baf8952bfe46d3c9ac541be5644748044b9 | e6a48a7d5ee2df232355f5d5488fa1cd3c53ce89 | /tests.py | 7f298b580cf0a2453c734408872a2479a954b2cd | [] | no_license | charleycodes/testing-py | f1e07cb678d52e26cd1cdb6bc34dcf7a3c2b331f | 963a50d0074083cf02a253ef77cef46db5c7ff7a | refs/heads/master | 2021-06-05T11:10:35.950108 | 2016-10-14T19:57:53 | 2016-10-14T19:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | import unittest
import party
class PartyTests(unittest.TestCase):
"""Tests for my party site."""
def setUp(self):
self.client = party.app.test_client()
party.app.config['TESTING'] = True
def test_homepage(self):
result = self.client.get("/")
self.assertIn("I'm having a p... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
4f5bb79b857664488c0166556416293328d76651 | b45230162af7ea65416f61cbbbcf1011a422692b | /tests/test_pygrade.py | 3508d0f3021904959e65229d569c26efa43bef25 | [
"ISC"
] | permissive | Joaron4/pygrade | 47a12ce4e8925d20e0d4384f4f39a102bf149f97 | 68416ba92afd3ef634a83560935941d03265df8f | refs/heads/master | 2023-03-16T18:47:48.576434 | 2020-12-01T02:52:15 | 2020-12-01T02:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_pygrade
----------------------------------
Tests for `pygrade` module.
"""
import unittest
from pygrade import pygrade
class TestPygrade(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_000_something(s... | [
"aronwc@gmail.com"
] | aronwc@gmail.com |
93d2a93c3766b10060f1163b0518cd03a037d4de | e2468c60810764971f2dae2b959650b553042810 | /1859_sortingTheSentence.py | e35fc60b5dd3422f73069456f2c324e9ddef7fc4 | [] | no_license | awesome-liuxiao/leetcodesolution | 9a01b6f36266149ae7fe00625785d1ada41f190a | 3637cd1347b5153daeeb855ebc44cfea5649fc90 | refs/heads/master | 2023-06-08T13:42:14.653688 | 2023-06-01T08:39:35 | 2023-06-01T08:39:35 | 213,380,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Solution:
def sortSentence(self, s: str) -> str:
ls = s.split()
res = [""]*len(ls)
for word in ls:
res[int(word[-1])-1] = word[0:len(word)-1]
return ' '.join(res)
X = Solution()
s = "is2 sentence4 This1 a3"
print(X.sortSentence(s))
s = "Myself2 Me1 I4 and3"
prin... | [
"lio4072@hotmail.com"
] | lio4072@hotmail.com |
a02d7df63661429a939a5c439eb0d240cd5fa637 | 593b4bee32a0041f441a9b8b899f7644c51db35d | /mandelbrot_set.py | 01b16f22520eed42a133c1dd5989c6f732ebc862 | [] | no_license | fomindanny/Mandelbrot-Set | 9ee26dd19de694a895875ff13edf7ce584ad3fa2 | 30771387972c92e580669359c55715e904c55596 | refs/heads/master | 2023-04-14T01:16:28.594646 | 2021-04-25T17:04:12 | 2021-04-25T17:04:12 | 360,883,267 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def iterations_until_diverge(complex_number: complex, threshold: int) -> int:
"""Returns an amount of iterations until function diverges.
Function is z(n + 1) = z ^ 2 + c.
Function diverges when |z| > 4.
"""
... | [
"dannyfomin@gmail.com"
] | dannyfomin@gmail.com |
ce03108274b37dc8809c8883264cd853956d525c | 17f918c06ca476f79d28d712abfa356b2dcfb6c7 | /koishi/plugins/automation_touhou_feed/events.py | c0284afe3effa51079eda45d6079ea30d3d6ee10 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | HuyaneMatsu/Koishi | eb87693ad34da2483efe2b6bdaa4f3fae417e491 | 74f92b598e86606ea3a269311316cddd84a5215f | refs/heads/master | 2023-08-23T22:54:37.006530 | 2023-08-23T20:26:49 | 2023-08-23T20:26:49 | 163,678,458 | 17 | 6 | NOASSERTION | 2023-06-14T14:18:27 | 2018-12-31T15:18:31 | Python | UTF-8 | Python | false | false | 1,167 | py | __all__ = ()
from ...bots import SLASH_CLIENT
from ..automation_core import get_touhou_feed_enabled
from .logic import (
reset_touhou_feeders, reset_channel, should_touhou_feed_in_channel, try_remove_channel, try_remove_guild,
try_update_channel, try_update_guild
)
@SLASH_CLIENT.events
async def channel_cr... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
fc9a67b56288b8d36e5bd0d08e89b03d60e15396 | 17665a2daa763d499599d218492953a1cd9e6aad | /Honors Thesis Research/Code/Old Versions/data_redux_v2/spectrum.py~ | 404e55285dd359e5b7cb7b35d00618f31fdc0d7f | [] | no_license | rfasullo15/Stellar-Classification | 332267bdc1aa69244f832b4b579a135c133b51be | 6f0dbb802ac0be6823b3f28f3d14cd5e0841220d | refs/heads/master | 2022-09-14T13:51:36.383409 | 2019-05-27T15:23:10 | 2019-05-27T15:23:10 | 188,866,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | '''
The purpose of a spectrum object is to maintain the calculated values for a given spectrum.
History:
6/25/2018: Class created
'''
import numpy as np
import copy
class Spectrum:
def __init__(self, waves, name):
self.waves = waves
self.name = name
self.isSolved = False
self.values = [0,0,0]
self.grps... | [
"90rfasullo@gmail.com"
] | 90rfasullo@gmail.com | |
6f3d7b1e2e7c737ef8c2cd6fd829fb2a589d34b0 | 8aa9ecfe421b196589b6c9fdc0e954d02d927feb | /examples/reference/models/multi_select_server.py | b34672b41c365a5a26a006ee7da904e5a58dc470 | [
"BSD-3-Clause"
] | permissive | hongyu9000/bokeh | b384484925c6c145e4eaf87460a3f776095e81ed | b19f2c5547024bdc288d02e73fdb65e65991df5f | refs/heads/master | 2020-09-03T15:57:31.157443 | 2019-11-04T05:25:46 | 2019-11-04T05:25:46 | 219,503,733 | 1 | 0 | BSD-3-Clause | 2019-11-04T13:06:20 | 2019-11-04T13:06:19 | null | UTF-8 | Python | false | false | 1,279 | py | ## Bokeh server for MultiSelect
import pandas as pd
from bokeh.io import curdoc
from bokeh.layouts import row
from bokeh.models import ColumnDataSource
from bokeh.models.widgets import MultiSelect
from bokeh.plotting import figure
x=[3,4,6,12,10,1]
y=[7,1,3,4,1,6]
label=['Red', 'Orange', 'Red', 'Orange','Red', 'Orange... | [
"bryan@bokeh.org"
] | bryan@bokeh.org |
b39c21cee150b4a79bb52e15acbc4d34f7fd77a1 | 60509c5e1956cb64d0220e9fc4542db7ef18bbf9 | /data_processor/tasks.py | 57aaa7dceaa00bf6eb7e982b81a54c0837862e4d | [] | no_license | Nemesisesq/streamsavvy_dataprocessing | 18989378c8aa6c5a250449e74d93d64303874092 | 6c814818c0bac27c99ad4a5c8799648a5d9e637a | refs/heads/master | 2021-06-15T02:38:32.982171 | 2017-01-17T16:38:49 | 2017-01-17T16:38:49 | 61,290,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | import requests
import scrapy
from celery.schedules import crontab
from celery.task import periodic_task
from celery.task import task
from celery.utils.log import get_task_logger
from datetime import datetime, time
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
from co... | [
"nemesisesq@gmail.com"
] | nemesisesq@gmail.com |
c6dcaaa1d65c21d6af0c71bf369ddeb0b511691a | 0c5139b940c94b17cb60202ba84017c001208a08 | /mysite/polls/admin.py | 78baf719c3e0f7f26118abbe4690636368d8c916 | [] | no_license | joshuafierro/poll-app | 8c4a6591a7b94e5f90ec35c7177dd3ef920e5734 | 1f27419584e13f80a9cfcc79f8a3e0a803f7e5c1 | refs/heads/master | 2020-04-09T03:25:55.054339 | 2018-12-03T02:01:03 | 2018-12-03T02:01:03 | 159,982,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.contrib import admin
from .models import Question, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
# fields = ['pub_date', 'question_text']
fieldsets = [
(None,
{'fields': ['questi... | [
"josh.fierrosga@gmail.com"
] | josh.fierrosga@gmail.com |
c7ddb6e456c167c0205664de7a610f2034772703 | d33d722990fbbad37314f605aa2f559fe5112266 | /app.py | 4cdd3176daa3c4bf1bcc15be4a46ae3c4fda439e | [] | no_license | Alicepinch/everything-vegan | c4e03befb3b099eced347b026b8f66c574ed937a | 95d8dc2e06da4433d0a663fece65a50138e45bc7 | refs/heads/master | 2023-04-03T17:01:27.088114 | 2021-04-16T17:19:47 | 2021-04-16T17:19:47 | 339,351,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,626 | py | import os
from flask import (
Flask, flash, render_template,
session, request, url_for, redirect)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from flask_sslify import SSLify
from datetime import date, timedelta
from werkzeug.security import generate_password_hash, check_password_hash
fr... | [
"alicepinch@hotmail.co.uk"
] | alicepinch@hotmail.co.uk |
33c67722dbb06879c8fb968c5865e09c1513e5c0 | 21fc3622bb7a3a89a8ed9dec932919936fb1ce36 | /buildout-cache/eggs/plone.app.dexterity-2.1.20-py2.7.egg/plone/app/dexterity/browser/types.py | deb8a418a6eb1ee8ec737110deb355f2e9dceb54 | [] | no_license | erlantostes/plone | 4bc1ccba9e0ab77ce5370489f6b47b806c889c29 | 3a5fb7574cee269a99b148eef695256805ce1a45 | refs/heads/master | 2020-04-01T18:04:32.927641 | 2018-10-17T11:22:59 | 2018-10-17T11:22:59 | 153,469,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,233 | py | # -*- coding: utf-8 -*-
from OFS.SimpleItem import SimpleItem
from Products.CMFCore.utils import getToolByName
from Products.Five.browser.pagetemplatefile \
import ViewPageTemplateFile as FiveViewPageTemplateFile
from ZPublisher.BaseRequest import DefaultPublishTraverse
from plone.app.dexterity import _
from plone.... | [
"root@REIT016437.ifb.local"
] | root@REIT016437.ifb.local |
55d1af3af949c3e159d60b095ce259600e812de8 | 156f5362e7381b96f3b2839f94de8778b005274d | /tests/bindings/test_bindings.py | 99e0ca3c3d74647d7e7e35d5cb0769064383656b | [
"MIT",
"CC-BY-3.0"
] | permissive | sairam4123/godot-python | 3f8bfcd989ae1b06ec6bf5e01462895b9f5f5fe0 | a95ed14f6e53ae4eb59e6bd03efb0db90b070bc6 | refs/heads/master | 2021-05-20T20:43:18.764693 | 2020-03-02T13:49:06 | 2020-03-02T13:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | import pytest
import godot
from godot import Vector3, Object, Node, Node2D, PluginScript, OK
def test_free_node():
v = Node.new()
v.free()
# `check_memory_leak` auto fixture will do the bookkeeping
def test_expose_contains_constant():
assert "OK" in dir(godot)
assert OK is not None
def test_e... | [
"emmanuel.leblond@gmail.com"
] | emmanuel.leblond@gmail.com |
78a7139ed792f4ea8911bc6eaf9aa8468d422fd8 | 000a2564c839a25955faf9cec65c3290956b17b7 | /pygeoapi/config.py | f9fe0d3efe67d372f8807f8d77e480a26a3fcbad | [
"MIT"
] | permissive | emotional-cities/pygeoapi | 6734064f891bb14343c004f04864e531fd0d4852 | 6701d7aaf750d3076907784ec26321b6cb55dc64 | refs/heads/master | 2023-04-16T02:34:37.229234 | 2022-03-04T11:45:56 | 2022-03-04T11:45:56 | 388,576,649 | 0 | 3 | MIT | 2022-03-31T15:12:40 | 2021-07-22T19:34:58 | Python | UTF-8 | Python | false | false | 2,593 | py | # =================================================================
#
# Authors: Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2021 Tom Kralidis
#
# 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 ... | [
"noreply@github.com"
] | emotional-cities.noreply@github.com |
3f47139f79628be8532328c2add281c440ca5961 | 7f03e2dab9450d44ef82aa4a671705539d0923c9 | /自动化工具/__init__.py | cc591a1ebeb27b4f0c741b550ba0545314ab3f74 | [] | no_license | A-fish-in-Lake-Baikal/python-exercise | 61fc62549e6d1db1056f80e4d560cd56cd55af54 | f4b8da074cd61e1579740163d93dc909da5780ac | refs/heads/master | 2023-06-24T15:06:13.036918 | 2023-06-09T03:06:55 | 2023-06-09T03:06:55 | 132,322,783 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # -- coding: utf-8 --
# @time :
# @author : 马维畅
# @file : .py
# @software: pycharm
| [
"1627967707@qq.com"
] | 1627967707@qq.com |
43d0b28b0b29cb0bb324df2d02c8001c4efe022f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_sting.py | bafade4da0ff73720d1509ad0c570e87d50fe446 | [
"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 | 650 | py |
#calss header
class _STING():
def __init__(self,):
self.name = "STING"
self.definitions = [u'If an insect, plant, or animal stings, it produces a small but painful injury, usually with a poison, by brushing against the skin or making a very small hole in the skin: ', u'to cause sharp but usually temporary pain:... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5343d009bb6e6979cd372eac83f506835b25c72f | e1ef77ee96f043c2f1a3c97f6b6b3364de00f2e3 | /simvars.py | 13da92dc9a92974e0449390d526b61c783cac8d6 | [] | no_license | awelch17/gsw-sim | defaaaf31f332b65cc3f374f482eb7ff82a2987a | d85210e6ad6651ba878fbe954873b73361564ac5 | refs/heads/master | 2022-04-07T21:20:30.731991 | 2020-02-24T22:47:06 | 2020-02-24T22:47:06 | 242,860,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | WIDTH = 300
HEIGHT = 300
SCALE = 5 | [
"awelch17@geffenacademy.ucla.edu"
] | awelch17@geffenacademy.ucla.edu |
83246efd64e69461197ca4f0db477e3fc3ab28b5 | 823891eb0faab76c4276c0301c8e2271a94cdedc | /blog/migrations/0001_initial.py | 78aa5eefc032c5fb135df89b91369985ba1d4de7 | [] | no_license | jrcl/my-first-blog | 49846c319cf93aa5a9e51c56b649a14cb420c5d4 | 5049e3e2202fb5ced3971e38e1c0140ea206620a | refs/heads/master | 2021-01-19T05:00:53.955329 | 2016-07-30T17:07:00 | 2016-07-30T17:07:00 | 64,555,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-30 15:57
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | [
"jrcl_@live.com"
] | jrcl_@live.com |
3700d5b41ee354b7571d296caae7e7d00f26b52c | 49961fcc0e797b0e876298bd85a2302a252b9368 | /PY/qrcode.py | bfd90cead610c7c2971db361f7c7a94dbd9c7a24 | [
"MIT"
] | permissive | digitalrobertlima/BrCrypto | a6780c74a3543ac47c8de23cb135045d9cf4a24d | a49a0020266bf89e76db7b1f57792727eab3470f | refs/heads/master | 2023-04-20T23:12:01.976224 | 2021-05-08T17:44:48 | 2021-05-08T17:44:48 | 284,328,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import pyqrcode as pqr
import png
import io
url = pqr.create('Hello World')
with open('code.png', 'w') as fstream:
url.png('code.png', scale=5)
url.png('code.png', scale=5)
buffer = io.BytesIO()
url.png(buffer)
print(list(buffer.getvalue())) | [
"ge.crio123@gmail.com"
] | ge.crio123@gmail.com |
a37eb4e9b811f81b05aa31c0731b3975910c9fa1 | 3db9480f4d7ab4c177dca87d8bc9a9d3cdf7569b | /lib/sedna/algorithms/hard_example_mining/__init__.py | 2f9b4c5c779e90962922e2f6c4d347a04257dcbf | [
"Apache-2.0"
] | permissive | ZHANGJun0007/sedna | ffc258974e46a1d1754a6c127d8e6280d6fdc0dd | c3475e2917e375826bc884c21378bc66150af656 | refs/heads/main | 2023-07-25T03:53:32.916432 | 2021-08-23T06:39:12 | 2021-08-23T06:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # Copyright 2021 The KubeEdge Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"joeyhwong@gknow.cn"
] | joeyhwong@gknow.cn |
eaf9c474202dbe579718661a3a2f69fec186fff9 | 4e362dc4df6287682a464e8e37f4f87a59136e4c | /web/controllers/home.py | dcc6a061c82831138d4cf9291a75944b079274a2 | [] | no_license | StrokaLab/JAnaP | 5279f4a25e889890a1aea544d7c8c390cdbcacda | 7624b4931fc1e545560e95d18b15017c244dab92 | refs/heads/master | 2021-08-24T13:54:18.164971 | 2021-06-24T18:43:30 | 2021-06-24T18:43:30 | 172,580,016 | 0 | 2 | null | 2021-06-24T18:43:31 | 2019-02-25T20:31:55 | Python | UTF-8 | Python | false | false | 194 | py |
from controllers import app
from controllers import configuration
from flask import render_template
from flask import redirect
@app.route("/")
def getHome():
return redirect("/projects")
| [
"kelsey.gray0@gmail.com"
] | kelsey.gray0@gmail.com |
5314fbf518948b0492c4a997c02f31f89b594a84 | 010a2317be0f4c278c7d9efe3b2881135ceacc6b | /DurgaSir/td_module_Math2.py | 7a2015d2479b198bb5b227f40de3716347f9e86e | [] | no_license | rkandekar/python | 34a774343236a5771557216223831cc7470161b7 | ed459a89611f752c158cfbe7f59408ec533b2533 | refs/heads/master | 2020-03-23T02:56:13.413127 | 2018-07-15T06:06:20 | 2018-07-15T06:06:20 | 141,000,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from math import *
print(sqrt(4))
print(ceil(10.2)) | [
"noreply@github.com"
] | rkandekar.noreply@github.com |
9622490f20cf321f83d5fabf121619a564816f02 | 37f488aa42e043a07ce4a706319844d932f1cd22 | /eval/test_.py | 6bac5d2fb1345d9ed11ab3380665469f1e717561 | [
"Apache-2.0"
] | permissive | almoslmi/e2e_EL_multilingual_experiments | b149f8a4769a127d0e257f7889929eb3e922080f | a52745435f897d8ed5847d80e8bbce4175fb348f | refs/heads/master | 2020-06-17T22:39:03.406241 | 2019-06-20T04:50:17 | 2019-06-20T04:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import os
import sys
import json
from tqdm import tqdm
from keras.models import load_model
from sklearn.metrics import classification_report
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
sys.path.append("./modules")
import candidate_generator as cg
import entvec_encoder as eenc
import laserencoder as lenc
import predict... | [
"shun.sugiyama@jp21.com"
] | shun.sugiyama@jp21.com |
f9603f7316c51c5a75eec543b9b2913331dc44e3 | 3ac1ca18816430f0728dae6ebb71a728999f289b | /setup.py | 77d94746200501fb2b7a29488f822d35057ead3e | [] | no_license | DSLituiev/pdscatter | 777cf46ad8553d01a58d665b5d0e41ba1d23670d | a510607faa41ec2bc627a910a3b6a74246569f26 | refs/heads/master | 2020-06-05T08:39:58.691462 | 2015-11-26T00:30:35 | 2015-11-26T00:30:35 | 38,710,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:... | [
"d.lituiev@gmail.com"
] | d.lituiev@gmail.com |
3ed358220dd479af523de7acafc28a6d237fcb72 | c5f50b946ca8ff2d85204c8bf3feefd1e3491e26 | /code/PI/pub.py | 815dd4e02dd3e6285c6d776554e1c1ac74a24124 | [] | no_license | jackwaines/iot | 891ecbf3bc9cc856f92a13dbbc6250d4d14dd980 | e1e0ae5ef326a065d1610bdb07853d0f738cf52c | refs/heads/main | 2023-04-12T21:32:30.258395 | 2021-05-13T09:10:07 | 2021-05-13T09:10:07 | 366,326,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | # import libs
import paho.mqtt.client as mqtt
import os
import time
import random
from time import strftime
from datetime import datetime
import requests
import json
import schedule
import numpy as np
import tensorflow as tf
# load the AI model
model2 = tf.keras.models.load_model('./my_model')
# MQT... | [
"noreply@github.com"
] | jackwaines.noreply@github.com |
205439b9d4515ba300cfde06099f3161d70b93d5 | 6595a2006c84aa78eea5582eae766190429d303f | /feed_bot/main.py | 7bad07edfb5e18dde8abbe0f40a9b989725774ff | [
"MIT"
] | permissive | delimbetov/telegram_filtered_feed | 40815053520d61b61bbbcd73498c12bd3773985c | 9e1fa9376d08a8dc32b15f437f289d1967b5b305 | refs/heads/main | 2023-04-09T02:59:07.825779 | 2021-03-29T22:17:38 | 2021-03-29T22:17:38 | 352,798,910 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | from common.logging import configure_logging
from common.resources.localization import load_localizations
from bot import Bot, BotConfig, PersistenceConfig
from common.persistent_storage.factory import PostgresConfig, PersistentStorageType
import config
import sys
def main():
# Configure logging
configure_log... | [
"1starfall1@gmail.com"
] | 1starfall1@gmail.com |
8ff0cf9f0326d522054d28a689a09a1bba5d292a | 1c8ea05ed65d76ab0e7bf8e642e0573e34d880ab | /BOJ/continue_number.py | fd2990487b7814cfe23effa2dc2d61bb8c9f9285 | [] | no_license | PARKJUHONG123/turbo-doodle | 1d259c88544d5e52ed375f119792363f5c1b4377 | 6b073281236af50949042c1a6b269752037cb829 | refs/heads/master | 2023-01-14T13:41:58.299164 | 2020-11-23T12:12:30 | 2020-11-23T12:12:30 | 259,669,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # 1~9 : 9
# 10~99 : 90
# 100~999 : 900
# 1000~9999 : 9000
import sys
def nine_num(size):
num = pow(10, size - 1)
return num * 9
N = sys.stdin.readline().split()[0]
length = len(N)
answer = 0
for i in range(1, length):
answer += nine_num(i) * i
num = pow(10, length - 1)
answer += (int(N) - num + 1) * leng... | [
"corallines@naver.com"
] | corallines@naver.com |
24439cacca27563dbc4956aa58d4bbc47e183e0b | 4de627abbc287bfede3c4cf2deb6531788d58d7f | /devel/lib/python2.7/dist-packages/novatel_gps_msgs/msg/_Trackstat.py | ed9622f378f02a9c08b2e054d5611dec368ffca5 | [] | no_license | ghxguo/turtle_drive | 8412ec3d3486fc8f8715dd09c151ea329c288751 | 3d71dcea46f06497c86d6986d3cb3bd10a53cbd8 | refs/heads/master | 2020-05-17T17:16:49.368592 | 2019-04-23T14:16:15 | 2019-04-23T14:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | /home/nishanth/TurtleStuff/turtle_drive/devel/.private/novatel_gps_msgs/lib/python2.7/dist-packages/novatel_gps_msgs/msg/_Trackstat.py | [
"nishmankame@vt.edu"
] | nishmankame@vt.edu |
7b8246fb813397ebd4875bdf28fb67ca041509c4 | 5c79958d97d03452adb4ef076c0a315883dc8bcd | /python/oneflow/compatible/single_client/test/ops/test_l1loss.py | a487e4cfd29a1b8930e5db611c9d6693737bdc77 | [
"Apache-2.0"
] | permissive | CHzhangi/oneflow | a9fcf0eeeb6a6873ae7234ad811c9dfb9f8ffec6 | 4ea3935458cc83dcea0abd88dd613f09c57dc01a | refs/heads/master | 2023-07-09T21:59:07.442976 | 2021-07-27T09:27:19 | 2021-07-27T09:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,735 | 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"
] | CHzhangi.noreply@github.com |
95a1ebef8e072e4f52379db3b973967ae27f05b7 | 486cf1ffd184a184d51605e4016bf9825c0a7aae | /packages/openshift/status.py | de68f37e15f267d0635f67b64ec81a30c83eafa5 | [] | no_license | jupierce/openshift-client-python | 3a148e9117008bac8882283ba580aca74ed743d1 | 05aaa8d9290d42c03650bbc900421231410f85dc | refs/heads/master | 2021-06-24T09:15:55.711068 | 2019-07-18T16:18:16 | 2019-07-18T16:18:16 | 179,127,261 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | #!/usr/bin/python
from openshift import Missing
def is_route_admitted(apiobj):
return apiobj.model.status.can_match({
'ingress': [
{
'conditions': [
{
'type': 'Admitted',
'status': 'True',
... | [
"jupierce@redhat.com"
] | jupierce@redhat.com |
6551775da0fef49383c917f13bf8624a2a168ddc | 936c91e915539171878b602d6fb186a2d095dc13 | /flatten.py | 214e05468e8fa7b79b7abea6476085e67bbaa5b4 | [] | no_license | sharababy/ga-p | e05c6f2c27ff7dedb238d1d2a822e002907709c3 | a4630e09097d67cc85e1d24a16694d09b2a018b1 | refs/heads/master | 2020-03-29T21:15:04.175964 | 2018-09-27T09:43:17 | 2018-09-27T09:43:17 | 150,357,689 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | import csv
import numpy as np
import json
X = []
def flatten(csvf):
with open(csvf) as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
next(readCSV) # Skip header line
for row in readCSV:
k = []
k.append(row[0]) # channel grouping
k.append(row[1]) # date
k.append(row[3]) # visitor id
geo ... | [
"bassi.vdt@gmail.com"
] | bassi.vdt@gmail.com |
eadf8693de509f3c4e64a1d6cf870b69b27696a3 | 2aa32777e9991afc371fcee1883d1d4411fe2db6 | /binance-tutorials-master/coinview/backtest.py | 34a7e7d54fca1fef7c03b57d90f1271aa6ba153a | [] | no_license | webclinic017/megalodong | 88b2714549a427087c375d807dc98e5506b0e162 | c9b8c0b52ca0e3c94818aaf3ab117c9abcc8d03b | refs/heads/main | 2023-03-31T23:17:16.171794 | 2021-04-06T15:38:55 | 2021-04-06T15:38:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | import backtrader as bt
import btalib
from talib import abstract
import pandas as pd
# import datetime
class RSIStrategy(bt.Strategy):
def __init__(self):
# self.sma = btalib.sma(data.Close)
self.rsi = bt.talib.RSI(data)
def next(self):
if self.rsi < 30 and not self.position:
... | [
"felix99885@web.de"
] | felix99885@web.de |
181a9e06bb2b8f84cd124f76613902dc3253f2d4 | f8b15bde2e75b24bc157e216d4242c085c2d5f3a | /src/tools/operator_wrapper/alert_operator.py | f8dae50ecdcaa1754343cae2be4342753f3a589c | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | AldonahZero/pai | 181704d0ec169db3d2e49c5953e332900f5b24d9 | e6667b9a1c89b8aba26e4b818f7338a083c3d359 | refs/heads/master | 2020-09-09T10:56:59.108163 | 2019-11-13T08:25:55 | 2019-11-13T08:25:55 | 221,428,287 | 2 | 0 | MIT | 2019-11-13T10:02:34 | 2019-11-13T10:02:33 | null | UTF-8 | Python | false | false | 2,308 | py | # Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to ... | [
"noreply@github.com"
] | AldonahZero.noreply@github.com |
1188ff03230eeceac03d987c78afe09f2a08b6a2 | aaf043152f1ed3e59c85ccceee25ea9122e0edaa | /pyvoltha_min/adapters/extensions/events/device_events/onu/onu_lopc_miss_event.py | b0d10ca325e12c42aa5bf627882760a7c8198953 | [
"Apache-2.0"
] | permissive | hanyingzhong/pyvoltha-min | 15fce1b98ecfed16a1e7df593068875568a0c039 | 1e7c313b7be612ca17a42a098dd83743a996c38c | refs/heads/master | 2023-03-25T21:37:42.819826 | 2021-03-24T19:47:01 | 2021-03-24T19:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | # Copyright 2017-present Adtran, 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 agreed to in writ... | [
"chip.boling@tibitcom.com"
] | chip.boling@tibitcom.com |
dcc93bea34e67aac667f305955c10c2cc9644471 | 9801d1f7eb7a1e4daeece8de4673f943bd40841c | /Bookmark/Bookmark/urls.py | a2b4d99973f7f31064076883b685958196ab77a2 | [] | no_license | Yash-Sapre/Saveit | b80d80943737317db70b4e219c73185bd16c8535 | 6dbc8be4ab9ef526e91916bbb218a873f1976e8b | refs/heads/main | 2023-07-22T14:28:55.153289 | 2021-09-10T10:43:12 | 2021-09-10T10:43:12 | 405,006,082 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """Bookmark URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"yss052001@gmail.com"
] | yss052001@gmail.com |
f5282b92dfb6af26a78d6b27d683a125d46c98c4 | 5196d8aeeded2cb8f3414d14b9a0050f69cb809e | /tools/train_nsfw.py | 99da01a0b02cff24860ef3151884daca10ce4c5d | [] | no_license | SethWen/nsfw-classification-tensorflow | 0a81ad422f762eedf188f4f8e7ec2161d6428276 | 6dfcb16fd655e66b9dd83237bbe89e84aa5322b9 | refs/heads/master | 2022-12-19T04:30:57.035744 | 2020-09-26T05:53:04 | 2020-09-26T05:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,848 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 19-2-15 下午8:53
# @Author : MaybeShewill-CV
# @Site : https://github.com/MaybeShewill-CV/CRNN_Tensorflow
# @File : train_nsfw.py
# @IDE: PyCharm
"""
Train nsfw model script
"""
import argparse
import os
import os.path as ops
import time
import math
impo... | [
"luoyao@baidu.com"
] | luoyao@baidu.com |
9bc9d10b3ff2fc226bfa41037a50c9604a3db5ba | 46aa1b419f9e47b4bb53068474e4ea47ca0c3834 | /displaytools3.py | 737a148590ccb3cb5e111f3c964c3717edca03c3 | [
"MIT"
] | permissive | cknoll/displaytools | 4850e60e7dcb465fde4e81d61f50ca0697d809e2 | 3739b7ace5ff18edca18a113de05caefe88919ce | refs/heads/master | 2021-06-02T00:34:37.803620 | 2017-11-11T17:07:11 | 2017-11-11T17:07:11 | 42,675,014 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,051 | py | # -*- coding: utf-8 -*-
"""
This module was written by Carsten Knoll, see
https://github.com/cknoll/displaytools
This code is licensed under GPLv3
https://www.gnu.org/licenses/gpl-3.0.en.html
------------------------------------------------------------------------------
This module is an experimental ipython ... | [
"CarstenKnoll@gmx.de"
] | CarstenKnoll@gmx.de |
e3b4474b1fdee304f0d66c2a205acce345b33525 | cc5b858569edf6d819491940769eeef99ae78c18 | /app.py | 1e444cd1ff921d36afb514f44af5f445cf749d72 | [] | no_license | abhishek064/web-server-using-flask | 0f54f34c75e8e61b623b5e26443d827a73c3d81a | 3cf44bec3a1a80a054e8293c6678def0041f787b | refs/heads/master | 2021-01-04T18:48:48.168521 | 2020-02-15T13:16:29 | 2020-02-15T13:16:29 | 240,715,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | from flask import Flask, render_template, url_for, request, redirect
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
app=Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
db = SQLAlchemy(app)
class Todo(db.Model):
id = db.Column(db.Integer, primary_key=True)
con... | [
"abhisheksutariya64@gmail.com"
] | abhisheksutariya64@gmail.com |
a3dcd4456879cc220aa0640c372c170a6f3e4263 | 75cc297e0ed208ed48dc04b4d86400bb0a5e5c50 | /examples/timeline/model_solution/timeline/app/models.py | 4d91e10097bb0fc3c385dfe8fb08c9184fd19d46 | [] | no_license | SimonCockx/entity | c0c2b798b18b389431b223061c6c025158afde85 | d888771f73f6db0300afbf8ec3fcc1fa6f9cf106 | refs/heads/main | 2023-04-08T09:13:58.300487 | 2021-04-19T00:01:34 | 2021-04-19T00:01:34 | 359,275,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | from collections import Sequence
from typing import Any
from django.db import models
from app.entities import EventRepo, Event, EntityDoesNotExist
MAX_NAME_LENGTH = 100
class EventORM(models.Model):
name = models.CharField(max_length=MAX_NAME_LENGTH)
year = models.IntegerField()
description = models.Te... | [
"simon@sikanda.be"
] | simon@sikanda.be |
e2ec00935752105a1560d7cc0670dfea639a3dc8 | 78a733324876a9369e3f7f2ad1dc235a1118f0ae | /src/Location/Location.py | 62c6477b258c8cb96fba284c746fb5a94675c81d | [] | no_license | razibchamp/drs | fe1a00b323661981b118abce1ed7a70ad0566b23 | dcb8188c19d373e4eecc230803495c09cb621667 | refs/heads/master | 2020-03-25T02:04:49.763993 | 2018-08-19T09:22:27 | 2018-08-19T09:22:27 | 143,272,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | class Location:
def __init__(self, latitude, longitude):
self.latitude = latitude
self.longitude = longitude
| [
"nightshuvo@gmail.com"
] | nightshuvo@gmail.com |
2a42f51f32d4980a8248c2497f3243c3cba3bd4c | 29286f5f9629bc44fd56d169e39b691536387208 | /lab5/my_application/server.py | 68e32e80b0d7da0b6dc42b540de30460d3b0ed71 | [
"MIT"
] | permissive | craigbrennan24/Lab4-Docker | a71a302d34511f63f396ab3359133b893c1a0e60 | bccd374636af5f69e32c05907690c36ecaf08cae | refs/heads/master | 2021-01-10T13:17:39.842731 | 2015-10-21T14:59:41 | 2015-10-21T14:59:41 | 44,254,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Index page\n"
@app.route('/hello')
def hello():
return "Hello world!\n"
if __name__ == "__main__":
app.run(host="0.0.0.0",port=8080,debug=True)
| [
"craig_brennan24@hotmail.com"
] | craig_brennan24@hotmail.com |
32b12704ed0452a472f4a93b47cf393fa27d480c | 899bac17acf97252a33d91af076ff1f16b975210 | /eduiddashboard/forms.py | b5bafba7d3c82f84075476f0b8cf2fa105708771 | [] | no_license | isabella232/eduid-dashboard | 91a209f7833f26a7949cecec60df2e501a82f840 | 99cffaa90f41b13ec34f9d057f19630c644df6ee | refs/heads/master | 2023-03-16T05:19:36.184687 | 2018-07-27T12:27:53 | 2018-07-27T12:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from deform.form import Form
class BaseForm(Form):
""" base form class to override if needed """
pass
| [
"msaelices@yaco.es"
] | msaelices@yaco.es |
639f782d0b5634e6547e1ac507f86cdcb51bf2ac | 26551769200eafa5bdd72ea5a51f87e61dbd8d6d | /hackerrank/august_infinitum_2014/testit.py | ea69cdf1c777c240061cb87045566b78a4323b3d | [] | no_license | kalachand/codes | f894945a2cdc4c7868fd1f24c3b7727f32cf5ba1 | ed45d7ffe380e4e5d52f95e9542a108e4ceeceb7 | refs/heads/master | 2021-01-15T12:44:29.552598 | 2015-11-03T21:02:36 | 2015-11-03T21:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import random
t=1000
print t
for i in range(0,t):
n=random.randint(1,20)
m=random.randint(1,50)
print n,m
| [
"akash.wanted@gmail.com"
] | akash.wanted@gmail.com |
1841cfbfa774d1663121686f516b410799d7ad1f | 430af16a7e275a87931de78bc9125c969b214df4 | /irepublica_wordlist_generator.py | 156793bca8d6dba9566c98609abd346f54cf9756 | [] | no_license | irepublica/py | ddf41f4461aa891f8fa58ad7e73c4050d282d986 | 0dfb7bb562664bc1b549ba5ab23c73e8f68cbd51 | refs/heads/main | 2023-01-29T00:30:26.491119 | 2020-12-12T14:20:43 | 2020-12-12T14:20:43 | 312,934,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,720 | py | ###
# this code generate a combination of fix number of upper letter and/or lower case and/or number and/or special characters
# this code works as a small suppliment to crunch, where the rule of this program is not available in crunch
# the wordlist generated by this code is suitable to brute force router default pass... | [
"noreply@github.com"
] | irepublica.noreply@github.com |
b982d5403b5334baa6e3ec0af46dee88ac765ead | 86e492636b8459f32493e73536cb4a970c9d2c52 | /for-3.py | 1aa9d15aa252ae61b6557c15a72ea65daae00169 | [] | no_license | royanusree17/royanusree | c29d1e8e31179367b837f1412b3bb80409dbde35 | ab78a843d70df716951a82ece4789fa2709b73f9 | refs/heads/master | 2020-04-16T03:13:33.561549 | 2019-01-11T11:04:54 | 2019-01-11T11:04:54 | 165,224,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | numbers = [1,2,3,4,5,6,7,8,9]
odd_count=0
even_count=0
for a in numbers:
if a % 2:
odd_count+=1
else:
even_count+=1
print("total even numbers is:",even_count)
print("total odd numbers is:",odd_count) | [
"royanusree17@gmail.com"
] | royanusree17@gmail.com |
51148ac47e877227c9dce5f337b517b769a256b5 | fba1d31a224e521f0c7a7041c24c86475455e8f7 | /backend/ediaristas_workshop/web/urls.py | 2bf95b241e54aa5e6da11240040a9c8cc10de9ce | [
"MIT"
] | permissive | shioheii/ediaristas | c402911256c02655333a485d7d3ac96e5e67721b | fd07472f532683c13511b12ffdc37a5816b729bf | refs/heads/main | 2023-08-18T21:47:32.860984 | 2021-10-20T17:09:56 | 2021-10-20T17:09:56 | 419,107,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from django.urls import path
from .views import cadastrar_diarista, listar_diaristas, editar_diarista, remover_diarista
urlpatterns = [
path('cadastrar_diarista', cadastrar_diarista, name='cadastrar_diarista'),
path('listar_diaristas', listar_diaristas, name='listar_diaristas'),
path('editar_diarista/<int:... | [
"89222572+shioheii@users.noreply.github.com"
] | 89222572+shioheii@users.noreply.github.com |
3d6ae1524644fc9c4474380cbf883f97a21eee67 | 2e414394e8a0a85dd7244fcd24d8b9910ce2dbea | /arcpy_pyqt5.py | f39d6db2ddd4995d176225d71761ac4abc42c2dc | [] | no_license | GitHubQXJ/Pyqt | f8370b7a006cb0a3e9b0180da3266f1cc76aadbe | 5a7bf2a5182d7b10726d9163beca1721ab4a7e5a | refs/heads/master | 2020-03-29T02:08:37.446753 | 2018-09-19T12:14:33 | 2018-09-19T12:14:33 | 149,422,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | # coding=utf-8
import arcpy_crete_xml
import sys
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
class picture(QWidget):
def __init__(self):
super(picture, self).__init__()
self.resize(600, 400)
self.setWindowTitl... | [
"284451800a@gmail.com"
] | 284451800a@gmail.com |
367fc94a0fd126565afc94f6fd44e62f3b1f9d8b | 65829d312009ee4c686aad419a800678c6954755 | /samples/basic/util_properties.py | cbc89f62bdb8ba01d82175d336ee8aeea3f73820 | [] | no_license | hercwey/PythonBestStudySamples | 3d8fd667045ba648037a03c6867d9ec7faa2b22d | 63696bbac1250ab60bfb6b9846bb4f884b7ffe6c | refs/heads/master | 2020-04-17T21:35:33.541165 | 2017-02-07T01:51:27 | 2017-02-07T01:51:27 | 66,250,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | # -*- coding: utf-8 -*-
"""
python 操作properties文件
"""
class Properties(object):
"""properties object"""
def __init__(self, fileName):
self.fileName = fileName
self.properties = {}
def __getDict(self, strName, dictName, value):
if (strName.find('.') > 0):
k = strName.s... | [
"bernwey@gmail.com"
] | bernwey@gmail.com |
110cfc179264d2d70fbca93edc3f46956b3bc8f2 | e7a45a5ef1cbbac2e6f9865f46fd5350cd1358da | /download_wallpapers_automatically.py | 0b026b7498f2ce85b5c2ef08594c8331c7e97db4 | [] | no_license | shanto12/Wallpaper_Downloader | 3b49349f7bcef221e1d24e6198c4c319f339c7c9 | e103e6dd98193c9cf0e71864f91f3d24d8334f7c | refs/heads/master | 2023-05-30T17:41:16.550122 | 2020-06-24T06:29:40 | 2020-06-24T06:29:40 | 274,592,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py | ## Importing Necessary Modules
import requests # to get image from the web
import shutil # to save it locally
import re
from string import Template
IM_FOLDER = "C:/Users/smatthew/Downloads/wallpapers"
HOME_URL = "http://wallpaperswide.com/3440x1440-wallpapers-r/page/"
LIMIT = None
DONT_DOWNLOAD_SET = {'latest_wallpa... | [
"shanto12@gmail.com"
] | shanto12@gmail.com |
a4d11746359dce92018f4d136895e0404bff8188 | 53d455b09622cc7d85c6227cfc88e87a269f8e94 | /mysite/settings.py | 3ec8adcf457031f8156c804505a9ca36454fe287 | [] | no_license | type89/new_djangogirl | 1e44949c4ddbff4a7c3c4ef5b340134b5bd25416 | e7c66d1f36707f3ce53fbc9b4e3e2bae2c66af23 | refs/heads/master | 2020-05-18T17:35:40.290035 | 2019-06-29T06:51:22 | 2019-06-29T06:51:22 | 184,560,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
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/
"""
import os
#... | [
"zong1yuan2@gmail.com"
] | zong1yuan2@gmail.com |
ed4e792ba70c4002bfe1ec382590ba8af555085c | ebd5c9da14013b996f42062a1b4c703124aa7bfb | /manage.py | ac47b282914fc285307777870b1642bfa6f6fe4b | [] | no_license | nargok/graphql_hackernews_clone | fcba15b8b0d8f442260dc755d704c766ff876d6a | cd25c2bd71316831b072e12252263c6ad5c9febf | refs/heads/master | 2020-04-11T18:14:35.945830 | 2018-12-22T02:36:02 | 2018-12-22T02:36:02 | 161,991,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'graphql_tutorial.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"nargok@gmail.com"
] | nargok@gmail.com |
51dfe4429a048801b0b68c3d5c4c08950d083957 | a49cb927114854f115c7b500297509aaa06fc553 | /02 高级处理/02-蓝图/home/views.py | fdf63186389a4f21f55b500acf4d0bf5b68559e7 | [] | no_license | XT-0220/flask_pratice | 4bb9e9a991085ebce8b2e79c5e65a47850ca3b19 | cce7e9ab7996eff57906524836f22e9be879eab3 | refs/heads/master | 2022-12-25T22:24:55.231274 | 2020-10-13T07:22:16 | 2020-10-13T07:22:16 | 302,593,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from home import home_blue
# 使用蓝图对象来定义路由
@home_blue.route('/')
def index():
return 'index' | [
"1606778306@qq.com"
] | 1606778306@qq.com |
1bc121225564cba3c38fedf0ca37e1a4a62a6b65 | decd47b6a8f1a4f7eb41972bbb8f7e704a0b707e | /Anirudh Kala/booth-OSI.py | 1e2c7740a1f28333e85e9d5d9c10dd72e8228725 | [] | no_license | bonomali/Data_Science | d4e017e3f201ccaeb392ec980bb0acee1dfd3131 | c8dffb46356fdeed7c6f35cfa28e11acd6efc048 | refs/heads/master | 2021-05-30T10:16:47.903876 | 2015-10-04T23:54:29 | 2015-10-04T23:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py |
import scipy as sp
import csv
import pandas as pd
'''
path = {}
path[1] = "AF (OSIsoft)"
path[2] = "Analytics (OSIsoft)"
path[3] = "BI (OSIsoft)"
path[4] = "Cloud Connect (OSIsoft)"
path[5] = "Data Archive (OSIsoft)"
path[6] = "ESRI (OSIsoft)"
path[7] = "Interfaces (OSIsoft)"
path[8] = "Managed PI"
path[9] ... | [
"abhinav@abhinav-Inspiron-5537.(none)"
] | abhinav@abhinav-Inspiron-5537.(none) |
128cf41497f94f6804cfba19418c237eafbd269e | 234dbe7c61df183f11169c933b082eb940b56c17 | /predictpipeline.py | 3af2a77707bf929ee8d57eef77e45f4bc6b4f6c3 | [] | no_license | Akshat243/EGEN_project | 39b57d7826cbd9b30f8e8f0592a1bdfdca8df05f | 6e5158f4b71f7a562e169506aef355ebef82a7d3 | refs/heads/master | 2022-12-15T15:10:46.759557 | 2020-09-09T06:36:19 | 2020-09-09T06:36:19 | 294,018,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,546 | py | import apache_beam as beam
import logging
import joblib
import numpy as np
import pandas as pd
import argparse
import re
from google.cloud import storage
from apache_beam.options.pipeline_options import StandardOptions, GoogleCloudOptions, SetupOptions, PipelineOptions
from past.builtins import unicode
# Build and run... | [
"noreply@github.com"
] | Akshat243.noreply@github.com |
b006def7b59d29f5eaeeb1c93b391c39ce36af97 | aac97d130077481103bcb4b8a10d2f3ecafe8dd2 | /test.py | 819f4d9e8ffed64796c9ef2095f5d8d7cc203194 | [
"Zlib"
] | permissive | orlp/pyflat | 58963f8681693f736872e5eacec1ae73f436ffcc | 06f3afa1e905aded583910197448c28894e7a1f2 | refs/heads/master | 2016-09-10T03:17:20.893770 | 2015-03-13T10:57:19 | 2015-03-13T10:57:19 | 5,957,596 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from __future__ import print_function
import flat
window = flat.Window(800, 600, "hi")
@window.event("on_draw")
def on_draw(window):
flat.gl.glClearColor(0.5, 0.5, 0.5, 1.0)
flat.gl.glClear(flat.gl.GL_COLOR_BUFFER_BIT)
flat.run() | [
"orsonpeters@gmail.com"
] | orsonpeters@gmail.com |
2efdbea82d4abfb77c931c704001160943c5b23f | f2f8a8b75c65d10e1a0f8cb89d27e558107e34b7 | /greenBottles.py | e153e3a95d6514ef50058f1d414cc0882984bbe8 | [] | no_license | jrawson7093/code-change-test | c23dd9cac585c7e6f9a510efa8053de3ed3d4891 | 5a33ebd6e16c09ef9603adca2519a971e368aff2 | refs/heads/master | 2021-01-17T21:14:21.361669 | 2014-05-16T13:23:22 | 2014-05-16T13:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import time
for i in range(10, 0, -1): #Count down from 10 to 1
for j in range(2): #Do this twice
print("{0} green bottle(s), hanging on the wall".format(i))
print("And if 1 green bottle should accidently fall,")
print("They'll be {0} green bottle(s) hanging on the wall.\n".format(i-1))
time.sl... | [
"jrawson7093@soham-college.org.uk"
] | jrawson7093@soham-college.org.uk |
37123c73964b688ed5ae817b4fd7992a14458970 | 267970b4cdb9aae02e66ae2c31f36f2b2bade05f | /elevation_api.py | 4bfba5b80e95fa9d985a77d56d4dbd9efe55ebe6 | [] | no_license | Tound/FlightPlannerScripts | 169839cd6207709c74cb0e323e52e06cec763a5d | 795822cd12d5f056778e82a9843c44a732e7eb08 | refs/heads/main | 2023-04-25T21:07:00.689092 | 2021-05-28T14:12:24 | 2021-05-28T14:12:24 | 335,413,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import requests
import json
URL = "https://maps.googleapis.com/maps/api/elevation/json?path="
API_KEY="AIzaSyDs4rYa3WPPu30NV0K9ysOtxkgWXhb7jF8"
#URL = https://maps.googleapis.com/maps/api/elevation/json?path=36.578581,-118.291994|36.23998,-116.83171&samples=10&key=AIzaSyDs4rYa3WPPu30NV0K9ysOtxkgWXhb7jF8
samples = 10
l... | [
"tompound@ymail.com"
] | tompound@ymail.com |
c016beb5d996c1ca1390e35753f3e429fdebd5a6 | 4ec6ed4ebcb9346042669e6aa03be0e502ed48b3 | /leetcode/convert-sorted-array-to-binary-search-tree.py | 84e69232dd85203daae4a1d75c1f376e113add3f | [] | 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 | 415 | py | """
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
"""
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
def sortedArrayToBST(nums):
if not nums:
return None
mid = len(nums) // 2
root = TreeNode(nums[mid])
roo... | [
"shonihei@gmail.com"
] | shonihei@gmail.com |
d9cc4f54dc821de9d57341568500d5e8c9b79f44 | c8e18c574497d8778e298a5342c5c52ccdcabe6d | /rango/views.py | f0e6dffbbe64e0584ece31ac3c6f7d509e71d6cd | [] | no_license | cinvincible/itech | 52e2a3ad9f9523b8ebc90f6465aa98bb2b961d98 | 244bf1f86bfb6110b0127f0e48b6c33144c5a476 | refs/heads/main | 2023-07-09T02:38:17.437052 | 2021-07-30T11:12:05 | 2021-07-30T11:12:05 | 390,513,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,933 | py | from datetime import datetime
from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import redirect
from django.urls import reverse
from rango.models import Category, Page
from rango.forms import CategoryForm, PageForm
from rango.forms import UserForm, UserProfileForm
fr... | [
"noreply@github.com"
] | cinvincible.noreply@github.com |
a34cfcdef57043cc7f41ac54d209257b20f9284b | fff74e87ac64ca852fd4896e0ffa82db7bdd5246 | /src/secml/ml/classifiers/loss/c_loss_logistic.py | 95e161ced9df8bc72b7a29936896888bd576561b | [
"Apache-2.0"
] | permissive | Cinofix/secml | 04c69ef214df5a324561e7da299379969737d7ed | 431373e65d8cfe2cb7cf042ce1a6c9519ea5a14a | refs/heads/master | 2022-12-21T06:43:13.038269 | 2020-09-15T13:56:01 | 2020-09-15T13:56:01 | 298,513,252 | 0 | 0 | Apache-2.0 | 2020-09-25T08:25:31 | 2020-09-25T08:25:30 | null | UTF-8 | Python | false | false | 4,170 | py | """
.. module:: CLossLogistic
:synopsis: Logistic loss function
.. moduleauthor:: Battista Biggio <battista.biggio@unica.it>
.. moduleauthor:: Marco Melis <marco.melis@unica.it>
"""
from secml.ml.classifiers.loss import CLossClassification
from secml.ml.classifiers.loss.c_loss import _check_binary_score
from secml... | [
"marco.melis@diee.unica.it"
] | marco.melis@diee.unica.it |
27bcb2ddf2ee9ab7fbfbefe716406c1ac2b1218b | 321db74b4b2dfa164a590b2988ceeb6e49642fe6 | /app.py | 942726b3ab0fa89f68878bda730a697bffa199c3 | [] | no_license | dawong8/carry-me-backend | c9341be112d26fd0cb7780a5fccd5e0d8d22feae | eec54234195273a4da21e71b3a7baf4f539c1fb9 | refs/heads/master | 2022-12-09T00:08:04.684547 | 2019-03-25T01:20:29 | 2019-03-25T01:20:29 | 174,024,572 | 0 | 0 | null | 2022-12-08T01:41:41 | 2019-03-05T21:38:31 | Python | UTF-8 | Python | false | false | 1,081 | py | from flask import Flask
from resources.users import users_api
from resources.game_data import game_api
# from resources.reviews import reviews_api
from flask_cors import CORS
from flask_login import LoginManager, login_required, logout_user
login_manager = LoginManager()
import models
import config
app = Flask(__... | [
"wong.danny29@gmail.com"
] | wong.danny29@gmail.com |
68f0a4d3a7f0b9d6cd8bf4bf9813983513210122 | fb62825c84c0f4c0f8b4724c62fc89eebafee787 | /Videoapp/migrations/0011_merge_20210222_1736.py | 676d2aff7f1e680f2f0462e707d004b350ef22cf | [] | no_license | toushi100/VODS | 8a43c8625357a1ff9840dfcb8879a856ee5d7df0 | 053f5562b4d50286767f9f9be18dc9c2a34bb481 | refs/heads/main | 2023-06-14T03:57:27.764301 | 2021-07-07T22:52:45 | 2021-07-07T22:52:45 | 313,333,797 | 0 | 2 | null | 2021-03-16T05:17:31 | 2020-11-16T14:48:44 | JavaScript | UTF-8 | Python | false | false | 275 | py | # Generated by Django 3.1.2 on 2021-02-22 17:36
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Videoapp', '0010_auto_20210221_2021'),
('Videoapp', '0010_auto_20210217_1648'),
]
operations = [
]
| [
"toushi2009@gmial.com"
] | toushi2009@gmial.com |
146ac52c155f6a21ab8f406bde451d1ce53f6925 | 0d464df42f5cc3c9a3b992ae9ff6160e5da5701d | /CHAPTER 12 (sorting and selection)/decorated_merge_sort.py | 1ac0479db866b540143a43557da8834d51e73996 | [
"MIT"
] | permissive | ahammadshawki8/DSA-Implementations-in-Python | 6b61d44e638bfb7f6cf3a8b1fc57d15777313420 | fc18b54128cd5bc7639a14999d8f990190b524eb | refs/heads/master | 2022-12-26T03:54:16.229935 | 2020-10-07T05:17:55 | 2020-10-07T05:17:55 | 267,899,551 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from linked_queue_class import *
from merge_sort_linked import *
def decorated_merge_sort(data,key=None):
"""Demonstration of the decorate-sort-undercorate pattern."""
if key is not None:
for j in range(len(data)):
data[j] = _Item(key(data[j]), data[j]) # decorate each element
merge_s... | [
"ahammadshawki8@gmail.com"
] | ahammadshawki8@gmail.com |
c2fb7f0c7c179ee7608e4eb324287e1dba938c09 | a41d43b788458e54d90a547b2fe71cc40b68e42b | /manage.py | 8095a0f88bd37314871b8c3d47e8e42a0c55ed44 | [] | no_license | Bariss77/weight_02 | 9b74077e42e9f0ff03f0f29b0f5228f01f9cd5a6 | 915a3670d2ce4a422ac03cfa55098ee7c7e6bffd | refs/heads/master | 2020-04-15T02:14:13.675448 | 2019-01-06T13:01:44 | 2019-01-06T13:01:44 | 164,307,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'weight_02.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"bariss@bk.ru"
] | bariss@bk.ru |
ad1b85e24bddffba1588102c18d19e9a7f5c4a35 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part2/batch/jm/parser_errors_2/925229167.py | e0ca9ce450c7ef5983d536f9dd4a53f2584448db | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 1,170 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 925229167
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 3, 3)
assert board is... | [
"jakub@molinski.dev"
] | jakub@molinski.dev |
a6278547013cee57c3cc6702108a2284c2d04ee0 | 6a45a5dd00dd01edfcd3d4145501048ff2d987ba | /src/data_preprocess.py | 9cdf7be3e9d81e358b656db4ef49ab9feff3f081 | [] | no_license | luzengxiang/CISC879_Project | 18d46b960934ce6a38ccc176c04618cf7ee75a30 | 181a833025cecfaba600308f0b9ee448e7468bb5 | refs/heads/master | 2021-08-23T01:39:34.804696 | 2017-12-02T06:50:56 | 2017-12-02T06:50:56 | 108,591,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py |
from lib.crop_image import import_eps
import argparse
import numpy as np
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description = "data_process based on Zone")
parser.add_argument('Zone', type=int,help='Positional zone number:int')
args = parser.parse_args()
if... | [
"zxlu@udel.edu"
] | zxlu@udel.edu |
dff782445f083c8852c95a14f37f05b290a8043b | ba6921a268198bc0af433622c021533905f5d462 | /scripts/in_container/run_migration_reference.py | 43692b2c458d2e0a50e097a818144f39bdf31553 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | potiuk/airflow | b6447765b1a7b586a3d6c8d7ba9262f6bf68fbfd | ca2f3013bcb123c4b3973a5b85de77094bf2c459 | refs/heads/main | 2023-08-30T13:05:50.698888 | 2023-05-21T21:08:14 | 2023-05-21T21:26:14 | 173,467,275 | 8 | 7 | Apache-2.0 | 2023-05-21T21:58:40 | 2019-03-02T15:50:53 | Python | UTF-8 | Python | false | false | 6,272 | py | #!/usr/bin/env python3
#
# 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
# ... | [
"noreply@github.com"
] | potiuk.noreply@github.com |
40a42af680a63e3a17bb18fe661dc09bb9d98b56 | 6ef8abce322da7a6acf8b940801d7c2286b55f42 | /Programmers/compressString.py | fccb357227a2eb76df7a508063b6c1f0361d23a2 | [] | no_license | 702criticcal/1Day1Commit | 747a61308e2fae87bad6369cd0bc481bdc89b29a | aec375b8b41de1ed5366c714cc6a204905fb2763 | refs/heads/master | 2023-01-31T16:47:24.457584 | 2020-12-18T03:42:28 | 2020-12-18T03:42:28 | 287,663,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | def solution(s):
if len(s) == 1:
return 1
answer = len(s)
# 압축할 수 있는 문자열의 최대 길이는 길이 / 2까지이다.
for cut in range(1, len(s) // 2 + 1):
result = ''
cnt = 1
temp_str = s[:cut]
# 1부터 길이 / 2까지 잘라서 문자열 비교.
for i in range(cut, len(s) + cut, cut):
# 앞의 ... | [
"wnstn1549@gmail.com"
] | wnstn1549@gmail.com |
90e145421e0bf3f625473a6875ab80784750697a | b4707b1d1d5e1bdd10123c6af6a13c86c1bc9d76 | /taxifares/taxifare/trainer/model.py | 4affc1d6ec5c68c557167fcb11a66dc04034f542 | [] | no_license | borzoj/ml-experiments | d43416b1635b698856e0a8c474a8b2cc3c7686ed | 1a1d2381366b8f4fcd7a3b91bcd0ad5992347da6 | refs/heads/master | 2020-04-22T22:04:42.121599 | 2019-04-03T18:15:39 | 2019-04-03T18:15:39 | 170,695,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,685 | py | #!/usr/bin/env python
# Copyright 2017 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 require... | [
"michal@mercari.com"
] | michal@mercari.com |
b86e21edd60be743de7e055ffd942d0674c17b3d | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GstGL/GLRenderbufferAllocationParams.py | 23d2ebdb5969b2516f3587d02945af8e1fa95f4d | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 6,772 | py | # encoding: utf-8
# module gi.repository.GstGL
# from /usr/lib64/girepository-1.0/GstGL-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
41aa210c76cd9e275d36d7bcd423bf5e38ea262f | c368073d2f20e7c1b42913e48f517aced5798925 | /Python-usp/Semana 4/exer2.py | 818c7da63fb227725c56412f01047b20b625fc8f | [] | no_license | rodrigodasilv/demandas-py | b7f3f1329d154edd35ee4ed4f937b58270888854 | 2c8bd3279dd82200eeb8af387a924923d09ca055 | refs/heads/main | 2023-03-05T00:19:41.567881 | 2021-02-16T17:13:02 | 2021-02-16T17:13:02 | 337,445,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | # Exercício 2
# Receba um número inteiro positivo na entrada e imprima os n n n primeiros números ímpares naturais. Para a saída, siga o formato do exemplo abaixo.
# Nota:10/10
impares=1
numero = int(input('Digite o valor de n: '))
while numero>0:
print(impares)
impares=impares+2
numero=numero-1 | [
"noreply@github.com"
] | rodrigodasilv.noreply@github.com |
d6e08e3dc028e3cb4f87c36d69bdb3c0a4b371a7 | 282e756222c6db88589ae7bc9fb6c7bb010d7516 | /src/project2/lab2.py | 4b6eb36d660bf37f8d02aba4c0020a4edd78f1cc | [] | no_license | luyixiao95/CS5001 | 0497a4904afb7e24900216d3846f145e3167421a | f7f50dda5b3f217a2c68eb463befc44da85dd222 | refs/heads/master | 2023-06-25T20:47:27.826215 | 2021-07-20T03:22:19 | 2021-07-20T03:22:19 | 387,658,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #luyi xiao
#CS 5001 2021 Spring
#Lab 2 code file
import turtle as t, random
#move turtle to location(x,y)
def goto(x,y):
t.up()
t.goto(x,y)
t.down()
#draw a rectangle by looping
def rectangle(x , y , scale):
#starting point is (x,y)
goto(x,y)
#looping for a rectangle with certain scales and specific... | [
"xiaoluyi95@gmail.com"
] | xiaoluyi95@gmail.com |
54e634a91b6785558588740c3c225ac1aa4c252c | bdf3c98e33c6bc9c8e0332043cc5a3a3f5e8ea42 | /src/mantis_model/catkin_generated/pkg.develspace.context.pc.py | c4db2075151b9a2c10d3a4400eb7142cca173946 | [] | no_license | jstestsuite/ros-test | c33e244794287e2665cace847a9faf1b596ddf92 | b0bb5b06c1c18b804c0f0a4e2deb4d88be894d1f | refs/heads/master | 2020-04-11T16:54:41.401198 | 2019-02-13T00:44:14 | 2019-02-13T00:44:14 | 161,938,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "mantis_model"
PROJECT_SPACE_DIR = "/h... | [
"jsteele171@gmail.com"
] | jsteele171@gmail.com |
523370407de74d208a58350773a65f4cdeb3db70 | 1b9bd441c500e79042c48570035071dc20bfaf44 | /sources/Content_Quality/maaseh_rav.py | dc357b5ead6ad4f0a88e432e20e9a2c905ee8b98 | [] | no_license | Sefaria/Sefaria-Data | ad2d1d38442fd68943535ebf79e2603be1d15b2b | 25bf5a05bf52a344aae18075fba7d1d50eb0713a | refs/heads/master | 2023-09-05T00:08:17.502329 | 2023-08-29T08:53:40 | 2023-08-29T08:53:40 | 5,502,765 | 51 | 52 | null | 2023-08-29T11:42:31 | 2012-08-22T00:18:38 | null | UTF-8 | Python | false | false | 712 | py | import django
django.setup()
from sefaria.model import *
import csv
from sources.functions import *
nodes = []
with open("Maaseh_Rav_Alt_Structure_Guide.csv") as f:
for n, row in enumerate(csv.reader(f)):
if n == 0:
continue
he, en, simanim = row[0:3]
node = ArrayMapNode()
... | [
"stevenkaplan@stevens-MacBook-Pro.local"
] | stevenkaplan@stevens-MacBook-Pro.local |
316f82be60d77481665da8b54b8a48decca9f131 | 8a07250aaa7aaa0756e1abc36579f6dcc8f2db1d | /solutions/72. Edit Distance.py | a2b8246ce394c3924d056cdeb752d1b8cdf741b9 | [] | no_license | atriekak/LeetCode | f92db0f5f2efb3ba97393b496374f7adc8b92545 | 8438f8a53fbc44d9d10a1e0b96f7ba78dc38eb88 | refs/heads/main | 2023-07-17T08:29:45.625297 | 2021-07-04T04:22:43 | 2021-07-04T04:22:43 | 324,005,296 | 0 | 0 | null | 2021-09-02T21:23:06 | 2020-12-23T21:29:59 | Python | UTF-8 | Python | false | false | 1,012 | py | class Solution:
def minDistance(self, word1: str, word2: str) -> int:
#Approach: Dynamic Programming
#Time Complexity: O(m * n)
#Space Complexity: O(m * n)
#where, m and n are the lengths of word2 and word1, respectively
m = len(word2)
n = len(word1)
... | [
"atriekak@gmail.com"
] | atriekak@gmail.com |
930903de90fc8bc73e32778e7f3480292f94f079 | 2c6466fa6ae9d3a4806f325a28ad6c8c7f490d04 | /exercicios/PythonExercicios_Desafio069.py | 3b0b9b6d7d542dea3725c88382dc19a554316544 | [] | no_license | samuelfranca7l/PythonExercises | 94750483a4c44e969ec254f5dd44e1c40a2fdc02 | 50571da236bb2eab04afe8d6e6246884bafc99ec | refs/heads/master | 2022-07-04T23:26:24.623353 | 2020-05-22T20:18:01 | 2020-05-22T20:18:01 | 266,181,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | igenderM = iage18 = iFemaleAge20 = 0
opcao = ''
while True:
print('-' * 30)
print('CADASTRE UMA PESSOA')
print('-' * 30)
idade = int(input('Idade: '))
sexo = str(input('Sexo: [M/F]')).upper().strip()
while sexo not in 'MF':
sexo = str(input('Sexo: [M/F]')).upper().strip()
if sexo == ... | [
"samuelfranca.m@gmail.com"
] | samuelfranca.m@gmail.com |
846832ff991ad47d5a5fa26386e041136814197f | ed983a4dfe11b18c19e42cc39c1804c154e3e608 | /unit_test/test/test_unet.py | 3d0a7caf9fc916533a5d8cf33b8a046476bbef41 | [] | no_license | riven314/Keras-UNet-Foreground-Extraction | 90d32475e9025af154bd642f123b2ea153ebed9b | f71535cb25cb798904b424f4a468a13087d22006 | refs/heads/master | 2020-09-06T11:52:58.043107 | 2019-12-10T10:00:24 | 2019-12-10T10:00:24 | 220,416,411 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | """
checking schedule
1. model output shape
2. sample check number of channels
3. check dropout rate (12, 16)
REFERENCE:
1. converting tensor to numpy: https://stackoverflow.com/questions/34097281/how-can-i-convert-a-tensor-into-a-numpy-array-in-tensorflow
"""
import os
import sys
import itertools
MODULE... | [
"alexlauwh@gmail.com"
] | alexlauwh@gmail.com |
b6dbc83d15fc726846cdce079b7bf3f329227348 | e574bafd1b3652d68b30c65695856d5e25fa7544 | /pycmbs/tests/test_report.py | b09208fda8438969487a84b332dad974d8591149 | [
"MIT"
] | permissive | gitter-badger/pycmbs | 797169f6229828511d7cf81bb52ce73cb753fc6f | c802cf1fc8737c98e83c0e942451720fce03b860 | refs/heads/master | 2020-12-30T19:36:58.750147 | 2015-02-06T08:29:56 | 2015-02-06T08:29:56 | 30,469,653 | 0 | 0 | null | 2015-02-07T20:46:42 | 2015-02-07T20:46:41 | null | UTF-8 | Python | false | false | 3,419 | py | # -*- coding: utf-8 -*-
"""
This file is part of pyCMBS. (c) 2012-2014
For COPYING and LICENSE details, please refer to the file
COPYRIGHT.md
"""
import unittest
from nose.tools import assert_raises
from pycmbs.benchmarking.report import Report
import os
import numpy as np
import matplotlib.pyplot as plt
import tempf... | [
"a.loew@gmx.net"
] | a.loew@gmx.net |
b5f82902fa6d5c8bb6c50793c090fc352b764b65 | bafbfd5a5c5600bc3ef1a7bc13a5e8efe96699fe | /myproject/myproject/settings.py | 3c112f5e68e2f6134289480fa59a9d5837dd01d5 | [] | no_license | dmpinform/homework_github_action | 4e99436991442bcafa3aa61e63c7609b64dfc587 | 2a880f3a61ed07d89f415ff6ca784310de1cfded | refs/heads/main | 2023-07-08T02:49:37.442842 | 2021-08-21T18:38:53 | 2021-08-21T18:38:53 | 395,999,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
f... | [
"dmpinform@gmail.com"
] | dmpinform@gmail.com |
11673e6ceffc1b11d4fa20923c84c7444b026e7c | f559b4d607cfdd3f192daed155ed8b0d263c71b2 | /env/bin/easy_install | 8340023df64d2030d9cc8e363b11ec8e070ff138 | [] | no_license | chris-baby/WbOnline | 6270015e9a7897b413a3fe97e2aca8a33f744995 | 91425f677d2e7c2a0ac9aeb8c1ee47d75f9b9321 | refs/heads/master | 2022-07-14T23:57:56.162760 | 2020-05-11T13:56:22 | 2020-05-11T13:56:22 | 263,056,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/Users/tongtong/Desktop/root/bwOnline/env/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())
| [
"918128078@qq.com"
] | 918128078@qq.com | |
ba2edcab7e8d97ac362909c1db7622d50e309aac | 68b99720b6d3fb483c2c612beffdc23d36085bfb | /mlcube/mlcube/tests/test_mlcommons_mlcube_cli.py | 2e895c880c365dc50faa6430910eccf8293fd289 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | johnugeorge/mlcube | 50ef63264282df4c9bd9bf82afc471f7a8db6ca2 | 10bdfe859805aa8c868c5a4745259037e123e757 | refs/heads/master | 2023-08-22T22:31:53.892870 | 2021-09-24T19:48:07 | 2021-09-29T17:22:56 | 402,979,659 | 0 | 0 | NOASSERTION | 2021-09-29T17:16:39 | 2021-09-04T06:12:13 | Python | UTF-8 | Python | false | false | 624 | py | from click.testing import CliRunner
from mlcube.__main__ import cli
runner = CliRunner()
def test_mlcube():
response = runner.invoke(cli)
assert response.exit_code == 0
assert 'Usage: mlcube [OPTIONS] COMMAND [ARGS]...' in response.output
assert '--log-level, --log_level TEXT Log level to set, defau... | [
"noreply@github.com"
] | johnugeorge.noreply@github.com |
39d57df74e1e8a8b0dd0cef6f723ebb14bb7e914 | 8d7d847f109183365022112a6b76cb20fa158255 | /NewsPage/views.py | 9a7ae5d9d34449289c2f5e638fb85cb92dc2f9fd | [] | no_license | Xarliend/DataViewSite | 42e59fed9483ff2f877a40b4f31a1b82c5435ecd | 59921492547d68908e6e8f54a062baeb05b19580 | refs/heads/master | 2022-11-24T15:12:01.842042 | 2020-01-04T22:21:17 | 2020-01-04T22:21:17 | 227,699,982 | 0 | 0 | null | 2022-11-04T19:31:04 | 2019-12-12T21:29:47 | Python | UTF-8 | Python | false | false | 469 | py | from django.shortcuts import render
from api.models import BcNews
from django.http import JsonResponse
def index(request):
news_list = BcNews.objects.all()
return render(request, 'news_index.html', {'news_list':news_list})
def news_detail(request, path):
targetnews = BcNews.objects.get(title=path)
new... | [
"43079993+Xarliend@users.noreply.github.com"
] | 43079993+Xarliend@users.noreply.github.com |
03e86919c07935ea23cbd2bc2035ff9e3aab5dfa | f43e9b5387d12fb844cf255a54c84615172fe37a | /courses/migrations/0010_auto_20200618_1157.py | 99856d87b88654f3675b27c931663a3768fcb6df | [] | no_license | Code-Institute-Submissions/ashleigh_baking_school | 09012899985ae898d84b847ccd2d50ba7f80813e | add4a404882e63952f3fced7ba22243765583584 | refs/heads/master | 2022-11-24T13:56:22.149495 | 2020-07-31T11:09:17 | 2020-07-31T11:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Generated by Django 3.0.7 on 2020-06-18 11:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('courses', '0009_auto_20200618_1154'),
]
operations = [
migrations.RenameField(
model_name='course',
old_name='datetime',
... | [
"sandoralai@gmail.com"
] | sandoralai@gmail.com |
7155ce2f0f61965636f0aa47b05584bfef6097ba | 82d4aac095fb4038563162c56fb1b55c1619467b | /biuropodrozy/users/tests/test_forms.py | 1bf33e1fc13111eff41545e977c6c2d14d7f2f5d | [
"MIT"
] | permissive | Kamilgolda/TripRecommendations | f133ec8de99b48b7f55ad90d72f3ee8ad12254ee | d3e5a10d80c405d5ac22f028be54c8198bc10410 | refs/heads/master | 2023-06-19T08:21:20.938540 | 2021-07-05T09:24:40 | 2021-07-05T09:24:40 | 380,500,741 | 0 | 3 | MIT | 2021-07-05T09:24:41 | 2021-06-26T12:50:45 | Python | UTF-8 | Python | false | false | 1,174 | py | """
Module for all Form Tests.
"""
import pytest
from django.utils.translation import ugettext_lazy as _
from biuropodrozy.users.forms import UserCreationForm
from biuropodrozy.users.models import User
pytestmark = pytest.mark.django_db
class TestUserCreationForm:
"""
Test class for all tests related to the... | [
"michaeldzindzio@gmail.com"
] | michaeldzindzio@gmail.com |
4f8956babeaeca36bcee259d46ecb8ec16dbe067 | dc084a369e0f767bc5296739b24813470869522f | /main.py | ad9e07dfe136e778903fe0b117e3877fc9bb1631 | [] | no_license | JakeRoggenbuck/player_data_finder | 4a539ac7963f1f5025eda89c96c75e76a8268574 | 0ba87a5511810ac10d3f40049b21541b9a8be1bb | refs/heads/master | 2022-12-02T06:59:34.054775 | 2020-08-19T05:56:55 | 2020-08-19T05:56:55 | 288,645,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | from position_reader import PositionReader
from config import Config
from ftplib import FTP
import inquirer
import json
import os
class FTPConnection:
def __init__(self):
self.server = FTP()
def connect(self):
self.server.connect(Config.host, Config.port)
def login(self):
self.se... | [
"jakeroggenbuck2@gmail.com"
] | jakeroggenbuck2@gmail.com |
d80b410b5348e0c0627858a462910f433012546d | 53be3b2a18d4df2e675525a610f4e7dab8c0de6f | /myems-api/core/version.py | 0b884d96063823d791417aec31bff4eac4345132 | [
"MIT"
] | permissive | yxw027/myems | 16dc82fa26328e00adbba4e09301c4cf363ad28d | ea58d50c436feafb1a51627aa4d84caf8f3aee08 | refs/heads/master | 2023-09-03T17:57:18.728606 | 2021-11-04T14:13:42 | 2021-11-04T14:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import falcon
import simplejson as json
class VersionItem:
@staticmethod
def __init__():
""""Initializes VersionItem"""
pass
@staticmethod
def on_options(req, resp, id_):
resp.status = falcon.HTTP_200
@staticmethod
def on_get(req, resp):
result = {"version": ... | [
"13621160019@163.com"
] | 13621160019@163.com |
0e541e32d749a1302541ce19ccdf2b6c8d442a16 | bdc4ae3d691fcb50405235d963012d84ea8b8a06 | /src/b2r2b_youbot/message.py | d8d3c2a392182dba8f26573558c936ec091c3489 | [] | no_license | AndreaCensi/rosstream2boot | 53552a256979f072c7bf4abb9bc01eed3c960e97 | 7cce8cf270b67e8c9e5abe6cdfed9d5969a82c00 | refs/heads/master | 2021-01-01T19:11:04.669798 | 2013-07-13T14:11:28 | 2013-07-13T14:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from b2r2b_youbot import get_JointVelocities, get_JointValue, get_JointPositions
__all__ = ['get_joint_position_msg', 'get_joint_velocity_msg']
def get_joint_velocity_msg(array, timeStamp=None):
'''
:param array: float array with values to the joints
'''
JointVelocities = get_JointVelocities... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
5fa21fadd207f6922a41ad01fad7d3295d852e5d | de358ba57518d65393c810da20c53e1c41494bff | /ALGOPYTHON/array2.py | 616580064c661e80fb9915007e10e09ad9a0cb0f | [] | no_license | avirupdandapat/ALGOPROJECT | 43eef94b13e38452cdc6a506b17b6fee581a07e1 | 55b60a0c6e51cae900e243505f6a4557ad4d7069 | refs/heads/master | 2022-12-29T13:02:54.655976 | 2020-10-18T12:23:57 | 2020-10-18T12:23:57 | 305,095,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import subprocess
subprocess.run('dir', shell=True)
if __name__ == '__main__':
t = int(input())
for t_itr in range(t):
n = int(input())
q = list(map(int, input().rstrip().split()))
# arr = minimumBribes(a)
print(q)
| [
"avirup.dandapat@mindtree.com"
] | avirup.dandapat@mindtree.com |
7f37c3725142271c5a1ca88a17921c7f106016b4 | 3d7b52e6739825aef8eafde73cb18f9904a7e638 | /Day-22-Mixed/question2_median_stream.py | 27056074f1d5b77710081a8ba550ca1dd8cbc3ba | [] | no_license | jsourabh1/Striver-s_sheet_Solution | 7707dfb03b022735135abe526c321e0919d76856 | d296f8b3cba5a03c3c9573c8e316aa92185420fe | refs/heads/main | 2023-07-30T23:13:23.878000 | 2021-10-03T02:42:00 | 2021-10-03T02:42:00 | 402,102,262 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | class MedianFinder:
def __init__(self):
"""
initialize your data structure here.
"""
self.max_heap=[]
self.min_heap=[]
def addNum(self, num: int) -> None:
if len(self.max_heap)==len(self.min_heap):
heappush(self.min_heap,-heappushpop(self.ma... | [
"jsourabh861@gmail.com"
] | jsourabh861@gmail.com |
c654a4bea3614b29572919712190529cf7f00581 | 36e499a94a355bb2e18468abb6182a3c328580ea | /new_python/wordSegment/fool/lexical.py | 509781011cb9f4d6e71d6a3f93268bad5c54ffda | [] | no_license | 1140831845/custkdxf_114code | 0fbe9213b2e015c50aa6e66b8949f90c8cf49ea5 | b7afe65af9e93609741981f0cc72b1eb7a6cd37d | refs/heads/master | 2020-04-03T10:18:56.629852 | 2018-10-30T13:40:57 | 2018-10-30T13:40:57 | 155,189,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | #!/usr/bin/env python
# -*-coding:utf-8-*-
import sys
import os
import json
from .predictor import Predictor
from zipfile import ZipFile
OOV_STR = "<OOV>"
def _load_map_file(path, char_map_name, id_map_name):
with ZipFile(path) as myzip:
with myzip.open('all_map.json') as myfile:
content =... | [
"1440831845@qq.com"
] | 1440831845@qq.com |
eadaff38311d9b7fd22fb7f22162f2934b0a0a94 | 87bb2b9258c887e8fbcaca08d18e5d95ae96462d | /Codewars/Python/7kyu/7kyu_Largest pair in array.py | aec94dec63fcfa2b5e935b6ac65a4134e7f49ecf | [] | no_license | KonradMarzec1991/Codewars-LeetCode | a9e4d09f4271fecb3a7fc1ee436358ac1bbec5e4 | 442113532158f5a3ee7051a42e911afa5373bb5f | refs/heads/master | 2023-04-21T17:04:37.434876 | 2021-05-11T21:47:14 | 2021-05-11T21:47:14 | 166,555,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def largest_pair_sum(numbers):
from heapq import nlargest
return sum(nlargest(2, numbers))
| [
"konrimarzec@gmail.com"
] | konrimarzec@gmail.com |
5029d4ff82c752725820c976fe5935f269b09177 | 70137ac67ba2cd9970167b55fc5bbba7ce051950 | /叠加事件驱动策略/bert_base/train/train_helper.py | 36b0b8df0326bf02e18150c2e4339b6b98a99822 | [] | no_license | zhangfeng0812/quanta_competition | bbe0f73cbd51f9291f25515c260da7342987df7e | 3f56e6855db1638a1e7131670ea8660b63f85fc5 | refs/heads/master | 2020-09-16T16:19:05.067187 | 2019-11-25T00:06:24 | 2019-11-25T00:06:24 | 223,826,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,918 | py | # -*- coding: utf-8 -*-
"""
@Time : 2019/1/30 14:01
@File : train_helper.py
"""
import argparse
import os
__all__ = ['get_args_parser']
def get_args_parser():
__version__ = '0.1.0'
parser = argparse.ArgumentParser()
# windows下的路径表示
if os.name == 'nt':
bert_path = r'E:\nlp_data\chine... | [
"zhfeng012@gamil.com"
] | zhfeng012@gamil.com |
0b7b8cc2114aca9d05671b6b132a1a909f63ca55 | f97a267b066f64177e382346e36cc06c25a3a6b1 | /src/quart/typing.py | a1be3a52dbb6ec3db1d23f2cf3688f19f97a56fe | [
"MIT"
] | permissive | p-unity-lineage/quart | a54ec9a1e6f61159c5c2688e24a2b54462bcd231 | 14efcd92f37bb4ef78d463d6d145f71c61665470 | refs/heads/master | 2023-03-31T23:56:56.881288 | 2021-04-11T09:28:28 | 2021-04-11T09:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,067 | py | from __future__ import annotations
import os
from datetime import datetime, timedelta
from types import TracebackType
from typing import (
Any,
AnyStr,
AsyncContextManager,
AsyncGenerator,
Awaitable,
Callable,
Dict,
Generator,
List,
Optional,
Tuple,
Type,
TYPE_CHECKI... | [
"philip.graham.jones@googlemail.com"
] | philip.graham.jones@googlemail.com |
03f2846a44dbf317f88f46f0902e8caf702171da | 5abd1c1792314f61029cbd49cd3a354350a364ad | /send_client.py | 94370117e9c703f40db1314a98b5060199846dc0 | [] | no_license | pvsune/simple-xmpp-chat | 051d8ddb4f188609b2e8c43ea25a9dabb43fd859 | 1b97d2bf441eba9ef604629c89f7ac0a9b812d19 | refs/heads/master | 2020-12-02T18:14:49.564675 | 2017-07-13T10:48:48 | 2017-07-13T10:48:48 | 96,501,324 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import sys
import logging
import getpass
from optparse import OptionParser
import sleekxmpp
# P... | [
"phil@pez.ai"
] | phil@pez.ai |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.