seed
stringlengths
1
14k
source
stringclasses
2 values
# Medium # https://leetcode.com/problems/next-greater-element-ii/ # TC: O(N) # SC: O(N) class Solution: def nextGreaterElements(self, nums: List[int]) -> List[int]: nums = nums + nums stack = [] out = [-1 for _ in nums] for index, num in enumerate(nums): while len(stack) and num > nums[stack[-1]]: out[stack.pop()] = num stack.append(index) return out[:len(nums) // 2]
ise-uiuc/Magicoder-OSS-Instruct-75K
theta0.rename("theta0", "temperature") theta1 = Function(problem.Q) theta1 = Function(problem.Q) t = 0.0 dt = 1.0e-3
ise-uiuc/Magicoder-OSS-Instruct-75K
s = soup.find("script", {"type": "application/ld+json"}).string
ise-uiuc/Magicoder-OSS-Instruct-75K
y = f(x) g = J(x) return y, g def main(): J = jacobian(fun) def wrapper(x): return fun(x), J(x) xlb = np.array([0.6, 0.2]) xub = np.array([1.6, 1.2])
ise-uiuc/Magicoder-OSS-Instruct-75K
class OperConfig(AppConfig): name = 'oper' verbose_name = '用户操作管理' def ready(self): from oper import signals
ise-uiuc/Magicoder-OSS-Instruct-75K
time = None # a[0] initial hour # a[1] initial min # a[2] final hour # a[3] final min start = 60 * a[0] + a[1] finish = 60 * a[2] + a[3] if finish <= start: finish += 1440 # 24 * 60 time = finish - start
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param int $expectedNumberOfProcesses * @param array<int> $expectedJobSizes */ public function testSchedule(int $cpuCores, int $maximumNumberOfProcesses, int $minimumNumberOfJobsPerProcess, int $jobSize, int $numberOfFiles, int $expectedNumberOfProcesses, array $expectedJobSizes) : void { $files = \array_fill(0, $numberOfFiles, 'file.php'); $scheduler = new \TenantCloud\BetterReflection\Relocated\PHPStan\Parallel\Scheduler($jobSize, $maximumNumberOfProcesses, $minimumNumberOfJobsPerProcess); $schedule = $scheduler->scheduleWork($cpuCores, $files); $this->assertSame($expectedNumberOfProcesses, $schedule->getNumberOfProcesses()); $jobSizes = \array_map(static function (array $job) : int { return \count($job); }, $schedule->getJobs()); $this->assertSame($expectedJobSizes, $jobSizes);
ise-uiuc/Magicoder-OSS-Instruct-75K
// 书价 dynamic var price: String = ""
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, nodelist): self.nodelist = nodelist def render(self, context): strip_line_breaks = keep_lazy_text( lambda x: re.sub(r'[\n]+', '\n', x) ) return strip_line_breaks(self.nodelist.render(context).strip())
ise-uiuc/Magicoder-OSS-Instruct-75K
Example Input/Output 2: Input: 105 90
ise-uiuc/Magicoder-OSS-Instruct-75K
#By Tummy a.k.a <NAME> # #<EMAIL>[.]Passaro[@]gmail[.]<EMAIL> # #www.vincentpassaro.com # ###################################################################### #_____________________________________________________________________
ise-uiuc/Magicoder-OSS-Instruct-75K
} public function getEventoActual($idJuego) { $IdJuego = $idJuego; try{ $conn = new mysqli($GLOBALS['servername'], $GLOBALS['username'] , $GLOBALS['password'], $GLOBALS['db']);
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>picoff/journaldb package com.picoff.journaldb.exception; import java.io.IOException; public class JournalNotArchivedException extends IOException { }
ise-uiuc/Magicoder-OSS-Instruct-75K
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('topic', models.CharField(default='', max_length=255)), ('text', models.TextField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now_add=True)), ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': [django.db.models.expressions.OrderBy(django.db.models.expressions.F('created_at'), descending=True)], }, ), migrations.AddField( model_name='discussioncomments',
ise-uiuc/Magicoder-OSS-Instruct-75K
assert result.exit_code == 0 assert "Available themes" in result.stdout
ise-uiuc/Magicoder-OSS-Instruct-75K
} currentState = id;
ise-uiuc/Magicoder-OSS-Instruct-75K
# *********************************************************************************** from .d3d10_h import * from .dxgi_h import * from ..utils import * IID_ID3D10Device1 = GUID( "{9B7E4C8F-342C-4106-A19F-4F2704F689F0}" ) class ID3D10Device1(ID3D10Device):
ise-uiuc/Magicoder-OSS-Instruct-75K
session.close()
ise-uiuc/Magicoder-OSS-Instruct-75K
FileSystemUtils.writeContentAsLatin1(cachePath, "blah blah blah"); try { cacheManager.getValue("foo"); fail("Cache file was corrupt, should have thrown exception"); } catch (IllegalStateException expected) { assertThat(expected).hasMessageThat().contains("malformed"); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
op=pyast.Add(), value=isl2py_exp(n.for_get_inc()), ) # python loop body py_body = isl2py_ast(n.for_get_body()) + [py_inc] ret = [ py_asign, pyast.While(test=isl2py_exp(n.for_get_cond()), body=py_body, orelse=[]), ] return ret
ise-uiuc/Magicoder-OSS-Instruct-75K
if version.startswith("firefox"): return FIREFOX if version.startswith("jre"): return JRE if version.startswith("rhel"): return RHEL if version.startswith("webmin"): return WEBMIN
ise-uiuc/Magicoder-OSS-Instruct-75K
t.color("blue") t.width(1) t.speed(0)
ise-uiuc/Magicoder-OSS-Instruct-75K
else: shell_command_base = shell_command_base + ' $null' if shell_param3: shell_command_base = shell_command_base + ' "{{shell_param3}}"' else: shell_command_base = shell_command_base + ' $null' else: raise ValueError("A remote command '%s' was specified but shell_remote was set to False"
ise-uiuc/Magicoder-OSS-Instruct-75K
button1 = Button(root,text='1',height='1',width='6',command=lambda: press(1)) button1.grid(row=2,column=0) button2=Button(root,text='2',height='1',width='6',command=lambda:press(2)) button2.grid(row=2,column=1) button3=Button(root,text='3',height='1',width='6') button3.grid(row=2,column=2) button4=Button(root,text='4',height='1',width='6') button4.grid(row=3,column=0) button5=Button(root,text='5',height='1',width='6') button5.grid(row=3,column=1)
ise-uiuc/Magicoder-OSS-Instruct-75K
public enum CodingKeys: String, CodingKey, CaseIterable { case _class case crumb case crumbRequestField } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent(_class, forKey: ._class) try container.encodeIfPresent(crumb, forKey: .crumb) try container.encodeIfPresent(crumbRequestField, forKey: .crumbRequestField) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
net = slim.fully_connected(net, num_out, weights_initializer=contrib.layers.variance_scaling_initializer(), weights_regularizer=slim.l2_regularizer(wd),
ise-uiuc/Magicoder-OSS-Instruct-75K
weight_mim=1, weight_cls=1,), init_cfg=None, **kwargs): super(MIMClassification, self).__init__(init_cfg, **kwargs) # networks self.backbone = builder.build_backbone(backbone) assert isinstance(neck_cls, dict) and isinstance(neck_mim, dict) self.neck_cls = builder.build_neck(neck_cls) self.neck_mim = builder.build_neck(neck_mim) assert isinstance(head_cls, dict) and isinstance(head_mim, dict)
ise-uiuc/Magicoder-OSS-Instruct-75K
+ EightBall.RESPONSES_NO ) responses = [] for x in range(len(all_responses)): # Set RNG mock_chooser.choice = x # Shake magic eight ball test_hallo.function_dispatcher.dispatch( EventMessage(test_hallo.test_server, None, test_hallo.test_user, "magic8-ball")
ise-uiuc/Magicoder-OSS-Instruct-75K
* <br><br> * For example, given the following valid dataset name:
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.apps import AppConfig
ise-uiuc/Magicoder-OSS-Instruct-75K
cardano-cli query tip --testnet-magic 1097911063
ise-uiuc/Magicoder-OSS-Instruct-75K
# # APP_MONGO_OPLOG_URL Mongodb operational log 'local' database for # Note: _OPLOG_ support normally requires a replicaSet. # # DATA_MONGO_URL Mongodb 'tkadira-data' database for kadira services # # ENGINE_PORT - is the default 11011 port for the Kadira APM engine # # UI_PORT - is the default 4000 port to which UI browsers connect.
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>sanjib-sen/youtube-stream import os, sys # Link: https://github.com/spatialaudio/python-sounddevice/issues/11#issuecomment-155836787 ''' It seems to work by running this before each PortAudio call:
ise-uiuc/Magicoder-OSS-Instruct-75K
if margin is not None: self.setContentsMargins(margin, margin, margin, margin) self.setSpacing(spacing) self.__items: Dict[int, QWidgetItem] = {} def __del__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override protected void writeImpl() { writeEx(0x23); // SubId writeC(0);
ise-uiuc/Magicoder-OSS-Instruct-75K
</ul> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
dcos marathon app add flink-jobmanager.json echo 'Waiting for Flink jobmanager to start.' sleep 30 echo 'Starting Flink taskmanagers' for TASKMANAGER_NB in $(seq 1 $AMT_WORKERS) do export TASKMANAGER_NB=$TASKMANAGER_NB envsubst < flink-taskmanager-with-env.json > flink-taskmanager-without-env-${TASKMANAGER_NB}.json dcos marathon app add flink-taskmanager-without-env-${TASKMANAGER_NB}.json done
ise-uiuc/Magicoder-OSS-Instruct-75K
python /service/scripts/mounthelper.py mount $2 chown -R ferry:docker /service/data fi
ise-uiuc/Magicoder-OSS-Instruct-75K
bundle.add_content(m) self.osc.send(bundle.build())
ise-uiuc/Magicoder-OSS-Instruct-75K
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #SOFTWARE. # Build script for lure # Did you install the golang dev environment? # Easy test is running 'go version' - if that works you should be good.
ise-uiuc/Magicoder-OSS-Instruct-75K
def configure(app): db.init_app(app) app.db = db class Tree(db.Model):
ise-uiuc/Magicoder-OSS-Instruct-75K
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>release.sh #!/bin/sh VER=v$(cat package.json| jq -r .version) hub release create ${VER} -m ${VER}
ise-uiuc/Magicoder-OSS-Instruct-75K
from atomate.utils.database import CalcDb from atomate.utils.utils import get_logger __author__ = "<NAME>" __credits__ = "<NAME>" __email__ = "<EMAIL>" logger = get_logger(__name__) # If we use Maggmastores we will have to initialize a magmma store for each object typl OBJ_NAMES = ( "dos", "bandstructure", "chgcar",
ise-uiuc/Magicoder-OSS-Instruct-75K
The main purpose of using this approach is to provide an ability to run tests on Windows (which doesn't support sh_test). The command is passed to this test using `CMD` environment variable. """ def test_app(self): self.assertEquals(0, subprocess.call(os.environ["CMD"].split(" ")))
ise-uiuc/Magicoder-OSS-Instruct-75K
const std::string &id() const { return m_id; } std::size_t size() const { return m_triples.size();
ise-uiuc/Magicoder-OSS-Instruct-75K
$this->sendHeaders(); } return imagejpeg($this->resource, $destination, $quality);
ise-uiuc/Magicoder-OSS-Instruct-75K
raise IOError("File '{}' not found".format(filename)) with open(filename, 'r') as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
if (flags & xcb::randr::MODE_FLAG_DOUBLE_SCAN) != 0 { val *= 2; } if (flags & xcb::randr::MODE_FLAG_INTERLACE) != 0 { val /= 2; } val }; if vtotal != 0 && mode_info.htotal() != 0 {
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Deserialize, Debug)] pub struct Scml { pub name: String, pub strokes: Vec<Stroke>, } impl Parse for Scml { fn parse(scml_json: &str) -> Scml { from_str(scml_json).expect("Scml parse error") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>app/controllers/AdminDenunciaController.php<gh_stars>0 <?php use Anuncia\Repositorios\AnuncioRepo; use Anuncia\Repositorios\CategoriaRepo; use Anuncia\Repositorios\SubcategoriaRepo; use Anuncia\Repositorios\DenunciaRepo; use Anuncia\Repositorios\HistorialRepo; use Anuncia\Repositorios\UsuarioRepo; class AdminDenunciaController extends BaseController {
ise-uiuc/Magicoder-OSS-Instruct-75K
BaseElement.__init__(self, 'tspan') self.set_x(x) self.set_y(y) self.set_dx(dx) self.set_dy(dy) self.set_rotate(rotate) self.set_textLength(textLength) self.set_lengthAdjust(lengthAdjust) self.setKWARGS(**kwargs) def set_textLength(self, textLength):
ise-uiuc/Magicoder-OSS-Instruct-75K
Override the Streamlit theme applied to the card {'bgcolor': '#EFF8F7','title_color': '#2A4657','content_color': 'green','progress_color': 'green','icon_color': 'green', 'icon': 'fa fa-check-circle'} Returns --------- None
ise-uiuc/Magicoder-OSS-Instruct-75K
.modify(EXTICR1::EXTI2.val(exticrid as u32)), 0b0011 => self .registers
ise-uiuc/Magicoder-OSS-Instruct-75K
. $(dirname "$0")/../../../lib/nb-characterization/common.sh STATS_CSV="$HOME/army_ant-run_stats-context.csv"
ise-uiuc/Magicoder-OSS-Instruct-75K
# Everything is done in a child process because the called functions mutate # the global state. self.assertEqual(0, call('test_rotating_phase_1', cwd=self.tmp)) self.assertEqual({'shared.1.log'}, set(os.listdir(self.tmp))) with open(os.path.join(self.tmp, 'shared.1.log'), 'rb') as f: lines = f.read().splitlines() expected = [ r' I: Parent1',
ise-uiuc/Magicoder-OSS-Instruct-75K
title.replace(" ", "_").replace("/", "-") + ".txt") with open(ofile, "w") as f: for tag in div.find_all(True, recursive=False): if tag.name == 'p': text = tag.get_text() text = re.sub(r'\[\d+\]', '', tag.get_text()) if isinstance(text, unicode): text = text.encode("utf-8") f.write(text + "\n") #text = cnlp.annotate(text)
ise-uiuc/Magicoder-OSS-Instruct-75K
cd pdr_python_sdk && pytest --cov=pdr_python_sdk/ ./tests/* && mv .coverage ../
ise-uiuc/Magicoder-OSS-Instruct-75K
public function model() { return Exam::class; } public function validationRules($resource_id = 0) { return []; } public function startExam(Request $request){ $user_id = $request->input('user_id'); $package_id = $request->input('package_id');
ise-uiuc/Magicoder-OSS-Instruct-75K
dp = [0 for i in range(len(nums))] dp[0] = nums[0] for i in range(1,len(nums)): dp[i] = max(dp[i-1]+nums[i],nums[i]) #print(dp) return max(dp)
ise-uiuc/Magicoder-OSS-Instruct-75K
.send(urlBody) })
ise-uiuc/Magicoder-OSS-Instruct-75K
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
ise-uiuc/Magicoder-OSS-Instruct-75K
}) } } internal override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask { return UIInterfaceOrientationMask.Portrait }
ise-uiuc/Magicoder-OSS-Instruct-75K
def build_train_set(trajectories): """ Args: trajectories: trajectories after processing by add_disc_sum_rew(),
ise-uiuc/Magicoder-OSS-Instruct-75K
using SmallAllocator = fbl::SlabAllocator<SmallBufferTraits>;
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>devarafikry/vlavacindustry <html lang="en"> <head>
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns ------- X_sample_new : torch.Tensor
ise-uiuc/Magicoder-OSS-Instruct-75K
$currentWatchers[] = $watcher['name'];
ise-uiuc/Magicoder-OSS-Instruct-75K
version='2.0',
ise-uiuc/Magicoder-OSS-Instruct-75K
def __str__(self): return str(self.peopleId) + "(" + str( self.peopleRecognitionId) + ") - " + self.peopleGender + " - " + self.peopleColor + " - " + self.peoplePose
ise-uiuc/Magicoder-OSS-Instruct-75K
} #endif // !pooling_cpp
ise-uiuc/Magicoder-OSS-Instruct-75K
key = "An even lamer key" crypt = pytan3.utils.crypt.encrypt(data=data, key=key) assert re.match(r"\d+\$\d+\$", crypt) back = pytan3.utils.crypt.decrypt(data=crypt, key=key) assert back == data def test_decrypt_bad_key(): """Test exc thrown with bad key.""" data = "{}#!:What a lame test" key = "An even lamer key" crypt = pytan3.utils.crypt.encrypt(data=data, key=key) with pytest.raises(pytan3.utils.exceptions.ModuleError):
ise-uiuc/Magicoder-OSS-Instruct-75K
if len(info) == 2: info.append(start_time) if len(info) > 3 and _is_date(info[2] + ' ' + info[3]): del info[3] if len(info) > 2: info[2] = start_time lines[i] = ' '.join(info) break with codecs.open(user_config_file_path, 'w', encoding='utf-8') as f: f.write('\n'.join(lines)) def add_user_uri_list(user_config_file_path, user_uri_list):
ise-uiuc/Magicoder-OSS-Instruct-75K
export const updateDemandCertificationCreate = (client: HTTPClient) => ( parameters: CertificationRequestBody<INftUpdateDemand>,
ise-uiuc/Magicoder-OSS-Instruct-75K
XCTAssertNil(span) } func test_NoTransaction() { let task = createDataTask() let sut = fixture.getSut() sut.urlSessionTaskResume(task) let span = objc_getAssociatedObject(task, SENTRY_NETWORK_REQUEST_TRACKER_SPAN) XCTAssertNil(span) }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace Qurl.Samples.AspNetCore.Models { public class Person { public int Id { get; set; } public string Name { get; set; } public DateTime Birthday { get; set; } public Group Group { get; set; } public bool Active { get; set; } } public class PersonFilter {
ise-uiuc/Magicoder-OSS-Instruct-75K
self.file_path = file_path def store(self) -> None: with self.file_path.open('w') as file: text = self.formatted_planning() file.write(text)
ise-uiuc/Magicoder-OSS-Instruct-75K
<link href="{{ URL::to("assets/css/bootstrap.min.css") }}" rel="stylesheet" /> <!-- Animation library for notifications --> <link href="{{ URL::to("/") }}/assets/css/animate.min.css" rel="stylesheet"/> <!-- Paper Dashboard core CSS --> <link href="{{ URL::to("/") }}/assets/css/paper-dashboard.css" rel="stylesheet"/>
ise-uiuc/Magicoder-OSS-Instruct-75K
</table> </div><!-- /.box-body -->
ise-uiuc/Magicoder-OSS-Instruct-75K
<form action="" method="POST"> <input type="mail2" id="forget" class="fadeIn second forget-field" name="forget_mail" placeholder="email address" required> <p style="color:green"><?php echo $err_invalid; ?></p> <input type="submit" name="forget_pass_btn" class="fadeIn fourth" value="Reset"> </form>
ise-uiuc/Magicoder-OSS-Instruct-75K
else: flash('Invalid Token', 'danger') else: flash('Invalid Token', 'danger')
ise-uiuc/Magicoder-OSS-Instruct-75K
// feature_home // // Created by Johan Torell on 2021-11-09. //
ise-uiuc/Magicoder-OSS-Instruct-75K
@Component({ selector: 'app-page-title', templateUrl: './page-title.component.html', styleUrls: ['./page-title.component.scss'] }) export class PageTitleComponent implements OnInit, OnDestroy { @Input() title: string; menuItems: MenuItem[]; private readonly ROUTE_DATA_BREADCRUMB = 'breadcrumb';
ise-uiuc/Magicoder-OSS-Instruct-75K
perturb.setZero(); perturb(i) = step; T_OL.manifoldPlus(perturb); residual.Evaluate(params, perturbed_error.data(), nullptr); T_OL_jacobian_numeric.col(i) = (perturbed_error - error) / step;
ise-uiuc/Magicoder-OSS-Instruct-75K
py_list_ext = ['Mike', 'Samuel'] py_list.extend(py_list_ext)
ise-uiuc/Magicoder-OSS-Instruct-75K
# store its direction and (x,y) as complex numbers # directions are just one of the numbers +1, +1j, -1, -1j # therefore, changing a direction means multiplying it # by either +1j (clockwise turn) or -1j (counterclockwise) carts.append(Cart(char, (x + y * 1j)))
ise-uiuc/Magicoder-OSS-Instruct-75K
from io import BytesIO # To install this module, run: # python -m pip install Pillow from PIL import Image, ImageDraw from azure.cognitiveservices.vision.face import FaceClient
ise-uiuc/Magicoder-OSS-Instruct-75K
from webapi import api, mongo from webapi.common import util
ise-uiuc/Magicoder-OSS-Instruct-75K
def is_root() -> bool: return os.geteuid() == 0
ise-uiuc/Magicoder-OSS-Instruct-75K
version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), install_requires=[], entry_points={"console_scripts": []}, )
ise-uiuc/Magicoder-OSS-Instruct-75K
if "tags" in yaml_object: total_tags.extend(yaml_object["tags"]) total_tags = set([t.strip() for t in total_tags]) tl = list(total_tags) tl.sort() print(tl) existing_tags = [] old_tags = os.listdir(tag_dir) for tag in old_tags: if tag.endswith(".md"): os.remove(tag_dir + tag) existing_tags.append(tag)
ise-uiuc/Magicoder-OSS-Instruct-75K
unit_1 = Printer('hp', 2000, 5, 10) unit_2 = Scanner('Canon', 1200, 5, 10) unit_3 = Copier('Xerox', 1500, 1, 15) print(unit_1.reception()) print(unit_2.reception()) print(unit_3.reception()) print(unit_1.to_print()) print(unit_3.to_copier())
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @export * @param {number} [min] * @param {number} [max] * @param {boolean} [isFloating=false] * @returns {number} */ export default function randomNumber(min?: number, max?: number, isFloating?: boolean): number;
ise-uiuc/Magicoder-OSS-Instruct-75K
TEST_SERVICE_TYPE = "ocean-meta-storage" TEST_SERVICE_URL = "http://localhost:8005"
ise-uiuc/Magicoder-OSS-Instruct-75K
public void Update()
ise-uiuc/Magicoder-OSS-Instruct-75K
with open("input.txt") as x: lines = x.read().strip().split("\n\n") lines = [line.replace("\n", " ") for line in lines] valid = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
yarn && yarn build cd ../node-server/ yarn
ise-uiuc/Magicoder-OSS-Instruct-75K
super().__init__() self.seed = torch.manual_seed(get_seed()) self.V_fc1 = nn.Linear(state_size, 64) self.V_fc2 = nn.Linear(64, 64) self.V_fc3 = nn.Linear(64, 1) self.A_fc1 = nn.Linear(state_size, 64) self.A_fc2 = nn.Linear(64, 64) self.A_fc3 = nn.Linear(64, action_size) def forward(self, state): x = F.relu(self.V_fc1(state)) x = F.relu(self.V_fc2(x)) state_value = self.V_fc3(x)
ise-uiuc/Magicoder-OSS-Instruct-75K
appdesc = st.AppDesc(user_name = "Smoke Test Gen", email = "<EMAIL>", copyright_holder = "Smoke Test Copy, LLC.",
ise-uiuc/Magicoder-OSS-Instruct-75K
BOOST_REQUIRE(error == 0); SMO_close(&p_handle); } BOOST_AUTO_TEST_SUITE_END() struct Fixture{ Fixture() {
ise-uiuc/Magicoder-OSS-Instruct-75K